/*
 * grao.ke, the Tupatane Grao landing page. Tokens, type scale, spacing and motion are copied from the app
 * (grao/app/globals.css) so the page and the app read as one product.
 *   text     12 14 16 18 20 24 30 36 48, display 56 / 72
 *   spacing  4 8 12 16 24 32 48 64 (sections 56 on phones, 96 on computers)
 *   radius   8 chips, 16 cards, 24 hero panels, 32 the features panel, 999 buttons and faces
 * Magenta is only for the main action. Hover effects only where there's a mouse. Nothing moves under
 * prefers-reduced-motion. Layouts: phones first, then 720px (tablets) and 1024px (computers).
 */
:root {
  --bg: #f6f3f7; --surface: #ffffff; --surface2: #efe8f1; --ink: #37003c; --muted: #6e5874; --subtle: #7d6983; --line: #e4dae7;
  --field-line: #9d8aa3;
  --accent: #e90052; --accent-ink: #ffffff; --link: #c2004a;
  --nav: #37003c; --nav-ink: #ffffff; --hi-a: #04f5ff; --hi-b: #00ff85; --shot: #ffd23f;
  --turf: #3b8a55; --turf2: #357f4d; --turf-edge: #2f7446; --chalk: #f2f7f0;
  --on-nav-muted: rgba(255, 255, 255, .8); --on-nav-faint: rgba(255, 255, 255, .72); --on-nav-line: rgba(255, 255, 255, .14);
  --shadow-lg: 0 16px 32px -12px rgba(40, 0, 44, .35), 0 2px 6px rgba(40, 0, 44, .15);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.87, 0, .13, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1b0320; --surface: #28062e; --surface2: #3a0a41; --ink: #faf5fb; --muted: #cdb9d1; --subtle: #a58aab; --line: #47134e;
    --field-line: #8a5a93; --link: #ff6fa8;
    --turf: #2e6e43; --turf2: #2a663e; --turf-edge: #245a36;
    --shadow-lg: 0 16px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--hi-a); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.band { background: var(--nav); color: var(--nav-ink); }
section[id] { scroll-margin-top: 16px; }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }
.mail { color: var(--link); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease-out), filter .12s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--nav-ink); border-color: rgba(255, 255, 255, .45); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.navlink { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--on-nav-muted); font-weight: 600; text-decoration: none; }
.navlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--hi-a);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.08); }
  .btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, .08); }
  .navlink:hover { color: #ffffff; }
  .navlink:hover::after { transform: scaleX(1); }
  .faq summary:hover { background: var(--surface2); }
}
/* After the hover rules, so a press always dips, even under a mouse. */
.btn:active { transform: scale(.96); filter: brightness(.92); }

/* ---------- header ---------- */
.site-header .wrap { display: flex; align-items: center; gap: 40px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; font-size: 21px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.logo-mark { flex: none; width: 28px; height: 28px; }
.site-nav { display: none; gap: 32px; }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.wide-only { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: 32px 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; grid-template-areas: "copy" "demo" "facts"; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { color: var(--hi-a); font-size: 15px; font-weight: 600; }
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.lede { max-width: 34em; color: var(--on-nav-muted); font-size: 18px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .actions .btn-primary { flex: 1 1 auto; }
.hero-signin { display: none; }
.join-note { color: var(--on-nav-faint); font-size: 14px; }
.facts { grid-area: facts; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--on-nav-line); }
.facts li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.facts .icon { color: var(--hi-a); }

/* The demo: a bare "Next up" card on phones and tablets, the card inside a phone on computers. */
.demo { grid-area: demo; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 420px; }
.demo figcaption { color: var(--on-nav-faint); font-size: 13px; }
.device, .device-screen, .device-body { width: 100%; }
.device .device-chrome { display: none; }

/* ---------- the "Next up" card (its states are set by demo.js through data-state) ---------- */
.nextup {
  display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 24px; background: var(--nav); color: var(--nav-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--shadow-lg);
}
.nextup-head { display: flex; align-items: center; justify-content: space-between; }
.nextup-label { color: var(--hi-a); font-size: 14px; font-weight: 600; }
.chip-dark { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; }
.fixture { display: flex; flex-direction: column; gap: 2px; }
.fixture span { color: var(--on-nav-faint); font-size: 15px; font-weight: 600; }
.fixture b { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.meta { display: flex; flex-direction: column; gap: 6px; color: rgba(255, 255, 255, .86); font-size: 14px; }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta .icon { color: var(--hi-a); }
.join { width: 100%; }
.join > span { display: inline-flex; align-items: center; gap: 8px; }
.join .icon { stroke-width: 2.5; }
.join .busy, .nextup[data-state="signing"] .join .ready { display: none; }
.nextup[data-state="signing"] .join .busy { display: inline-flex; }
.nextup[data-state="signing"] .join { cursor: progress; }
.nextup[data-state="in"] .join { display: none; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #ffffff; border-radius: 999px; animation: spin .8s linear infinite; }
.in-bar { display: none; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 16px; background: rgba(0, 255, 133, .12); box-shadow: inset 0 0 0 1px rgba(0, 255, 133, .45); }
.nextup[data-state="in"] .in-bar { display: flex; animation: arrive .45s var(--ease-out); }
.tick { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--hi-b); color: var(--nav); animation: pop .45s .1s var(--ease-out) both; }
.tick .icon { stroke-width: 3; }
.in-text { display: flex; flex-direction: column; flex-grow: 1; line-height: 1.3; }
.in-text b { font-weight: 800; }
.in-text span { color: var(--on-nav-muted); font-size: 13px; }
.leave {
  min-height: 44px; padding: 0; border: 0; background: none; color: #ffffff; font: 600 14px var(--font); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.leave:active { opacity: .7; }
.count { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.count b { font-size: 16px; font-weight: 800; }
.faces { display: flex; }
.faces .av + .av { margin-left: -8px; }
.av {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px;
  background: var(--tint, var(--nav)); color: #ffffff; font-size: 11px; font-weight: 600; box-shadow: 0 0 0 2px var(--nav);
}
.av-you { display: none; --tint: #00754e; box-shadow: 0 0 0 2px var(--hi-b); font-size: 10px; }
.nextup[data-state="in"] .av-you { display: inline-grid; animation: arrive .45s var(--ease-out); }
.bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.bar span {
  display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hi-a), var(--hi-b));
  transform: scaleX(.857); transform-origin: left; transition: transform .6s var(--ease-out);
}
.nextup[data-state="in"] .bar span { transform: none; }
.enough { display: none; align-self: flex-end; color: var(--hi-b); font-size: 13px; font-weight: 800; }
.nextup[data-state="in"] .enough { display: block; animation: arrive .4s .2s var(--ease-out) both; }

/* The phone's own screen around the card, shown on computers only. */
.device-top { align-items: center; justify-content: space-between; height: 52px; padding: 8px 16px 0; background: var(--nav); color: #ffffff; }
.device-top b { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.device-top .logo-mark { width: 22px; height: 22px; }
.device-top .av { width: 28px; height: 28px; box-shadow: none; }
.device-team { align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.device-team b { font-size: 15px; font-weight: 800; }
.crest { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 10px; font-weight: 800; }
.device-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.last { align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.last-text { display: flex; flex-direction: column; flex-grow: 1; line-height: 1.3; }
.last-date { color: var(--muted); font-size: 12px; font-weight: 600; }
.last-text b { font-size: 15px; font-weight: 800; }
.motm-face { position: relative; display: inline-flex; }
.motm-face .av { width: 32px; height: 32px; box-shadow: none; }
.star {
  position: absolute; right: -4px; bottom: -4px; display: inline-grid; place-items: center; width: 16px; height: 16px;
  border-radius: 999px; background: var(--shot); color: var(--nav); box-shadow: 0 0 0 2px var(--surface);
}
.star .icon { stroke-width: 2.5; }

/* ---------- how it works ---------- */
.how { padding-block: 56px 24px; }
.how .wrap { display: flex; flex-direction: column; gap: 24px; }
.steps { display: grid; gap: 12px; }
.steps li { display: flex; gap: 16px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--nav); color: var(--hi-a); font-size: 18px; font-weight: 800; }
.step-text { display: flex; flex-direction: column; gap: 4px; }
.step-text b { font-size: 19px; font-weight: 800; }
.step-text span { color: var(--muted); font-size: 15px; }

/* ---------- features ---------- */
.features { padding-block: 32px 56px; }
.features-panel { display: flex; flex-direction: column; gap: 24px; }
.feature-grid { display: grid; gap: 12px; }
.feature { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.feature h3 { margin-bottom: -8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.frag { border-radius: 16px; }
.frag-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.frag-pay { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1.5px solid var(--accent); }
.frag-pay b { color: var(--link); font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.frag-pay > span:last-child { color: var(--muted); font-size: 13px; }
.frag-lineup { position: relative; height: 172px; overflow: hidden; background: repeating-linear-gradient(0deg, var(--turf) 0 28px, var(--turf2) 28px 56px); }
.frag-lineup::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgba(242, 247, 240, .6); }
.frag-lineup .box { position: absolute; left: 28%; right: 28%; bottom: 0; height: 22%; border: 2px solid rgba(242, 247, 240, .6); border-bottom: 0; }
.frag-lineup .dot {
  position: absolute; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; transform: translate(-50%, -50%);
  background: var(--accent); color: #ffffff; font-size: 9px; font-weight: 800; box-shadow: 0 0 0 2px var(--chalk);
}
.frag-board { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); }
.board-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 36px 36px; align-items: center; gap: 8px; min-height: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.board-row > :first-child { color: var(--subtle); font-weight: 600; }
.board-row > :nth-child(2) { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.board-row > :nth-child(n + 3) { text-align: right; }
.board-row > span:last-child { color: var(--muted); }
.board-row b { font-weight: 800; }
.board-row .av { width: 24px; height: 24px; font-size: 9px; box-shadow: none; }
.board-head { min-height: auto; border-top: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.frag-award { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--nav); color: #ffffff; }
.award-head { display: flex; align-items: center; gap: 12px; }
.frag-award .motm-face .av { width: 48px; height: 48px; font-size: 18px; box-shadow: 0 0 0 2px var(--hi-b); }
.frag-award .star { width: 22px; height: 22px; box-shadow: 0 0 0 2px var(--nav); }
.award-name { display: flex; flex-direction: column; line-height: 1.1; }
.award-name b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.award-name span { color: var(--on-nav-muted); font-size: 12px; }
.vote { display: grid; grid-template-columns: 64px minmax(0, 1fr) 16px; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.vote b { text-align: right; }
.vote-bar { display: flex; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.vote-bar span { width: calc(var(--share) * 100%); border-radius: 999px; background: var(--hi-a); }
.frag-invite { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.invite-row { display: flex; gap: 8px; }
.invite-field {
  display: flex; flex-grow: 1; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 12px; overflow: hidden;
  border: 1.5px solid var(--field-line); border-radius: 8px; color: var(--muted); font-size: 13px; white-space: nowrap;
}
.invite-share { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #ffffff; font-size: 14px; font-weight: 600; }
.frag-tabs, .device-tabs { display: flex; background: var(--surface); overflow: hidden; }
.frag-tabs { border: 1px solid var(--line); }
.frag-tabs span, .device-tabs span {
  position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px;
  color: var(--subtle); font-size: 10px; font-weight: 600; white-space: nowrap;
}
.frag-tabs .on, .device-tabs .on { color: var(--ink); font-weight: 800; }
.frag-tabs .on .icon, .device-tabs .on .icon { color: var(--accent); }
.frag-tabs .on::before, .device-tabs .on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }

/* ---------- plays ---------- */
.plays { padding-block: 56px; }
.plays-grid { display: grid; gap: 20px; grid-template-areas: "text" "pitch" "toggle"; }
.plays-text { grid-area: text; display: flex; flex-direction: column; gap: 20px; }
.plays-text p { color: var(--on-nav-muted); font-size: 17px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; }
.pitch-fig { grid-area: pitch; display: flex; flex-direction: column; gap: 12px; }
.pitch { overflow: hidden; border-radius: 16px; background: var(--turf-edge); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5); }
.pitch svg { display: block; width: 100%; height: auto; }
.pitch-step { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--on-nav-muted); font-size: 14px; }
.pitch-step b { color: #ffffff; font-weight: 600; }
.pitch-toggle { grid-area: toggle; justify-self: start; min-height: 44px; padding: 0 18px; font-size: 15px; }
.pitch-toggle .i-play, .plays.paused .pitch-toggle .i-pause { display: none; }
.plays.paused .pitch-toggle .i-play { display: block; }
/* The pitch's look is the app's (grao/app/globals.css), so the play here looks like the play in the app. */
.stripe-a { fill: var(--turf); } .stripe-b { fill: var(--turf2); } .edge { fill: var(--turf-edge); }
.chalk { fill: none; stroke: var(--chalk); stroke-width: .35; opacity: .9; }
.chalk-dot { fill: var(--chalk); opacity: .9; }
.net { fill: rgba(255, 255, 255, .14); stroke: var(--chalk); stroke-width: .3; }
.scored .their-net { animation: netflash 1.2s var(--ease-out); }
.actors { transition: opacity .4s var(--ease-out); }
.actors.out { opacity: 0; }
.player .body { stroke: rgba(0, 0, 0, .4); stroke-width: .28; }
.player.us .body { fill: var(--accent); } .player.them .body { fill: var(--hi-a); }
.player .num { font: 800 2.6px var(--font); text-anchor: middle; dominant-baseline: central; }
.player.us .num { fill: #ffffff; } .player.them .num { fill: var(--nav); }
.player .role { font: 800 1.9px var(--font); text-anchor: middle; fill: var(--chalk); paint-order: stroke; stroke: rgba(10, 30, 15, .55); stroke-width: .5px; }
.pitch .shadow { fill: rgba(0, 0, 0, .22); }
.ball { fill: #ffffff; stroke: #1d1d1d; stroke-width: .25; }
.ring { fill: none; stroke: var(--chalk); stroke-width: .3; stroke-dasharray: .9 .6; opacity: .9; }
.goal-txt {
  font: 800 13px var(--font); letter-spacing: -.3px; text-anchor: middle; dominant-baseline: central; fill: var(--chalk); opacity: 0;
  paint-order: stroke; stroke: rgba(10, 30, 15, .35); stroke-width: 1px; transform-box: fill-box; transform-origin: center;
}
.scored .goal-txt { animation: goalpop 1.6s var(--ease-out) forwards; }
@keyframes netflash { from { fill: rgba(255, 255, 255, .75); } to { fill: rgba(255, 255, 255, .14); } }
@keyframes goalpop { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.08); } 45% { transform: scale(1); } 100% { opacity: .92; transform: scale(1); } }

/* ---------- questions ---------- */
.faq-section { padding-block: 56px; }
.faq-grid { display: grid; gap: 16px; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin: 0 -12px; padding: 12px;
  border-radius: 12px; font-size: 17px; font-weight: 600; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--subtle); transition: transform .3s var(--ease-out), color .3s var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq details p { max-width: 40em; margin-bottom: 16px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq details[open] p { animation: reveal .35s var(--ease-out); }

/* ---------- closing band and footer ---------- */
.closing { padding-block: 56px; }
.closing-row { display: flex; flex-direction: column; gap: 24px; }
.closing-text { display: flex; flex-direction: column; gap: 12px; }
.closing-title { font-size: 48px; font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.closing-text p:last-child { color: var(--on-nav-muted); font-size: 18px; }
.closing .actions { flex-direction: column; }
.site-footer { padding-block: 24px 32px; color: var(--subtle); font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column-reverse; gap: 12px; }
.site-footer a { color: var(--muted); font-weight: 600; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); } 60% { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- tablets ---------- */
@media (min-width: 720px) {
  .wrap { width: min(1200px, 100% - 64px); }
  h2 { font-size: 36px; }
  .hero h1 { font-size: 56px; }
  .hero .actions .btn-primary { flex: none; }
  .hero-signin { display: inline-flex; }
  .facts { flex-direction: row; flex-wrap: wrap; gap: 12px 32px; }
  .features-panel { padding: 40px; border-radius: 32px; background: var(--surface); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .feature { border: 0; border-radius: 24px; background: var(--bg); }
  .faq summary { font-size: 19px; }
  .closing .actions { flex-direction: row; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- computers ---------- */
@media (min-width: 1024px) {
  .site-header .wrap { min-height: 80px; }
  .wordmark { gap: 12px; font-size: 24px; }
  .wordmark .logo-mark { width: 32px; height: 32px; }
  .site-nav { display: flex; margin-left: 24px; }
  .wide-only { display: inline-flex; }
  .narrow-only { display: none; }
  h2 { font-size: 48px; letter-spacing: -.035em; line-height: 1.05; }
  .section-head p { font-size: 20px; }

  .hero { padding-block: 56px 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "copy demo" "facts demo"; column-gap: 96px; row-gap: 28px; }
  .hero-copy { align-self: end; gap: 28px; }
  .hero h1 { font-size: 72px; }
  .lede { font-size: 20px; }
  .join-note { margin-top: -8px; font-size: 15px; }
  .facts { align-self: start; padding-top: 28px; }
  .demo { align-self: center; gap: 16px; }
  .demo figcaption { font-size: 14px; }
  .device {
    width: 360px; height: 700px; padding: 12px; border-radius: 48px; background: #1b0320;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  }
  .device-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: var(--bg); color: var(--ink); }
  .device-body { display: flex; flex-direction: column; flex-grow: 1; gap: 12px; padding: 16px 12px; }
  .device .device-top, .device .device-team, .device .last, .device .device-tabs { display: flex; }
  .device .device-title { display: block; }
  .device-tabs { flex: none; padding-bottom: 12px; border-top: 1px solid var(--line); }
  .device .nextup { box-shadow: var(--shadow-lg); }

  .how { padding-block: 96px 48px; }
  .how .wrap { gap: 40px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps li { flex-direction: column; gap: 12px; padding: 32px; border-radius: 24px; }
  .step-n { width: 44px; height: 44px; font-size: 20px; }
  .step-text { gap: 12px; }
  .step-text b { font-size: 24px; letter-spacing: -.02em; }
  .step-text span { font-size: 17px; line-height: 1.55; }

  .features { padding-block: 48px 96px; }
  .features-panel { gap: 40px; padding: 56px; }
  .features-panel .section-head { max-width: 760px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .feature { gap: 20px; padding: 28px; }
  .feature h3 { font-size: 22px; }
  .feature p { font-size: 16px; }

  .plays { padding-block: 96px; }
  .plays-grid { grid-template-columns: minmax(0, 1fr) 600px; grid-template-areas: "text pitch" "toggle pitch"; column-gap: 80px; row-gap: 24px; align-items: center; }
  .plays-text { align-self: end; gap: 24px; }
  .plays-text p { font-size: 19px; }
  .pitch-toggle { align-self: start; }
  .pitch { border-radius: 20px; }

  .faq-section { padding-block: 96px; }
  .faq-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 80px; }
  .faq details p { margin-bottom: 20px; font-size: 17px; }

  .closing { padding-block: 96px; }
  .closing-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .closing-title { font-size: 72px; }
  .closing-text p:last-child { font-size: 20px; }
  .site-footer { padding-block: 32px 40px; font-size: 15px; }
}
