/* spratapp.com - one stylesheet for every page.

   The visual language is the explainer video's: a dark stage, Inter set
   tight, a mono kicker over each section, keywords painted like SPRAT paints
   a cell, and light Ads Manager tables as the demo surface. Motion is all
   transitions on state classes, so anything a script does not reach still
   renders, and reduced motion simply skips the in-between. */

@font-face {
  font-family: 'Inter var'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter var'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono var'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --vh: 1svh;            /* boot.js freezes this to the screen height it opens at */
  --ink: #0A0D13;
  --ink-2: #0F131B;
  --ink-3: #151A24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --hi: #F3F5F9;
  --mid: #A3ACBB;
  --lo: #6A7383;
  --meta: #1877F2;
  --focus: #5E9BFF;

  --green: #C6EFCE; --green-fg: #08602A;
  --amber: #FFEB9C; --amber-fg: #6B4E00;
  --red: #FFC7CE;   --red-fg: #8B1A1A;
  --blue: #CFE2FF;  --blue-fg: #0B3D91;
  --purple: #E4D5F7; --purple-fg: #4A1D7A;
  --grey: #E4E6EB;  --grey-fg: #3A3B3C;

  --sans: 'Inter var', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono var', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1240px;
  --nav-h: 64px;
  --out: cubic-bezier(.22, 1, .36, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: calc(100 * var(--vh));
  overflow-x: clip;
  background: var(--ink);
  color: var(--hi);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The stage lighting from the video: a cool glow up top, a dot grid under it. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 72% -8%, rgba(52, 88, 168, .26), transparent 70%),
    radial-gradient(900px 600px at 0% 108%, rgba(24, 119, 242, .10), transparent 70%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.6px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(1200px 800px at 60% 20%, #000 20%, transparent 85%);
          mask-image: radial-gradient(1200px 800px at 60% 20%, #000 20%, transparent 85%);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}
::selection { background: rgba(94, 155, 255, .35); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--hi); color: var(--ink); border-radius: 8px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; font-weight: 760; letter-spacing: -.04em; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.2vw, 100px); }
h2 { font-size: clamp(36px, 5vw, 68px); }
h3 { font-size: clamp(25px, 2.5vw, 36px); letter-spacing: -.028em; line-height: 1.1; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--mid); max-width: 36em; text-wrap: pretty; }
.lede b, .lede strong { color: var(--hi); font-weight: 560; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mid);
}
.kicker i { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.kicker b { color: var(--hi); font-weight: 600; }

/* A keyword painted the way SPRAT paints a cell. Background-size rather
   than a pseudo-element, so a highlight that wraps paints every line. */
.hl {
  color: inherit;
  background: linear-gradient(var(--hl-bg, var(--green)), var(--hl-bg, var(--green))) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  border-radius: .12em;
  padding: 0 .12em; margin: 0 .02em;
  transition: background-size .75s var(--io), color .45s var(--io);
  transition-delay: var(--hl-d, .55s);
}
.hl-green  { --hl-bg: var(--green);  --hl-fg: var(--green-fg); }
.hl-amber  { --hl-bg: var(--amber);  --hl-fg: var(--amber-fg); }
.hl-red    { --hl-bg: var(--red);    --hl-fg: var(--red-fg); }
.hl-blue   { --hl-bg: var(--blue);   --hl-fg: var(--blue-fg); }
.hl-purple { --hl-bg: var(--purple); --hl-fg: var(--purple-fg); }
.in .hl, .hl.in, .no-js .hl { background-size: 100% 100%; color: var(--hl-fg); }

/* Words rise out of their own masks - the video's headline move. The split
   into .w/.wi is done by script; without it, text just sits there. */
.kt .w { position: relative; display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .16em; margin: -.08em -.03em -.16em; }
.kt .wi { display: inline-block; transform: translateY(112%); transition: transform .85s var(--out); transition-delay: calc(var(--i, 0) * 55ms + var(--kt-d, 0ms)); }
.in .wi { transform: none; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out), transform .8s var(--out); transition-delay: var(--fd, 0ms); }
.in .fade-up, .fade-up.in { opacity: 1; transform: none; }

/* Without scripts every section shows its finished state. */
.no-js .fade-up, .no-js .sum-row, .no-js .sum-foot, .no-js .sum-rule { opacity: 1; transform: none; }
.no-js .step { opacity: 1; }
.no-js .scale { height: auto; }
.no-js .scale-pin { position: static; height: auto; padding: calc(14 * var(--vh)) 0; display: grid; gap: calc(10 * var(--vh)); }
.no-js .scale-after { position: static; }
.no-js .player-cover { display: none; }
.no-js .sn-w { opacity: 1; transform: none; }
.no-js .sn-r { font-size: 0; opacity: 0; }
.no-js .sn-row { gap: .2em; }
.no-js .sn-logo { width: .64em; }
.no-js .sn-logo i, .no-js .sn-tag { opacity: 1; transform: none; }
/* Built by script: without it they'd be empty frames, so they step aside. */
.no-js .hero-wall { visibility: hidden; }
.no-js .stage-col, .no-js .seg, .no-js .race, .no-js .form, .no-js .resend { display: none; }
.no-js .how-grid { grid-template-columns: minmax(0, 1fr); }
.nojs-note { align-self: center; padding: 18px 20px; border-radius: 14px; color: var(--mid); line-height: 1.55; box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--hi); color: var(--ink);
  font: 680 16.5px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .25s var(--out), box-shadow .25s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, .02); color: var(--hi); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn .play {
  width: 22px; height: 22px; border-radius: 50%; background: var(--hi); position: relative; flex: none;
}
.btn .play::after {
  content: ''; position: absolute; left: 8.5px; top: 6.5px;
  border-left: 7.5px solid var(--ink); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.linkish {
  font: inherit; color: var(--hi); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.linkish:hover { text-decoration-color: var(--hi); }

/* ---------- brand + nav ---------- */

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hi); }
.mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 26px; height: 26px; flex: none; }
.mark i { display: block; border-radius: 3.5px; }
.mark i:nth-child(1) { background: var(--green); }
.mark i:nth-child(2) { background: var(--amber); }
.mark i:nth-child(3) { background: var(--red); }
.mark i:nth-child(4) { background: var(--meta); }
.brand .word { font: 800 21px/1 var(--sans); letter-spacing: -.04em; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10, 13, 19, .72); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-links a:not(.btn) { color: var(--mid); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--hi); }

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

.hero { position: relative; min-height: calc(100 * var(--vh)); display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; justify-items: start; }
.hero h1 { max-width: 11.5em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { font-size: 14.5px; color: var(--lo); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fine span { display: inline-flex; align-items: center; gap: 8px; }
.fine span::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }

/* The wall of numbers, bleeding off the right edge in perspective. */
.hero-wall { position: relative; height: min(calc(78 * var(--vh)), 700px); }
.wall-clip {
  position: absolute; top: -60px; bottom: -60px; left: -8%; right: calc(-1 * var(--gutter) - 30vw);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-composite: intersect;
}
.wall {
  position: absolute; left: -22%; top: 50%; width: 1060px;
  transform-origin: 0 50%;
  transform: translateY(-50%) perspective(1900px) rotateY(-26deg) rotateX(3deg);
}
.wall-card { height: 900px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 50px 120px rgba(0, 0, 0, .5); }
.wall-rows { animation: drift 70s linear infinite alternate; }
@keyframes drift { to { transform: translateY(-900px); } }
.wrow {
  display: grid; grid-template-columns: 290px 106px 110px 104px 118px 130px 96px;
  height: 45px; background: #fff; box-shadow: inset 0 -1px #E7E9ED;
  font: 500 15px/1 var(--sans); color: #1C2B33; font-variant-numeric: tabular-nums;
}
.wrow > span {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 14px; box-shadow: inset -1px 0 #EEF0F3; white-space: nowrap; overflow: hidden;
  transition: background-color .5s var(--out), color .5s var(--out), transform .7s var(--out), box-shadow .7s var(--out);
  transition-delay: var(--d, 0ms);
}
.wrow > span:first-child { justify-content: flex-start; color: #1B5FC8; }
.wrow > span:nth-child(2) { justify-content: flex-start; color: #4A5463; }
.wrow .lift { z-index: 2; transform: scale(1.16); box-shadow: 0 14px 30px rgba(10, 13, 19, .42); }

/* The hero fills the screen with nothing peeking below it, so say there's
   more. Sits under the copy, clear of the wall; arrives once the wall has
   flooded and leaves on the first scroll. */
.cue {
  position: absolute; z-index: 3; left: max(var(--gutter), calc((100% - var(--maxw)) / 2)); bottom: clamp(20px, calc(4.4 * var(--vh)), 44px);
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  animation: cue-in .9s var(--out) 2.6s backwards;
  transition: opacity .35s var(--out), color .2s;
}
.cue:hover { color: var(--hi); }
.cue i { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s; }
.cue:hover i { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.cue i::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -8px 0 0 -5.5px;
  border-right: 2px solid var(--hi); border-bottom: 2px solid var(--hi);
  transform: rotate(45deg); animation: cue-bob 1.8s var(--io) infinite;
}
.cue.gone { opacity: 0; pointer-events: none; }
@keyframes cue-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes cue-bob { 0%, 100% { transform: translateY(-3px) rotate(45deg); opacity: .45; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }

/* ---------- sections ---------- */

section { position: relative; }
.section { padding: clamp(96px, calc(16 * var(--vh)), 180px) 0; scroll-margin-top: var(--nav-h); }
.section-head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(40px, calc(7 * var(--vh)), 80px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- the scale of it (pinned sum) ---------- */

.scale { height: calc(225 * var(--vh)); }
.scale-pin { position: sticky; top: 0; height: calc(100 * var(--vh)); padding-top: var(--nav-h); display: grid; place-items: center; overflow: clip; }
.sum { display: grid; gap: clamp(2px, calc(.6 * var(--vh)), 8px); transition: opacity .6s var(--out), transform .7s var(--out); }
.sum.gone { opacity: 0; transform: translateY(-40px); }
.sum-row {
  display: grid; grid-template-columns: .9em 2.6em auto; column-gap: .22em; align-items: baseline;
  font-size: clamp(48px, min(7.4vw, calc(10.5 * var(--vh))), 96px);
  opacity: 0; transform: translateY(30px); transition: opacity .5s var(--out), transform .7s var(--out);
}
.sum-row.on { opacity: 1; transform: none; }
.sum-row .op { font-weight: 300; font-size: .55em; color: #5D6677; text-align: center; }
.sum-row .n { font-weight: 800; letter-spacing: -.045em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.sum-row .l { font-size: clamp(18px, 2.3vw, 34px); font-weight: 500; letter-spacing: -.01em; color: var(--mid); white-space: nowrap; }
.sum-rule {
  height: 3px; margin: clamp(6px, calc(1.4 * var(--vh)), 14px) 0; background: #3A4150; width: 3.6em; font-size: clamp(48px, min(7.4vw, calc(10.5 * var(--vh))), 96px);
  margin-left: .9em; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--io);
}
.sum-rule.on { transform: none; }
.sum-foot {
  margin-left: calc(.9em + 2.6em + .22em); font-size: clamp(48px, min(7.4vw, calc(10.5 * var(--vh))), 96px);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--out), transform .7s var(--out);
}
.sum-foot span { display: block; font-size: clamp(22px, 2.9vw, 44px); font-weight: 720; letter-spacing: -.025em; line-height: 1.15; }
.sum-foot span + span { color: var(--mid); }
.sum-foot.on { opacity: 1; transform: none; }
.scale-after {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 22px; padding: 0 var(--gutter);
  pointer-events: none;
}
.scale-after .big { font: 760 clamp(40px, 7vw, 96px)/1.04 var(--sans); letter-spacing: -.04em; }
.scale-after .dim { color: #5D6677; }

/* ---------- triad ---------- */

.triad { padding: calc(6 * var(--vh)) 0 clamp(80px, calc(14 * var(--vh)), 160px); }
.triad .wrap { display: grid; gap: clamp(22px, calc(5 * var(--vh)), 56px); }
.triad .line { font: 760 clamp(38px, 6.6vw, 94px)/1.04 var(--sans); letter-spacing: -.042em; }
.triad .line.soft { color: var(--mid); }

/* ---------- the name ---------- */

/* Said in full, then everything but the initials squeezes out and S P R A T
   close up into the word as it grows - the video's title move. Script sets
   the sizes: --fs0 fits the full name on one line, --fs1 is the wordmark. */
.naming { min-height: calc(80 * var(--vh)); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: calc(8 * var(--vh)) 0; overflow: clip; }
.naming .wrap { display: grid; justify-items: center; text-align: center; gap: clamp(20px, calc(3.6 * var(--vh)), 40px); }
.sn-row { display: flex; align-items: center; justify-content: center; gap: 0; font-size: var(--fs1, clamp(64px, 13vw, 180px)); transition: gap .65s var(--io); }
.sn-name { font: 800 var(--fs0, 1em)/.9 var(--sans); letter-spacing: -.04em; color: var(--hi); white-space: nowrap; }
.sn-w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .6s var(--out), transform .75s var(--out); transition-delay: calc(var(--i, 0) * 120ms); }
.sn-name b { display: inline-block; font-weight: inherit; transform-origin: 0 0; transition: margin-right .7s var(--io) .45s, transform .95s var(--io); }
.sn-r { white-space: pre; transition: font-size 1s var(--io), opacity .5s var(--io), color .45s var(--io); }
.naming.in .sn-w { opacity: 1; transform: none; }
.naming.dim .sn-r { color: #4A5263; }
.naming.collapse .sn-name { font-size: var(--fs1); transition: font-size 1.15s var(--io); }
.naming.collapse .sn-r { font-size: 0; opacity: 0; }
.naming.collapse .sn-name b { margin-right: var(--k, 0); }
.sn-logo { display: grid; grid-template-columns: 1fr 1fr; gap: .06em; flex: none; width: 0; height: .64em; overflow: hidden; transition: width .65s var(--io); }
.sn-logo i { border-radius: .085em; opacity: 0; transform: scale(.45); transition: opacity .4s var(--out), transform .5s var(--out); }
.sn-logo i:nth-child(1) { background: var(--green); transition-delay: .3s; }
.sn-logo i:nth-child(2) { background: var(--amber); transition-delay: .38s; }
.sn-logo i:nth-child(3) { background: var(--red); transition-delay: .54s; }
.sn-logo i:nth-child(4) { background: var(--meta); transition-delay: .46s; }
/* Narrow screens: the name reads down the page as an acrostic, the rest of
   each word fades, and script flies the initials up into the word. */
.naming.acro .sn-name { display: inline-grid; justify-items: start; text-align: left; line-height: 1.04; }
.naming.acro.collapse .sn-name { font-size: var(--fs0); transition: none; }
.naming.acro.collapse .sn-r { font-size: 1em; opacity: 0; }
.naming.acro.word .sn-name { display: inline-block; font-size: var(--fs1); line-height: .9; }
.naming.acro.word .sn-r { display: none; }
.naming.lock .sn-row { gap: .2em; }
.naming.lock .sn-logo { width: .64em; }
.naming.lock .sn-logo i { opacity: 1; transform: none; }
.sn-tag {
  font: 500 clamp(12px, 1.3vw, 18px)/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lo);
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--out) .7s, transform .7s var(--out) .7s;
}
.sn-tag b { color: var(--hi); font-weight: 600; }
.naming.lock .sn-tag { opacity: 1; transform: none; }
.sn-probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; white-space: pre; font: 800 100px/1 var(--sans); letter-spacing: -.04em; }

/* ---------- how it works ---------- */

.how-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 88px); }
.steps { display: grid; }
.step { min-height: calc(78 * var(--vh)); display: grid; align-content: center; gap: 18px; padding: calc(8 * var(--vh)) 0; opacity: .28; transition: opacity .45s var(--out); }
.step.active { opacity: 1; }
.step-k { font: 500 13.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mid); display: flex; gap: 12px; align-items: center; }
.step-k b { color: var(--hi); font-weight: 600; }
.step-k i { display: block; width: 12px; height: 12px; border-radius: 3px; }
.k-green { background: var(--green); }
.k-purple { background: var(--purple); }
.k-amber { background: var(--amber); }
.k-blue { background: var(--meta); }
[data-store-link].soon { opacity: .55; cursor: default; box-shadow: inset 0 0 0 1.5px var(--line-2); background: transparent; color: var(--mid); }
.step p:not(.step-k) { color: var(--mid); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 30em; }
.step p b { color: var(--hi); font-weight: 560; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.seg button {
  font: 600 14px/1 var(--sans); color: var(--mid); background: none; border: 0; border-radius: 8px;
  padding: 10px 14px; cursor: pointer; transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--hi); }
.seg button[aria-pressed="true"] { background: var(--hi); color: var(--ink); }

.stage-col { position: relative; }
.stage { position: sticky; top: calc(var(--nav-h) + calc(6 * var(--vh))); }

/* A slice of Ads Manager: light, dense, familiar. */
.am { border-radius: 16px; overflow: hidden; background: #F0F2F5; box-shadow: 0 50px 120px rgba(0, 0, 0, .55), 0 14px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .06); color: #1C2B33; }
.am-bar { height: 50px; background: #fff; border-bottom: 1px solid #E3E6EA; display: flex; align-items: center; gap: 10px; padding: 0 16px; font: 600 14px/1 var(--sans); }
.am-av { width: 26px; height: 26px; border-radius: 50%; background: #2F4A6D; color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; }
.am-acct { flex: 0 1000 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-pill {
  margin-left: auto; padding: 4px 12px; border-radius: 999px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font: 600 12.5px/17px var(--sans); background: #d9e7fb; color: #0b3d91; box-shadow: inset 0 0 0 1px #a9c8f2;
  opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--out), transform .45s var(--out);
}
.am-pill.on { opacity: 1; transform: none; }
.am-tabs { display: flex; gap: 4px; padding: 10px 14px 0; font: 600 13px/1 var(--sans); color: #4A5463; }
.am-tabs span { padding: 10px 14px; border-radius: 9px 9px 0 0; background: #E3E7EC; }
.am-tabs span.on { background: #fff; color: #1B5FC8; }
.am-table { background: #fff; margin: 0 14px 14px; border-radius: 0 10px 10px 10px; overflow: hidden; position: relative; }
.am-row {
  display: grid; grid-template-columns: minmax(0, 2.5fr) repeat(4, minmax(0, 1fr));
  height: 46px; box-shadow: inset 0 -1px #E7E9ED;
  font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.am-row.hd { height: 50px; font-size: 12.5px; font-weight: 650; color: #4A5463; line-height: 1.25; box-shadow: inset 0 -1px #D5D9DF; }
.am-row > span {
  display: flex; align-items: center; justify-content: flex-end; text-align: right;
  padding: 0 12px; box-shadow: inset -1px 0 #EEF0F3; white-space: nowrap; overflow: hidden; min-width: 0;
  transition: background-color .5s var(--out), color .5s var(--out);
  transition-delay: var(--d, 0ms);
}
.am-row.hd > span { white-space: normal; }
.am-row > span:first-child { justify-content: flex-start; text-align: left; gap: 7px; color: #1B5FC8; }
.am-row.hd > span:first-child { color: #4A5463; }
.am-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok { border-radius: 4px; padding: 1px 2px; margin: 0 -2px; transition: background-color .4s var(--out), color .4s var(--out); transition-delay: var(--d, 0ms); }
.am-note { display: inline-block; width: 0; flex: none; overflow: hidden; font-size: 15px; line-height: 1; font-weight: 700; transition: width .45s var(--out); transition-delay: var(--d, 0ms); }
.am-note.on { width: 22px; }
.am-tip {
  position: absolute; left: 12px; z-index: 3; max-width: 320px; padding: 9px 12px; border-radius: 8px;
  background: #1c1e21; color: #fff; font: 400 13.5px/1.45 var(--sans); white-space: pre-line;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .35s var(--out), transform .45s var(--out); transition-delay: .5s;
}
.am-tip.on { opacity: 1; transform: none; }
/* Step 04's note flow, drawn as the extension draws it: the right-click menu
   with its icon palette and text line, and a pointer to drive it. */
.am-menu {
  position: absolute; left: 0; top: 0; z-index: 4; width: min(350px, calc(100% - 16px)); padding: 12px; border-radius: 12px;
  background: #fff; color: #1c1e21; border: 1px solid #ccd0d5; box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  font: 400 14px/1.4 var(--sans); transform-origin: 24px 100%;
  opacity: 0; transform: scale(.96); pointer-events: none; transition: opacity .2s var(--out), transform .25s var(--out);
}
.am-menu.on { opacity: 1; transform: none; }
.am-mhead { margin-bottom: 9px; font-weight: 600; font-size: 13px; color: #65676b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-mpal { display: flex; gap: 5px; margin-bottom: 9px; }
.am-mpal span {
  flex: 1 1 0; height: 34px; display: grid; place-items: center; border: 1px solid #ccd0d5; border-radius: 8px;
  background: #f5f6f7; font-size: 16px; line-height: 1; transition: background-color .15s, border-color .15s;
}
.am-mpal span.arrow { font-size: 19px; font-weight: 700; }
.am-mpal span.on { background: #d9e7fb; border-color: #0064e0; }
.am-mtext {
  position: relative; height: 34px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap;
  border: 1px solid #ccd0d5; border-radius: 8px; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.am-mtext.focus { border-color: #0064e0; box-shadow: inset 0 0 0 1px #0064e0; }
.am-mtext.filled .am-mph { display: none; }
.am-mph { position: absolute; left: 11px; color: #8a8d91; }
.am-caret { flex: none; width: 1.5px; height: 18px; margin-left: 1px; background: #1c1e21; opacity: 0; }
.am-mtext.focus .am-caret { opacity: 1; animation: am-blink 1.05s steps(1) infinite; }
@keyframes am-blink { 50% { opacity: 0; } }
.am-mact { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 9px; }
.am-mact span { padding: 6px 13px; border-radius: 8px; background: #0064e0; color: #fff; font-weight: 600; font-size: 13.5px; }
.am-enter, .am-hint {
  font: 600 11.5px/1 var(--mono); font-style: normal; letter-spacing: .03em; white-space: nowrap; padding: 5px 8px; border-radius: 6px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--out);
}
.am-enter { color: #1c1e21; background: #eef0f3; box-shadow: inset 0 0 0 1px #d5d9df; }
.am-hint { position: absolute; left: 0; top: 0; z-index: 6; background: #1c1e21; color: #fff; pointer-events: none; }
.am-enter.on, .am-hint.on { opacity: 1; transform: none; }
.am-cursor {
  position: absolute; left: 0; top: 0; z-index: 7; width: 18px; height: 24px; pointer-events: none;
  opacity: 0; transition: transform .6s var(--io), opacity .25s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.am-cursor.on { opacity: 1; }
.am-cursor svg { display: block; width: 100%; height: 100%; }
.am-cursor i { position: absolute; left: -13px; top: -13px; width: 28px; height: 28px; border-radius: 50%; background: rgba(24, 119, 242, .4); opacity: 0; }
.am-cursor.click i { animation: am-click .5s var(--out); }
@keyframes am-click { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }


/* ---------- payoff: read vs scanned ---------- */

.race { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.race figure { margin: 0; display: grid; gap: 14px; }
.race figcaption { font: 500 13.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mid); display: flex; align-items: center; gap: 12px; }
.race figcaption i { display: block; width: 12px; height: 12px; border-radius: 3px; background: #5B6475; }
.race .lit figcaption i { background: var(--green); }
.rt { position: relative; background: #fff; color: #1C2B33; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.rt-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); height: 40px; box-shadow: inset 0 -1px #E7E9ED; font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.rt-row.hd { height: 42px; font-size: 12px; font-weight: 650; line-height: 1.2; color: #4A5463; background: #F7F8FA; }
.rt-row.hd > span { white-space: normal; text-align: right; }
.rt-row.hd > span:first-child { color: #4A5463; }
.rt-row > span { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 10px; white-space: nowrap; overflow: hidden; box-shadow: inset -1px 0 #EEF0F3; min-width: 0; }
.rt-row > span:first-child { justify-content: flex-start; color: #1B5FC8; }
.rt-row .am-name { flex: 1; }
.rt-box { position: absolute; left: 0; top: 0; border: 2.5px solid var(--meta); border-radius: 5px; background: rgba(24, 119, 242, .07); pointer-events: none; opacity: 0; transition: left .09s linear, top .09s linear, width .09s linear, opacity .2s; }
.rt-box.on { opacity: 1; }
.rt-ring { position: absolute; border: 3px solid var(--ink); border-radius: 6px; pointer-events: none; opacity: 0; transform: scale(1.3); transition: opacity .3s var(--out), transform .45s var(--out); transition-delay: var(--d, 0ms); }
.rt-ring.on { opacity: 1; transform: none; }
.race-count { font: 500 15px/1.4 var(--mono); color: var(--mid); }
.race-count b { color: var(--hi); font-weight: 600; }

/* ---------- tour ---------- */

.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 60px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
/* Bottom-left, level with the poster's own copy, so it never covers it. */
.player-cover {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  border: 0; padding: 0 0 6.3% 6.3%; cursor: pointer;
  background: linear-gradient(180deg, rgba(10, 13, 19, 0) 55%, rgba(10, 13, 19, .55));
  transition: opacity .3s;
}
.player-cover .pb {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px 16px 18px; border-radius: 999px;
  background: var(--hi); color: var(--ink); font: 680 17px/1 var(--sans); box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  transition: transform .25s var(--out);
}
.player-cover:hover .pb { transform: scale(1.04); }
.player-cover .pb::before {
  content: ''; width: 0; height: 0; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 6px;
}
.player-cover .pb small { font: 500 14px/1 var(--mono); color: #5D6677; }
.player.playing .player-cover { opacity: 0; pointer-events: none; }

/* ---------- get it ---------- */

.get-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(21, 26, 36, .92), rgba(13, 17, 24, .92));
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 140px rgba(0, 0, 0, .5);
}
.get-copy { display: grid; gap: 22px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--mid); font-size: 17px; line-height: 1.45; }
.ticks li::before {
  content: ''; width: 22px; height: 22px; border-radius: 6px; margin-top: 1px;
  background: var(--green) no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.6' fill='none' stroke='%2308602A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ticks li b { color: var(--hi); font-weight: 560; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--ink); color: var(--hi);
  font: 400 17px/1 var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #4F5766; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(94, 155, 255, .22); }
.input[aria-invalid="true"] { border-color: #FF8A96; box-shadow: 0 0 0 4px rgba(255, 138, 150, .15); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--mid); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px;
  border: 1.5px solid var(--line-2); background: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.check input::after { content: ''; width: 11px; height: 6px; border: 2.2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--out); }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { border-color: var(--green-fg); transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check span { text-wrap: pretty; }   /* no lone "anytime." on the last line */
.form-note { font-size: 14px; color: var(--lo); line-height: 1.5; }
.form-note a { color: var(--mid); }
.form-status { min-height: 1.4em; font-size: 15px; line-height: 1.45; }
.form-status.err { color: #FF9AA6; }
.form-status.ok { color: #8FDDA5; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.resend { margin-top: 26px; text-align: center; color: var(--lo); font-size: 15px; }
.resend-form { display: none; max-width: 520px; margin: 18px auto 0; grid-template-columns: 1fr auto; gap: 10px; }
.resend-form.open { display: grid; }
.resend-form .input { height: 48px; font-size: 16px; }
.resend-form .btn { height: 48px; }
.resend-form .form-status { grid-column: 1 / -1; text-align: center; }

/* ---------- faq ---------- */

.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font: 640 clamp(18px, 1.5vw, 21px)/1.35 var(--sans); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--mid); border-bottom: 2px solid var(--mid); transform: rotate(45deg); transition: transform .3s var(--out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 44px 26px 0; color: var(--mid); max-width: 44em; }

/* ---------- footer ---------- */

.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); margin-top: clamp(40px, calc(8 * var(--vh)), 96px); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--mid); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--hi); }
.foot .small { grid-column: 1 / -1; font-size: 13px; color: var(--lo); line-height: 1.6; }

/* ---------- inner pages ---------- */

.page { padding: calc(var(--nav-h) + clamp(48px, calc(10 * var(--vh)), 110px)) 0 40px; }
.page .wrap { max-width: 860px; }
.page-head { display: grid; gap: 18px; margin-bottom: 40px; justify-items: start; }
.panel {
  padding: clamp(24px, 4vw, 40px); border-radius: 22px;
  background: linear-gradient(180deg, rgba(21, 26, 36, .92), rgba(13, 17, 24, .92));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .45);
}
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 8px 0 6px; }
.key {
  font: 650 clamp(17px, 5vw, 34px)/1.2 var(--mono); letter-spacing: .06em; padding: 18px 22px; border-radius: 14px;
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); user-select: all; overflow-wrap: anywhere;
}
/* The key page's second chance at the tips list, for a box left unticked. */
.optin {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 20px;
  padding: 18px 20px 18px 22px; border-radius: 16px;
  background: rgba(198, 239, 206, .05); box-shadow: inset 0 0 0 1px rgba(198, 239, 206, .22);
}
.optin[hidden] { display: none; }
.optin > p:first-child { color: var(--hi); font-size: 16.5px; line-height: 1.45; text-wrap: pretty; }
.optin .btn { height: 46px; padding: 0 20px; font-size: 15.5px; }
.optin-status { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.45; color: var(--mid); }
.optin-status:empty { display: none; }
.optin.done .btn { display: none; }
.optin.done .optin-status { color: #8FDDA5; }
@media (max-width: 640px) {
  .optin { grid-template-columns: minmax(0, 1fr); }
  .optin .btn { justify-self: start; }
}
.steps-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps-list li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); font: 650 16px/1 var(--mono);
}
.steps-list h3 { font-size: 20px; letter-spacing: -.015em; margin: 8px 0 6px; }
.steps-list p { color: var(--mid); }
.muted { color: var(--mid); }
.state[hidden] { display: none !important; }
.release-form { max-width: 520px; }
.state { display: grid; gap: 22px; }
.state > h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin-top: 30px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--hi); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.prose { color: var(--mid); display: grid; gap: 16px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--hi); margin-top: 26px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong, .prose b { color: var(--hi); font-weight: 580; }
.prose code {
  font: 500 .88em/1 var(--mono); color: var(--hi); white-space: nowrap;
  padding: .18em .42em; border-radius: 6px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line);
}
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--hi); font-weight: 600; }
.draft {
  padding: 14px 18px; border-radius: 12px; background: rgba(255, 235, 156, .08); box-shadow: inset 0 0 0 1px rgba(255, 235, 156, .35);
  color: var(--amber); font-size: 15px;
}

/* ---------- responsive ---------- */

/* ---------- floating sign-up button ---------- */

/* Shows once the hero's buttons have scrolled away; steps aside over the
   video and the sign-up form itself. */
.float-cta {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 24px; border-radius: 999px;
  background: var(--hi); color: var(--ink); font: 680 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.96);
  transition: opacity .3s var(--out), transform .4s var(--out), visibility 0s linear .4s;
}
.float-cta.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.float-cta:hover { transform: translateY(-2px); }
.float-cta .arr { transition: transform .2s var(--out); }
.float-cta:hover .arr { transform: translateX(3px); }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 36px); }
  .cue { display: none; }   /* the wall already runs off the bottom of the screen */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-wall { height: 380px; margin: 0 calc(-1 * var(--gutter)); }
  .wall-clip { left: 0; right: 0; top: -20px; bottom: -20px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
  .wall { left: 8%; transform: translateY(-50%) perspective(1500px) rotateY(-20deg) rotateX(4deg) scale(.72); }

  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage-col { order: -1; position: sticky; top: var(--nav-h); z-index: 3; padding: 10px 0 14px;
    background: linear-gradient(180deg, var(--ink) 80%, rgba(10, 13, 19, 0)); }
  .stage { position: static; }
  .step { min-height: calc(58 * var(--vh)); padding: calc(3 * var(--vh)) 0 calc(10 * var(--vh)); align-content: start; }   /* text right under the pinned stage */

  .race { grid-template-columns: minmax(0, 1fr); }
  .get-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* The hero wall keeps only the columns SPRAT colours, so the colour is what fits. */
  .wall { left: 3%; width: 540px; transform: translateY(-50%) perspective(1500px) rotateY(-18deg) rotateX(4deg) scale(.72); }
  .wrow { grid-template-columns: 160px 94px 92px 110px 84px; }
  .wrow > span:nth-child(2), .wrow > span:nth-child(6) { display: none; }
  .nav-links a:not(.btn) { display: none; }
  /* Phones: the stage sticks to the top while the steps scroll under it, so
     it is kept compact to leave the steps room to be read. */
  .am-row { grid-template-columns: minmax(0, 2.7fr) repeat(2, minmax(0, 1fr)); height: 31px; font-size: 12.5px; }
  .am-row.hd { height: 36px; font-size: 10.5px; line-height: 1.15; }
  .am-row > span:nth-child(3), .am-row > span:nth-child(5) { display: none; }
  .am-row > span { padding: 0 9px; }
  .am-tabs { display: none; }
  .am-bar { height: 38px; font-size: 12.5px; }
  .am-av { width: 22px; height: 22px; font-size: 9.5px; }
  .am { border-radius: 12px; }
  .am-pill { font-size: 11px; padding: 3px 9px; }
  .am-table { margin: 0 8px 8px; }
  .stage-col { padding: 6px 0 10px; }
  .rt-row { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); height: 34px; font-size: 12px; }
  .rt-row.hd { font-size: 10.5px; }
  .rt-row > span { padding: 0 6px; }
  .sum-row .l { white-space: normal; max-width: 7em; line-height: 1.1; }
  .foot .wrap { grid-template-columns: 1fr; }
  .resend-form { grid-template-columns: 1fr; }
  .key { padding: 14px 16px; }
  .player { border-radius: 12px; }
  .player-cover { padding: 0 0 4.5% 4.5%; }
  .player-cover .pb { gap: 10px; padding: 10px 16px 10px 12px; font-size: 14px; }
  .player-cover .pb::before { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; margin-left: 4px; }
  .player-cover .pb small { font-size: 12px; }
  .float-cta { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); height: 48px; padding: 0 18px 0 20px; font-size: 15px; }
}

/* ---------- reduced motion ----------
   Every state is still reached - just without the travel between. The
   pinned sum becomes an ordinary section, fully built. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation: none !important; }
}
.reduced .scale { height: auto; }
.reduced .scale-pin { position: static; height: auto; padding: calc(14 * var(--vh)) 0; display: grid; gap: calc(12 * var(--vh)); }
.reduced .scale-after { position: static; }
