/* Tokens mirror app/src/lib/theme.ts. */
:root {
  --bg: #141411;
  --surface: #1e1d1a;
  --surface-2: #2a2925;
  --line: rgba(245, 241, 237, 0.09);
  --line-2: rgba(245, 241, 237, 0.18);
  --fg: #f5f1ed;
  --fg-2: rgba(245, 241, 237, 0.68);
  --fg-3: rgba(245, 241, 237, 0.4);
  --accent: #cdc971;
  --accent-press: #b5b15c;
  --accent-ink: #141411;
  --negative: #e8907a;
  --warning: #e8b65c;
  --positive: #9cc5a6;
  --ui: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Newsreader, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.5 var(--ui);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: .92em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; }

/* icons: 24-unit stroke, like app/src/ui/icons.tsx */
.ic { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.acc { stroke: var(--accent); }
.ic.pos { stroke: var(--positive); }
.ic.warn { stroke: var(--warning); }
.ic.dim { stroke: var(--fg-2); }
.mark-bg { fill: var(--surface); stroke: var(--line-2); }
.mark-ink { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.ring { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: inline-grid; place-items: center; flex: none; }

/* buttons: pill, 60 tall, accent fill (kit.tsx Button) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 32px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 19px/1 var(--ui); text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: #d8d47f; }
.btn:active { background: var(--accent-press); }
.btn[disabled] { opacity: .45; cursor: progress; }
.btn.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 44px; padding: 0 18px; font-size: 15px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 26px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; }
.brand.small { font-size: 20px; }
.brand.small .brand-mark { width: 28px; height: 28px; }

/* hero */
.hero { display: grid; gap: 56px; padding-top: 32px; padding-bottom: 96px; align-items: center; }
h1 { font: 500 clamp(48px, 11vw, 88px)/1.02 var(--display); letter-spacing: -.025em; }
.lede { font-size: clamp(19px, 2.4vw, 22px); color: var(--fg-2); margin-top: 20px; }
.feats { margin: 32px 0 40px; display: grid; gap: 16px; }
.feats li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr auto; padding-top: 48px; padding-bottom: 120px; gap: 64px; }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--fg-2); }
@media (max-width: 899px) { .hero-copy .btn { width: 100%; } }

/* phone mockup (sizes follow kit.tsx / mockups.html) */
.phone {
  width: 360px; max-width: 100%; justify-self: center;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 48px;
  padding: 0 0 8px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 8px #0c0c0a, 0 0 0 9px var(--line), 0 40px 120px -30px rgba(205, 201, 113, .18);
  font-feature-settings: "tnum" 1;
}
.ph-status { height: 44px; padding: 16px 28px 0; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.ph-sig { display: inline-flex; gap: 6px; align-items: center; color: var(--fg-2); }
.ph-sig .ic { width: 15px; height: 15px; stroke: var(--fg-2); stroke-width: 2.4; }
.ph-body { padding: 4px 18px 0; position: relative; }
.ph-top { display: flex; align-items: center; gap: 12px; height: 60px; }
.ph-top b { flex: 1; font-size: 26px; font-weight: 700; }
.ph-avatar, .ph-iconbtn, .ph-ricon { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.ph-avatar { background: var(--surface-2); }
.ph-hero { text-align: center; padding: 30px 0 26px; position: relative; }
.ph-hero::before {
  content: ""; position: absolute; inset: -10px -18px 0;
  background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
}
.ph-hero > * { position: relative; }
.ph-bal { font: 500 58px/1 var(--display); letter-spacing: -.02em; }
.ph-bal small { font-size: 32px; color: var(--fg-2); }
.ph-sub { color: var(--fg-2); font-size: 15px; margin-top: 10px; }
.ph-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(232, 182, 92, .35); color: var(--warning); font-size: 14px; margin-bottom: 14px; }
.ph-banner .ic { width: 18px; height: 18px; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-tiles span { height: 64px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 17px; }
.ph-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 2px; }
.ph-sec b { font-size: 19px; font-weight: 600; }
.ph-sec span { color: var(--accent); font-size: 14px; font-weight: 500; }
.ph-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.ph-ricon .ic { width: 20px; height: 20px; }
.ph-main { flex: 1; min-width: 0; display: grid; }
.ph-main b { font-weight: 500; font-size: 16px; }
.ph-main span { color: var(--fg-2); font-size: 14px; }
.ph-row > b { font-weight: 600; font-size: 16px; }
.pos { color: var(--positive); }
.ph-dock { display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: rgba(31, 31, 28, .9); border: 1px solid var(--line); width: max-content; margin: 14px auto 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.ph-dock span { width: 66px; height: 48px; border-radius: 999px; display: grid; place-items: center; }
.ph-dock .on { background: rgba(255, 255, 255, .08); }
@media (max-width: 380px) { .phone { zoom: .88; } }

/* how it works */
.how { padding-bottom: 112px; }
h2 { font: 500 clamp(34px, 5vw, 48px)/1.1 var(--display); letter-spacing: -.015em; }
.how h2 { max-width: 14ch; margin-bottom: 40px; }
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 20px 0 6px; }
.card p { color: var(--fg-2); }
.card.wide { display: grid; gap: 24px; align-items: center; }
.sms { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.sms-from { color: var(--fg-2); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.bubble { max-width: 92%; background: var(--surface-2); border-radius: 20px 20px 20px 6px; padding: 12px 14px; font: 14px/1.5 var(--mono); }
@media (min-width: 680px) {
  .cards { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .card.wide { grid-column: span 2; grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* waitlist */
#waitlist { padding-bottom: 96px; scroll-margin-top: 24px; }
.wl { max-width: 600px; margin: 0 auto; padding: 36px 24px; border-radius: 28px; }
.wl .sub { color: var(--fg-2); margin-top: 10px; font-size: 18px; }
form { display: grid; gap: 20px; margin-top: 28px; }
.fld { display: grid; gap: 8px; }
label { font-weight: 500; font-size: 16px; }

.err { font-size: 15px; }
.err { color: var(--negative); }
input {
  height: 64px; width: 100%; border-radius: 20px; background: var(--bg); border: 1px solid var(--line-2);
  padding: 0 18px; color: var(--fg); font: 500 18px var(--ui); caret-color: var(--accent);
}
input::placeholder { color: var(--fg-3); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205, 201, 113, .22); }
input[aria-invalid="true"] { border-color: var(--negative); }
#wl-captcha:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { width: 100%; margin-top: 4px; }
.consent { color: var(--fg-2); font-size: 14px; text-align: center; margin-top: -6px; }
.status:empty { display: none; }
.status { color: var(--negative); text-align: center; font-size: 15px; }
.done { text-align: center; padding: 12px 0; outline: none; }
.done h2 { margin-top: 20px; }
.ring.big { width: 72px; height: 72px; }
.ring.big .ic { width: 32px; height: 32px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: max(40px, env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.foot p { color: var(--fg-2); font-size: 15px; }
@media (min-width: 680px) { .foot { grid-template-columns: auto 1fr; align-items: center; gap: 32px; } .foot p { text-align: right; } }
