/* Got Cooked landing page. One deliberate dark look (the app is dark-only).
   Tokens mirror brand/README.md colour roles. */
:root {
  --stage: #08090B; --surface: #191B20; --raised: #252830; --line: #30333B; --control: #6B6F7B;
  --heat: #FF5A1F; --butter: #F8D66D; --crust: #5A2E12; --crust-light: #C68B45;
  --lilac: #C5AEFF; --aqua: #79DFD1; --danger: #FF8A80;
  --text: #FFFFFF; --muted: #A6A9B2; --on-bright: #08090B;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--stage); color: var(--text); font: 16px/1.55 var(--body); margin: 0; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 6vw, 48px); line-height: 1.05; margin-top: 10px; }
h3 { font-size: 21px; line-height: 1.2; }
ol, ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.muted { color: var(--muted); }
.eyebrow { font: 700 12px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }
section { padding-block: clamp(48px, 9vw, 80px); }

/* Icons: one stroke family for controls. */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 32px; height: 32px; color: var(--aqua); }

/* Focus and controls */
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--butter); color: var(--on-bright); padding: 10px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; border: 0; font: 700 16px var(--body); cursor: pointer; text-decoration: none; transition: transform 100ms var(--ease-out), background-color 150ms; }
.btn:active { transform: scale(.97); }
.btn:disabled { cursor: progress; opacity: .7; }
.btn-heat { background: var(--heat); color: var(--on-bright); }
.btn-stage { background: var(--stage); color: var(--text); }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--control); background: var(--surface); color: var(--text); cursor: pointer; transition: transform 100ms var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .4; cursor: default; transform: none; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: rgba(8, 9, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup-tile { width: 36px; height: 36px; border-radius: 9px; background: var(--heat); display: grid; place-items: center; }
.lockup-tile svg { width: 26px; height: 24px; fill: var(--butter); }
.lockup-word { font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.nav { display: flex; gap: 20px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 8px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-block: clamp(32px, 7vw, 64px) clamp(48px, 9vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 12vw, 104px); line-height: .92; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--heat); }
.sub { font-size: clamp(18px, 2.4vw, 20px); color: var(--muted); max-width: 30ch; margin-top: 18px; }
.age-pill { background: var(--butter); color: var(--on-bright); border-radius: 8px; padding: 3px 7px; letter-spacing: .04em; }
.waitlist { margin-top: 28px; max-width: 480px; }
.waitlist-closed { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--muted); }
.waitlist-closed .ic { color: var(--butter); margin-top: 2px; }
.waitlist-closed b { color: var(--text); }
.wait { display: grid; gap: 12px; }
.field-label { font-weight: 700; font-size: 14px; }
.wait-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wait-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; border-radius: 16px; border: 1px solid var(--control); background: var(--surface); color: var(--text); padding: 0 16px; font: 16px var(--body); }
.wait-row input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--heat); margin: 0; }
.fine { font-size: 13px; color: var(--muted); }
.status { display: flex; gap: 8px; align-items: flex-start; min-height: 1.5em; font-weight: 500; }
.status[data-tone="ok"] { color: var(--aqua); }
.status[data-tone="error"] { color: var(--danger); }
.status .ic { margin-top: 2px; }

.phone-zone { margin: 0; display: flex; justify-content: center; }
.phone { width: min(280px, 100%); aspect-ratio: 9 / 19; border-radius: 40px; background: #000; border: 8px solid #1d1f25; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(255, 90, 31, .18); }
.scene { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.5), transparent 25%, transparent 45%, rgba(0,0,0,.92)),
  repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.75) 46px 49px, transparent 49px 120px),
  linear-gradient(#3a3f47, #24272d); }
.car { position: absolute; left: 22%; top: 40%; width: 56%; height: 14%; background: #2f5fc4; border-radius: 22px 22px 10px 10px; transform: rotate(-8deg); }
.car::before { content: ""; position: absolute; left: 18%; top: -38%; width: 60%; height: 50%; background: #26324a; border-radius: 16px 16px 4px 4px; }
.car::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -14%; height: 28%; background: radial-gradient(circle at 15% 50%, #111 0 40%, transparent 41%), radial-gradient(circle at 85% 50%, #111 0 40%, transparent 41%); }
.sample-tag, .sample { font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--butter); border: 1.5px solid currentColor; border-radius: 7px; padding: 4px 6px; }
.phone .sample-tag { position: absolute; top: 14px; left: 14px; background: #141519e8; z-index: 2; }
.ph-top { position: absolute; top: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; font: 700 13px var(--body); }
.ph-top span:last-child { color: #cfd0d4; font-weight: 500; }
.roasts { position: absolute; left: 10px; right: 10px; top: 52px; display: grid; gap: 8px; }
.r { background: rgba(25,27,32,.94); border: 1px solid #2B2E38; border-radius: 16px; padding: 9px 11px; font-size: 12px; line-height: 1.35; }
.r small { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 2px; }
.ph-meta { position: absolute; left: 14px; right: 70px; bottom: 22px; display: grid; gap: 6px; font-size: 12px; }
.ph-meta b { font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 10px; font: 700 11px var(--body); width: max-content; background: #141519e8; }
.chip.heat { color: var(--butter); }
.chip .ic { width: 12px; height: 12px; }
.ph-cta { position: absolute; right: 12px; bottom: 22px; display: grid; justify-items: center; gap: 2px; font-size: 11px; }
.ph-cta i { width: 44px; height: 44px; border-radius: 50%; background: var(--heat); display: grid; place-items: center; }
.ph-cta svg { width: 18px; height: 24px; fill: var(--stage); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.step { background: var(--surface); border-radius: 24px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.step .vis { height: 120px; border-radius: 16px; background: var(--raised); display: grid; place-items: center; overflow: hidden; }
.step .n { font: 700 13px var(--body); color: var(--heat); }
.shutter { width: 64px; height: 64px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.shutter::after { content: ""; width: 46px; height: 46px; border-radius: 50%; background: var(--heat); }
.heat-seg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0 8px; }
.heat-seg span { padding: 8px 10px; border-radius: 12px; background: var(--surface); font: 700 12px var(--body); }
.heat-seg span.on { background: var(--heat); color: var(--on-bright); }
.stamp { font: 800 15px var(--display); color: var(--butter); border: 3px solid var(--butter); border-radius: 12px; padding: 6px 10px; transform: rotate(-10deg); }

/* Roast list: native horizontal scroll, snap, buttons and keyboard. No auto-motion. */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pager { display: flex; gap: 8px; }
.sample-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--butter); }
.sample-note .ic { width: 18px; height: 18px; }
.wall { margin-top: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--control) transparent; border-radius: 22px; padding-bottom: 12px; }
.track { display: flex; gap: 14px; width: max-content; }
.card { width: min(300px, 78vw); scroll-snap-align: start; background: var(--surface); border: 1px solid #2B2E38; border-radius: 22px; padding: 18px; display: grid; gap: 10px; align-content: start; position: relative; }
.card .tag { font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.card p { font-size: 18px; line-height: 1.4; font-weight: 500; }
.card footer { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.card .votes { display: inline-flex; align-items: center; gap: 4px; }
.card .votes .ic { width: 14px; height: 14px; }
.card .sample { position: absolute; top: 16px; right: 16px; }
.hint { font-size: 13px; margin-top: 8px; }

/* Leaderboard */
.lb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lb-copy { margin-top: 14px; max-width: 46ch; }
.board { margin: 0; display: grid; gap: 10px; }
.board-cap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 14px 16px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.row.first { background: var(--butter); color: var(--on-bright); }
.row .rk { font: 800 20px var(--display); width: 28px; }
.row .who { flex: 1 1 140px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.row .title { font-weight: 500; }
.row .avg { font-size: 14px; opacity: .85; }
.row.you { border: 1px dashed var(--control); background: transparent; margin: 0; }
.crown { width: 30px; height: 20px; fill: var(--crust-light); stroke: var(--crust); stroke-width: 3; stroke-linejoin: round; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.rule { border: 1px solid var(--control); border-radius: 24px; padding: 24px; display: grid; gap: 10px; align-content: start; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 760px; }
details { background: var(--surface); border-radius: 18px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 20px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; border-radius: 18px; }
summary::-webkit-details-marker { display: none; }
summary .ic { transition: transform 200ms var(--ease-out); }
details[open] summary .ic { transform: rotate(45deg); }
details p { padding: 0 20px 18px; color: var(--muted); max-width: 65ch; }

/* Final */
.final { text-align: center; background: var(--heat); color: var(--on-bright); border-radius: 36px; padding: 56px 24px; display: grid; justify-items: center; gap: 18px; }
.final h2 { font-size: clamp(34px, 7vw, 64px); margin: 0; }
.final-mark { width: 88px; height: 82px; }
footer.site { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.foot .company { flex-basis: 100%; order: 3; margin: 0; font-size: 0.8rem; opacity: 0.7; }
.legal { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.legal a { padding-block: 10px; }
.legal .pending { padding-block: 10px; }
.legal .pending small { font-size: 12px; opacity: .8; }

@media (max-width: 860px) {
  .hero-grid, .lb { grid-template-columns: minmax(0, 1fr); }
  .steps, .rules { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
}

/* ------------------------------------------------------------ Motion
   Every animation runs once, on a trigger, and ends in its resting state.
   No idle loops. Spec: brand/README.md § Motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .r { opacity: 0; transform: translateY(-12px); }
  .js .phone.play .r { animation: roast-in 320ms var(--ease-out) forwards; }
  .js .phone.play .r:nth-child(2) { animation-delay: 400ms; }
  .js .phone.play .r:nth-child(3) { animation-delay: 800ms; }
  .js .step.play .shutter::after { animation: snap 280ms var(--ease-out) 200ms both; }
  .js .step.play .heat-seg .on { animation: select 360ms var(--ease-back) 200ms both; }
  .js .step .stamp { opacity: 0; }
  .js .step.play .stamp { animation: stamp 700ms var(--ease-back) 200ms forwards; }
}
@keyframes roast-in { to { opacity: 1; transform: none; } }
@keyframes snap { 0%, 100% { transform: scale(1); } 45% { transform: scale(.78); } }
@keyframes select { 0% { transform: scale(.9); background: var(--surface); color: var(--text); } 100% { transform: scale(1); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-10deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-10deg) scale(.92); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
