/* GridReady web.
   Thesis: a race start, on paper. White paper, black ink, one racing red that only ever means a signal.
   Layout: a 1360px column with a fluid gutter; every section stacks to one column under 960px. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0a0a0d;
  --red: #e00500;
  --mute: #6e6e73;            /* 4.9:1 on white */
  --mute-dark: #a1a1a8;       /* 8:1 on ink */
  --rule: rgba(10, 10, 13, 0.1);
  --rule-dark: rgba(255, 255, 255, 0.16);
  /* Archivo's width axis stands in for SF Pro Expanded / Condensed on every platform. */
  --display: "Archivo", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.caps { font: 700 12px/1.3 var(--display); font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.mute { color: var(--mute); }
.red { color: var(--red); }
.display, .h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-wrap: balance; }
.display { font-size: clamp(50px, min(10.4vw, 16.5svh), 172px); line-height: 0.86; letter-spacing: -0.045em; }
.h2 { font-size: clamp(40px, 6.2vw, 92px); line-height: 0.9; letter-spacing: -0.035em; }
.lede { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--mute); max-width: 30em; text-wrap: pretty; }
.num { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Split headings: words ride up out of a clip. Without JS the plain text is all there is. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.top.scrolled { border-bottom-color: var(--rule); }
.top-in { display: flex; align-items: center; gap: 32px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand span { font: 900 16px/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; white-space: nowrap; }
.brand b { color: var(--red); font-weight: inherit; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; font: 600 14px/1 var(--text); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px/1 var(--display); font-stretch: 112%; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease, transform 0.16s var(--ease-out); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pill:active, .store:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
  .pill:hover, .store:hover { background: #24242a; }
  .store.light:hover { background: #e8e8eb; }
  .more:hover svg { transform: translateY(3px); }
}

/* ---------- Buttons ---------- */
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 26px 0 22px; border-radius: 14px; background: var(--ink); color: #fff; text-align: left; text-decoration: none; transition: background-color 0.2s ease, transform 0.16s var(--ease-out); }
.store svg { width: 22px; height: 27px; flex: none; }
.store small { display: block; font: 500 11px/1.1 var(--text); letter-spacing: 0.02em; opacity: 0.8; }
.store strong { display: block; font: 800 19px/1.1 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.store.light { background: #fff; color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }

/* ---------- Hero: the App Store poster, live ---------- */
.hero { overflow: hidden; padding-top: clamp(28px, 6svh, 72px); }
.hero-in { display: grid; justify-items: center; text-align: center; }
.hero-car { width: clamp(200px, 24vw, 360px); height: auto; }
.eyebrow { margin: clamp(18px, 3svh, 28px) 0 0; color: var(--mute); text-wrap: balance; }
.hero .display { margin-top: clamp(14px, 2.4svh, 22px); line-height: 0.94; }
.hero .go { color: var(--red); }
.hero .lede { margin-top: clamp(18px, 3svh, 26px); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; margin-top: clamp(24px, 4svh, 36px); }
.laurels { display: flex; align-items: center; gap: 6px; margin: 0; }
.laurels svg { width: 33px; height: 61px; color: var(--ink); }
.laurels .flip { transform: scaleX(-1); }
.laurels span { display: grid; justify-items: center; gap: 3px; }
.laurels small, .laurels em { font: 700 10px/1.2 var(--display); font-stretch: 125%; font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; }
.laurels strong { font: 900 25px/1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; text-transform: uppercase; }
.laurels em { color: var(--red); }
/* The phone rises out of the band below; the hero's bottom edge crops it. */
.hero-phone { width: min(380px, 80vw); height: clamp(200px, 33svh, 400px); margin-top: clamp(36px, 6svh, 64px); overflow: hidden; }
.hero-phone .phone { box-shadow: none; }
.hero-phone img { width: 100%; height: auto; border-radius: 44px; }

/* ---------- Today's grid, live ---------- */
.band { background: var(--ink); color: #fff; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; min-height: 64px; padding-block: 14px; }
.band p { margin: 0; display: flex; align-items: center; gap: 10px; }
.band-mid { color: var(--mute-dark); }
.band .num { min-width: 6.2ch; font-size: 22px; font-stretch: 75%; letter-spacing: 0.02em; }

/* ---------- The ladder: lights out (scroll-scrubbed with JS; a static 200 ms frame without) ---------- */
.ladder { min-height: calc(100svh - var(--header)); display: grid; align-content: center; padding-block: clamp(64px, 9svh, 112px); background: var(--ink); color: #fff; border-top: 1px solid var(--rule-dark); }
.ladder .lede { color: var(--mute-dark); }
.ladder .h2 { font-size: clamp(40px, 5vw, 76px); }
.ladder-in { width: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "top read" "track track"; gap: clamp(36px, 7svh, 72px) clamp(32px, 5vw, 80px); align-items: end; }
.ladder-top { grid-area: top; display: grid; gap: 22px; align-self: start; }
.ladder-read { grid-area: read; justify-self: end; text-align: right; }
.ladder-ms { margin: 0; font-size: clamp(140px, min(25vw, 38svh), 380px); line-height: 0.8; letter-spacing: -0.04em; font-stretch: 66%; }
.ladder-ms small { margin-left: 0.1em; font: 800 0.13em/1 var(--display); font-stretch: 125%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute-dark); }
.ladder-rank { margin: 18px 0 0; font: 900 clamp(20px, 2.4vw, 32px)/1 var(--display); font-stretch: 125%; letter-spacing: 0.02em; text-transform: uppercase; }
.ladder.is-pro .ladder-ms span, .ladder.is-pro .ladder-rank { color: var(--red); }
.track { grid-area: track; position: relative; height: 72px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--rule-dark); }
.fill { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: #fff; transform: scaleX(0.826); transform-origin: left; }
.tick { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; }
.tick::before { content: ""; width: 2px; height: 12px; background: rgba(255, 255, 255, 0.5); }
.tick:first-of-type { transform: none; justify-items: start; }
.tick:nth-of-type(5) { transform: translateX(-100%); justify-items: end; }
.tick .caps { white-space: nowrap; color: var(--mute-dark); text-align: inherit; }
.tick .caps b { display: block; margin-bottom: 4px; color: #fff; font-weight: inherit; }
.tick:first-of-type .caps { text-align: left; }
.tick:nth-of-type(5) .caps { text-align: right; }
.tick.pro::before { background: var(--red); }
.tick.pro .caps, .tick.pro .caps b { color: var(--red); }
.marker { position: absolute; left: 0; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(224, 5, 0, 0.25), 0 0 24px rgba(224, 5, 0, 0.6); }

/* ---------- Story: three chapters, one phone that keeps up ---------- */
.story { padding-top: clamp(40px, 6vw, 80px); }
.story-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); }
.chapter { min-height: calc(100svh - var(--header)); display: grid; align-content: center; gap: 24px; padding-block: 56px; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; max-width: 34em; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.facts li::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; border-radius: 50%; background: var(--red); }
.stage { position: sticky; top: var(--header); height: calc(100svh - var(--header)); display: grid; justify-items: center; align-content: center; gap: 22px; }
.phone { margin: 0; padding: 10px; background: var(--ink); border-radius: 54px; box-shadow: 0 50px 90px -40px rgba(10, 10, 13, 0.45); }
.stage .phone { width: min(340px, calc((100svh - var(--header) - 140px) * 0.46)); border-radius: 50px; }
.screens { position: relative; aspect-ratio: 660 / 1434; overflow: hidden; border-radius: 41px; background: #f2f2f4; }
/* Later screens wipe up over earlier ones going down, and back down going up. */
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 0.8s var(--ease-in-out); }
.screens img.shown { clip-path: inset(0); }
.stage-cap { margin: 0; color: var(--mute); }
.stage-cap b { color: var(--ink); font-weight: inherit; }
.phone.inline { display: none; justify-self: center; width: min(320px, 78vw); margin-top: 16px; }
.phone.inline img { width: 100%; height: auto; border-radius: 44px; }

/* ---------- Drills: a timing tower ---------- */
.drills { padding-block: clamp(96px, 12vw, 180px); }
.sec-head { display: grid; gap: 22px; max-width: 900px; }
.tower { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.tower li { display: grid; grid-template-columns: clamp(52px, 7vw, 110px) minmax(0, 1.15fr) minmax(0, 0.85fr) 96px; gap: 20px; align-items: center; padding-block: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid var(--rule); }
.tower .pos { font-size: clamp(28px, 3vw, 44px); line-height: 1; color: var(--mute); transition: color 0.2s ease; }
.tower h3 { margin: 0; font: 900 clamp(30px, 4.6vw, 68px)/0.95 var(--display); font-stretch: 125%; letter-spacing: -0.03em; text-transform: uppercase; transition: transform 0.35s var(--ease-out); }
.tower p { margin: 0; max-width: 32ch; font-size: 16px; color: var(--mute); }
.tower .lvl { justify-self: end; color: var(--mute); }
@media (hover: hover) and (pointer: fine) {
  .tower li:hover .pos { color: var(--red); }
  .tower li:hover h3 { transform: translateX(10px); }
}

/* ---------- Built for timing ---------- */
.specs { padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--rule); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--rule); }
.figures div { padding: 32px 32px 0; border-left: 1px solid var(--rule); }
.figures div:first-child { padding-left: 0; border-left: 0; }
.figures dt { font-size: clamp(80px, 9.5vw, 148px); line-height: 0.85; }
.figures dt small { margin-left: 0.08em; font: 800 0.18em/1 var(--display); font-stretch: 125%; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.figures dd { margin: 18px 0 0; max-width: 26ch; color: var(--mute); }

/* ---------- Final start ---------- */
.cta { padding-block: clamp(110px, 15vw, 210px); background: var(--ink); color: #fff; text-align: center; }
.cta-in { display: grid; justify-items: center; gap: clamp(28px, 4vw, 44px); }
.cta-car { width: clamp(180px, 20vw, 288px); height: auto; }
.cta .display { font-size: clamp(50px, 10vw, 160px); }
.cta .go { color: var(--red); }
.cta-sub { margin: 0; color: var(--mute-dark); }

/* ---------- Footer ---------- */
.foot { padding-top: clamp(48px, 6vw, 80px); overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot-mark { margin: clamp(36px, 5vw, 64px) 0 -0.12em; font: 900 12.6vw/0.8 var(--display); font-stretch: 125%; letter-spacing: -0.05em; text-align: center; white-space: nowrap; user-select: none; }
.foot-mark b { color: var(--red); font-weight: inherit; }

/* ---------- Document pages ---------- */
.doc { max-width: 760px; margin-inline: auto; padding: clamp(40px, 8vw, 96px) var(--gutter) 120px; }
.doc .display { font-size: clamp(44px, 7vw, 92px); margin-top: 18px; }
.doc .lede { margin-top: 24px; }
.doc h2 { margin: 56px 0 0; font: 900 24px/1.15 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.doc p, .doc li { color: #2b2b2e; }
.doc ul { padding-left: 1.2em; }
.doc details { border-top: 1px solid var(--rule); padding-block: 20px; }
.doc details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--red); font-weight: 700; transition: transform 0.2s var(--ease-out); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin: 12px 0 0; }
.contact { margin-top: 56px; padding: 28px; border-radius: 18px; background: var(--ink); color: #fff; }
.contact p { color: #fff; }
.contact .caps { color: var(--mute-dark); }
.contact a { font-weight: 700; color: #fff; }
.contact a:hover { color: var(--red); }


/* ---------- Without JS: one column, every screen inline ---------- */
.no-js .stage { display: none; }
.no-js .story-in { grid-template-columns: minmax(0, 1fr); }
.no-js .chapter { min-height: 0; }
.no-js .phone.inline { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .ladder-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "read" "track"; }
  .ladder-read { justify-self: start; text-align: left; }
  .story-in { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .chapter { min-height: 0; padding-block: 48px; }
  .phone.inline { display: block; }
  .tower li { grid-template-columns: 52px minmax(0, 1fr); row-gap: 8px; }
  .tower p, .tower .lvl { grid-column: 2; justify-self: start; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures div, .figures div:first-child { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  :root { --header: 60px; }
  .brand img { display: none; }
  .band .band-mid { display: none; }
  .tick .caps { font-size: 10px; letter-spacing: 0.06em; }
  .tick .caps span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screens img, .tower h3, .nav a::after, .more svg, .doc summary::after { transition: none; }
}
