/* VANT waitlist pages — shared styling.
 * Tokens mirror website/index.html so the funnel does not look like a
 * different product than the page people arrived from. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #030303;
  --card: rgba(255,255,255,0.03);
  --card2: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.08);
  --gold-light: #FDE047;
  --gold: #EAB308;
  --gold-dim: rgba(234,179,8,.1);
  --gold-glow: rgba(234,179,8,.2);
  --green: #22C55E;
  --red: #EF4444;
  --text: #F3F4F6;
  --text-dim: #9CA3AF;
  --text-muted: #6B7280;
  --divider: rgba(255,255,255,.08);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-w: 880px;
  --radius: 16px;
  --radius-sm: 10px;
}

html { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* NAV ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(3,3,3,.7); border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.nav-logo span {
  background: linear-gradient(to right, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-tag { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); -webkit-text-fill-color: currentColor; background: none; }
.nav-links { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem;
  padding: 6px 10px; border: 1px solid var(--divider); border-radius: 8px;
  color: var(--text-dim); background: var(--card); transition: .2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.flag-icon { width: 18px; height: auto; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }

/* LAYOUT --------------------------------------------------------------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 40px; position: relative; z-index: 1; }
.glow {
  position: fixed; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(234,179,8,.07) 0%, transparent 60%); filter: blur(40px);
}

.eyebrow {
  display: inline-block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); background: var(--gold-dim);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 18px; }
h1 .gold {
  background: linear-gradient(to right, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.08rem; color: var(--text-dim); line-height: 1.65; max-width: 46ch; margin-bottom: 34px; }

/* FORM ----------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--card-border); border-radius: 22px; padding: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: .82rem; color: var(--text-dim); font-weight: 500; }
input[type="email"], input[type="text"] {
  width: 100%; padding: 15px 16px; font-size: 1rem; font-family: var(--font);
  color: var(--text); background: rgba(0,0,0,.3);
  border: 1px solid var(--divider); border-radius: var(--radius-sm); transition: .2s;
}
input[type="email"]:focus, input[type="text"]:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim);
}
input::placeholder { color: var(--text-muted); }

/* Honeypot: off-screen and untabbable, but not display:none — some bots
   skip hidden fields, and the whole point is that they fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 28px; font-size: .98rem; font-weight: 600; font-family: var(--font);
  color: #000; background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none; border-radius: 12px; cursor: pointer; transition: .25s;
  box-shadow: 0 8px 25px var(--gold-dim);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 35px var(--gold-glow); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost {
  width: auto; background: var(--card2); color: var(--text-dim);
  border: 1px solid var(--divider); box-shadow: none; font-size: .8rem; padding: 11px 16px;
}
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--gold); transform: none; box-shadow: none; }

.consent { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0 22px; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); flex-shrink: 0; }
.consent label { font-size: .82rem; color: var(--text-dim); line-height: 1.55; }
.consent a { color: var(--gold); text-decoration: underline; }

.wl-note {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; line-height: 1.55;
}
.wl-note.is-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #FCA5A5; }
.wl-note.is-ok { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86EFAC; }

.fineprint { margin-top: 18px; font-size: .76rem; color: var(--text-muted); line-height: 1.6; }

/* SUCCESS -------------------------------------------------------------- */
.done { text-align: center; padding: 12px 0; }
.done .check {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: var(--green);
  font-size: 1.5rem;
}
.done h2 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 650; }
.done p { color: var(--text-dim); font-size: .95rem; line-height: 1.65; max-width: 40ch; margin: 0 auto; }

/* PILLARS -------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.pillar { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 20px; }
.pillar h3 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pillar p { font-size: .84rem; color: var(--text-dim); line-height: 1.6; }

/* PROFILE QUESTIONS ---------------------------------------------------- */
.qgroup { margin-bottom: 26px; }
.qgroup > legend, .qgroup > .qlabel {
  font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 12px; display: block;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 10px 15px; font-size: .85rem; cursor: pointer;
  color: var(--text-dim); background: var(--card2);
  border: 1px solid var(--divider); border-radius: 999px; transition: .18s;
}
.chip input:checked + span { color: #000; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: var(--gold); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip span:hover { color: var(--text); border-color: rgba(234,179,8,.4); }
.chip input:checked + span:hover { color: #000; }

/* REFERRAL ------------------------------------------------------------- */
.referral { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--divider); }
.referral h3 { font-size: 1rem; font-weight: 650; margin-bottom: 8px; }
.referral p { font-size: .85rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.copyrow { display: flex; gap: 9px; }
.copyrow input { font-family: var(--mono); font-size: .8rem; }

/* FOOTER --------------------------------------------------------------- */
.foot {
  max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 56px;
  border-top: 1px solid var(--divider); margin-top: 56px;
  font-size: .76rem; color: var(--text-muted); line-height: 1.7; position: relative; z-index: 1;
}
.foot a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.foot-disclaimer {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 16px; margin-bottom: 18px; color: var(--text-dim);
}
.foot-disclaimer strong { color: var(--text); }

@media (max-width: 720px) {
  .wrap { padding: 40px 20px 32px; }
  .card { padding: 24px 20px; border-radius: 18px; }
  .pillars { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover:not(:disabled) { transform: none; }
}
