/* ── Brand tokens (placeholders): swap these to rebrand ───────────────── */
:root {
  --bg: #FFF8EE;          /* cream */
  --surface: #FFFFFF;
  --surface-2: #FFF1DE;
  --ink: #1B2140;         /* deep navy */
  --ink-soft: #565C78;
  --line: #EBDCC6;
  --brand: #FF6B5B;       /* coral */
  --brand-ink: #FFFFFF;
  --accent: #14B8A6;      /* turquoise */
  --sun: #FFC94A;         /* highlights, lit tickets */
  --sold: #FFD9D3;
  --shadow: 0 10px 30px rgba(27, 33, 64, .10);
  --radius: 16px;
  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12162B; --surface: #1B2140; --surface-2: #232A4F; --ink: #FFF3E2;
    --ink-soft: #B8BCD6; --line: #2E3663; --sold: #4A2E3A;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #12162B; --surface: #1B2140; --surface-2: #232A4F; --ink: #FFF3E2;
  --ink-soft: #B8BCD6; --line: #2E3663; --sold: #4A2E3A;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
section { padding: 72px 0; }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-title { font-size: clamp(30px, 4.4vw, 44px); margin-top: 10px; }
.section-sub { color: var(--ink-soft); margin-top: 12px; max-width: 560px; }

/* Ticket perforation motif */
.perf { --hole: var(--bg); position: relative; }
.perf::before, .perf::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--hole); transform: translateY(-50%);
}
.perf::before { left: -11px; } .perf::after { right: -11px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 6px 0 rgba(0,0,0,.12); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 700 21px/1 var(--font-display); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-links .lang { color: var(--ink-soft); text-decoration: none; }
.nav-links .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 520px) { .nav-links .lang { display: none; } }

/* Hero */
.hero { padding: 40px 0 72px; position: relative; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.pill {
  display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  font: 600 13px/1 var(--font-body);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(42px, 7vw, 72px); margin-top: 18px; }
.hero h1 .hl { color: var(--brand); }
.hero h1 .squiggle { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 70%, transparent) 0); }
.hero .lead { font-size: 18px; color: var(--ink-soft); margin-top: 18px; max-width: 520px; }

/* Waitlist form */
.form {
  margin-top: 28px; background: var(--surface); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); max-width: 520px;
}
.form label.field { display: block; font: 600 13px/1 var(--font-body); margin-bottom: 8px; }
.form input[type=email] {
  width: 100%; border: 2px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 12px; padding: 13px 14px; font: 16px var(--font-body);
}
.form input[type=email]:focus { outline: none; border-color: var(--accent); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 16px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 11px 8px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--line); font-weight: 500; font-size: 15px;
}
.choice input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 4px; }
.fine { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.form .ok { display: none; text-align: center; padding: 16px 4px; }
.form.done .ok { display: block; }
.form.done .fields { display: none; }

/* Phone mockup + animation */
.stage { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.blob { position: absolute; inset: 0; margin: auto; width: min(460px, 92vw); aspect-ratio: 1; border-radius: 46% 54% 52% 48%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 60%),
              radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%); filter: blur(8px); }
.phone {
  position: relative; width: 300px; max-width: 82vw; background: var(--surface); border-radius: 38px; padding: 14px;
  box-shadow: var(--shadow), 0 0 0 8px var(--ink);
}
.phone-top { height: 22px; width: 96px; background: var(--ink); border-radius: 0 0 14px 14px; margin: -14px auto 10px; }
.app-title { font: 600 17px/1.2 var(--font-display); padding: 4px 6px; }
.app-meta { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 10px; font-size: 13px; color: var(--ink-soft); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.counter { font-weight: 600; color: var(--ink); }
.counter b { display: inline-block; min-width: 1.3em; text-align: right; transition: transform .3s; }
.counter b.bump { transform: scale(1.35); color: var(--brand); }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; margin: 0 6px 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 10%; background: var(--brand); border-radius: 99px; transition: width .6s ease; }
.grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 0 4px 6px; }
.cell {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2);
  font: 600 9.5px/1 var(--font-body); color: var(--ink-soft); transition: background .35s, color .35s, transform .35s;
}
.cell.sold { background: var(--sold); color: color-mix(in srgb, var(--brand) 70%, var(--ink)); }
.cell.lit { background: var(--sun); color: var(--ink); transform: scale(1.25); box-shadow: 0 4px 10px rgba(0,0,0,.18); z-index: 1; }

.toast {
  position: absolute; left: 50%; top: 0; width: 290px; max-width: 86vw; transform: translate(-50%, -40px); opacity: 0;
  background: var(--surface); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; z-index: 3;
  transition: transform .55s cubic-bezier(.2,.9,.3,1.2), opacity .4s;
}
.toast.in { transform: translate(-50%, 10px); opacity: 1; }
.toast.drop { transform: translate(-50%, 210px) scale(.6); opacity: 0; transition: transform .6s ease-in, opacity .6s ease-in; }
.toast .z { width: 38px; height: 38px; border-radius: 10px; background: #6D1ED4; color: #fff; display: grid; place-items: center; font: 700 20px/1 var(--font-display); }
.toast .t1 { font-size: 13px; font-weight: 600; }
.toast .t2 { font-size: 12px; color: var(--ink-soft); }
.toast .memo { font-style: italic; color: var(--brand); }
.approve {
  margin: 8px 6px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; padding: 9px 11px; font-size: 12px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.approve.show { opacity: 1; transform: none; }
.approve b { color: var(--accent); }
.replay { position: absolute; bottom: -6px; right: 50%; transform: translateX(50%); font-size: 13px; background: none; border: 0; color: var(--ink-soft); cursor: pointer; text-decoration: underline; z-index: 2; }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 17px/1 var(--font-display); }
.card h3 { font-size: 22px; margin-top: 14px; }
.card p { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }
.mini { margin-top: 18px; background: var(--bg); border-radius: 12px; padding: 14px; font-size: 13px; min-height: 112px; }
.mini .row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mini .row:last-child { border-bottom: 0; }
.chip { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.chip.ok { background: var(--accent); color: #fff; }
.chip.no { box-shadow: inset 0 0 0 1.5px var(--line); }
.share { display: flex; gap: 8px; margin-top: 10px; }
.share span { flex: 1; text-align: center; padding: 8px; border-radius: 10px; background: var(--surface); font-weight: 600; }
.share .wa { background: #25D366; color: #fff; }

/* Before / after */
.ba { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 860px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba .side { border-radius: var(--radius); padding: 24px; }
.ba .before { background: var(--surface-2); }
.ba .after { background: var(--ink); color: var(--bg); }
.ba h3 { font-size: 24px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.flow .step { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 500; box-shadow: 0 2px 0 var(--line); }
.flow .arrow { color: var(--ink-soft); }
.after .flow .step { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); box-shadow: none; }
.after .flow .step.go { background: var(--brand); color: #fff; }
.mess { position: relative; height: 110px; margin-top: 18px; }
.bubble { position: absolute; background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 7px 11px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; }
.ba .note { margin-top: 16px; font-size: 14px; opacity: .8; }

/* Fair draw */
.fair { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .fair { grid-template-columns: .9fr 1.1fr; } }
.wheel-wrap { position: relative; width: min(320px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.wheel {
  width: 100%; height: 100%; border-radius: 50%; border: 10px solid var(--ink);
  background: conic-gradient(var(--brand) 0 45deg, var(--sun) 0 90deg, var(--accent) 0 135deg, var(--surface-2) 0 180deg,
    var(--brand) 0 225deg, var(--sun) 0 270deg, var(--accent) 0 315deg, var(--surface-2) 0 360deg);
  animation: spin 14s linear infinite;
}
.wheel-wrap::after { content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); border: 14px solid transparent; border-top: 26px solid var(--ink); }
.hub { position: absolute; inset: 0; margin: auto; width: 26%; height: 26%; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; font: 700 22px/1 var(--font-display); }
@keyframes spin { to { transform: rotate(360deg); } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.checks .ck { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.placeholder-note { font-size: 12px; color: var(--ink-soft); margin-top: 18px; font-style: italic; }

/* Sheets teaser */
.teaser { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .teaser { grid-template-columns: 1fr 1fr; padding: 40px; } }
.soon { display: inline-block; background: var(--sun); color: #1B2140; border-radius: 999px; padding: 5px 12px; font: 600 12px/1 var(--font-body); }
.teaser > * { min-width: 0; }
.sheet { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); font-size: 12.5px; background: var(--bg); }
.sheet .tab { background: #0F9D58; color: #fff; padding: 8px 12px; font-weight: 600; font-size: 12px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.sheet th { background: var(--surface-2); font-weight: 600; }
.sheet .scroll { overflow-x: auto; }
.mini-form { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.mini-form input { flex: 1 1 200px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 12px 16px; font: 15px var(--font-body); }

/* FAQ */
.faq { margin-top: 30px; display: grid; gap: 10px; max-width: 760px; }
details { background: var(--surface); border-radius: 14px; padding: 4px 18px; box-shadow: 0 2px 0 var(--line); }
summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 22px/1 var(--font-display); color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); padding: 0 0 16px; }

/* Final CTA */
.final { text-align: center; }
.final .box { background: var(--brand); color: #fff; border-radius: 28px; padding: 52px 22px; --hole: var(--bg); }
.final h2 { font-size: clamp(32px, 5vw, 52px); }
.final p { opacity: .92; margin: 14px auto 26px; max-width: 480px; }
.final .btn { background: var(--ink); color: var(--bg); }

footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  .wheel { animation: none; }
  * { transition: none !important; }
}

/* Signup forms (wired by app.js) */
.err { display: none; color: #C2410C; font-size: 14px; margin-top: 10px; }
.err.show { display: block; }
.captcha:empty { display: none; }
.captcha { margin: 4px 0 12px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.mini-form .fields { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.mini-form .fields .err, .mini-form .fields .captcha { flex-basis: 100%; margin: 0; }
.mini-form .ok { display: none; }
.mini-form.done .ok { display: block; }
.mini-form.done .fields { display: none; }

/* Legal pages */
.doc { max-width: 720px; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: var(--ink-soft); margin-top: 10px; }
.doc .updated { font-size: 14px; margin-top: 8px; }
.draft { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 30%, transparent); font-size: 14px; }
