/* HOOKDROID — design system. Full colour: Mandiri navy + gold, cream cards. Own code; layout rhythm inspired by the reference. */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --navy-900: #0A0B07; --navy-800: #121410; --navy: #1C2117; --rh-green: #00C805; --rh-green-2: #00A004; --ink-real: #0A0B07; --blue-600: #1E7A12; --sky: #00C805;
  --gold: #00C805; --gold-300: #2EE033; --gold-600: #00A004; --cream: #F3F4EC; --cream-2: #ECEFE1; --white: #fff; --paper-2: #FAFBF5; --soft: #E3F7E4; --mint: #CFF5D2; --line: #DCE0CF;
  --warn: #D99A00; --warn-ink: #8A5A00; --violet: #7A5AE0; --violet-ink: #5B3FC4;
  --green: #00C805; --red: #FF5A4E; --green-ink: #1E7A12; --red-ink: #C8302A;
  --ink: #0A0B07; --ink-2: rgba(10, 11, 7, .72); --ink-3: #6B6F63; --ink-line: rgba(10, 11, 7, .12);
  --on: #fff; --on-2: rgba(255, 255, 255, .74); --on-3: rgba(255, 255, 255, .52); --on-line: rgba(255, 255, 255, .12);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-full: 999px;
  --ease: cubic-bezier(.19, 1, .22, 1); --spring: cubic-bezier(.175, .885, .32, 1.1);
  --wrap: 1200px; --nav-h: 68px;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 84px; }
body { margin: 0; background: var(--navy-900); color: var(--on); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.mono, code { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--gold); color: var(--navy-900); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s5); } }

/* ---------- colour helpers ---------- */
.up { color: var(--green); } .down { color: var(--red); } .flat { color: var(--on-3); }
.on-light .up, .card .up, .tile .up { color: var(--green-ink); }
.on-light .down, .card .down, .tile .down { color: var(--red-ink); }
.on-light .flat, .card .flat, .tile .flat { color: var(--ink-3); }
.muted { color: var(--on-3); } .on-light .muted, .card .muted { color: var(--ink-3); }

/* ---------- panels (full-colour rounded sections) ---------- */
.panel { position: relative; isolation: isolate; margin: 0 var(--s2); border-radius: var(--r-2xl); overflow: hidden; }
.panel + .panel { margin-top: var(--s2); }
.panel--navy { background: radial-gradient(70% 60% at 85% 0%, rgba(0, 200, 5, .16), transparent 60%), linear-gradient(180deg, #151812 0%, #0A0B07 100%); }
.panel--deep { background: radial-gradient(60% 60% at 15% 0%, rgba(0, 200, 5, .09), transparent 70%), #101210; border: 1px solid var(--on-line); }
.panel--gold { background: radial-gradient(60% 80% at 100% 0%, rgba(0, 200, 5, .16), transparent 60%), #FAFBF5; color: var(--ink); }
.panel--cream { background: var(--cream); color: var(--ink); }
.panel--gold, .panel--cream, .on-light { --hl-a: var(--navy); --hl-b: var(--blue-600); }
.panel .dots { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); }
.panel--gold .dots, .panel--cream .dots { background-image: radial-gradient(rgba(10, 11, 7, .14) 1px, transparent 1.4px); }
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } .panel { margin: 0 var(--s3); } }

/* ---------- type ---------- */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.label::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.panel--cream .label, .on-light .label { color: var(--blue-600); }
.panel--gold .label { color: var(--blue-600); }
/* highlights on white/paper: ink words on a Robinhood-green marker */
.panel--gold .hl, .panel--gold .hl .w, .page-head .hl, .panel--cream .hl, .panel--cream .hl .w, .closing .hl, .closing .hl .w { color: var(--ink); background: linear-gradient(transparent 58%, #00C805 58%, #00C805 92%, transparent 92%); -webkit-background-clip: border-box; background-clip: border-box; }
.hl { color: transparent; background: linear-gradient(120deg, var(--hl-a, var(--gold-300)) 0%, var(--hl-b, var(--gold)) 55%, var(--hl-a, var(--gold-300)) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; padding-right: .04em; }
.sh { display: flex; flex-direction: column; gap: var(--s4); max-width: 760px; margin-bottom: var(--s7); }
.sh--center { margin-inline: auto; text-align: center; align-items: center; }
.sh__title { font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.sh__lead { font-size: 18px; line-height: 1.45; color: var(--on-2); max-width: 620px; letter-spacing: -.01em; }
.panel--gold .sh__lead, .panel--cream .sh__lead, .on-light .sh__lead { color: var(--ink-2); }
@media (min-width: 768px) { .sh__title { font-size: 56px; letter-spacing: -.045em; line-height: 1.04; } .sh__lead { font-size: 20px; } }
.words .w { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { --bh: 42px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--bh); padding: 0 18px; border-radius: var(--r-full); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 550; letter-spacing: -.01em; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--lg { --bh: 52px; padding: 0 26px; font-size: 16px; }
.btn--sm { --bh: 34px; padding: 0 14px; font-size: 14px; }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 30px -12px rgba(0, 200, 5, .7), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn--gold:hover { background: var(--gold-300); box-shadow: 0 16px 40px -12px rgba(0, 200, 5, .85); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--blue-600); }
.btn--ink { background: var(--navy-900); color: #fff; }
.btn--ink:hover { background: var(--navy); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.panel--gold .btn--ghost, .panel--cream .btn--ghost, .on-light .btn--ghost, .card .btn--ghost { background: rgba(10, 11, 7, .06); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 11, 7, .22); }
.panel--gold .btn--ghost:hover, .panel--cream .btn--ghost:hover, .on-light .btn--ghost:hover, .card .btn--ghost:hover { background: rgba(10, 11, 7, .12); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; }
.btn--danger { background: rgba(255, 90, 78, .14); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 90, 78, .4); }
.card .btn--danger { color: var(--red-ink); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- pills, chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 550; background: rgba(255, 255, 255, .1); color: var(--on-2); white-space: nowrap; }
.card .pill, .on-light .pill { background: rgba(10, 11, 7, .08); color: var(--ink-2); }
.pill--gold { background: var(--gold); color: var(--navy-900) !important; }
.pill--ok { background: rgba(0, 200, 5, .16); color: var(--green); }
.card .pill--ok, .on-light .pill--ok { background: rgba(30, 122, 18, .12); color: var(--green-ink); }
.pill--warn { background: rgba(217, 154, 0, .2); color: #FFC94D; }
.card .pill--warn, .on-light .pill--warn { background: rgba(217, 154, 0, .16); color: #8A5A00; }
.pill--bad { background: rgba(255, 90, 78, .16); color: var(--red); }
.card .pill--bad, .on-light .pill--bad { background: rgba(200, 48, 42, .12); color: var(--red-ink); }
.pill--example { background: var(--gold); color: var(--navy-900); font-family: var(--mono); letter-spacing: .06em; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 200, 5, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, .55); } 70% { box-shadow: 0 0 0 8px rgba(0, 200, 5, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); } }
.act { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 22px; padding: 0 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.act--buy { background: rgba(0, 200, 5, .18); color: var(--green); }
.act--sell { background: rgba(122, 90, 224, .24); color: #C4B5FF; }
.act--skip { background: rgba(255, 255, 255, .1); color: var(--on-2); }
.card .act--buy, .on-light .act--buy { background: rgba(30, 122, 18, .12); color: var(--green-ink); }
.card .act--sell, .on-light .act--sell { background: rgba(122, 90, 224, .12); color: #5B3FC4; }
.card .act--skip, .on-light .act--skip { background: rgba(10, 11, 7, .08); color: var(--ink-2); }

/* ---------- cards ---------- */
.card { background: var(--cream); color: var(--ink); border-radius: var(--r-xl); padding: var(--s5); min-width: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 50px -30px rgba(0, 0, 0, .5); }
.card--flat { box-shadow: none; }
.card--glass { background: rgba(255, 255, 255, .05); color: var(--on); box-shadow: inset 0 0 0 1px var(--on-line); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.card__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card a:not(.btn) { color: var(--blue-600); }
.grid { display: grid; gap: var(--s4); }
.grid > * { min-width: 0; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--s2) * -1); padding: 0 var(--s2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--ink-line); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--ink-line); white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tbl tbody tr { transition: background-color .2s; }
.tbl--click tbody tr { cursor: pointer; }
.tbl--click tbody tr:hover { background: rgba(10, 11, 7, .05); }
.tbl .rank { color: var(--ink-3); width: 28px; }
.tbl a.row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.tbl a.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl--dark th { color: var(--on-3); border-color: var(--on-line); }
.tbl--dark td { border-color: var(--on-line); }
.tbl--dark .sub, .tbl--dark .rank { color: var(--on-3); }
.tbl--dark tbody tr:hover { background: rgba(255, 255, 255, .04); }
.tbl--dark a.row-link { color: #fff; }
@media (max-width: 720px) { .hide-sm { display: none; } }
@media (max-width: 1000px) { .hide-md { display: none; } }

/* ---------- avatars, scores ---------- */
.ava { position: relative; width: 36px; height: 36px; border-radius: 10px; flex: none; overflow: hidden; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.ava img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ava--lg { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; }
.ava--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell > span { min-width: 0; }
.cell b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.score { --v: 0; --c: var(--green); position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(10, 11, 7, .12) 0); display: grid; place-items: center; }
.score::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--cream); }
.score b { position: relative; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.score--warn { --c: #D99A00; } .score--bad { --c: var(--red-ink); } .score--ok { --c: var(--green-ink); }
.score--lg { width: 88px; height: 88px; } .score--lg::before { inset: 7px; } .score--lg b { font-size: 28px; }
.score--sm { width: 34px; height: 34px; } .score--sm::before { inset: 3px; } .score--sm b { font-size: 12px; }
.panel--navy .score::before, .tbl--dark .score::before, .on-dark .score::before { background: var(--navy-800); }
.panel--navy .score b, .tbl--dark .score b, .on-dark .score b { color: #fff; }
.verdict { font-size: 12px; font-weight: 650; letter-spacing: .02em; }

/* ---------- forms ---------- */
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--ink-line); background: #fff; color: var(--ink); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(43, 107, 14, .18); }
.input--dark { background: rgba(255, 255, 255, .06); border-color: var(--on-line); color: #fff; }
.input--dark::placeholder { color: var(--on-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-full); background: rgba(10, 11, 7, .08); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg--dark { background: rgba(255, 255, 255, .08); }
.seg--dark button { color: var(--on-2); }
.seg--dark button[aria-pressed="true"] { background: var(--gold); color: var(--navy-900); }

/* ---------- skeleton + states ---------- */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(10, 11, 7, .07) 25%, rgba(10, 11, 7, .14) 50%, rgba(10, 11, 7, .07) 75%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.on-dark .sk, .panel--navy .sk, .panel--deep .sk, .tbl--dark .sk { background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 75%); background-size: 200% 100%; }
@keyframes sk { to { background-position: -200% 0; } }
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 36px 18px; color: var(--ink-2); }
.state__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(10, 11, 7, .08); color: var(--navy); }
.state__icon svg { width: 22px; height: 22px; }
.state b { color: var(--ink); font-size: 16px; }
.state p { max-width: 420px; font-size: 14px; }
.state--err .state__icon { background: rgba(200, 48, 42, .1); color: var(--red-ink); }
.on-dark .state, .tbl--dark .state { color: var(--on-2); }
.on-dark .state b { color: #fff; }
.on-dark .state__icon { background: rgba(255, 255, 255, .08); color: var(--gold); }
.example-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: inherit; opacity: .85; }

/* ---------- top nav (marketing pages) ---------- */
.nav { position: sticky; top: 0; z-index: 100; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.nav.is-scrolled { background: rgba(10, 11, 7, .96); box-shadow: 0 1px 0 var(--on-line), 0 12px 30px -20px rgba(0, 0, 0, .6); }
.nav__bar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav__links { display: none; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; height: 36px; align-items: center; padding: 0 12px; border-radius: var(--r-full); text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--on-2); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; text-decoration: none; transition: background-color .2s, transform .3s var(--ease); flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.icon-btn svg { width: 17px; height: 17px; }
.nav__social { display: none; }
.menu-btn { display: inline-grid; }
@media (min-width: 980px) { .nav__links { display: flex; } .menu-btn { display: none; } .nav__social { display: inline-grid; } }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--navy-900); padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--on-line); }
.menu .menu__social { display: flex; gap: 10px; margin-top: 18px; border: 0; }
.menu .menu__social a { border: 0; font-size: 15px; padding: 10px 14px; background: rgba(255, 255, 255, .08); border-radius: var(--r-full); }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: var(--s2); padding: var(--s8) 0 0; overflow: hidden; color: var(--on-2); font-size: 14px; }
.footer__grid { display: grid; gap: var(--s6) var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s3); max-width: 340px; }
.footer__brand p { color: var(--on-3); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; letter-spacing: .02em; }
.footer__col a { text-decoration: none; color: var(--on-2); width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__status { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: var(--r-full); background: rgba(255, 255, 255, .06); font-size: 12.5px; color: var(--on-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--on-line); font-size: 13px; color: var(--on-3); }
.footer__bottom b { color: var(--gold); font-weight: 600; }
.footer__mark { margin: var(--s5) 0 -.2em; text-align: center; font-weight: 700; letter-spacing: -.06em; line-height: .86; font-size: 19.5vw; color: transparent; background: linear-gradient(180deg, var(--gold) 0%, rgba(0, 200, 5, .55) 45%, rgba(0, 200, 5, 0) 92%); -webkit-background-clip: text; background-clip: text; user-select: none; pointer-events: none; white-space: nowrap; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- modal / dialog / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 3, .72); }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--cream); color: var(--ink); border-radius: var(--r-xl); padding: 28px 24px 24px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); animation: pop .35s var(--spring); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(10, 11, 7, .08); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.modal__x svg { width: 16px; height: 16px; }
.modal h2 { font-size: 24px; letter-spacing: -.03em; font-weight: 650; }
.modal p { color: var(--ink-2); font-size: 15px; }
.modal .soon-mark { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 260; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--gold); color: var(--navy-900); font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: var(--r-full); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); transition: transform .4s var(--spring), opacity .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wallet list (connect modal) ---------- */
.wl-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ink-line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; text-align: left; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.wl:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(10, 11, 7, .5); }
.wl img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.wl b { flex: 1; font-weight: 600; font-size: 15px; }
.wl small { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); background: rgba(10, 11, 7, .07); color: var(--ink-2); }
.wl small.det { background: rgba(30, 122, 18, .12); color: var(--green-ink); }
.modal__fine { margin-top: 16px; font-size: 12.5px !important; color: var(--ink-3) !important; display: flex; gap: 8px; align-items: flex-start; }
.modal__fine svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---------- app shell (inner pages) ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; padding: 0 12px 0 16px; background: var(--navy-900); border-bottom: 1px solid var(--on-line); }
.side__nav { display: none; }
.side__foot { display: none; }
.side .menu-btn { display: inline-grid; }
.main { min-width: 0; padding: 12px 8px 0; }
.page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.page-head { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-2xl); padding: 32px 20px; color: var(--ink); background: radial-gradient(60% 120% at 100% 0%, rgba(0, 200, 5, .16), transparent 60%), #FAFBF5; box-shadow: inset 0 0 0 1px rgba(10, 11, 7, .06); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-head .dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(10, 11, 7, .14) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-head h1 { font-size: 38px; line-height: 1.02; font-weight: 650; letter-spacing: -.045em; }
.page-head p { margin-top: 10px; font-size: 16.5px; color: var(--ink-2); max-width: 620px; }
.page-head .crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-head .crumbs a { color: var(--ink); }
.page-head--navy { color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(0, 200, 5, .16), transparent 60%), linear-gradient(160deg, #151812, #0A0B07); box-shadow: inset 0 0 0 1px var(--on-line); }
.page-head--navy p, .page-head--navy .crumbs { color: var(--on-2); }
.page-head--navy .crumbs a { color: #fff; }
.page-head--navy .dots { background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px); }
@media (min-width: 768px) { .page-head { padding: 44px 40px; } .page-head h1 { font-size: 52px; } .main { padding: 12px 12px 0; } }
@media (min-width: 1080px) {
  .shell { grid-template-columns: 248px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 18px 14px; border-bottom: 0; border-right: 1px solid var(--on-line); overflow-y: auto; }
  .side .menu-btn { display: none; }
  .side__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
  .side__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
  .main { padding: 12px 12px 0 12px; }
}
.side__group { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--on-3); padding: 16px 10px 6px; }
.side__nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--on-2); transition: background-color .2s, color .2s; }
.side__nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.side__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side__nav a[aria-current="page"] { background: var(--gold); color: var(--navy-900); font-weight: 600; }
.side__nav a[aria-current="page"] svg { opacity: 1; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 13px; min-width: 0; }
.who img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.who b { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.who small { display: flex; align-items: center; gap: 5px; color: var(--on-3); font-size: 11.5px; }
.who small.ok { color: var(--green); }
.who > span { min-width: 0; flex: 1; }
.shell .footer { margin: 16px -8px 0; padding-top: 48px; }
@media (min-width: 768px) { .shell .footer { margin: 16px -12px 0; } }

/* ---------- drawer (mobile app shell) ---------- */
.drawer { position: fixed; inset: 60px 0 0 0; z-index: 95; background: var(--navy-900); overflow-y: auto; padding: 8px 12px 32px; }
.drawer .side__nav { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.drawer .side__nav a { height: 46px; font-size: 16px; }
.drawer .side__foot { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- misc ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; text-align: right; }
.spark { width: 100%; height: 44px; overflow: visible; }
.ev { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--blue-600); display: inline-flex; align-items: center; gap: 4px; }
.ev:hover { text-decoration: underline; }
.ev svg { width: 12px; height: 12px; }
.on-dark .ev, .tbl--dark .ev { color: #00C805; }
.badge-ver { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: var(--r-full); background: rgba(30, 122, 18, .12); color: var(--green-ink); font-size: 12px; font-weight: 650; }
.badge-ver svg { width: 16px; height: 16px; }
.on-dark .badge-ver { background: rgba(0, 200, 5, .16); color: var(--green); }
.reveal { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- odometer ticker ---------- */
.odo { display: inline-flex; align-items: baseline; overflow: hidden; line-height: 1; height: 1em; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__d > span { display: flex; flex-direction: column; transition: transform 1.6s var(--ease); }
.odo__d i { font-style: normal; height: 1em; line-height: 1; display: block; }
.odo__s { display: inline-block; }

/* ---------- EXAMPLE flag (sample data while the engine is not connected) ---------- */
.ex-flag { position: fixed; left: 12px; bottom: 12px; z-index: 150; display: flex; align-items: center; gap: 10px; max-width: min(460px, calc(100vw - 24px)); padding: 8px 14px 8px 8px; border-radius: var(--r-full); background: var(--navy-900); color: var(--on-2); font-size: 12.5px; line-height: 1.3; box-shadow: 0 0 0 1px rgba(0, 200, 5, .5), 0 16px 40px -16px rgba(0, 0, 0, .7); }
[data-example-note] { font-family: var(--mono); }

/* ---------- charts ---------- */
.lc { position: relative; }
.lc svg { overflow: visible; touch-action: pan-y; }
.lc__tip { position: absolute; top: 4px; z-index: 5; min-width: 150px; padding: 8px 10px; border-radius: 10px; background: var(--navy-900); color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.lc__tip small { display: block; color: var(--on-3); font-size: 11px; }
.lc__tip div { display: flex; align-items: center; gap: 6px; }
.lc__tip i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.lc__tip b { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; height: 2px; }
.bc { display: flex; align-items: flex-end; gap: 4px; position: relative; }
.bc__col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; border-radius: 4px; }
.bc__col:hover .bc__bar, .bc__col:focus .bc__bar { background: var(--gold-600); }
.bc__bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #2B6B0E; transition: background-color .2s; }
.bc__x { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
/* split titles: each word inside a highlight paints its own gradient (background-clip does not reach inline-blocks) */
.hl .w { color: transparent; background-image: linear-gradient(120deg, var(--hl-a, var(--gold-300)) 0%, var(--hl-b, var(--gold)) 55%, var(--hl-a, var(--gold-300)) 100%); -webkit-background-clip: text; background-clip: text; padding-right: .03em; }
.fitem .act--buy, .phone__screen .act--buy, .ccard .act--buy, .vcard .act--buy { background: rgba(30, 122, 18, .12); color: var(--green-ink); }
.fitem .act--sell, .phone__screen .act--sell, .ccard .act--sell { background: rgba(122, 90, 224, .12); color: #5B3FC4; }
.fitem .act--skip, .phone__screen .act--skip, .ccard .act--skip { background: rgba(10, 11, 7, .08); color: var(--ink-2); }
.fitem .up { color: var(--green-ink); } .fitem .down { color: var(--red-ink); }

/* ---------- decision rows (droid, launch, dashboard, verify) ---------- */
.drow { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); min-width: 0; }
.drow:last-child { border-bottom: 0; }
.drow__a { flex: none; padding-top: 1px; }
.drow__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.drow__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.drow__top a { color: var(--ink); text-decoration: none; }
.drow__top a:hover { text-decoration: underline; }
.drow__t { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.drow p { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.drow__ev { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-3); }
.drow__ev b { color: var(--ink-2); font-weight: 550; font-family: var(--mono); }
.drow .up { color: var(--green-ink); } .drow .down { color: var(--red-ink); }
.pill--replay { background: rgba(122, 90, 224, .16); color: #5B3FC4; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; height: 20px; padding: 0 7px; }
.tbl--dark .pill--replay, .on-dark .pill--replay { background: rgba(122, 90, 224, .24); color: #C4B5FF; }
.strat-cell { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* ---------- white + Robinhood green: light surfaces ---------- */
.panel--gold .btn--gold, .page-head .btn--gold { background: #00C805; color: #0A0B07; box-shadow: 0 10px 26px -12px rgba(0, 160, 4, .7); }
.panel--gold .btn--gold:hover, .page-head .btn--gold:hover { background: #2EE033; }
.panel--gold .btn--ink, .page-head .btn--ink { background: var(--ink); color: #fff; }
.page-head .btn--ghost { background: rgba(10, 11, 7, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 11, 7, .3); }
.page-head p, .page-head .crumbs { color: rgba(10, 11, 7, .78); }
.page-head--navy p, .page-head--navy .crumbs { color: var(--on-2); }
.page-head--navy .btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.panel--gold .pill { background: rgba(10, 11, 7, .1); color: var(--ink); }
.page-head:not(.page-head--navy) .dot-live { background: var(--green); }

.card, .on-light, .panel--gold, .panel--cream, .page-head { --spark-up: #1E7A12; --spark-down: #C8302A; }
