:root {
  color-scheme: dark;
  --page: #100c20;
  --surface: #191330;
  --raised: #241b45;
  --line: #352b59;
  --ink: #f4f1ff;
  --muted: #aaa1c5;
  --purple: #9a7cff;
  --purple-strong: #7c5cf0;
  --yellow: #ffd166;
  --green: #51d6a7;
  --danger: #ff7b91;
  --shadow: 0 30px 90px rgba(3, 2, 10, 0.45);
  --mate-outline: #f4f1ff;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --glide: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(139, 108, 255, 0.17), transparent 28rem),
    radial-gradient(circle at 92% 80%, rgba(255, 209, 102, 0.08), transparent 24rem),
    var(--page);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--page);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; text-decoration: none; }
.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(7, 4, 22, 0.32);
}
.brand span { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav-links { display: flex; align-items: center; gap: 24px; }
.site-nav-links a { display: inline-flex; min-height: 44px; align-items: center; }
.site-nav .button { color: white; }
.nav-cta-narrow { display: none; }
.menu-button { display: none; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--purple-strong);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { background: var(--purple); transform: translateY(-2px); }
.button:disabled { background: #35295f; color: var(--muted); cursor: progress; transform: none; }
.button.secondary { border-color: var(--line); background: var(--raised); color: var(--ink); }

.eyebrow {
  margin: 0;
  color: var(--yellow);
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.04em; }
h1 { max-width: 680px; margin-top: 18px; font-size: clamp(48px, 7vw, 78px); line-height: 0.98; }

/* Hero ------------------------------------------------------------------ */

/* The hero glow and mates reach past the column. Clip them at the viewport
   edge, not the column edge, so focus rings in the column stay whole. */
#main { overflow-x: clip; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0 96px;
}
.hero-subline { max-width: 590px; margin: 24px 0 30px; color: var(--muted); font-size: 19px; line-height: 1.55; }

.waitlist { max-width: 540px; }
.waitlist-label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.waitlist-field { display: flex; gap: 10px; }
.waitlist-field input {
  min-width: 0;
  min-height: 52px;
  flex: 1;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.waitlist-field input::placeholder { color: #8c83ab; }
.waitlist-field input[aria-invalid="true"] { border-color: var(--danger); }
.waitlist-field .button { min-height: 52px; flex: 0 0 auto; }
.form-error { margin: 10px 0 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.waitlist-success {
  padding: 18px 20px;
  border: 1px solid rgba(81, 214, 167, 0.4);
  border-radius: 20px;
  background: rgba(81, 214, 167, 0.08);
  animation: success-in 420ms var(--spring);
}
.waitlist-success:focus { outline: none; }
.waitlist-success:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.waitlist-success p { margin: 0; color: var(--muted); line-height: 1.5; }
.waitlist-success .waitlist-success-title { margin-bottom: 4px; color: var(--green); font-size: 20px; font-weight: 800; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.store-button[aria-disabled="true"] { color: var(--muted); cursor: default; }
.store-button:not([aria-disabled="true"]):hover { border-color: var(--purple); }
.store-button-icon { display: grid; width: 22px; height: 22px; place-items: center; }
.store-button-icon svg { width: 22px; height: 22px; }

/* Hero scene */

.hero-visual {
  position: relative;
  width: min(500px, 100%);
  margin-inline: auto;
  padding: 58px 0 24px;
}
.hero-visual::before {
  position: absolute;
  inset: 0 -10% 10%;
  background: radial-gradient(closest-side, rgba(139, 108, 255, 0.3), transparent);
  content: "";
}
.hero-stage { position: absolute; inset: 0; pointer-events: none; }
.hero-stage .stage-goal { position: absolute; top: 8px; right: 2%; left: 2%; color: var(--ink); }
.goal { display: block; width: 100%; height: auto; }

.stage-mate { position: absolute; z-index: 3; width: 108px; }
.hero-stage .stage-mate--left { bottom: 0; left: -8px; }
.hero-stage .stage-mate--right { right: -8px; bottom: 0; }

.phone {
  position: relative;
  z-index: 2;
  width: min(310px, 72%);
  margin-inline: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.phone-inner { display: grid; gap: 10px; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 0; }
.phone-group { font-size: 13px; font-weight: 700; }
.phone-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  color: var(--yellow);
  font: 700 10px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.phone-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 20px;
  background: var(--raised);
}
.phone-team { font-size: 14px; font-weight: 700; }
.phone-team:last-child { text-align: right; }
.phone-score { font: 700 24px "JetBrains Mono", monospace; }
.phone-label { margin: 2px 4px 0; color: var(--muted); font-size: 11px; font-weight: 600; }

.reveal-list, .table-rows { margin: 0; padding: 0; list-style: none; }
.reveal-list { display: grid; gap: 6px; }
.reveal-row {
  display: grid;
  grid-template-columns: 26px 1fr auto 34px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}
.reveal-row.is-you { background: rgba(124, 92, 240, 0.22); }
.avatar {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--page);
  font-size: 12px;
  font-weight: 800;
}
.avatar--violet { background: var(--purple); color: white; }
.avatar--green { background: var(--green); }
.avatar--pink { background: #ff9cc4; }
.avatar--gold { background: var(--yellow); }
.reveal-name { font-weight: 600; }
.reveal-roll { position: relative; display: grid; font: 700 13px "JetBrains Mono", monospace; text-align: right; }
.reveal-roll > span, .reveal-chip > span { grid-area: 1 / 1; transition: opacity 260ms ease, transform 420ms var(--spring); }
.reveal-lock { color: var(--muted); font-size: 10px; letter-spacing: 0.04em; opacity: 0; }
.reveal-points {
  justify-self: end;
  color: var(--green);
  font: 700 12px "JetBrains Mono", monospace;
  transition: opacity 240ms ease, transform 420ms var(--spring);
  transition-delay: calc(var(--order) * 120ms);
}
.reveal-points.is-exact { padding: 2px 6px; border-radius: 999px; background: rgba(81, 214, 167, 0.16); }
.reveal-points.is-miss { color: var(--muted); }

[data-phase="before"] .reveal-row .reveal-value { opacity: 0; transform: translateY(8px) scale(0.8); }
[data-phase="before"] .reveal-row .reveal-lock { opacity: 1; }
[data-phase="before"] .reveal-points,
[data-phase="revealed"] .reveal-points { opacity: 0; transform: scale(0.3); }
[data-phase="revealed"] .reveal-row { animation: reveal-flash 700ms ease-out; }

.phone-table { padding: 10px 10px 4px; border: 1px solid var(--line); border-radius: 18px; }
.phone-table-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--muted);
  font: 700 10px "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.table-rows { position: relative; height: 128px; }
.table-row {
  position: absolute;
  top: calc((var(--rank) - 1) * 32px);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  height: 30px;
  counter-reset: rank var(--rank);
  font-size: 13px;
  transition: top 800ms var(--glide);
}
.table-row.is-you { font-weight: 800; }
.table-row.is-you .table-name { color: var(--purple); }
.table-rank::before { color: var(--muted); content: counter(rank); font: 700 11px "JetBrains Mono", monospace; }
.table-points { font: 700 13px "JetBrains Mono", monospace; }

.full-time-board {
  position: absolute;
  z-index: 4;
  top: 6px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  box-shadow: 0 14px 34px rgba(3, 2, 10, 0.45);
  transform: translateX(-50%);
  transition: opacity 260ms ease, transform 520ms var(--spring);
  white-space: nowrap;
}
.full-time-board strong { font: 700 20px "JetBrains Mono", monospace; }
.full-time-board[data-state="hidden"] { opacity: 0; transform: translate(-50%, -18px) scale(0.9); }
.whistle {
  width: 14px;
  height: 14px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 7px -4px 0 -3px var(--yellow);
}

/* Speech bubbles and rolling scores */

.speech-bubble {
  position: absolute;
  z-index: 5;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  box-shadow: 0 12px 28px rgba(3, 2, 10, 0.4);
  transition: opacity 240ms ease, transform 420ms var(--spring);
}
.speech-bubble::after {
  position: absolute;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  background: var(--raised);
  content: "";
}
.speech-bubble--left { transform-origin: bottom left; }
.speech-bubble--left::after { left: 26px; transform: rotate(45deg) skew(12deg, 12deg); }
.speech-bubble--right { transform-origin: bottom right; }
.speech-bubble--right::after { right: 26px; transform: rotate(45deg) skew(-12deg, -12deg); }
.hero-stage .speech-bubble--left { bottom: 150px; left: 0; }
.hero-stage .speech-bubble--right { right: 0; bottom: 150px; }
.hero-stage .speech-bubble:not([data-state]) { opacity: 0; }
.speech-bubble[data-state="hidden"] { opacity: 0; transform: scale(0.3); }
.speech-bubble[data-state="shout"] { border-color: var(--danger); transform: scale(1.14) rotate(-2deg); }
.speech-bubble--right[data-state="shout"] { transform: scale(1.14) rotate(2deg); }
.speech-bubble[data-state="gone"] { opacity: 0; transform: scale(1.3); }

.rolling-score { display: inline-flex; align-items: center; font: 700 24px/1 "JetBrains Mono", monospace; }
.rolling-dash { margin: 0 5px; color: var(--muted); }
.rolling-digit { display: inline-block; height: 1em; overflow: hidden; }
.rolling-digit > span {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--steps) * -1em));
  transition: transform 1s cubic-bezier(0.15, 0.85, 0.25, 1);
}
.rolling-digit > span > span { height: 1em; }
[data-state="hidden"] .rolling-digit > span { transform: none; transition: none; }
.shout-mark { display: none; color: var(--danger); }
[data-state="shout"] .shout-mark { display: inline; }

.points-pop {
  position: absolute;
  z-index: 6;
  color: var(--green);
  font: 700 22px "JetBrains Mono", monospace;
  text-shadow: 0 4px 18px rgba(81, 214, 167, 0.45);
  transition: opacity 260ms ease, transform 520ms var(--spring);
}
.points-pop--miss { color: var(--muted); text-shadow: none; }
.points-pop[data-state="hidden"] { opacity: 0; transform: translateY(12px) scale(0.3); }
.hero-stage .points-pop--win { bottom: 172px; left: 16px; }
.hero-stage .points-pop--miss { right: 44px; bottom: 164px; transition-delay: 200ms; }

/* Mates: poses map to limb angles and faces */

.mate { display: block; width: 100%; height: auto; overflow: visible; }
.mate--flip { transform: scaleX(-1); }
.m-arm { transform: rotate(var(--arm, 63deg)); transition: transform 450ms var(--spring); }
.m-back-arm { opacity: 0; transform: rotate(var(--back-arm, 63deg)); transition: transform 450ms var(--spring), opacity 150ms; }
.m-head { transform: rotate(var(--lean, 0deg)); transition: transform 450ms var(--spring); }
.m-brows, .m-mouth { opacity: 0; }
.m-crown { transform: translateY(calc(var(--crown-lift, 18px) * -1)); transition: transform 1300ms var(--spring); }

.mate[data-pose="idle"] .m-brows--calm, .mate[data-pose="idle"] .m-mouth--smile,
.mate[data-pose="argue"] .m-brows--cross, .mate[data-pose="argue"] .m-mouth--cross,
.mate[data-pose="shout"] .m-brows--cross, .mate[data-pose="shout"] .m-mouth--open,
.mate[data-pose="celebrate"] .m-brows--calm, .mate[data-pose="celebrate"] .m-mouth--open,
.mate[data-pose="sulk"] .m-brows--sad, .mate[data-pose="sulk"] .m-mouth--sad,
.mate[data-pose="proud"] .m-brows--calm, .mate[data-pose="proud"] .m-mouth--grin,
.mate[data-pose="reach"] .m-brows--calm, .mate[data-pose="reach"] .m-mouth--grin { opacity: 1; }

.mate[data-pose="argue"], .mate[data-pose="shout"] { --arm: -20deg; }
.mate[data-pose="celebrate"] { --arm: -66deg; --back-arm: -112deg; }
.mate[data-pose="celebrate"] .m-back-arm { opacity: 1; }
.mate[data-pose="sulk"] { --arm: 72deg; --lean: 7deg; }
.mate[data-pose="proud"] { --arm: -40deg; }
.mate[data-pose="reach"] { --arm: -69deg; --lean: -8deg; }
.mate[data-talk] .m-mouth--open { animation: talk 150ms ease-in-out infinite alternate; }
.mate[data-shake] .m-head { animation: head-shake 140ms ease-in-out 6 alternate; }
.stage-mate.is-jumping { animation: jump 1000ms ease-out; }

.is-resetting, .is-resetting * { transition: none !important; }

/* Social proof ----------------------------------------------------------- */

.proof { padding: 0 0 80px; }
.proof-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0 0 24px; }
.proof-count strong { color: var(--yellow); font: 700 clamp(44px, 7vw, 64px) "JetBrains Mono", monospace; letter-spacing: -0.04em; }
.proof-count span { color: var(--muted); font-size: 18px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-card { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, 0.035); }
.quote-card blockquote { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.45; }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* How it works ----------------------------------------------------------- */

.steps-section, .why-section, .competitions-section, .faq-section { padding: 90px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 650px; margin-bottom: 38px; }
.section-heading h2 { margin-top: 12px; font-size: clamp(34px, 5vw, 50px); line-height: 1.04; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.55; }
.section-heading a { color: #cbbbff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 16px 16px 24px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, 0.035); }
.step h3 { margin: 10px 0 8px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; }
.step-number { display: inline-block; margin-top: 18px; color: var(--yellow); font: 800 13px "JetBrains Mono", monospace; letter-spacing: 0.1em; }
.step--payoff {
  border-color: rgba(255, 209, 102, 0.55);
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.14), rgba(124, 92, 240, 0.16) 60%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 60px rgba(255, 209, 102, 0.08);
}
.step--payoff h3 { color: var(--yellow); }

.step-visual {
  position: relative;
  display: grid;
  height: 160px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 110%, rgba(139, 108, 255, 0.3), transparent 70%), var(--surface);
}
.step-visual--stage .stage-mate { bottom: -26px; left: 18px; width: 96px; }
.step-visual--stage .speech-bubble--left { top: 22px; left: 104px; transform-origin: bottom left; }
.step-visual--stage .speech-bubble--left::after { left: 12px; }
.step--payoff .step-visual--stage .stage-mate { left: 50%; width: 100px; margin-left: -50px; }
.step--payoff .points-pop { top: 30px; right: 18px; transition-delay: 1000ms; }
.step--payoff[data-phase="before"] .m-crown { --crown-lift: 56px; }
.step--payoff[data-phase="before"] .points-pop { opacity: 0; transform: translateY(12px) scale(0.3); transition-delay: 0ms; }

.invite-pill {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border: 1px dashed rgba(255, 209, 102, 0.5);
  border-radius: 16px;
  background: var(--raised);
  text-align: center;
}
.invite-pill strong { font: 700 22px "JetBrains Mono", monospace; letter-spacing: 0.12em; }
.step-visual .invite-pill { margin-bottom: 34px; }
.joiners { position: absolute; bottom: 14px; display: flex; align-items: center; }
.joiners .avatar {
  width: 32px;
  height: 32px;
  margin-left: -6px;
  border: 2px solid var(--surface);
  transition: transform 420ms var(--spring), opacity 200ms;
  transition-delay: calc(200ms + var(--order) * 220ms);
}
.joiner-count { margin-left: 10px; color: var(--green); font-size: 13px; font-weight: 700; transition: opacity 300ms 1000ms; }
[data-phase="before"] .joiners .avatar { opacity: 0; transform: translateY(14px) scale(0.2); transition-delay: 0ms; }
[data-phase="before"] .joiner-count { opacity: 0; transition-delay: 0ms; }

.kickoff-chip {
  position: absolute;
  top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  color: var(--yellow);
  font: 700 11px "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[data-phase="after"] .kickoff-chip { animation: kickoff-pulse 700ms ease-out; }
.reveal-chips { display: grid; grid-template-columns: repeat(2, auto); gap: 8px; margin-top: 30px; }
.reveal-chip {
  display: grid;
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  font: 700 16px "JetBrains Mono", monospace;
  text-align: center;
}
.reveal-chip .reveal-lock { font-size: 16px; opacity: 0; }
[data-phase="before"] .reveal-chip .reveal-value { opacity: 0; transform: scale(0.6); }
[data-phase="before"] .reveal-chip .reveal-lock { opacity: 1; }
[data-phase="after"] .reveal-chip { animation: reveal-flash 800ms ease-out; }

/* Why ------------------------------------------------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, 0.035); }
.feature-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--raised); color: var(--yellow); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 30px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Competitions and scoring --------------------------------------------- */

.competitions-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 48px; }
.league-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.league-chips li {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  font-weight: 700;
}
.league-chips .league-chip--custom { border-style: dashed; border-color: rgba(255, 209, 102, 0.5); background: transparent; color: var(--yellow); }

.scoring-panel { padding: 28px; border: 1px solid #493975; border-radius: 28px; background: linear-gradient(145deg, #2b2052, #1c1636); }
.scoring-panel h3 { font-size: 26px; }
.scoring-intro { margin: 8px 0 20px; color: var(--muted); line-height: 1.5; }
.scoring-bonus { margin: 18px 0 0; color: var(--muted); line-height: 1.5; }
.scoring-bonus strong { color: var(--green); font-family: "JetBrains Mono", monospace; }
.scoring-ladder { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.scoring-ladder li {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 12, 32, 0.45);
  transition: opacity 300ms ease, transform 500ms var(--spring);
  transition-delay: calc(var(--order) * 110ms);
}
.scoring-ladder li > span:last-child { display: grid; gap: 2px; }
.scoring-ladder li > span:last-child span { color: var(--muted); font-size: 14px; }
.scoring-points { color: var(--green); font: 700 13px "JetBrains Mono", monospace; }
.scoring-points strong { font-size: 26px; }
.scoring-points.is-exact { text-shadow: 0 4px 18px rgba(81, 214, 167, 0.4); }
.scoring-points.is-miss { color: var(--muted); }
.scoring-panel[data-phase="before"] .scoring-ladder li { opacity: 0; transform: translateX(-16px); transition-delay: 0ms; }

/* FAQ ------------------------------------------------------------------- */

.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; letter-spacing: normal; }
.faq-question {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}
.faq-icon { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); }
.faq-icon::before, .faq-icon::after {
  position: absolute;
  top: 13px;
  left: 8px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  content: "";
  transition: transform 260ms var(--spring);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-answer p { max-width: 640px; margin: 0; padding: 0 44px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Final call to action --------------------------------------------------- */

.final-cta {
  position: relative;
  margin-bottom: 90px;
  padding: 0 40px 52px;
  border: 1px solid #493975;
  border-radius: 32px;
  background: linear-gradient(135deg, #2b2052, #1c1636);
  text-align: center;
}
.final-cta h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
.final-cta > p { margin: 14px auto 28px; color: var(--muted); font-size: 17px; }
.final-cta-stage { position: relative; height: 200px; max-width: 420px; margin: -40px auto 28px; }
.final-cta-stage .stage-goal { position: absolute; top: 44px; right: 14%; left: 14%; color: var(--ink); }
.final-cta-stage .stage-mate { bottom: 0; width: 100px; }
.final-cta-stage .stage-mate--left { left: 8%; }
.final-cta-stage .stage-mate--right { right: 8%; }
.final-cta-stage .speech-bubble--left { top: 12px; left: 0; }
.final-cta-stage .speech-bubble--right { top: 12px; right: 0; }
.waitlist--centered { margin-inline: auto; text-align: left; }

/* Footer ---------------------------------------------------------------- */

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand strong { color: var(--ink); font-size: 16px; }
.footer-brand p { margin: 6px 0 0; }
.footer-legal { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Legal, support and blog pages ----------------------------------------- */

.legal { width: min(780px, calc(100% - 40px)); margin: 70px auto 110px; }
.legal h1 { font-size: clamp(42px, 7vw, 64px); }
.legal .updated { margin: 14px 0 40px; color: var(--muted); }
.notice { margin: 24px 0; padding: 16px 18px; border: 1px solid rgba(255, 209, 102, 0.34); border-radius: 16px; background: rgba(255, 209, 102, 0.08); color: #f6df9d; line-height: 1.5; }
.legal h2 { margin: 40px 0 12px; font-size: 25px; }
.legal h3 { margin: 24px 0 8px; font-size: 18px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal li + li { margin-top: 7px; }
.legal a { color: #cbbbff; }
.legal .button { color: white; }
.legal .button.secondary { color: var(--ink); }
.legal strong { color: var(--ink); }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.post-box { margin: 32px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.post-box h2 { margin: 0 0 10px; font-size: 21px; }
.post-box ul { margin: 0; padding-left: 20px; }
.post-box p:last-child { margin-bottom: 0; }
.post-box--cta { border-color: var(--purple-strong); background: var(--raised); }
.post-box--cta .eyebrow { margin: 0 0 8px; }
.post-hook { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); }
.legal .post-hook p { color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.5; }
.post-list { padding: 0; list-style: none; }
.post-list h2 { margin: 0 0 6px; font-size: 22px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--purple); }
.post-list p { margin: 0; }
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbbbff;
  cursor: pointer;
  text-decoration: underline;
}
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.support-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.support-card h2 { margin: 0 0 8px; font-size: 20px; }
.support-card p { margin: 0 0 18px; font-size: 14px; }

.analytics-consent {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.analytics-consent strong { font-size: 17px; }
.analytics-consent p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.analytics-consent p a { color: #cbbbff; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.analytics-consent-actions .button { min-height: 44px; cursor: pointer; }

/* Motion ---------------------------------------------------------------- */

@keyframes talk { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes head-shake { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes jump {
  0%, 40%, 70%, 100% { transform: translateY(0); }
  20% { transform: translateY(-28px); }
  55% { transform: translateY(-14px); }
  84% { transform: translateY(-5px); }
}
@keyframes reveal-flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(255, 209, 102, 0); }
}
@keyframes kickoff-pulse { 40% { transform: scale(1.18); } }
@keyframes success-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }

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

/* Layout ---------------------------------------------------------------- */

@media (max-width: 1040px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav { gap: 10px; }
  .site-nav a:not(.button) { display: none; }
  .nav-cta { min-height: 44px; padding: 0 16px; white-space: nowrap; }
  .nav-cta-wide { display: none; }
  .nav-cta-narrow { display: inline; }
  .menu-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--raised);
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 200ms ease, background 200ms ease;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav-links {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .site-nav-links.is-open { display: flex; }
  .site-nav .site-nav-links a { display: flex; padding: 0 14px; border-radius: 12px; color: var(--ink); font-size: 16px; }
  .site-nav .site-nav-links a:hover { background: var(--raised); }

  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; }
  .competitions-layout, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .support-grid { grid-template-columns: 1fr; }
  .analytics-consent { align-items: stretch; flex-direction: column; }
  .analytics-consent-actions { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .brand span { font-size: 17px; }
  h1 { font-size: 46px; }
  .hero-subline { font-size: 17px; }
  .waitlist-field { flex-direction: column; }
  .waitlist-field .button { width: 100%; }
  .store-button { flex: 1 1 100%; justify-content: center; }
  .hero-visual { padding-top: 54px; }
  .phone { width: 68%; padding: 10px; border-radius: 28px; }
  .phone-match { padding: 10px; }
  .phone-score { font-size: 20px; }
  .reveal-row { grid-template-columns: 22px 1fr auto 30px; gap: 6px; padding: 0 8px; font-size: 12px; }
  .avatar { width: 22px; height: 22px; font-size: 11px; }
  .stage-mate { width: 72px; }
  .hero-stage .stage-mate--left { left: -10px; }
  .hero-stage .stage-mate--right { right: -10px; }
  .hero-stage .speech-bubble--left, .hero-stage .speech-bubble--right { bottom: 118px; }
  .points-pop { font-size: 16px; }
  .hero-stage .points-pop--win { bottom: 134px; left: 0; }
  .hero-stage .points-pop--miss { right: 20px; bottom: 132px; }
  .speech-bubble { padding: 7px 10px; }
  .rolling-score { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps-section, .why-section, .competitions-section, .faq-section { padding: 64px 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .scoring-panel { padding: 20px; }
  .scoring-ladder li { grid-template-columns: 62px 1fr; }
  .faq-question { font-size: 17px; }
  .faq-answer p { padding-right: 0; }
  .final-cta { padding: 0 18px 36px; }
  .final-cta-stage { height: 170px; }
  .final-cta-stage .stage-mate { width: 84px; }
  .final-cta-stage .stage-mate--left { left: 2%; }
  .final-cta-stage .stage-mate--right { right: 2%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .analytics-consent-actions { flex-direction: column-reverse; }
}

/* On the smallest phones the landing header cannot fit the name beside the
   call to action and menu. The icon stays, and screen readers hear the name. */
@media (max-width: 360px) {
  #top .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
