/* Starter styles. Tokens only (brand/tokens.css): `bin/tokens lint build/` fails on raw colours or font names.
   Above the DIRECTION line: the floor (layout, tap targets, sticky bar, readable text). Change it only with a reason.
   Below it: this direction's art direction, still in tokens. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body);
  padding-bottom: calc(var(--cta-bar-height) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-heading); line-height: var(--leading-heading); margin: 0 0 var(--space-4); }
h1 { font-size: var(--text-4xl); font-weight: var(--weight-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

main > section { padding: var(--section-gap) var(--gutter); max-width: var(--page-max); margin: 0 auto; }

/* masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--gutter); max-width: var(--page-max); margin: 0 auto; }
.wordmark img { height: var(--space-7); width: auto; }

/* buttons: every tap target ≥ tap-min */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); padding: 0 var(--space-5);
  border-radius: var(--radius-control); border: var(--border-width) solid transparent; font: inherit; font-weight: var(--weight-strong);
  text-decoration: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-action); color: var(--color-action-text); }
.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-small { min-height: var(--tap-min); padding: 0 var(--space-4); background: var(--color-action); color: var(--color-action-text); }
.btn-block { display: flex; width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: var(--tap-min); }

/* footer */
.footer { padding: var(--space-7) var(--gutter); color: var(--color-text-muted); max-width: var(--page-max); margin: 0 auto; }

/* sticky CTA bar: phones only, always filled color-action (base.md) */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: var(--color-bg); border-top: var(--border-width) solid var(--color-border); }
.cta-bar .btn { min-height: var(--cta-bar-height); }
.cta-bar[hidden] { display: none; }
@media (min-width: 960px) { .cta-bar { display: none; } body { padding-bottom: 0; } }

/* ───────────────────────── DIRECTION: this build's art direction, tokens only ───────────────────────── */
/* Round 3 · picks: Robinhood hero, Rithmm, Pearl Polystrat, untrod (Vince 2026-10-21). Plain, explains fast, one button, proof right after. */
::selection { background: var(--color-action); color: var(--color-action-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.masthead { flex-wrap: wrap; row-gap: 0; padding-top: var(--space-2); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); text-decoration: none; font-weight: var(--weight-strong); font-size: var(--text-lg); }
.wordmark img { height: var(--space-6); width: var(--space-6); }
.concept-tag { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); }

main > .hero { padding-top: var(--space-6); padding-bottom: var(--space-8); }
.hero h1 { font-size: var(--text-3xl); line-height: var(--leading-display); letter-spacing: var(--tracking-display); margin: 0 0 var(--space-4); max-width: 18ch; }
.line { color: var(--color-text-muted); font-size: var(--text-lg); margin: 0 0 var(--space-5); }
.fine { margin: var(--space-3) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }

.signup { display: grid; gap: var(--space-2); }
.signup input { min-height: 48px; width: 100%; padding: 0 var(--space-3); font: inherit; color: var(--color-text); background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-control); }
.signup input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.signup .btn { min-height: 48px; white-space: nowrap; }

/* rolling digits (Robinhood's odometer): columns scroll to their value once, static under reduced motion */
.odo { display: inline-flex; align-items: baseline; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-col > span { display: block; width: 0.72em; text-align: center; word-spacing: 100vw; transform: translateY(calc(var(--d) * -1em)); }
.ready .odo-col > span { animation: odo-roll 1.4s var(--ease-out) both; }
@keyframes odo-roll { from { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ready .odo-col > span { animation: none; } }
.odo-suf { margin-left: 0.04em; }

/* shared section: the demo video + 4 steps */
.how h2 { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.video { margin: 0 0 var(--space-7); }
.video-link { position: relative; display: block; border: var(--border-width) solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; }
.video-link img { width: 100%; height: auto; opacity: 0.85; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-card); }
.play { position: absolute; left: var(--space-4); bottom: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); padding: 0 var(--space-4) 0 var(--space-3);
  background: var(--color-action); color: var(--color-action-text); border-radius: var(--radius-control); font-weight: var(--weight-strong); }
.video figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: var(--space-7) 1fr; padding-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); color: var(--color-text-muted); }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--color-text); grid-row: span 2; }
.steps b { display: block; color: var(--color-text); }
.footer p { font-size: var(--text-sm); }

@media (min-width: 960px) {
  .hero h1 { font-size: var(--text-4xl); }
  .signup { grid-template-columns: 320px max-content; }
  .how { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--space-8); align-items: start; }
  .how h2 { grid-column: 1 / -1; }
  .video { margin: 0; }
}

/* P4 · P2 copy (Rithmm: big plain headline + price line) with P3 proof (phone + the agent 48% card + runs-on strip) */
.hero-p4 { display: grid; gap: var(--space-6); }
.hero-p4 h1 { font-size: clamp(30px, 8vw, 52px); }
.device { position: relative; padding: 0 var(--space-4) var(--space-5); justify-self: center; width: 100%; max-width: 380px; }
.phone { margin: 0 auto; width: 78%; padding: var(--space-4) var(--space-3) var(--space-6); background: var(--color-bg); border: 6px solid var(--color-surface); border-radius: 36px; }
.ph-head { margin: 0 0 var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-strong); }
.ph-game { padding: var(--space-2) 0; border-top: var(--border-width) solid var(--color-border); }
.ph-game > p:first-child { margin: 0 0 var(--space-1); font-size: 11px; color: var(--color-text-muted); }
.ph-side { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--space-1); font-size: var(--text-xs); max-width: none; }
.ph-side b { min-width: 64px; text-align: center; padding: 3px var(--space-2); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-control); font-variant-numeric: tabular-nums; }
.ph-side b.is-picked { background: var(--color-action); color: var(--color-action-text); border-color: var(--color-action); }
/* the untrod card: one big number laid over the phone */
.stat { position: absolute; left: 0; right: 0; top: 46%; padding: var(--space-4); background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-card); box-shadow: 0 var(--space-3) var(--space-6) var(--color-bg); }
.stat p { max-width: none; }
.stat-top { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-strong); color: var(--color-border); }
.stat-num { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; }
.stat-num span { font-size: 0.5em; }
.stat-gap { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.stat-bar { display: block; height: var(--space-2); background: var(--color-border); border-radius: var(--radius-pill); overflow: hidden; }
.stat-bar i { display: block; width: 48%; height: 100%; background: var(--color-action); }
.stack { list-style: none; margin: 0; padding: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); border-top: var(--border-width) solid var(--color-border); font-weight: var(--weight-strong); }
.stack span { font-weight: var(--weight-body); color: var(--color-text-muted); margin-right: var(--space-1); }
@media (min-width: 960px) {
  .hero-p4 { grid-template-columns: 6fr 5fr; column-gap: var(--space-8); align-items: center; }
  .stack { grid-column: 1 / -1; }
  .device { max-width: 420px; }
}
.hero-p4 h1 { font-size: clamp(36px, 9.5vw, 60px); }
.hero-p4 .line2 { margin: calc(var(--space-3) * -1) 0 var(--space-5); color: var(--color-text); font-weight: var(--weight-strong); }
@media (min-width: 960px) { .hero-p4 h1 { font-size: 56px; } }

/* Round 4 · layouts. Same hero (P4), same facts, same light texture (ticker + dotted big numbers). Layout is the variable. */
main > .sec { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.sec h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-display); line-height: var(--leading-heading); margin-bottom: var(--space-5); }
.note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); }

/* texture: dotted lamp numbers, only on the big numbers */
.stat-num, .big { -webkit-mask-image: radial-gradient(circle, var(--color-bg) 62%, transparent 66%); mask-image: radial-gradient(circle, var(--color-bg) 62%, transparent 66%);
  -webkit-mask-size: 3px 3px; mask-size: 3px 3px; }

/* texture: the price ticker (slow, pauses on hover, static with reduced motion) */
.ticker { border-top: var(--border-width) solid var(--color-border); border-bottom: var(--border-width) solid var(--color-border); overflow: hidden; position: relative; }
.ticker-track { display: flex; gap: var(--space-7); width: max-content; padding: var(--space-3) 0; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker span { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-text-muted); white-space: nowrap; }
.ticker b { color: var(--color-text); margin-right: var(--space-1); }
.ticker-note { position: absolute; right: var(--gutter); bottom: 2px; margin: 0; font-size: 11px; color: var(--color-text-muted); }

/* rules + the trade ticket (Mantua's own preview step) */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.rules li { padding-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); color: var(--color-text-muted); }
.rules b { display: block; color: var(--color-text); }
.ticket { margin: 0; padding: var(--space-5); background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-card); position: relative;
  -webkit-mask: radial-gradient(circle at 0 62%, transparent 10px, var(--color-bg) 11px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 62%, transparent 10px, var(--color-bg) 11px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 62%, transparent 10px, var(--color-bg) 11px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 62%, transparent 10px, var(--color-bg) 11px) right / 51% 100% no-repeat; }
.ticket p { max-width: none; }
.tk-top { margin: 0 0 var(--space-3); font-weight: var(--weight-strong); font-size: var(--text-sm); color: var(--color-border); }
.tk-row { display: flex; justify-content: space-between; margin: 0; padding: var(--space-2) 0; border-bottom: var(--border-width) dashed var(--color-text-muted); font-variant-numeric: tabular-nums; }
.tk-row b { font-family: var(--font-display); }
.tk-stamp { margin: var(--space-5) 0 0; display: inline-block; padding: var(--space-1) var(--space-3); border: 2px solid var(--color-bg); border-radius: var(--radius-control); font-weight: var(--weight-display); transform: rotate(-3deg); }
.ticket figcaption { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-border); }

/* cost */
.cost { margin: 0; display: grid; gap: var(--space-5); }
.cost div { padding-top: var(--space-4); border-top: var(--border-width) solid var(--color-border); }
.cost .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 9vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.cost dd { margin: var(--space-2) 0 0; color: var(--color-text-muted); }

/* leagues: NFL lit, the rest dim */
.leagues { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--color-text-muted); }
.leagues span { font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-body); }
.leagues .live { color: var(--color-text); }
.leagues .live b { font-size: var(--text-3xl); }
.leagues .live { width: 100%; display: flex; align-items: baseline; gap: var(--space-3); font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-accent); }
.leagues .live b { font-family: var(--font-display); color: var(--color-text); }

.faq-wrap, .sec details { max-width: 720px; }
.sec details { border-bottom: var(--border-width) solid var(--color-border); }
.sec summary { min-height: var(--tap-min); display: flex; align-items: center; padding: var(--space-3) 0; cursor: pointer; font-weight: var(--weight-strong); font-size: var(--text-lg); }
.sec details p { color: var(--color-text-muted); padding-bottom: var(--space-4); margin: 0; }

.final .signup { max-width: 520px; }

@media (min-width: 960px) {
  .pair { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-8); align-items: start; }
  .cost { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

/* A · Simple story (Rithmm / untrod): one column on phones, title left / content right on desktop, lots of air */
@media (min-width: 960px) {
  main > .sec { display: grid; grid-template-columns: 4fr 8fr; column-gap: var(--space-8); align-items: start; border-top: var(--border-width) solid var(--color-border); }
  main > .sec h2 { position: sticky; top: var(--space-6); font-size: var(--text-2xl); }
  main > .sec > :not(h2) { grid-column: 2; }
  main > .final { display: block; text-align: center; border-top: 0; }
  main > .final .signup { margin: 0 auto; }
  main > .final .line { margin-left: auto; margin-right: auto; }
  .split .pair { grid-template-columns: 1fr 1fr; }
  .cost { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
}

/* T1 · Field: the page is a night field seen from above. Yard lines edge to edge, hash marks, huge faint yard numbers at both edges, an end zone at the sign-up. */
body { position: relative; overflow-x: hidden; }
main { position: relative; isolation: isolate; }
/* hash marks: two rows of short ticks running down the whole page at the field's hash positions */
main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, var(--color-border) 0 1px, transparent 1px 24px) calc(33% - 12px) 0 / 24px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--color-border) 0 1px, transparent 1px 24px) calc(67% - 12px) 0 / 24px 100% no-repeat;
  opacity: 0.55; }
/* every section starts on a full-width yard line, with its yard number at both edges */
main > .sec { position: relative; border-top: 2px solid var(--color-border) !important; max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--page-max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--page-max)) / 2)); }
main > .sec[data-yard]::before, main > .sec[data-yard]::after { content: attr(data-yard); position: absolute; top: var(--space-5); z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 10vw, 180px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--color-border); }
main > .sec[data-yard]::before { left: var(--space-2); }
main > .sec[data-yard]::after { right: var(--space-2); transform: rotate(180deg); }
main > .final[data-yard]::before, main > .final[data-yard]::after { display: none; }
/* the end zone: a solid band with MANTUA lettered across it, like the paint in the end zone */
main > .final { background: var(--color-surface); text-align: center; overflow: hidden; }
.endzone { margin: 0 0 var(--space-5); max-width: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 12.5vw, 200px); line-height: 0.9; letter-spacing: 0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px var(--color-action); }
@media (min-width: 960px) {
  main > .sec { grid-template-columns: 4fr 8fr; }
}

/* M3 · + the dot texture kept to the end zone: a lamp scoreboard above MANTUA, dots inside the end zone only */
main > .final { background-image: radial-gradient(circle, var(--color-border) 1.2px, transparent 1.6px); background-size: 8px 8px; }
/* (scoreboard removed: Vince 2026-10-21) */

/* the yard numbers light up for the section you're on (set by the observer in index.html) */
main > .sec[data-yard]::before, main > .sec[data-yard]::after { transition: color var(--dur-slow) var(--ease-out), -webkit-text-stroke-color var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
main > .sec.is-here[data-yard]::before, main > .sec.is-here[data-yard]::after { -webkit-text-stroke-color: var(--color-accent); color: var(--color-surface); }
@media (prefers-reduced-motion: reduce) { main > .sec[data-yard]::before, main > .sec[data-yard]::after { transition: none; } }

/* field numbers stand sideways in the margins, like the real ones along the sidelines, so they never sit under text */
main > .sec[data-yard]::before, main > .sec[data-yard]::after { font-size: clamp(40px, 6.5vw, 104px); top: var(--space-8); }
main > .sec[data-yard]::before { left: 0; transform: rotate(-90deg) translate(-100%, 0); transform-origin: left top; }
main > .sec[data-yard]::after { right: 0; left: auto; transform: rotate(90deg) translate(100%, 0); transform-origin: right top; }
@media (max-width: 959px) {
  /* phones: no margin to stand in, so one small number sits by the section title, lit when you're there */
  main > .sec[data-yard]::after { display: none; }
  main > .sec[data-yard]::before { transform: none; left: auto; right: var(--gutter); top: var(--space-8); font-size: 44px; }
}

/* ───────── Motion (Vince: "more motions and animations"). One moment per place, all from the field or the product; off under reduced motion. ───────── */
/* 1 · hero mini-demo: the Raiders chip gets picked, the agent's card rises, the bar fills to 48 */
.motion-on:not(.motion-reduced) .ph-side b.is-picked { animation: pick 0.4s var(--ease-out) 0.7s both; }
@keyframes pick { from { background: transparent; color: var(--color-text); border-color: var(--color-border); } }
.motion-on:not(.motion-reduced) .stat { animation: rise 0.7s var(--ease-out) 1.1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--space-6)); } }
.motion-on:not(.motion-reduced) .stat-bar i { animation: fill 0.9s var(--ease-out) 1.4s both; }
@keyframes fill { from { width: 0; } }
/* 2 · (first-down line on scroll removed: Vince 2026-10-21) */
/* 3 · the stamp lands on the trade ticket */
.motion-on:not(.motion-reduced) .sec .tk-stamp { opacity: 0; }
.motion-on:not(.motion-reduced) .sec.in .tk-stamp { animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.6s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.8); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
/* 4 · scoreboard lamps: the big dotted numbers flicker on */
.motion-on:not(.motion-reduced) .sec .big { opacity: 0.15; }
.motion-on:not(.motion-reduced) .sec.in .big { animation: lamps 0.9s steps(1) both; }
.motion-on:not(.motion-reduced) .sec.in .cost div:nth-child(2) .big { animation-delay: 0.25s; }
.motion-on:not(.motion-reduced) .sec.in .cost div:nth-child(3) .big { animation-delay: 0.5s; }
@keyframes lamps { 0% { opacity: 0.15; } 20% { opacity: 1; } 30% { opacity: 0.3; } 45% { opacity: 1; } 55% { opacity: 0.5; } 70%, 100% { opacity: 1; } }
/* 5 · touchdown: MANTUA draws its own outline when you reach the end zone */
.endzone-svg { display: block; width: min(100%, 1100px); height: auto; margin: 0 auto var(--space-5); overflow: visible; }
.endzone-svg text { font-family: var(--font-display); font-weight: 800; font-size: 150px; letter-spacing: 6px; fill: none; stroke: var(--color-action); stroke-width: 2; }
.motion-on:not(.motion-reduced) .endzone-svg text { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.motion-on:not(.motion-reduced) .final.in .endzone-svg text { animation: draw 2.2s var(--ease-in-out) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* 6 · the live dot */
.pulse { display: inline-block; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--color-accent); margin: 0 var(--space-1) 0 var(--space-2); }
.motion-on:not(.motion-reduced) .pulse { animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--color-accent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.stat-num .count { font-size: 1em; }

/* no sideways scroll from the edge yard numbers */
html, body { overflow-x: clip; }
