/* The waitlist page (ADR 0037). Same palette and feel as the app (ADR 0036):
   cream / pure black, brand orange, gold only for rewards, Rubik, chunky cards. */

@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("/static/fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 600; font-display: swap; src: url("/static/fonts/rubik-600.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("/static/fonts/rubik-800.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ground: #FFE9BD; --card: #FFF6E3; --edge: #EBCB8F; --line: #F3E2BF; --track: #F3D9A4;
  --text: #2B2118; --muted: #6B5B49; --brand: #E14705; --button: #D44204; --on-button: #FFFFFF;
  --lip: #A33203; --gold: #FFB800; --gold-text: #8A5A00; --outline: #2B2118;
  --chip: #FBD3B5; --chip-text: #7A2802; --danger: #B3261E; --wa: #0F7A40; --wa-lip: #0B5E31;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000; --card: #141414; --edge: #2A2A2A; --line: #1F1F1F; --track: #262626;
    --text: #FFFFFF; --muted: #A6A6A6; --lip: #8F2C02; --gold-text: #FFB800; --outline: #262626;
    --chip: #2A1206; --chip-text: #FFB48A; --danger: #FF6B5E; --wa-lip: #07401F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 17px/1.5 "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* --- header ------------------------------------------------------------------------- */
.top { max-width: 1120px; margin: 0 auto; padding: 18px 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 38px; height: 22px; }
.mark-track { fill: none; stroke: var(--text); stroke-width: 3.5; }
.mark-knob { fill: var(--brand); }
.wordmark { font-weight: 800; letter-spacing: 0.06em; font-size: 17px; }
.wordmark.small { font-size: 14px; }

/* --- cards and buttons (the app's chunky look: 2 px edge, thicker bottom lip) --------- */
.card {
  background: var(--card); border: 2px solid var(--edge); border-bottom-width: 5px;
  border-radius: var(--radius); padding: 20px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 16px;
  background: var(--button); color: var(--on-button); box-shadow: 0 5px 0 var(--lip);
  font: 800 19px/1 "Rubik", system-ui, sans-serif; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: transform 80ms ease, box-shadow 80ms ease;
}
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.whatsapp { background: var(--wa); box-shadow: 0 5px 0 var(--wa-lip); }
.button.ghost { background: transparent; color: var(--text); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); }
.small-button {
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--edge);
  background: var(--card); color: var(--text); font: 600 15px/1 "Rubik", system-ui, sans-serif;
  box-shadow: 0 3px 0 var(--edge); cursor: pointer; white-space: nowrap;
}
.small-button.danger { color: var(--danger); }
.text-button { background: none; border: 0; padding: 8px 0; color: var(--muted); font: 400 14px "Rubik", system-ui, sans-serif; text-decoration: underline; cursor: pointer; }

/* --- hero --------------------------------------------------------------------------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; gap: 32px; padding: 28px 0 24px; }
.hero-copy { display: grid; gap: 18px; max-width: 560px; }
.chip {
  justify-self: start; background: var(--chip); color: var(--chip-text); border-radius: 999px;
  padding: 6px 12px; font-weight: 600; font-size: 14px;
}
h1 { font-size: clamp(38px, 10vw, 64px); }
.hl { color: var(--brand); display: block; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }

.join form { display: grid; gap: 12px; }
.label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="email"], .link {
  width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--edge);
  background: var(--ground); color: var(--text); font: 400 18px "Rubik", system-ui, sans-serif;
}
input[type="email"]:focus, .link:focus { border-color: var(--brand); outline: none; }
input[aria-invalid="true"] { border-color: var(--danger); }
.hint, .fine { font-size: 14px; color: var(--muted); }
.trains legend { padding: 0; }
.trains { border: 0; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
  border: 2px solid var(--edge); border-bottom-width: 4px; font-weight: 600; background: var(--card);
}
.choice input:checked + span { background: var(--chip); color: var(--chip-text); border-color: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.error { color: var(--danger); font-weight: 600; font-size: 15px; }
.offer {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; font-size: 15px;
  background: color-mix(in srgb, var(--gold) 22%, var(--card)); border: 2px solid var(--gold);
}
.offer strong, .founding strong { color: var(--gold-text); }
.count { margin-top: 12px; font-weight: 600; text-align: center; }
.notice { font-weight: 600; }

/* --- after joining ------------------------------------------------------------------ */
.status { position: relative; display: grid; gap: 12px; overflow: hidden; }
.stamp {
  position: absolute; right: 14px; top: 16px; transform: rotate(-8deg);
  border: 3px solid var(--brand); color: var(--brand); border-radius: 10px; padding: 4px 10px;
  font-weight: 800; letter-spacing: 0.08em; font-size: 14px; animation: stamp 420ms cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes stamp { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.status-title { font-weight: 800; font-size: 28px; }
.spot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.spot-label { font-weight: 600; color: var(--muted); }
.spot-number { font-weight: 800; font-size: 44px; color: var(--brand); line-height: 1; }
.spot-of { color: var(--muted); }
.status-line { font-weight: 600; }
.friends { color: var(--muted); }
.share { display: grid; gap: 10px; padding-top: 6px; border-top: 2px solid var(--line); }
.share-pitch { font-weight: 600; padding-top: 6px; }
.link-row { display: flex; gap: 8px; }
.link { min-height: 48px; font-size: 15px; }
.share-buttons { display: grid; gap: 12px; }
.founding { font-size: 15px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 18%, var(--card)); }
.leave-confirm { display: grid; gap: 10px; padding: 12px; border-radius: 12px; border: 2px solid var(--line); }
.leave-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- the "peek at Home" art (real features, example numbers) ------------------------ */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: min(340px, 100%); border-radius: 36px; padding: 22px 18px; display: grid; gap: 14px;
  background: var(--card); border: 2px solid var(--edge); border-bottom-width: 6px;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.45);
}
.peek { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hud { display: flex; align-items: center; gap: 10px; }
.lvl { background: var(--button); color: #fff; font-weight: 800; border-radius: 10px; padding: 6px 9px; font-size: 14px; }
.xp { flex: 1; height: 14px; border-radius: 999px; background: var(--track); border: 2px solid var(--outline); overflow: hidden; }
.xp-fill { display: block; height: 100%; width: 32%; background: var(--gold); }
.streak { font-weight: 800; font-size: 14px; color: var(--gold-text); border: 2px solid var(--gold); border-radius: 999px; padding: 4px 10px; }
.ring-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--ground); }
.ring {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--brand) 0 33%, var(--track) 33% 100%);
}
.ring span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); font-weight: 800; }
.ring-title { font-weight: 800; }
.ring-sub, .next-sub { font-size: 14px; color: var(--muted); }
.next { padding: 14px; border-radius: 16px; border: 2px solid var(--edge); }
.next-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.next-title { font-weight: 800; font-size: 20px; }
.best { font-weight: 600; border-radius: 14px; padding: 10px 12px; border: 2px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 20%, var(--card)); }

/* --- sections ----------------------------------------------------------------------- */
.section { padding: 36px 0; display: grid; gap: 20px; }
h2 { font-size: clamp(28px, 6vw, 40px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; gap: 8px; }
.step-n { width: 36px; height: 36px; border-radius: 10px; background: var(--button); color: #fff; display: grid; place-items: center; font-weight: 800; }
h3 { font-size: 22px; }
.steps p, .split p { color: var(--muted); }
.split { align-items: start; }
.split > div { display: grid; gap: 14px; }
.fits { list-style: none; margin: 0; display: grid; gap: 12px; }
.fits li { padding-left: 30px; position: relative; font-weight: 600; }
.fits li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand); }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perk-list li { display: grid; gap: 4px; }
.perk-list strong { font-size: 24px; font-weight: 800; }
.perk-list .gold { border-color: var(--gold); }
.perk-list .gold strong { color: var(--gold-text); }
.faq details { border-bottom: 2px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 18px; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--muted); }

.foot { max-width: 1120px; margin: 0 auto; padding: 32px 20px 96px; display: grid; gap: 10px; justify-items: start; }
.social { display: flex; gap: 18px; font-weight: 600; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px);
  border-top: 2px solid var(--line);
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 48px; }
  .steps, .perk-list { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .share-buttons { grid-template-columns: 1fr 1fr; }
  .sticky { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp { animation: none; }
  .button { transition: none; }
}
