/* Shared styles for the waitlist funnel, confirmed page, and error page.
   Extracted from the original single-page index.html so the three pages
   introduced by the double opt-in rework do not each carry their own copy. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0B0F19; --surface: rgba(255,255,255,0.05); --surface-hover: rgba(255,255,255,0.10);
  --surface-sel: rgba(99,102,241,0.22); --border: rgba(244,244,246,0.12);
  --border-sel: rgba(99,102,241,0.75); --text: #F4F4F6;
  --muted: rgba(244,244,246,0.72); --faint: rgba(244,244,246,0.42);
  --accent: #FF6B6B; --accent-hi: #6366F1; --accent-dk: #e85c5c;
  --fd: "Space Grotesk", sans-serif; --fb: "Inter", sans-serif;
  --r: 12px; --rs: 8px; --ease: cubic-bezier(0.16,1,0.3,1);
}
html, body { min-height:100vh; background:var(--bg); color:var(--text); font-family:var(--fb); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
.bg { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.orb { position:absolute; border-radius:50%; filter:blur(80px); opacity:.18; animation:drift 20s ease-in-out infinite; }
.o1 { width:600px; height:600px; background:radial-gradient(circle,rgba(99,102,241,.35),transparent 70%); top:-15%; left:-10%; }
.o2 { width:500px; height:500px; background:radial-gradient(circle,rgba(255,107,107,.22),transparent 70%); bottom:-10%; right:-5%; animation-duration:25s; animation-delay:-8s; }
.o3 { width:350px; height:350px; background:radial-gradient(circle,rgba(99,102,241,.24),transparent 70%); top:40%; left:50%; animation-duration:30s; animation-delay:-15s; opacity:.12; }
@keyframes drift {0%,100% { transform:translate(0,0) scale(1); }25% { transform:translate(30px,-40px) scale(1.05); }50% { transform:translate(-20px,30px) scale(.95); }75% { transform:translate(40px,20px) scale(1.02); }}
.shell { position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:20px 32px; border-bottom:1px solid rgba(244,244,246,.08); }
.logo { display:flex; align-items:center; gap:10px; font-family:var(--fd); font-weight:700; font-size:18px; color:var(--text); text-decoration:none; }
.logo img { height:32px; width:auto; display:block; }
.logo-fallback { font-family:var(--fd); font-weight:700; font-size:18px; }
.exit-btn { background:none; border:none; cursor:pointer; color:var(--muted); font-size:13px; font-family:var(--fb); display:flex; align-items:center; gap:6px; transition:color .2s; }
.exit-btn:hover { color:var(--text); }
.main { flex:1; display:flex; flex-direction:column; align-items:center; padding:48px 24px 80px; }
.prog-wrap { display:flex; align-items:center; gap:12px; width:100%; max-width:620px; margin-bottom:48px; }
.prog-track { flex:1; height:4px; background:rgba(244,244,246,.10); border-radius:99px; overflow:hidden; }
.prog-fill { height:100%; background:linear-gradient(90deg,#6366f1,#8b5cf6); border-radius:99px; transition:width .5s var(--ease); }
.prog-label { font-size:12px; color:var(--muted); white-space:nowrap; font-weight:500; }
.step { width:100%; max-width:620px; display:none; }
.step.active { display:block; animation:stepIn .4s var(--ease) forwards; }
@keyframes stepIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.eyebrow { font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-hi); margin-bottom:12px; }
.step-title { font-family:var(--fd); font-size:clamp(28px,5vw,42px); font-weight:700; line-height:1.1; margin-bottom:10px; }
.step-sub { font-size:15px; color:var(--muted); margin-bottom:32px; }
.qblock { margin-bottom:24px; }
.qlabel { font-size:14px; font-weight:500; margin-bottom:12px; }
.req { color:var(--accent-hi); }
.err { font-size:13px; color:#f87171; margin-top:10px; display:none; align-items:center; gap:6px; }
.err.show { display:flex; }
.grid { display:grid; gap:10px; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
.grid.c2 { grid-template-columns:repeat(2,1fr); }
.grid.c3 { grid-template-columns:repeat(3,1fr); }
.tile { padding:14px 16px; border:1px solid var(--border); border-radius:var(--rs); background:var(--surface); cursor:pointer; text-align:center; font-size:13px; font-weight:500; color:var(--text); transition:all .18s var(--ease); user-select:none; display:flex; flex-direction:column; align-items:center; gap:6px; line-height:1.3; }
.tile:hover { border-color:rgba(99,102,241,.55); background:var(--surface-hover); }
.tile.on { border-color:var(--border-sel); background:var(--surface-sel); color:#fff; box-shadow:0 0 0 3px rgba(99,102,241,.18); }
.icon { font-size:18px; }
.lang-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:10px; }
.lang { padding:12px 8px; border:1px solid var(--border); border-radius:var(--rs); background:var(--surface); cursor:pointer; text-align:center; font-size:12px; font-weight:600; transition:all .18s var(--ease); user-select:none; }
.flag { font-size:16px; display:block; margin-bottom:4px; }
.lang:hover { border-color:rgba(99,102,241,.55); background:var(--surface-hover); }
.lang.on { border-color:var(--border-sel); background:var(--surface-sel); }
.field-wrap { position:relative; }
.finput { width:100%; padding:14px 16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--rs); color:var(--text); font-size:14px; font-family:var(--fb); resize:vertical; min-height:48px; transition:border-color .18s; outline:none; }
.finput::placeholder { color:var(--faint); }
.finput:focus { border-color:var(--accent-hi); }
.ccount { position:absolute; bottom:8px; right:12px; font-size:11px; color:var(--faint); pointer-events:none; }
.email-in { width:100%; padding:14px 18px; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:var(--rs); color:var(--text); font-size:15px; font-family:var(--fb); outline:none; transition:border-color .18s; }
.email-in::placeholder { color:var(--faint); }
.email-in:focus { border-color:var(--accent-hi); }
.email-in.bad { border-color:#ef4444; }
.consent { font-size:12px; color:var(--faint); margin-top:14px; line-height:1.5; max-width:500px; }
.consent a { color:var(--accent-hi); text-decoration:none; }
.ok-row { display:flex; justify-content:flex-end; margin-top:28px; }
.btn-ok { padding:12px 28px; background:var(--accent); color:#fff; font-family:var(--fb); font-size:14px; font-weight:700; border:none; border-radius:var(--rs); cursor:pointer; transition:background .18s,transform .1s,box-shadow .18s; box-shadow:0 4px 20px rgba(255,107,107,.22); }
.btn-ok:hover { background:var(--accent-dk); box-shadow:0 6px 28px rgba(255,107,107,.30); }
.btn-ok:active { transform:scale(.97); }
.btn-sub { width:100%; padding:16px; background:var(--accent); color:#fff; font-family:var(--fd); font-size:15px; font-weight:700; border:none; border-radius:var(--r); cursor:pointer; transition:all .18s var(--ease); box-shadow:0 4px 24px rgba(255,107,107,.26); margin-top:24px; }
.btn-sub:hover { box-shadow:0 8px 32px rgba(255,107,107,.32); transform:translateY(-1px); }
.btn-sub:disabled { opacity:.5; cursor:not-allowed; transform:none; }
#step-confirm, #step-pending { text-align:left; }
.chk-circle { width:40px; height:40px; border-radius:50%; background:#16a34a; display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.confirm-title { font-family:var(--fd); font-size:clamp(32px,7vw,52px); font-weight:700; line-height:1.05; margin-bottom:24px; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:var(--rs); background:rgba(22,163,74,.15); border:1px solid rgba(22,163,74,.35); font-size:13px; font-weight:600; color:#4ade80; margin-bottom:20px; }
.cbody { font-size:15px; color:var(--muted); margin-bottom:12px; max-width:480px; line-height:1.65; }
.cdivider { border:none; border-top:1px solid var(--border); margin:28px 0; }
.spot-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:99px; background:rgba(99,102,241,.10); border:1px solid rgba(99,102,241,.25); font-size:12px; font-weight:600; color:#c7d2fe; margin-bottom:24px; }
.rdot { width:6px; height:6px; border-radius:50%; background:#6366f1; }
.ref-label { font-size:15px; font-weight:600; margin-bottom:4px; }
.ref-sub { font-size:13px; color:var(--muted); margin-bottom:12px; }
.ref-row { display:flex; gap:10px; }
.ref-in { flex:1; padding:12px 16px; background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:var(--rs); color:var(--text); font-size:14px; font-family:var(--fb); outline:none; letter-spacing:.08em; text-transform:uppercase; }
.ref-in::placeholder { text-transform:none; letter-spacing:normal; }
.ref-in:focus { border-color:var(--accent-hi); }
.btn-redeem { padding:12px 20px; background:var(--accent); color:#fff; border:none; border-radius:var(--rs); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--fb); transition:background .18s; box-shadow:0 4px 20px rgba(255,107,107,.22); }
.btn-redeem:hover { background:var(--accent-dk); box-shadow:0 6px 28px rgba(255,107,107,.30); }
.btn-redeem:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }

/* Resend on the pending screen. Kept as its own class (rather than reusing
   .btn-redeem) since the two buttons are different actions even though both
   are coral now — a future restyle of one should not silently restyle the
   other just because they happen to share a color today. */
.btn-resend { padding:12px 20px; background:var(--accent); color:#fff; border:none; border-radius:var(--rs); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--fb); transition:background .18s; box-shadow:0 4px 20px rgba(255,107,107,.22); }
.btn-resend:hover { background:var(--accent-dk); box-shadow:0 6px 28px rgba(255,107,107,.30); }
.btn-resend:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
.statusbar { position:fixed; bottom:0; left:0; right:0; display:flex; align-items:center; justify-content:space-between; padding:12px 24px; background:rgba(11,15,25,.86); backdrop-filter:blur(12px); border-top:1px solid rgba(244,244,246,.08); z-index:10; }
.sdot { width:8px; height:8px; border-radius:50%; background:#4ade80; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(74,222,128,.5);}50%{opacity:.8;box-shadow:0 0 0 6px rgba(74,222,128,0);} }
.stxt { display:flex; align-items:center; gap:8px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.xbtn { display:flex; align-items:center; gap:6px; padding:7px 14px; background:#000; color:#fff; border:none; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; font-family:var(--fb); text-decoration:none; transition:background .18s; }
.xbtn:hover { background:#111; }
@media (max-width:480px) { .topbar { padding:16px 20px; } .main { padding:32px 16px 80px; } .grid.c3 { grid-template-columns:repeat(2,1fr); } .ref-row { flex-direction:column; } }

/* --- Additions for the double opt-in rework ------------------------------ */

/* Honeypot field. Off-screen rather than display:none / visibility:hidden,
   since some bot form-fillers skip those and still fill an off-screen input;
   aria-hidden + tabindex=-1 remove it from assistive tech and keyboard tab
   order for real users. */
.hp-field { position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; }

/* Generic, non-personalized scarcity line shown on the pending screen. Kept
   visually distinct from .cbody so it doesn't read as a personal claim about
   the submitter's specific position.

   Uses --text (bright cream) rather than the coral --accent: the error style
   .err is #f87171, close enough to coral that a coral scarcity line reads as a
   validation failure. Cream at weight 500 carries the emphasis without that
   collision. The coral accent is carried by the left border instead. */
.scarcity-line { font-size:14px; font-weight:500; color:var(--text); border-left:3px solid var(--accent); padding:2px 0 2px 14px; margin-top:24px; max-width:480px; line-height:1.6; }

.status-ok { display:none; align-items:center; gap:8px; padding:6px 14px; border-radius:var(--rs); background:rgba(22,163,74,.15); border:1px solid rgba(22,163,74,.35); font-size:13px; font-weight:600; color:#4ade80; margin-top:16px; }
.status-ok.show { display:inline-flex; }

.pending-actions { display:flex; align-items:center; gap:14px; margin-top:20px; flex-wrap:wrap; }

.error-page .confirm-title { margin-bottom:16px; }
