/* ═══════════════════════════════════════════════════════════════════
   TrainerX — Light marketing site
   Reference aesthetic: Apple-consumer / soft aurora / Inter 600 display
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --bg-secondary:  #f5f5f5;
  --bg-tertiary:   #fafafa;
  --fg:            #0a0a0a;
  --fg-secondary:  #52525b;
  --fg-muted:      #8a8a94;
  --border:        #e6e6e9;
  --border-strong: #d4d4d8;

  --accent:        #6d4aff;
  --accent-soft:   #efeaff;
  --accent-ink:    #4a2fd6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --shadow-sm:  0 1px 2px rgba(9,9,11,0.04), 0 1px 1px rgba(9,9,11,0.03);
  --shadow-md:  0 4px 16px rgba(9,9,11,0.06), 0 1px 3px rgba(9,9,11,0.04);
  --shadow-lg:  0 18px 48px rgba(9,9,11,0.10), 0 4px 12px rgba(9,9,11,0.05);
  --shadow-xl:  0 40px 90px rgba(9,9,11,0.16), 0 12px 28px rgba(9,9,11,0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ── Type scale ─────────────────────────────────────────────────── */
.display {
  font-size: clamp(40px, 7.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.045;
}
.h2 {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-secondary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}
.eyebrow--on-dark { color: rgba(255,255,255,0.5); }

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }
.d4 { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:active { transform: scale(0.975); }

.btn--primary { background: var(--fg); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: #262629; box-shadow: var(--shadow-lg); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(109,74,255,0.28); }
.btn--accent:hover { background: var(--accent-ink); box-shadow: 0 12px 32px rgba(109,74,255,0.34); }

.btn--ghost { background: rgba(255,255,255,0.7); color: var(--fg); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); }
.btn--ghost:hover { background: #fff; border-color: var(--fg-muted); }

.btn--on-dark { background: #fff; color: var(--fg); }
.btn--on-dark:hover { background: rgba(255,255,255,0.88); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 34px; font-size: 16px; }

.app-badge { height: 52px; width: auto; border-radius: 9px; transition: transform 0.18s var(--ease); }
.app-badge:hover { transform: scale(1.03); }

/* ── Aurora ─────────────────────────────────────────────────────── */
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.85;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.aurora .a1 { width: 640px; height: 520px; left: 2%;  top: 12%; background: rgba(140,168,255,0.55); }
.aurora .a2 { width: 560px; height: 480px; left: 26%; top: 0;   background: rgba(196,150,255,0.50); }
.aurora .a3 { width: 600px; height: 500px; right: 12%; top: 8%; background: rgba(255,170,205,0.45); }
.aurora .a4 { width: 520px; height: 440px; right: 0;  top: 26%; background: rgba(255,206,160,0.45); }
.aurora .a5 { width: 480px; height: 400px; left: 46%; top: 30%; background: rgba(160,232,238,0.42); }
.aurora--soft { opacity: 0.5; }

/* ═══ HEADER ════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
/* ── Liquid glass ───────────────────────────────────────────────
   Four stacked layers:
     nav-pill  frost      backdrop blur + saturate (universal)
     .lg-warp  refraction SVG displacement of the backdrop (Chromium)
     .lg-sheen specular   top-lit gradient over the glass body
     .lg-rim   edge       1px gradient ring — light wrapping the edge
   Each layer degrades independently, so an unsupported one costs
   nothing but its own effect.                                      */
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.nav-pill {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 7px 7px 18px;
  border: none;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.62);
  box-shadow:
    0 8px 28px rgba(9,9,11,0.10),
    0 2px 8px  rgba(9,9,11,0.05),
    inset 0 1px 1px rgba(255,255,255,0.7);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill {
    background: rgba(255,255,255,0.13);
    -webkit-backdrop-filter: blur(11px) saturate(215%) brightness(1.10);
            backdrop-filter: blur(11px) saturate(215%) brightness(1.10);
  }
}

/* Layer 1 — refraction. Bends the backdrop like real glass. */
.lg-warp {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  -webkit-backdrop-filter: url(#lg-warp);
          backdrop-filter: url(#lg-warp);
}

/* Layer 2 — specular sheen. Lit from above, brightest along the top edge. */
.lg-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.34) 0%,
      rgba(255,255,255,0.07) 38%,
      rgba(255,255,255,0.00) 64%,
      rgba(255,255,255,0.13) 100%),
    radial-gradient(130% 190% at 20% -55%,
      rgba(255,255,255,0.40) 0%,
      transparent 60%);
}

/* Layer 3 — edge. A 1px ring whose brightness travels around the rim. */
.lg-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.30) 26%,
    rgba(255,255,255,0.10) 48%,
    rgba(255,255,255,0.45) 72%,
    rgba(255,255,255,0.95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* Scrolled — the glass thickens slightly over content. */
.site-header.scrolled .nav-pill {
  background: rgba(255,255,255,0.46);
  box-shadow:
    0 14px 40px rgba(9,9,11,0.13),
    0 3px 10px  rgba(9,9,11,0.06),
    inset 0 1px 1px rgba(255,255,255,0.8);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled .nav-pill {
    background: rgba(255,255,255,0.20);
    -webkit-backdrop-filter: blur(16px) saturate(215%) brightness(1.12);
            backdrop-filter: blur(16px) saturate(215%) brightness(1.12);
  }
}

/* Over a dark section the glass inverts: smoked rather than milky, with
   the rim dimmed so it reads as an edge catching light, not a white line. */
.site-header.over-dark .nav-pill {
  background: rgba(22,22,26,0.42);
  box-shadow:
    0 10px 34px rgba(0,0,0,0.42),
    0 2px 8px rgba(0,0,0,0.28),
    inset 0 1px 1px rgba(255,255,255,0.16);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.over-dark .nav-pill {
    background: rgba(22,22,26,0.26);
    -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.5);
            backdrop-filter: blur(14px) saturate(190%) brightness(1.5);
  }
}
.site-header.over-dark .lg-sheen {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.16) 0%,
      rgba(255,255,255,0.03) 40%,
      rgba(255,255,255,0.00) 66%,
      rgba(255,255,255,0.06) 100%),
    radial-gradient(130% 190% at 20% -55%,
      rgba(255,255,255,0.20) 0%,
      transparent 60%);
}
.site-header.over-dark .lg-rim {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.14) 26%,
    rgba(255,255,255,0.05) 48%,
    rgba(255,255,255,0.22) 72%,
    rgba(255,255,255,0.55) 100%);
}
.site-header.over-dark .nav-brand { color: #fff; }
.site-header.over-dark .nav-link  { color: rgba(255,255,255,0.68); }
.site-header.over-dark .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.site-header.over-dark .nav-cta { background: #fff; color: var(--fg); }
.site-header.over-dark .nav-cta:hover { background: rgba(255,255,255,0.86); }
.site-header.over-dark .menu-toggle span { background: #fff; }

/* Colour swaps ride the same 300ms as the glass so the whole pill
   changes state as one object. */
.nav-brand, .nav-link, .nav-cta, .lg-sheen, .lg-rim {
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

/* Nav content sits above every glass layer. */
.nav-brand, .nav-links, .nav-cta, .menu-toggle { position: relative; z-index: 1; }

/* Reduce Transparency — drop to an opaque pill, keep the rim as the edge.
   (standing_principles.md: honour Reduce Transparency.) */
@media (prefers-reduced-transparency: reduce) {
  .nav-pill {
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  .site-header.scrolled .nav-pill,
  .site-header.over-dark .nav-pill {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  .site-header.scrolled .nav-pill { background: rgba(255,255,255,0.99); }
  .site-header.over-dark .nav-pill { background: rgba(18,18,21,0.97); }
  .lg-warp, .lg-sheen { display: none; }
}
.nav-brand {
  display: flex;
  align-items: center;
  margin-right: 6px;
}
/* No border-radius here. The mark fills its viewBox edge to edge, so a
   radius clips the four corner squares into petals and the X stops
   reading. Sized up a little too — below ~24px the notches between the
   blocks close up and it turns into a blob. */
.nav-brand img { width: 25px; height: 25px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-secondary);
  border-radius: var(--r-full);
  letter-spacing: -0.01em;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: rgba(9,9,11,0.04); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: var(--fg);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  transition: background 0.18s var(--ease);
}
.nav-cta:hover { background: #35353a; }
.menu-toggle { display: none; width: 38px; height: 38px; border-radius: var(--r-full); align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle span + span { margin-top: 4px; }

/* ═══ HERO ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 148px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.app-icon {
  /* Bigger than the old 88px: the liquid-metal shader needs room, and
     below ~110px the banding collapses into grey mush. */
  width: 112px; height: 112px;
  border-radius: 26px;
  margin: 0 auto 30px;
  /* Measured off the Figma board (node 3729-570): the shadow peaks about
     70px below a 602px mark and spreads ~160px at roughly 20% darkening.
     Scaled to this icon that is a ~9px drop at a ~20px blur, over a
     tighter contact shadow to keep it seated. */
  box-shadow:
    0 9px 20px rgba(9,9,11,0.20),
    0 2px 6px  rgba(9,9,11,0.10),
    0 0 0 1px  rgba(9,9,11,0.04);
  background: #E4E4E4;
  /* No padding here. ShaderMount sizes its canvas from the host's
     *content* box, so padding shrank the render target and the mark got
     drawn small then upscaled. The shader's own `scale` insets it. */
  position: relative;
  overflow: hidden;          /* clip the shader canvas to the squircle */
  isolation: isolate;
}
/* The shader canvas is injected by ShaderMount and fills the host edge
   to edge — the 16px padding only ever applies to the fallback mark. */
/* ShaderMount hard-codes z-index:-1 on its canvas (it assumes it is a
   background layer), which puts it *behind* the fallback mark. Override
   it so the shader is what you actually see. */
.app-icon > canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  z-index: 1 !important;

  /* The mark's own two drop shadows, from the Figma board:
        0 · 25 · 32  #FFFFFF 100%   (white lift under the mark)
        0 · 67 · 80  #000000  25%   (soft cast below it)
     Those are in the board's 1024px frame, so they are scaled by
     --fig-scale (112 / 1024). filter: drop-shadow follows the canvas's
     alpha, which is why colorBack is transparent — a box-shadow here
     would just outline the square. */
  --fig-scale: 0.109;
  filter:
    drop-shadow(0 calc(25px * var(--fig-scale)) calc(32px * var(--fig-scale)) #FFFFFF)
    drop-shadow(0 calc(67px * var(--fig-scale)) calc(80px * var(--fig-scale)) rgba(0,0,0,0.25));
}
/* The inset the host used to provide with padding now lives here, so the
   static mark still sits correctly inside the squircle. */
.app-icon-fallback {
  width: 100%; height: 100%;
  display: block;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.4s var(--ease);
}
/* Swapped only once the shader has actually mounted. */
.app-icon.is-shaded .app-icon-fallback { opacity: 0; }
.hero .display { max-width: 900px; margin: 0 auto; }
.hero .lede { max-width: 560px; margin: 22px auto 0; }
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.hero-device { margin-top: 66px; display: flex; justify-content: center; }

/* ═══ SECTIONS ══════════════════════════════════════════════════ */
.section { padding: 116px 0; position: relative; }
.section--tight { padding: 88px 0; }
.section--gray { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--fg); color: #fff; }
.section--dark .lede { color: rgba(255,255,255,0.62); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-head--wide { max-width: 880px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head .lede { margin: 22px auto 0; max-width: 560px; }

/* Big statement */
.statement { text-align: center; max-width: 880px; margin: 0 auto; }
.statement em { font-style: normal; color: var(--fg-muted); }

/* ═══ ASSESSMENT STEPS ══════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: left;
}
.section--gray .step, .section:not(.section--dark) .step {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}
.section--dark .step-num { color: #b9a4ff; }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--fg-secondary); line-height: 1.6; }
.section--dark .step p { color: rgba(255,255,255,0.6); }

/* ═══ FEATURE LIST (pills) ══════════════════════════════════════ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 0;
}
.feature-split .h2 { text-align: left; }
.feature-split .lede { margin-top: 20px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-secondary);
  letter-spacing: -0.01em;
}
.pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pill--accent { background: var(--accent-soft); border-color: rgba(109,74,255,0.18); color: var(--accent-ink); }

/* ═══ SCREEN CAROUSEL ═══════════════════════════════════════════ */
.rail-wrap { margin-top: 64px; }
.rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 8px 24px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: center; flex: 0 0 auto; text-align: left; }
.rail-caption { margin-top: 22px; max-width: 250px; }
.rail-caption h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.rail-caption p { font-size: 14.5px; color: var(--fg-secondary); margin-top: 6px; line-height: 1.55; }
.rail-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ═══ CARDS (3-up) ══════════════════════════════════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .eyebrow { display: block; margin-bottom: 16px; }
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.card p { font-size: 15px; color: var(--fg-secondary); margin-top: 12px; line-height: 1.6; }

/* ═══ PRICING ═══════════════════════════════════════════════════ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; align-items: start; }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card--pro {
  border-color: var(--fg);
  box-shadow: var(--shadow-xl);
  padding-top: 44px;
}
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.price-tier { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-secondary); }
.price-amount {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 10px 0 4px;
  line-height: 1;
}
.price-amount span { font-size: 16px; font-weight: 500; color: var(--fg-muted); letter-spacing: -0.01em; }
.price-desc { font-size: 14px; color: var(--fg-muted); margin-bottom: 26px; }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--fg-secondary); line-height: 1.5; }
.price-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.price-list--muted li { color: var(--fg-muted); }
.price-list--muted svg { color: var(--border-strong); }
.price-card .btn { width: 100%; }
.price-note { font-size: 12.5px; color: var(--fg-muted); text-align: center; margin-top: 12px; }
.price-verdict {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-secondary);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.price-verdict strong { color: var(--fg); font-weight: 600; }

/* ═══ TESTIMONIALS ══════════════════════════════════════════════ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.quote-stars { color: #ff9f0a; font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
.quote p { font-size: 15.5px; line-height: 1.6; letter-spacing: -0.01em; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.quote-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.quote-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.quote-detail { font-size: 12.5px; color: var(--fg-muted); }

/* ═══ FAQ ═══════════════════════════════════════════════════════ */
.faq-list { margin-top: 56px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-icon::before { left: 0; top: 7.25px; width: 16px; height: 1.5px; }
.faq-icon::after  { top: 0; left: 7.25px; width: 1.5px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.36s var(--ease); }
.faq-a p { padding: 0 4px 28px; font-size: 15.5px; color: var(--fg-secondary); line-height: 1.65; max-width: 68ch; }

/* ═══ FINAL CTA ═════════════════════════════════════════════════ */
.final-cta { position: relative; padding: 132px 0 140px; text-align: center; overflow: hidden; }
.final-cta .container { position: relative; z-index: 1; }
.final-cta .display { max-width: 820px; margin: 0 auto; }
.final-cta .lede { max-width: 560px; margin: 22px auto 0; }

/* ═══ FOOTER ════════════════════════════════════════════════════ */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand-row { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.footer-brand-row img { width: 26px; height: 26px; }
.footer-tagline { font-size: 14px; color: var(--fg-secondary); margin: 14px 0 22px; max-width: 34ch; line-height: 1.6; }
.footer-col-title { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--fg-secondary); padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}

/* ═══════════════════════════════════════════════════════════════
   APP UI — HTML/CSS recreation of the trainerX iOS interface
   ═══════════════════════════════════════════════════════════════ */
.device {
  width: 300px;
  height: 620px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3a40 0%, #17171a 42%, #2c2c32 100%);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(9,9,11,0.18);
  flex-shrink: 0;
}
.device--sm { width: 250px; height: 520px; border-radius: 40px; padding: 8px; }
.device-screen {
  width: 100%; height: 100%;
  border-radius: 37px;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, 'SF Pro Text', var(--font-sans);
  color: #fff;
  position: relative;
}
.device--sm .device-screen { border-radius: 33px; }

.aui-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 2px; flex-shrink: 0; }
.aui-time { font-size: 13px; font-weight: 600; letter-spacing: -0.02em; }
.aui-status-icons { display: flex; align-items: center; gap: 5px; opacity: 0.95; }
.aui-island { width: 104px; height: 27px; background: #000; border-radius: 16px; margin: -20px auto 6px; box-shadow: 0 0 0 1px rgba(255,255,255,0.05); flex-shrink: 0; position: relative; z-index: 2; }

.aui-nav { display: flex; align-items: center; justify-content: space-between; padding: 2px 18px 6px; flex-shrink: 0; }
.aui-nav-back { display: flex; align-items: center; gap: 4px; font-size: 15px; color: rgba(255,255,255,0.5); }

.aui-head { padding: 4px 18px 14px; flex-shrink: 0; }
.aui-title { font-size: 24px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.aui-sub { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.42); margin-top: 3px; letter-spacing: 0.01em; }

.aui-stats { display: flex; align-items: center; margin-top: 15px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); border-radius: 13px; padding: 11px 0; }
.aui-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.aui-stat-v { font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: -0.04em; }
.aui-stat-l { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.38); }
.aui-stat-div { width: 1px; height: 26px; background: rgba(255,255,255,0.09); }

.aui-week { padding: 6px 18px 5px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; flex-shrink: 0; }

.aui-list { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.aui-list::after { content: ''; position: absolute; inset: auto 0 0 0; height: 52px; background: linear-gradient(to bottom, transparent, #000 78%); pointer-events: none; z-index: 3; }

.aui-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: #131316; border-bottom: 0.5px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.aui-row--next { background: #fff; border: none; border-radius: 14px; margin: 4px 11px; box-shadow: 0 10px 26px rgba(0,0,0,0.55); position: relative; z-index: 1; }
.aui-row--rest { opacity: 0.45; }
.aui-row-info { display: flex; flex-direction: column; gap: 2px; flex: 1; padding-right: 10px; min-width: 0; }
.aui-meta { font-family: var(--font-mono); font-size: 9.5px; color: rgba(255,255,255,0.45); letter-spacing: 0.01em; }
.aui-meta b { font-weight: 800; }
.aui-row--next .aui-meta { color: rgba(0,0,0,0.5); }
.aui-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aui-row--next .aui-name { color: #000; }
.aui-row--done .aui-name { color: rgba(255,255,255,0.5); }
.aui-row--done .aui-meta { color: rgba(255,255,255,0.28); }
.aui-dot { width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.aui-dot--empty { border: 1.5px solid rgba(255,255,255,0.18); }

/* Chat screen */
.aui-chat { flex: 1; padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.aui-bubble { max-width: 82%; padding: 10px 13px; border-radius: 17px; font-size: 13.5px; line-height: 1.42; letter-spacing: -0.01em; }
.aui-bubble--ai { align-self: flex-start; background: #1c1c1f; border-bottom-left-radius: 5px; }
.aui-bubble--me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 5px; font-weight: 500; }
.aui-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; background: #1c1c1f; border-radius: 17px; border-bottom-left-radius: 5px; }
.aui-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: aui-blink 1.3s infinite; }
.aui-typing i:nth-child(2) { animation-delay: 0.18s; }
.aui-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes aui-blink { 0%,60%,100% { opacity: 0.25; } 30% { opacity: 1; } }
.aui-composer { margin: 0 16px 14px; height: 38px; border-radius: var(--r-full); background: #1c1c1f; border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: rgba(255,255,255,0.32); flex-shrink: 0; }

/* Workout / logging screen */
.aui-set-head { display: flex; padding: 8px 18px 6px; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.aui-set-head span:first-child { flex: 1; }
.aui-set-head span { width: 46px; text-align: center; }
.aui-set { display: flex; align-items: center; padding: 9px 18px; border-bottom: 0.5px solid rgba(255,255,255,0.06); font-family: var(--font-mono); font-size: 13.5px; flex-shrink: 0; }
.aui-set > span:first-child { flex: 1; font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: -0.015em; }
.aui-set > span { width: 46px; text-align: center; }
.aui-set--done { color: rgba(255,255,255,0.42); }
.aui-set--active { background: rgba(255,255,255,0.06); }
.aui-set--active > span:first-child { color: #fff; }
.aui-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px 16px; flex-shrink: 0; margin-top: auto; }
.aui-key { height: 38px; border-radius: 9px; background: #1c1c1f; display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px; font-weight: 500; }
.aui-key--go { background: #fff; color: #000; font-family: var(--font-sans); font-size: 13px; font-weight: 700; }

/* Progress screen */
.aui-chart { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; }
.aui-bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding-bottom: 10px; }
.aui-bar { flex: 1; background: rgba(255,255,255,0.16); border-radius: 4px 4px 0 0; position: relative; }
.aui-bar--hi { background: #fff; }
.aui-bar-axis { display: flex; gap: 8px; }
.aui-bar-axis span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.35); }
.aui-metric-row { display: flex; gap: 8px; padding: 0 18px 14px; flex-shrink: 0; }
.aui-metric { flex: 1; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); border-radius: 11px; padding: 11px 12px; }
.aui-metric-v { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: -0.04em; }
.aui-metric-l { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.38); margin-top: 2px; }

/* Tab bar */
.aui-tabs { display: flex; justify-content: space-around; padding: 9px 0 16px; background: rgba(20,20,22,0.92); border-top: 0.5px solid rgba(255,255,255,0.1); backdrop-filter: blur(20px); flex-shrink: 0; position: relative; z-index: 4; }
.aui-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.aui-tab span { font-size: 8.5px; color: rgba(255,255,255,0.34); letter-spacing: 0.01em; }
.aui-tab--on span { color: #fff; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-pill { width: 100%; max-width: 460px; padding-left: 16px; position: relative; }
  .nav-brand { margin-right: auto; }
  .nav-cta { margin-right: 2px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
  }
  .nav-links.open .nav-link { padding: 12px 14px; font-size: 15px; }
  .site-header { padding: 0 16px; }

  .steps, .card-grid, .price-grid, .quote-grid { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 44px; }
  .feature-split .h2, .feature-split .lede { text-align: left; }
  .section { padding: 84px 0; }
  .hero { padding-top: 128px; }
  .hero-device { margin-top: 52px; }
  .price-card--pro { order: -1; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .rail { padding-left: 18px; padding-right: 18px; gap: 20px; }
  .app-icon { width: 74px; height: 74px; border-radius: 18px; }
  .btn { width: 100%; }
  .app-badge { height: 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions > a:has(.app-badge) { display: flex; justify-content: center; }
  .device { width: 270px; height: 560px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
}

/* ═══════════════════════════════════════════════════════════════
   GUIDES — long-form article pages, light design
   Content must render without JS: no .reveal classes on article text.
   ═══════════════════════════════════════════════════════════════ */
.guide { padding: 132px 0 96px; background: var(--bg); }
.guide-article { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.guide-breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 28px; }
.guide-breadcrumb a { color: var(--fg-secondary); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--fg); }
.guide-breadcrumb span[aria-hidden] { margin: 0 8px; }

.guide-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.guide-title { font-size: clamp(36px, 5.4vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; color: var(--fg); margin: 0 0 20px; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: var(--fg-secondary); padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }

.guide-body { font-size: 18px; line-height: 1.7; color: #26262b; letter-spacing: -0.005em; }
.guide-body > p, .guide-body > ul, .guide-faq p { margin: 0 0 20px; }
.guide-body strong { color: var(--fg); font-weight: 600; }
.guide-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109,74,255,0.35); }
.guide-body a:hover { text-decoration-color: var(--accent-ink); }

.guide-body h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--fg); margin: 56px 0 18px; padding-top: 32px; border-top: 1px solid var(--border); }
.guide-body h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--fg); margin: 36px 0 12px; }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body ol li::marker { color: var(--accent-ink); font-family: var(--font-mono); font-size: 14px; }
.guide-body li { margin-bottom: 8px; }
.guide-body li::marker { color: var(--fg-muted); }

.guide-note { margin: 28px 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--bg-secondary); border: 1px solid var(--border); font-size: 15.5px; color: var(--fg-secondary); }
.guide-note p { margin: 0; }
.guide-note strong { color: var(--fg); }

/* "How trainerX does this bit" — tinted panel, accent left border */
.guide-app { margin: 30px 0 38px; padding: 22px 24px 22px 26px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid rgba(109,74,255,0.16); border-left: 3px solid var(--accent); font-size: 16px; line-height: 1.65; color: #2b2540; }
.guide-app p { margin: 0 0 14px; }
.guide-app p:last-child { margin-bottom: 0; }
.guide-app-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px !important; }
.guide-app-cta { display: inline-block; font-weight: 600; text-decoration: none !important; padding: 11px 18px; border-radius: var(--r-full); background: var(--fg); color: #fff !important; font-size: 15px; box-shadow: var(--shadow-md); transition: background 0.18s var(--ease), transform 0.18s var(--ease); }
.guide-app-cta:hover { background: #262629; }
.guide-app-cta:active { transform: scale(0.975); }
.guide-app-alt { font-size: 14.5px; color: var(--fg-secondary); margin-top: 14px !important; }

/* Session table */
.guide-table-wrap { overflow-x: auto; margin: 22px 0 26px; -webkit-overflow-scrolling: touch; }
.guide-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.guide-table th, .guide-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.guide-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); background: var(--bg-secondary); }
.guide-table tbody th { font-family: var(--font-mono); font-weight: 600; color: var(--accent-ink); width: 56px; }
.guide-table td:nth-child(3), .guide-table td:nth-child(4) { font-family: var(--font-mono); width: 64px; }
.guide-table td:nth-child(5) { font-family: var(--font-mono); width: 80px; white-space: nowrap; }
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }
/* Text tables (price guides): row headers are prose, not codes, and no column is a fixed-width numeric cell */
.guide-table--text tbody th { font-family: var(--font-sans); font-weight: 500; color: var(--fg); width: auto; }
.guide-table--text td:nth-child(3), .guide-table--text td:nth-child(4) { font-family: var(--font-sans); width: auto; }
.guide-table--text td:last-child { white-space: nowrap; font-family: var(--font-mono); font-size: 14.5px; color: var(--fg); }
.guide-sources, .guide-table-note { font-size: 14px; color: var(--fg-muted); margin-top: -10px !important; }
.guide-sources a { color: var(--fg-secondary); }
.guide-table-note { margin-top: -12px !important; margin-bottom: 26px !important; }

.guide-figure { margin: 26px 0 30px; text-align: center; }
.guide-figure img { max-width: 320px; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }
.guide-figure figcaption { font-size: 14px; color: var(--fg-secondary); margin-top: 12px; }

/* Final CTA */
.guide-final-cta { margin: 36px 0 12px; padding: 34px 28px; border-radius: var(--r-lg); background: var(--bg-secondary); border: 1px solid var(--border); text-align: center; }
.guide-final-cta .btn-primary { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border-radius: var(--r-full); background: var(--fg); color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none; box-shadow: var(--shadow-md); }
.guide-final-cta .btn-primary:hover { background: #262629; }
.guide-final-note { font-size: 14px; color: var(--fg-secondary); margin: 14px 0 0; }
.guide-final-alt { font-size: 15px; color: var(--fg-secondary); margin: 18px 0 0; }

/* FAQ — plain visible text; never an accordion */
.guide-faq { margin-top: 24px; }
.guide-faq h3 { margin-top: 28px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .guide { padding-top: 108px; }
  /* Five-column session table: let it keep its natural width and swipe inside
     .guide-table-wrap, rather than crushing the Exercise column into five lines. */
  .guide-table:not(.guide-table--text) { min-width: 540px; }
  .guide-article { padding: 0 18px; }
  .guide-body { font-size: 16.5px; }
  .guide-app { padding: 18px 18px 18px 20px; }
  .guide-byline { flex-direction: column; gap: 4px; }
  .guide-byline span[aria-hidden] { display: none; }
}
