/* Tracks — marketing + legal site.
 *
 * Tokens are lifted from tracks/constants/theme.ts so this page and the app are
 * recognisably the same product. Dark is the app's native mode; light is the
 * alternate, exactly as in the app. No build step, no framework, no fonts
 * loaded over the network — the rounded face is the system one on Apple
 * devices and degrades to the platform UI font elsewhere.
 */

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #1b1b1d;
  --ink-soft: #6b6a63;
  --hairline: #e2ded0;
  --accent: #6657d5;
  --accent-pressed: #5748be;
  --plate: #1b1b1d;
  --on-plate: #f6f3ec;
  --on-plate-soft: #9e9c93;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --surface: #201f26;
    --ink: #f3f1ea;
    --ink-soft: #9c9a96;
    --hairline: #302e36;
    --accent: #8677ff;
    --accent-pressed: #9c8fff;
    --plate: #252430;
    --on-plate: #f3f1ea;
    --on-plate-soft: #9c9a96;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero img {
  width: 160px;
  height: 160px;
  max-width: 60vw;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(2.5rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 0;
}

.tagline {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0.5rem 0 0;
}

.badge {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

@media (prefers-color-scheme: dark) {
  .badge {
    color: #12111a;
  }
}

/* --------------------------------------------------------------- content */

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p,
li {
  color: var(--ink);
}

.muted {
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-pressed);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

/* The one "object" on the page, echoing the app's Trainer Card plate. */
.plate {
  background: var(--plate);
  color: var(--on-plate);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 2rem 0;
}

.plate h2 {
  margin-top: 0;
  color: var(--on-plate);
}

.plate p,
.plate li {
  color: var(--on-plate-soft);
}

.plate strong {
  color: var(--on-plate);
  font-weight: 600;
}

/* ----------------------------------------------------------------- foot */

footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

footer nav {
  margin-bottom: 1rem;
}

footer nav a {
  margin: 0 0.6rem;
}

.disclaimer {
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 1.25rem;
}

/* Legal pages read as documents, not marketing. */
.doc h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0;
}

.doc .back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
