/* /join and /welcome. Tokens mirror the app's onboarding palette
   (components/onboarding/OnbDark.tsx: onbLight / onbDark). */
:root {
  color-scheme: light;
  --bg: #F4F1EB;
  --surface: #FFFDF9;
  --surface2: #EBE6DC;
  --line: rgba(23,17,10,0.13);
  --line-soft: rgba(23,17,10,0.07);
  --text: #17110A;
  --text-dim: rgba(23,17,10,0.62);
  --gold: #9E7A2C;
  --gold-wash: rgba(158,122,44,0.12);
  --btn: #17110A;
  --btn-ink: #F7F3EC;
  --danger: #B0432E;
  --danger-wash: rgba(176,67,46,0.1);
  --ok: #3F7A4E;
  --track: rgba(23,17,10,0.08);
  --glass: rgba(14,10,5,0.62);
  --glass-line: rgba(240,231,214,0.18);
  --on-photo: #FBF6EC;
  --on-photo-dim: rgba(240,231,214,0.66);
  --photo-gold: #C9A24B;
  --sans: "Google Sans", "Product Sans", -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: "Google Sans Code", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E0A05;
    --surface: #1B150C;
    --surface2: #261E12;
    --line: rgba(240,231,214,0.16);
    --line-soft: rgba(240,231,214,0.08);
    --text: #FBF6EC;
    --text-dim: rgba(240,231,214,0.62);
    --gold: #C9A24B;
    --gold-wash: rgba(201,162,75,0.10);
    --btn: #F0E7D6;
    --btn-ink: #1A150B;
    --danger: #E8735F;
    --danger-wash: rgba(232,115,95,0.1);
    --ok: #8FC49B;
    --track: rgba(240,231,214,0.09);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
em.g { font-style: italic; font-weight: 400; color: var(--gold); }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sel { user-select: all; color: var(--text); overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 16px; border-radius: 12px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.wordmark b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.wordmark span { font-size: 10.5px; letter-spacing: 0.22em; color: var(--text-dim); font-weight: 500; }
.top nav { display: flex; gap: 28px; font-size: 14.5px; color: var(--text-dim); }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 12px; }
.launch-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim);
}
.launch-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.lang { position: relative; }
.lang select {
  appearance: none; font: inherit; font-size: 13px; color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 28px 8px 12px; cursor: pointer; max-width: 150px;
}
.lang::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lang select option { color: #17110A; background: #FFFDF9; }
@media (max-width: 1020px) { .top nav { display: none; } }
@media (max-width: 640px) { .wordmark span { display: none; } }
@media (max-width: 420px) { .launch-chip { display: none; } }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; overflow-wrap: break-word; }
.lede { font-size: clamp(16.5px, 1.5vw, 18.5px); color: var(--text-dim); max-width: 54ch; }

.countdown { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.cd-cell { min-width: 78px; padding: 12px 16px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cd-cell .num { display: block; font-size: 26px; line-height: 1.1; }
.cd-cell small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.cd-note { align-self: center; font-size: 14px; color: var(--text-dim); max-width: 26ch; line-height: 1.4; }

/* Card + form */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 3vw, 32px); scroll-margin-top: 88px;
  box-shadow: 0 1px 0 var(--line-soft), 0 24px 60px -32px rgba(14,10,5,0.35);
}
.card h2 { font-size: 22px; }
.card .sub { color: var(--text-dim); font-size: 14.5px; margin-top: 4px; }
.state { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.state > * { min-width: 0; }
form { display: grid; gap: 16px; margin-top: 8px; grid-template-columns: minmax(0, 1fr); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.field > label, .field > .flabel { font-size: 13.5px; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--text-dim); opacity: .75; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.field.bad input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-wash); }
.err { font-size: 13px; color: var(--danger); }
.err:empty { display: none; }
.form-err { font-size: 14px; color: var(--danger); background: var(--danger-wash); border-radius: 12px; padding: 12px 16px; }
.form-err:empty { display: none; }

.dob { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.dob input[type="text"] { width: 64px; flex: none; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; padding-inline: 8px; }
.dob input.yyyy { width: 88px; }
.dob .sep { align-self: center; color: var(--text-dim); }
.age-read { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 12px; border: 1px dashed var(--line); color: var(--text-dim); font-size: 13.5px; min-height: 48px; }
.age-read b { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--text); }
.age-read.ok { border-style: solid; border-color: var(--gold); background: var(--gold-wash); }
.age-read.minor { border-style: solid; border-color: var(--danger); background: var(--danger-wash); color: var(--danger); }
@media (max-width: 420px) { .age-read { margin-left: 0; flex-basis: 100%; min-height: 40px; } }

.pw { position: relative; }
.pw input { padding-right: 80px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 13px; font-weight: 500; color: var(--text-dim); background: none; border: 0; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.pw-toggle:hover { color: var(--text); }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--bg); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border-radius: 12px; font-size: 15px; cursor: pointer; color: var(--text-dim); transition: background .15s, color .15s; }
.seg label svg { width: 17px; height: 17px; }
.seg input:checked + label { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 2px 8px -4px rgba(14,10,5,.3); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 1px; }
.field.bad .seg { border-color: var(--danger); }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; color: var(--text-dim); cursor: pointer; }
.check input { appearance: none; margin: 1px 0 0; width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--btn); border-color: var(--btn); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--btn-ink); border-bottom: 2px solid var(--btn-ink); transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--text); text-underline-offset: 3px; }
.field.bad .check input { border-color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; text-align: center;
  border: 0; border-radius: 999px; padding: 16px 28px; cursor: pointer;
  background: var(--btn); color: var(--btn-ink); transition: transform .12s, opacity .15s;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 12px 20px; font-size: 14px; }
.btn.block { width: 100%; }
.fine { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.linkish { font: inherit; font-size: 13px; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail-ic { width: 52px; height: 52px; border-radius: 20px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold); }
.mail-ic svg { width: 26px; height: 26px; }
.addr { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* Photo + pass */
.photo { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5.2; max-width: 100%; background: #1B150C; box-shadow: 0 40px 80px -40px rgba(14,10,5,0.55); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,10,5,0) 45%, rgba(14,10,5,0.78) 100%); }
.photo-tag { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-photo); padding: 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
@media (max-width: 920px) { .photo { aspect-ratio: 4 / 4.4; } }

.pass { position: relative; z-index: 2; color: var(--on-photo); border-radius: 20px; padding: 20px 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); }
.photo .pass { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.pass.solid { background: #1B150C; border-color: rgba(240,231,214,0.14); }
.pass-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.pass-top .plabel { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-photo-dim); white-space: nowrap; }
.premium-chip { white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #241A06; background: var(--photo-gold); padding: 4px 8px; border-radius: 999px; }
.pass-name { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--glass-line); }
.pass-grid div { min-width: 0; }
.pass-grid small { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-photo-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-grid b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-grid b.goldv { color: var(--photo-gold); }

/* Sections */
section.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line-soft); }
.shead { display: grid; gap: 12px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.shead h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
.shead p { color: var(--text-dim); font-size: 17px; }

.perk-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .perk-wrap { grid-template-columns: minmax(0, 1fr); } }
.perk-wrap .shead { margin-bottom: 0; }
.perk-big { font-size: clamp(64px, 9vw, 112px); line-height: .9; letter-spacing: -0.04em; font-weight: 500; }
.perk-big em { font-style: italic; font-weight: 400; color: var(--gold); font-size: .42em; letter-spacing: -0.01em; margin-left: .15em; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 560px) { .perks { grid-template-columns: minmax(0, 1fr); } }
.perks li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--text); }
.perks h3 { font-size: 17.5px; }
.perks p { color: var(--text-dim); font-size: 15px; }

.cities-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .cities-wrap { grid-template-columns: minmax(0, 1fr); } }
.cities-wrap .shead { margin-bottom: 0; }
.total { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.total b { font-family: var(--mono); font-size: clamp(40px, 5vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.total span { color: var(--text-dim); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.city { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.city .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city .count { font-size: 15px; color: var(--text-dim); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.c-empty { color: var(--text-dim); font-size: 15px; max-width: 46ch; padding: 20px 20px; border: 1px dashed var(--line); border-radius: 20px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding: 0 24px 0 0; position: relative; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--mono); font-size: 13px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); position: relative; z-index: 1; margin-bottom: 12px; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
@media (max-width: 900px) { .steps li::after { display: none; } }
.steps li.now::before { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.steps h3 { font-size: 17px; }
.steps p { font-size: 14.5px; color: var(--text-dim); max-width: 32ch; }
.steps .when { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { padding: 24px 24px 24px; display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); min-width: 0; }
.fact svg { width: 22px; height: 22px; color: var(--gold); }
.fact h3 { font-size: 16.5px; }
.fact p { font-size: 14px; color: var(--text-dim); }

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq .shead { margin-bottom: 0; }
main details { border-bottom: 1px solid var(--line); }
main details:first-child { border-top: 1px solid var(--line); }
main summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 16.5px; }
main summary::-webkit-details-marker { display: none; }
main summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
main details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
main details p { padding: 0 0 20px; color: var(--text-dim); font-size: 15px; max-width: 62ch; }

.closer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
@media (max-width: 760px) { .closer { grid-template-columns: minmax(0, 1fr); } }
.closer h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; max-width: 16ch; }

footer { border-top: 1px solid var(--line-soft); padding-block: 36px 48px; font-size: 13.5px; color: var(--text-dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* /welcome */
.solo { min-height: calc(100vh - 65px); display: grid; place-items: start center; padding-block: clamp(32px, 7vw, 88px); }
.solo .card { width: 100%; max-width: 560px; }
.launchday { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: ld; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.launchday li { counter-increment: ld; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.launchday li:last-child { border-bottom: 0; background: var(--gold-wash); }
.launchday li::before { content: counter(ld); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); }
.launchday li:last-child::before { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.launchday b { font-weight: 500; }
.launchday li > span { color: var(--text-dim); }
.copyrow { display: flex; gap: 8px; align-items: stretch; }
.copyrow code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; white-space: nowrap; user-select: all; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise.d2 { animation-delay: .08s; }
.rise.d3 { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
