/* ============================================================
   XTCoach HQ — Marketing Site
   Design language: "Golden hour, one green."
   Photography-led split-canvas: warm ink sections alternate with
   warm paper sections. Big carved headlines, pill buttons, flat
   color elevation (no drop-shadow cards), one lime accent.
   Inspired by performance-lab sites (WHOOP et al.) — adapted, not copied.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.2.2/dist/fonts/geist-mono/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.2.2/dist/fonts/geist-mono/GeistMono-Bold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — lime-moss green (the one accent) */
  --brand-100: #dce8d1;
  --brand-300: #b8d0a1;
  --brand-400: #9bc166;
  --brand-500: #7eb52c;
  --brand-600: #6fa024;
  --brand-700: #558a1d;
  --brand-800: #3d6816;
  --brand-900: #2a470d;

  /* Bright lime for dark surfaces (Trackside) */
  --lime: #a6f75b;

  /* Warm ink — dark surfaces (green-cast, not pure black) */
  --ink: #0e100a;
  --ink-2: #171a12;
  --ink-soft: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.4);

  /* Warm paper — light surfaces */
  --paper: #faf9f6;
  --mist: #f0efe8;
  --hairline: #e3e1d6;
  --text: #24281c;
  --text-soft: #5c6152;
  --text-faint: #9a9e8e;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape — cards are soft, buttons are pills */
  --r-pill: 999px;
  --r-card: 22px;
  --r-photo: 28px;

  --max-w: 1200px;
  --max-w-text: 680px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-700); }

::selection { background: var(--brand-100); }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Shared primitives ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 18px;
}

.section {
  padding: 104px 0;
}

.section-title {
  font-weight: 900;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 22ch;
}

.section-title .muted { color: var(--text-faint); }

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: var(--max-w-text);
}

.lede strong { color: var(--text); }

.mono { font-family: var(--font-mono); }

/* Buttons — pills, always */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-lg { height: 56px; padding: 0 34px; font-size: 16px; }

.btn-primary {
  background: var(--lime);
  color: #131807;
}

.btn-primary:hover {
  background: #b8ff75;
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.65); }

/* ---------- Nav ---------- */
/* Transparent over the hero; picks up the glass treatment on scroll */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(14, 16, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.nav-brand img { height: 30px; width: auto; }

.nav-brand span {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: #fff; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { height: 60px; }
  .nav-brand img { height: 26px; }
  .nav-brand span { font-size: 15px; white-space: nowrap; }
  .nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }
}

/* ---------- Hero — full-bleed photographic theater ---------- */
.hero {
  position: relative;
  background-color: var(--ink);
  background-image: url("../assets/patterns/topo-fine-dark.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  /* Always fill the first screen edge to edge; the page's natural
     bottom edge only appears once you scroll */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

/* Full-screen photo layer. People live in the right of the frame;
   gradients keep the left clear for type. */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-bg-img.is-active { opacity: 1; }

/* Ultra-wide video frames: full-bleed, action composed into the right
   half of the frame so the type column stays clear */
/* Both frames get the same treatment: full-bleed cover, one shared
   overlay. Composition differences are handled by crop position only. */
.hero-bg-img.frame-video {
  left: 0;
  width: 100%;
  object-position: 30% center;
}

/* XC race frame: 16:9 source needs little cropping — show the scene */
.hero-bg-img.frame-xc {
  object-position: 60% 45%;
}

/* The blend: ink on the left where the type lives, clear on the right */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(14, 16, 10, 0.78) 0%,
      rgba(14, 16, 10, 0.58) 32%,
      rgba(14, 16, 10, 0.3) 50%,
      rgba(14, 16, 10, 0.05) 70%,
      rgba(14, 16, 10, 0.25) 100%),
    linear-gradient(0deg,
      rgba(14, 16, 10, 0.9) 0%,
      rgba(14, 16, 10, 0.25) 22%,
      rgba(14, 16, 10, 0) 40%),
    linear-gradient(180deg,
      rgba(14, 16, 10, 0.75) 0%,
      rgba(14, 16, 10, 0) 22%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.hero-copy { max-width: 620px; }

.hero h1 {
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.99;
  letter-spacing: -0.042em;
  margin-bottom: 26px;
}

.hero h1 .accent { color: var(--lime); }

/* Keep "Not spreadsheets." together on one line on desktop */
@media (min-width: 881px) {
  .hero h1 .accent { white-space: nowrap; }
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin-bottom: 38px;
}

.hero-sub strong { color: #fff; font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 880px) {
  .hero { padding: 120px 0 72px; min-height: 88svh; }
  /* Portrait crop of the ultra-wide frames: center on the action and
     let the scrim carry readability; no extra zoom needed */
  .hero-bg-img.frame-huddle { object-position: 45% center; }
  .hero-bg-img.frame-xc {
    transform: none;
    object-position: 62% 55%;
  }
  .hero-bg::after {
    background:
      linear-gradient(90deg,
        rgba(14, 16, 10, 0.92) 0%,
        rgba(14, 16, 10, 0.72) 45%,
        rgba(14, 16, 10, 0.45) 100%),
      linear-gradient(0deg,
        rgba(14, 16, 10, 0.92) 0%,
        rgba(14, 16, 10, 0.3) 30%,
        rgba(14, 16, 10, 0) 50%);
  }
}

/* ---------- The platform intro ---------- */
.hq-intro {
  padding-bottom: 80px;
  background-image: url("../assets/patterns/topo-fine.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
}

.big-shot {
  margin-top: 56px;
  background: var(--mist);
  border-radius: var(--r-photo);
  padding: clamp(12px, 2vw, 24px);
}

.big-shot img {
  width: 100%;
  border-radius: 14px;
}

/* ---------- Problem section — the logistics pile up ----------
   Each card is sticky, so as you scroll they slide up and stack on
   top of one another: one more job piling onto the coach's plate.
   The topo pattern continues down from the section above, keeping the
   background quiet so the cards carry the section. */
.pileup {
  background-image: url("../assets/patterns/topo-fine.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
}

.problem-cards {
  margin-top: 64px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.problem-card {
  position: sticky;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--r-card);
  padding: clamp(40px, 5vw, 60px) clamp(28px, 5vw, 64px);
  min-height: 350px;
  margin-bottom: 48px;
  box-shadow:
    0 -18px 40px -30px rgba(16, 24, 40, 0.35),
    0 28px 60px -28px rgba(16, 24, 40, 0.35);
}

/* The bib paper itself lives on a masked layer, so the corner pin
   holes are genuinely see-through (the card's shadow stays intact
   because it's painted by the unmasked element) */
.problem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: var(--paper);
  border: 1px solid var(--hairline);
  -webkit-mask:
    radial-gradient(circle 5.5px at 26px 26px, transparent 98%, #000 100%),
    radial-gradient(circle 5.5px at calc(100% - 26px) 26px, transparent 98%, #000 100%),
    radial-gradient(circle 5.5px at 26px calc(100% - 26px), transparent 98%, #000 100%),
    radial-gradient(circle 5.5px at calc(100% - 26px) calc(100% - 26px), transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 5.5px at 26px 26px, transparent 98%, #000 100%),
    radial-gradient(circle 5.5px at calc(100% - 26px) 26px, transparent 98%, #000 100%),
    radial-gradient(circle 5.5px at 26px calc(100% - 26px), transparent 98%, #000 100%),
    radial-gradient(circle 5.5px at calc(100% - 26px) calc(100% - 26px), transparent 98%, #000 100%);
  mask-composite: intersect;
}

/* A soft punched-edge ring makes each hole read against the topo */
.problem-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  pointer-events: none;
  background:
    radial-gradient(circle at 26px 26px, transparent 5px, rgba(16, 24, 40, 0.22) 5.5px, rgba(16, 24, 40, 0.1) 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 26px) 26px, transparent 5px, rgba(16, 24, 40, 0.22) 5.5px, rgba(16, 24, 40, 0.1) 7px, transparent 8px),
    radial-gradient(circle at 26px calc(100% - 26px), transparent 5px, rgba(16, 24, 40, 0.22) 5.5px, rgba(16, 24, 40, 0.1) 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 26px) calc(100% - 26px), transparent 5px, rgba(16, 24, 40, 0.22) 5.5px, rgba(16, 24, 40, 0.1) 7px, transparent 8px);
}

.problem-card > * { position: relative; }

/* Stack in the middle of the viewport: the first card locks in
   center-screen, each next one lands ~40px lower, so a strip of every
   bib above stays visible — pin holes showing, quotes covered */
.problem-card:nth-child(1) { top: calc(50vh - 255px); transform: rotate(-0.5deg); }
.problem-card:nth-child(2) { top: calc(50vh - 215px); transform: rotate(0.6deg); min-height: 378px; }
.problem-card:nth-child(3) { top: calc(50vh - 175px); transform: rotate(-0.4deg); min-height: 360px; }
.problem-card:nth-child(4) { top: calc(50vh - 135px); transform: rotate(0.5deg); min-height: 396px; }

.problem-card blockquote {
  position: relative;
  padding-left: clamp(52px, 6vw, 84px);
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 28px;
  max-width: none;
}

/* The serif quote mark hangs left of the text, top-aligned with the
   cap height of the first line */
.problem-card blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.18em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1em;
  line-height: 1;
  font-weight: 700;
  color: var(--brand-500);
}

/* ...and it closes properly */
.problem-card blockquote::after {
  content: "\2009\201D";
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--brand-500);
}

/* The explanation sits right under the quote, sharing its left edge */
.problem-card p {
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 52ch;
  margin-left: clamp(52px, 6vw, 84px);
}

/* ---------- Product tour — a day-by-day timeline ---------- */
.timeline {
  position: relative;
}

/* Same scale as every other section title; just allowed to run wide */
.tour-title {
  max-width: none;
}

.tl-rail {
  position: absolute;
  left: 50%;
  /* Start exactly at the first station dot — no stub above it.
     The negative bottom runs the rail past the last image so the
     tracker dot comes to rest halfway between it and the next
     section (block padding + half the remaining whitespace). */
  top: 84px;
  bottom: -16px;
  width: 2px;
  transform: translateX(-50%);
  /* Dashed track, like a course marked out on a map */
  background: repeating-linear-gradient(
    180deg,
    var(--hairline) 0 7px,
    transparent 7px 16px
  );
}

/* The lime fill tracks your scroll down the day */
.tl-fill {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--brand-500);
  border-radius: var(--r-pill);
}

/* The tracker dot riding the end of the fill */
.tl-fill::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 6px rgba(126, 181, 44, 0.2);
}

/* A station dot at the top of every stop in the day */
.timeline .tour-block {
  position: relative;
}

.timeline .tour-block::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 78px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--hairline);
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline .tour-block.lit::before {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

/* On mobile the rail runs straight down the center of the screen.
   It passes behind the media cards, and the copy blocks carry a
   near-opaque paper backdrop so the line fades to a ghost behind
   text, then re-emerges in the gaps between sections. */
@media (max-width: 880px) {
  /* Station dots sit at the block's top edge — the exact midpoint
     of the gap between the previous image and this block's copy —
     so they stay clear of the copy backdrop's fade. The line, not
     the dot, is what passes behind the type. */
  .tl-rail { top: 0; bottom: -28px; z-index: 0; }
  .timeline .tour-block::before { top: -6px; }
  .tour-copy {
    position: relative;
    z-index: 1;
    background: rgba(250, 249, 246, 0.94);
    /* Feather the top and bottom edges so the line fades out and
       back in instead of stopping hard at the text block */
    box-shadow:
      0 -20px 14px -6px rgba(250, 249, 246, 0.94),
      0 20px 14px -6px rgba(250, 249, 246, 0.94);
  }
  .tour-media { position: relative; z-index: 1; }
}

.tour-block {
  display: grid;
  /* Equal columns keep the timeline rail centered in the gutter,
     never over the type or the image */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  padding: 72px 0;
}

.tour-block:first-of-type { padding-top: 64px; }

.tour-block.flip .tour-copy { order: 2; }
.tour-block.flip .tour-media { order: 1; }

@media (max-width: 880px) {
  .tour-block,
  .tour-block.flip {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
  .tour-block.flip .tour-copy { order: 1; }
  .tour-block.flip .tour-media { order: 2; }
}

.tour-copy .eyebrow {
  margin-bottom: 12px;
  font-size: 11.5px;
}

.tour-copy h3 {
  font-weight: 900;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.tour-copy > p {
  font-size: 16.5px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.tour-list { list-style: none; }

.tour-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  color: var(--text-soft);
  margin-bottom: 11px;
  line-height: 1.55;
}

.tour-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--brand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23558a1d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.tour-list li strong { color: var(--text); }

/* Flat mist frame for tour screenshots — elevation by color, not shadow */
.app-frame {
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 14px;
}

.app-frame img {
  width: 100%;
  border-radius: 11px;
}

/* ---------- Athlete app (Trackside) — warm ink band ----------
   The photo is the entire right half of the section, full bleed to
   the top, bottom, and right edges; copy owns the left half. */
.athlete {
  position: relative;
  background-color: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 120px 0;
}

.athlete .eyebrow { color: var(--lime); }

.athlete-grid { display: block; }

.athlete-grid > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 41%;
}

@media (max-width: 880px) {
  .athlete-grid > div:first-child { max-width: none; }
}

.athlete .section-title { color: #fff; }
.athlete .section-title .muted { color: var(--ink-faint); }
.athlete .lede { color: var(--ink-soft); }
.athlete .lede strong { color: #fff; }

.beta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(166, 247, 91, 0.1);
  border: 1px solid rgba(166, 247, 91, 0.3);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.athlete-points { list-style: none; margin-top: 28px; }

.athlete-points li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.athlete-points li strong { color: #fff; font-weight: 600; }

.athlete-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(166, 247, 91, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6f75b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Apple's official App Store badge under the bullets */
.ios-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.ios-note img { display: block; }

.coming-soon {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(166, 247, 91, 0.35);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  white-space: nowrap;
}

/* Kids on the move fill the right half; the phone straddles the seam */
.athlete-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
}

/* The crop lives on its own layer so the phone can hang outside it */
.photo-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.athlete-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  border-radius: 0;
  /* Tight crop on the pair with the phone — no sliced-off neighbors */
  transform: scale(1.22);
  transform-origin: 52% 42%;
}

/* Floating contextual stats over the photo — quiet glass chips with
   an uppercase label and a bold value */
.stat-float {
  position: absolute;
  background: rgba(14, 16, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 20px 13px;
  z-index: 1;
}

.sf-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
}

.sf-value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.sf-check {
  color: var(--lime);
  margin-right: 7px;
  font-weight: 900;
}

/* Goal chips stack on the boy; the reflection floats above the girl;
   the big goal sits just below the phone in their hands */
.sf-1 { top: 13%; right: 5%; }
.sf-2 { top: 38%; right: 7%; }
.sf-3 { top: 11%; left: 17%; }
.sf-4 { top: 68%; right: 12%; }

/* Chip choreography: chip slides in, label types on (JS), then the
   value fades up and the check pops */
.stat-float {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-float.sf-in {
  opacity: 1;
  transform: none;
}

.stat-float .sf-value {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.stat-float.sf-value-in .sf-value { opacity: 1; }

.stat-float .sf-check {
  display: inline-block;
  transform: scale(0);
}

.stat-float.sf-value-in .sf-check {
  animation: check-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.2s forwards;
}

@keyframes check-pop {
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .stat-float,
  .stat-float .sf-value { opacity: 1; transform: none; }
  .stat-float .sf-check { transform: scale(1); }
}

.athlete-visual .phone {
  position: absolute;
  left: -72px;
  bottom: 72px;
  width: min(238px, 44%);
  transform: rotate(-3deg);
  z-index: 1;
}

@media (max-width: 880px) {
  .athlete-visual {
    position: relative;
    width: auto;
    margin-top: 48px;
  }
  .photo-crop {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-photo);
  }
  .athlete-photo { height: 100%; }
  .athlete-visual .phone {
    position: static;
    width: min(230px, 68%);
    margin: -150px auto 0;
    transform: rotate(-2deg);
  }

  /* Mobile keeps two compact chips pinned to the photo's top
     corners; the other two hide so nothing covers faces, bleeds
     off-screen, or collides with the phone. */
  .stat-float { padding: 9px 13px 10px; border-radius: 13px; }
  .sf-label { font-size: 8.5px; letter-spacing: 0.1em; margin-bottom: 2px; }
  .sf-value { font-size: 14px; }
  .sf-1,
  .sf-4 { display: none; }
  .sf-3 { top: 12px; left: 12px; right: auto; }
  .sf-2 { top: 12px; right: 12px; left: auto; }
}

/* iPhone frame: titanium band, thin bezel, Dynamic Island, home indicator */
.phone {
  background: linear-gradient(160deg, #4c4f55 0%, #26282c 30%, #3a3d43 70%, #1d1f22 100%);
  border-radius: 55px;
  padding: 4px;
  box-shadow:
    inset 0 0 2px rgba(255, 255, 255, 0.55),
    0 50px 100px -30px rgba(0, 0, 0, 0.85);
}

.phone-screen {
  background: #101208;
  border: 6px solid #000;
  border-radius: 51px;
  overflow: hidden;
  padding: 12px 18px 10px;
  /* Real iPhone proportions — tall, not squatty */
  aspect-ratio: 9 / 19.2;
  display: flex;
  flex-direction: column;
}

.phone-screen .phone-card { flex: none; }

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  margin-bottom: 12px;
}

.ps-time {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  flex: 1;
}

.dynamic-island {
  width: 68px;
  height: 22px;
  background: #000;
  border-radius: var(--r-pill);
  flex: none;
}

.ps-icons {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.phone-home {
  width: 110px;
  height: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.35);
  margin: auto auto 2px;
  flex: none;
}

.phone-greeting {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 3px;
}

.phone-date {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.phone-card {
  background: #1a1d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 10px;
}

.phone-card .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.phone-card .workout {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #fff;
}

.phone-card .meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 3px;
}

.phone-card .pace-chip {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

.phone-reflect .q {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 10px;
}

.phone-reflect .faces {
  display: flex;
  gap: 6px;
}

.phone-reflect .face {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 3px;
}

.phone-reflect .face.selected {
  background: rgba(166, 247, 91, 0.12);
  border-color: var(--lime);
  color: var(--lime);
}

.phone-reflect .face span {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.phone-seen {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--lime);
  margin-top: 10px;
}

.phone-seen::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: rgba(166, 247, 91, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6f75b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Positioning / the gap ---------- */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 60px;
}

.gap-card {
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 32px;
}

.gap-card.hq {
  background: var(--ink);
  color: #fff;
}

.gap-card .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.gap-card.hq .kicker { color: var(--lime); }

.gap-card h3 {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.gap-card.hq h3 { color: #fff; }

.gap-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

.gap-card.hq p { color: var(--ink-soft); }

.gap-quote {
  margin-top: 56px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  max-width: 720px;
}

/* ---------- Founder — full-bleed photo band ---------- */
.founder {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(14, 16, 10, 0.78), rgba(14, 16, 10, 0.92)), url("../assets/photos/hayward-field.jpg");
  background-size: cover;
  background-position: center 35%;
  color: #fff;
  padding: 130px 0;
}

.founder .section-title { color: #fff; }
.founder .lede { color: rgba(255, 255, 255, 0.75); }
.founder .lede strong { color: #fff; }

.founder-sig {
  margin-top: 34px;
  font-size: 15px;
  color: var(--ink-soft);
}

.founder-sig strong { color: #fff; display: block; font-size: 16px; }

.founder-tagline {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- Signup ---------- */
.signup { text-align: center; }

.signup .section-title,
.signup .lede { margin-left: auto; margin-right: auto; }

.signup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin: 60px auto;
  max-width: 920px;
  text-align: left;
}

.signup-step {
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 28px;
}

.signup-step .n {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.05em;
  color: var(--brand-600);
  display: block;
  margin-bottom: 12px;
}

.signup-step h3 {
  font-weight: 800;
  font-size: 16.5px;
  color: var(--text);
  margin-bottom: 6px;
}

.signup-step p { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }

.signup-form-slot {
  max-width: 640px;
  margin: 0 auto;
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 36px 32px;
  text-align: left;
}

.signup-form-slot iframe { display: block; }

.signup-fineprint {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--ink-faint);
  padding: 64px 0 44px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }

.footer-tag { font-size: 13.5px; }

.footer-links { display: flex; gap: 24px; font-size: 13.5px; }
.footer-links a { color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-legal {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 24px 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
