/* Boli · styles. Mobile-first, no framework, system fonts. Dark is the default; light follows the system or the toggle. */

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-2: #101219;
  --surface: #14161e;
  --surface-2: #1b1e29;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f1ea;
  --muted: #a6aab6;
  --accent: #ff9f1c;
  --accent-2: #ffc14d;
  --accent-ink: #140d00;
  --accent-text: #ffb547;
  --up: #2bd9a4;
  --down: #ff6b81;
  --gold: #ffc94d;
  --silver: #c9d1dc;
  --bronze: #e3a272;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  --glow: radial-gradient(60% 80% at 50% 0%, rgba(255, 159, 28, 0.22), transparent 70%);
  --r: 18px;
  --r-sm: 12px;
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f5f0;
    --bg-2: #efece4;
    --surface: #ffffff;
    --surface-2: #f3f0e9;
    --line: rgba(14, 15, 20, 0.1);
    --line-2: rgba(14, 15, 20, 0.2);
    --text: #121318;
    --muted: #555a66;
    --accent-text: #a64b00;
    --up: #0b7a58;
    --down: #c2253f;
    --gold: #b7860b;
    --silver: #6b7686;
    --bronze: #a35a26;
    --shadow: 0 1px 2px rgba(14, 15, 20, 0.05), 0 20px 40px -28px rgba(14, 15, 20, 0.35);
    --glow: radial-gradient(60% 80% at 50% 0%, rgba(255, 159, 28, 0.25), transparent 70%);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --surface: #ffffff;
  --surface-2: #f3f0e9;
  --line: rgba(14, 15, 20, 0.1);
  --line-2: rgba(14, 15, 20, 0.2);
  --text: #121318;
  --muted: #555a66;
  --accent-text: #a64b00;
  --up: #0b7a58;
  --down: #c2253f;
  --gold: #b7860b;
  --silver: #6b7686;
  --bronze: #a35a26;
  --shadow: 0 1px 2px rgba(14, 15, 20, 0.05), 0 20px 40px -28px rgba(14, 15, 20, 0.35);
  --glow: radial-gradient(60% 80% at 50% 0%, rgba(255, 159, 28, 0.25), transparent 70%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
main > section { margin-top: 72px; }
main > section.hero { margin-top: 0; }

/* type */
.display { font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 850; }
.display--sm { font-size: clamp(2rem, 6vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.accent-text { color: var(--accent-text); background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: var(--muted); max-width: 36em; margin-top: 18px; }
.lede strong { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.fine { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.placeholder { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px dashed var(--line-2); }
.amt { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.amt--lg { font-size: 1.6rem; }
.amt--xl { font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; }
.label { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot--live { box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 159, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 159, 28, 0); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 750; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:active { transform: scale(0.98); }
.btn--accent { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(255, 159, 28, 0.7); }
.btn--accent:hover { box-shadow: 0 10px 30px -8px rgba(255, 159, 28, 0.85); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 1.1rem; line-height: 1;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn:disabled { opacity: 0.4; cursor: not-allowed; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__word { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.05em; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover, .topnav a[aria-current] { color: var(--text); background: var(--surface-2); }
.topbar__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}

/* hero */
.hero { display: grid; gap: 36px; padding-top: 40px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40px -10vw auto; height: 520px; background: var(--glow); pointer-events: none; z-index: -1; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 28px; max-width: 420px; }
.cd { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 6px 10px; text-align: center; box-shadow: var(--shadow); }
.cd__n { display: block; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.cd__l { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; font-weight: 700; }
.countdown.is-done .cd__n { color: var(--accent-text); }

.waitlist { display: grid; gap: 10px; margin-top: 26px; max-width: 560px; }
.waitlist input, .field input, .field select {
  min-height: 48px; width: 100%; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
}
.waitlist input::placeholder, .field input::placeholder { color: var(--muted); opacity: 0.85; }
.waitlist input:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
[aria-invalid="true"] { border-color: var(--down) !important; }
.waitlist--compact { grid-template-columns: 1fr auto; }
.form-msg { min-height: 1.4em; font-size: 0.92rem; margin-top: 8px; font-weight: 600; }
.form-msg.is-ok { color: var(--up); }
.form-msg.is-err, .err { color: var(--down); }
.err { font-size: 0.88rem; font-weight: 600; min-height: 1.3em; margin-top: 6px; }

/* #1 hero card */
.topcard__in {
  position: relative; overflow: hidden; display: grid; gap: 16px;
  padding: 24px; border-radius: 24px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 201, 77, 0.06), 0 30px 80px -40px rgba(255, 159, 28, 0.55);
}
.topcard__in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 100% 0%, rgba(255, 201, 77, 0.16), transparent 60%); pointer-events: none; }
.topcard__in > * { position: relative; }
.topcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crown { font-weight: 800; color: var(--gold); letter-spacing: 0.02em; display: inline-flex; gap: 6px; align-items: center; }
.topcard__id { display: flex; gap: 14px; align-items: center; }
.topcard__name { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 850; letter-spacing: -0.035em; line-height: 1.05; }
.topcard__story { color: var(--muted); }
.topcard__meta { color: var(--muted); font-size: 0.9rem; }
.topcard__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.topcard--open { text-align: left; }
.ribbon { position: absolute !important; top: 14px; right: -34px; transform: rotate(35deg); background: var(--accent); color: var(--accent-ink); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 40px; }
.topcard__in:has(.ribbon) .topcard__head { padding-right: 56px; }
.skeleton { border-radius: 24px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* avatar, tags, codes */
.avatar {
  --h: 30; flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  font-weight: 850; font-size: 0.95rem; letter-spacing: -0.02em; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 38%));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.avatar--lg { width: 52px; height: 52px; border-radius: 15px; font-size: 1.1rem; }
.avatar--xl { width: 68px; height: 68px; border-radius: 20px; font-size: 1.45rem; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; }
.tag--muted { background: var(--surface-2); }
.code { display: inline-flex; align-items: stretch; height: 32px; border-radius: 9px; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line-2)); background: transparent; padding: 0; font-size: 0.8rem; }
.code__offer { display: grid; place-items: center; padding: 0 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); font-weight: 700; }
.code__val { display: grid; place-items: center; padding: 0 9px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.code:hover .code__val { background: var(--surface-2); }
.visit { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); text-decoration: none; font-size: 0.85rem; font-weight: 700; }
.visit:hover { background: var(--surface-2); }
.is-disabled { opacity: 0.75; pointer-events: none; border-style: dashed; }
.delta { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.delta--up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.delta--down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.delta--new { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 18px 16px; }
.stat dt { font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.stat dd { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 850; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stats__note { margin-top: 10px; }
main > section.wrap[aria-label="Public stats"] { margin-top: 48px; }

/* board */
.section-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 750; color: var(--muted); min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.notice { border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.92rem; margin-bottom: 14px; }
.filters { display: grid; gap: 8px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 0.88rem; font-weight: 650; color: var(--muted); white-space: nowrap; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip--gold { border-color: color-mix(in srgb, var(--gold) 60%, var(--line-2)); color: var(--text); }
.chip:disabled { opacity: 0.5; cursor: default; }
.board__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.board__scope { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.daynav { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }

.podium { display: grid; gap: 12px; margin-bottom: 12px; }
.pod { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pod--gold { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface) 60%); }
.pod--silver { border-color: color-mix(in srgb, var(--silver) 45%, var(--line)); }
.pod--bronze { border-color: color-mix(in srgb, var(--bronze) 45%, var(--line)); }
.pod__rank { display: flex; align-items: center; gap: 8px; }
.medal { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; font-weight: 900; font-size: 0.95rem; color: var(--accent-ink); }
.pod--gold .medal { background: var(--gold); }
.pod--silver .medal { background: var(--silver); }
.pod--bronze .medal { background: var(--bronze); }
.pod__id { display: flex; align-items: center; gap: 12px; }
.pod__name { font-size: 1.2rem; font-weight: 850; letter-spacing: -0.025em; line-height: 1.15; }
.pod__story { color: var(--muted); font-size: 0.92rem; }
.pod__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }

.rows { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 28px 42px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.row:hover { border-color: var(--line-2); }
.row__rank { font-weight: 850; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 9px; text-align: right; }
.row__main { min-width: 0; }
.row__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row__name { font-weight: 800; letter-spacing: -0.015em; font-size: 1.04rem; }
.row__meta { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.row__story { font-size: 0.88rem; color: var(--muted); margin-top: 4px; display: none; }
.row__side { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.row__side .amt { font-size: 1.2rem; }
.row__acts { display: flex; gap: 8px; align-items: center; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.empty strong { color: var(--text); }

/* feed */
.split { display: grid; gap: 24px; }
.split .muted { margin-top: 12px; max-width: 30em; }
.feed { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.feed__item { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 10px; border-radius: 10px; }
.feed__item + .feed__item { border-top: 1px solid var(--line); border-radius: 0; }
.feed__item .amt { color: var(--up); }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); align-self: center; }
.feed__item.is-demo .feed__dot { background: var(--accent); }
.feed__label, .feed__empty { padding: 10px; font-size: 0.86rem; color: var(--muted); }

/* how / math / rules */
.steps { display: grid; gap: 12px; margin-top: 22px; counter-reset: s; }
.step, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.step__n { font-family: var(--mono); font-weight: 700; color: var(--accent-text); font-size: 0.9rem; }
.step h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.step p, .card p, .card li { color: var(--muted); }
.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.card strong { color: var(--text); }
.math { margin-top: 12px; }
.math ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 1.1em; list-style: disc; }
.rules { display: grid; gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; counter-reset: r; }
.rules li { counter-increment: r; background: var(--surface); padding: 16px 18px 16px 58px; position: relative; color: var(--muted); }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--accent-text); }
.rules strong { color: var(--text); }
.legal { display: grid; gap: 12px; margin-top: 12px; }

/* faq */
.faq { display: grid; gap: 8px; margin-top: 22px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 750; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* cta + footer */
.cta { text-align: center; padding: 56px 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.cta > * { position: relative; }
.cta .muted { margin-top: 12px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.foot__in { display: grid; gap: 12px; }
.foot strong { color: var(--text); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot__nav a:hover { text-decoration: underline; }

/* claim drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer__panel {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.6);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer__panel:focus { outline: none; }
.drawer__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 20px 14px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.drawer__head .eyebrow { margin-bottom: 4px; }
.drawer__body { display: grid; gap: 16px; padding: 18px 20px 28px; }
.fields { display: grid; gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 0.86rem; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-weight: 750; color: var(--muted); font-size: 0.92rem; }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.stepper .iconbtn { width: 48px; height: 48px; font-size: 1.3rem; }
.stepper input { text-align: center; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.quote { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote__grid dt { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.quote__grid dd { font-weight: 750; font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.quote__pay { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.quote__pay span { font-weight: 700; }
.quote__pay .amt { color: var(--accent-text); }
.drawer__wait { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 10px; font-size: 0.92rem; }
.drawer__wait .waitlist { margin-top: 0; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5); max-width: calc(100% - 32px); text-align: center; }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .waitlist { grid-template-columns: 1fr auto; }
  .waitlist > input[type="email"] { grid-column: 1 / -1; }
  .waitlist--compact > input[type="email"] { grid-column: auto; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row { grid-template-columns: 32px 42px minmax(0, 1fr) auto; align-items: center; }
  .row__rank { padding-top: 0; }
  .row__side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .legal { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .topnav { display: flex; }
  .podium { grid-template-columns: 1fr 1.15fr 1fr; align-items: start; }
  .pod--gold { order: 2; padding: 24px; }
  .pod--silver { margin-top: 28px; }
  .pod--bronze { margin-top: 48px; }
  .pod--gold .pod__name { font-size: 1.45rem; }
  .pod--silver { order: 1; }
  .pod--bronze { order: 3; }
  .row__story { display: block; }
  .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .drawer { justify-content: flex-end; align-items: stretch; }
  .drawer__panel { width: min(480px, 100%); max-height: none; height: 100%; border-radius: 24px 0 0 24px; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 72px; min-height: min(760px, calc(100vh - 64px)); }
  main > section { margin-top: 104px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
