/* Evergreen design system.
   Editorial and restrained: near-black evergreen ground, hairline structure, one mint accent used sparingly,
   Geist for UI, Geist Mono for numbers, Instrument Serif italic for emphasis. */
:root {
  --bg: #050807; --bg-2: #080d0c; --panel: #0a100f; --panel-2: #0f1615; --panel-3: #16201e;
  --line: rgba(220, 255, 243, .075); --line-2: rgba(220, 255, 243, .13); --line-3: rgba(220, 255, 243, .2);
  --text: #edf5f1; --muted: #94a39d; --faint: #5f6e69;
  --mint: #97fce4; --mint-2: #50d2c1; --mint-3: #2fa89a; --mint-soft: rgba(151, 252, 228, .07); --mint-line: rgba(151, 252, 228, .2);
  --leaf: #3ddc84; --leaf-2: #2bb673;
  --sell: #97fce4; --buy: #2bb673;
  --c-ladder: #26a495; --c-hold: #c57a3c;           /* chart series, validated for colorblind separation */
  --amber: #f2b84b; --amber-soft: rgba(242, 184, 75, .1); --red: #ed7088;
  --radius: 18px; --radius-sm: 12px;
  --sans: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", Inter, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
}
/* Atmosphere: a top light and a fine grid that fades out. */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1000px 560px at 50% -260px, rgba(151, 252, 228, .13), transparent 70%), radial-gradient(700px 500px at 100% 10%, rgba(61, 220, 132, .04), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(220,255,243,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(220,255,243,.028) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 80%); }
main { flex: 1; overflow-x: clip; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hidden { display: none !important; }
::selection { background: rgba(151, 252, 228, .25); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 500; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.2s infinite; flex: none; }
.live.preview { color: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(151,252,228,.45); } 70% { box-shadow: 0 0 0 7px rgba(151,252,228,0); } 100% { box-shadow: 0 0 0 0 rgba(151,252,228,0); } }

/* ---------------------------------------------------------------- header */
header.top { position: sticky; top: 0; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.top.scrolled { background: rgba(5, 8, 7, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
header.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: -0.03em; color: var(--text); justify-self: start; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(160deg, #123a31, #071512 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(151,252,228,.16), 0 6px 18px -6px rgba(151,252,228,.35); }
nav.links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(14, 22, 21, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
nav.links a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s; }
nav.links a:hover { color: var(--text); text-decoration: none; }
nav.links a.on { color: var(--text); background: var(--panel-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px var(--line); }
.header-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.pill { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.dot.ok { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.dot.soon { background: var(--amber); box-shadow: 0 0 8px rgba(242,184,75,.6); }
.subnav { display: none; }

/* ---------------------------------------------------------------- buttons + inputs */
button, .btn { font: inherit; font-weight: 500; font-size: 14px; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; color: #03110d; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; letter-spacing: -0.005em;
  background: linear-gradient(180deg, #c9fff2, var(--mint) 60%, #84efd8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(151,252,228,.8);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, filter .2s, color .2s; }
button:hover:not(:disabled), .btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -12px rgba(151,252,228,.85); }
button:active:not(:disabled), .btn:active { transform: translateY(0); }
button:disabled { background: var(--panel-3); color: var(--faint); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
button.ghost, .btn.ghost { background: rgba(255,255,255,.025); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
button.ghost:hover:not(:disabled), .btn.ghost:hover { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-3); }
button.ghost:disabled { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
button.small, .btn.small { padding: 7px 13px; font-size: 13px; }
button.lg, .btn.lg { padding: 13px 24px; font-size: 15px; }
button.full { width: 100%; padding: 15px; margin-top: 18px; font-size: 15px; border-radius: 14px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
input, select { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; outline: none; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { border-color: var(--mint-3); box-shadow: 0 0 0 4px var(--mint-soft); }
input[type=range] { width: 100%; padding: 0; accent-color: var(--mint); border: 0; background: none; box-shadow: none !important; }

/* ---------------------------------------------------------------- layout blocks */
.page-head { padding: 64px 0 18px; position: relative; }
.page-head h1 { font: 600 clamp(36px, 5vw, 60px)/1.02 var(--display); letter-spacing: -0.045em; margin: 18px 0 14px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); padding: 7px 12px; border-radius: 999px; background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--mint-line); }
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
section.block { padding: 36px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font: 600 clamp(24px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.035em; margin: 0; }
.sec-head p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.card { background: linear-gradient(180deg, rgba(220,255,243,.022), rgba(220,255,243,0) 140px), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 1px 2px rgba(0,0,0,.35); }
.card.glow { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(151,252,228,.04), 0 50px 100px -50px rgba(151,252,228,.28); }
.card h3 { margin: 0 0 16px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; }
.hint { font-size: 13px; color: var(--muted); }
.hint b { color: var(--text); font-weight: 500; }
.note { font-size: 13px; color: var(--muted); background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; margin-top: 14px; }
.note.good { color: var(--mint); background: var(--mint-soft); border-color: var(--mint-line); }
.banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, rgba(242,184,75,.09), rgba(242,184,75,.02)); border: 1px solid rgba(242,184,75,.2); color: var(--muted); border-radius: 14px; padding: 13px 16px; font-size: 14px; margin: 26px 0 0; }
.banner b { color: var(--amber); font-weight: 500; }
.banner .b-ic { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,184,75,.14); flex: none; margin: 0 2px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); white-space: nowrap; }
.kv span:last-child { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13.5px; }
.tag { font: 500 11px var(--mono); padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); white-space: nowrap; }
.tag.g { background: var(--mint-soft); color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint-line); }
.tag.a { background: var(--amber-soft); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(242,184,75,.22); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip > div { padding: 24px 26px 24px 0; min-width: 0; }
.stat-strip > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.stat-strip .k { font: 500 11.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-strip .v { font: 500 34px/1.15 var(--display); letter-spacing: -0.04em; margin-top: 8px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-strip .v.g { color: var(--mint); }
.stat-strip .s { font-size: 13px; color: var(--faint); margin-top: 2px; }

/* ---------------------------------------------------------------- segmented controls */
.seg-ctl { display: flex; gap: 2px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); padding: 3px; border-radius: 12px; }
.seg-ctl button { flex: 1; background: transparent; color: var(--muted); padding: 8px 8px; border-radius: 9px; font-size: 13.5px; font-weight: 500; min-width: 0; box-shadow: none; }
.seg-ctl button:hover:not(:disabled) { color: var(--text); box-shadow: none; transform: none; }
.seg-ctl button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px var(--line-2), 0 2px 6px rgba(0,0,0,.35); }
.field { margin-top: 18px; }
.field > label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 400; }
.field > label b { color: var(--text); font-weight: 500; text-align: right; }
.amt { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 10px 16px; transition: border-color .15s, box-shadow .15s; }
.amt:focus-within { border-color: var(--mint-3); box-shadow: 0 0 0 4px var(--mint-soft); }
.amt input { flex: 1; border: 0; background: transparent; font: 500 24px var(--mono); padding: 4px 0; box-shadow: none !important; letter-spacing: -0.02em; }
.amt .sym { font-weight: 500; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.amt a, .field a { font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }

/* ---------------------------------------------------------------- pools + tokens */
.pool-list { display: grid; gap: 8px; margin-top: 12px; }
.pool-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; color: var(--text); font-weight: 500; width: 100%; flex-wrap: wrap; }
.pool-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--mint-3); transform: none; }
.pool-opt.sel { box-shadow: inset 0 0 0 1px var(--mint-line), 0 0 0 3px var(--mint-soft); background: linear-gradient(90deg, rgba(151,252,228,.06), transparent 70%), var(--bg-2); }
.tok { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.tok-icons { display: inline-flex; }
.tok-icons span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 600; color: #04120f; border: 2px solid var(--panel); }
.tok-icons span + span { margin-left: -8px; }

/* ---------------------------------------------------------------- ladder bars */
.ladder { position: relative; height: 180px; margin: 8px 0 6px; display: flex; align-items: flex-end; gap: 3px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.ladder .bar { flex: 1; border-radius: 4px 4px 1px 1px; min-height: 2px; transition: height .3s var(--ease), background .2s, opacity .2s; }
.ladder .bar.t1 { background: linear-gradient(180deg, var(--sell), rgba(151,252,228,.22)); }
.ladder .bar.t0 { background: linear-gradient(180deg, var(--buy), rgba(43,182,115,.22)); }
.ladder .bar.off { background: rgba(255,255,255,.04); }
.ladder .bar.fill { background: repeating-linear-gradient(135deg, var(--mint-3) 0 5px, rgba(47,168,154,.4) 5px 9px); box-shadow: 0 0 14px rgba(151,252,228,.22); }
.ladder .bar.fill.t0 { background: repeating-linear-gradient(135deg, var(--leaf-2) 0 5px, rgba(43,182,115,.4) 5px 9px); }
.ladder .bar.part { opacity: .75; }
.ladder .now { width: 1.5px; align-self: stretch; background: var(--text); position: relative; flex: none; }
.ladder .now span { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); font: 500 10.5px var(--mono); color: #04120f; background: var(--text); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ladder .whatif { position: absolute; top: 20px; bottom: 0; width: 0; border-left: 1.5px dashed var(--amber); pointer-events: none; transition: left .15s; }
.ladder .whatif span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 500 10.5px var(--mono); color: #1a1204; background: var(--amber); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ladder-labels { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--faint); gap: 8px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; align-items: center; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.legend i.line { height: 2px; border-radius: 0; }
.legend i.dash { height: 0; border-top: 2px dashed; background: none !important; }

.whatif-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.whatif-box .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.whatif-box .head b { font: 500 15px var(--display); }
.whatif-box .head .mono { color: var(--amber); font-size: 13px; }
.outcome { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.outcome > div { background: var(--panel); padding: 13px 14px; min-width: 0; }
.outcome .k { font-size: 12px; color: var(--muted); }
.outcome .v { font: 500 18px var(--mono); margin-top: 4px; overflow-wrap: anywhere; letter-spacing: -0.02em; }
.outcome .v.g { color: var(--mint); }

/* ---------------------------------------------------------------- positions */
.positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.pos-card .top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }
.pos-card .name { font: 500 18px var(--display); letter-spacing: -0.02em; }
.pos-card .ladder { height: 72px; }
.pos-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pos-card.example { border-style: dashed; }

/* ---------------------------------------------------------------- results */
.coin-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.coin-chip { flex: none; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); border-radius: 999px; padding: 6px 11px; font: 500 12px var(--mono); }
.coin-chip:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); transform: none; }
.coin-chip.on { color: var(--text); box-shadow: inset 0 0 0 1px var(--mint-line); background: var(--mint-soft); }
.coin-chip b { color: var(--mint); font-weight: 500; }
.coin-chip b.neg { color: var(--c-hold); }
.chart-wrap { position: relative; }
.chart-canvas { display: block; width: 100%; height: 380px; }
.tip { position: absolute; pointer-events: none; background: rgba(15,22,21,.94); backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; font-size: 12px; min-width: 160px; box-shadow: 0 16px 40px rgba(0,0,0,.55); transform: translate(-50%, -110%); white-space: nowrap; z-index: 5; }
.tip .r { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.tip .r span:first-child { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tip .r b { font-family: var(--mono); font-weight: 500; }
.play-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.play-row input { flex: 1; }
.bars { display: flex; align-items: center; gap: 4px; height: 210px; position: relative; }
.bars .b { flex: 1; position: relative; height: 100%; cursor: pointer; }
.bars .b i { position: absolute; left: 1px; right: 1px; border-radius: 4px; }
.bars .b.pos i { background: linear-gradient(180deg, var(--mint-2), var(--c-ladder)); border-radius: 5px 5px 1px 1px; }
.bars .b.neg i { background: var(--c-hold); border-radius: 1px 1px 5px 5px; }
.bars .b:hover i, .bars .b.on i { filter: brightness(1.3); box-shadow: 0 0 16px rgba(151,252,228,.3); }
.bars .zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); }
.cmp-table th { color: var(--faint); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.cmp-table td.num, .cmp-table th.num { text-align: right; }
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.05); overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-ladder), var(--mint-2)); border-radius: 3px; }

/* ---------------------------------------------------------------- rewards + stake */
.flow { width: 100%; height: auto; display: block; }
.flow .dotflow { animation: flow 3.2s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.gauge { display: flex; align-items: baseline; gap: 10px; }
.gauge .big { font: 500 64px/1 var(--display); color: var(--mint); letter-spacing: -0.05em; }
.gauge-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); margin: 16px 0 8px; position: relative; overflow: hidden; }
.gauge-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--mint-3), var(--mint)); border-radius: 4px; transition: width .25s var(--ease); box-shadow: 0 0 12px rgba(151,252,228,.4); }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 30; max-width: 380px; }
.toast { background: rgba(15,22,21,.96); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-left: 2px solid var(--muted); border-radius: 12px; padding: 13px 15px; font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow-wrap: anywhere; }
.toast.ok { border-left-color: var(--mint); } .toast.err { border-left-color: var(--red); } .toast.pending { border-left-color: var(--amber); }
.toast ol { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.toast li { display: flex; align-items: center; gap: 8px; color: var(--faint); padding: 2px 0; }
.toast li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.toast li.now { color: var(--amber); } .toast li.now::before { background: currentColor; }
.toast li.done { color: var(--mint); } .toast li.done::before { background: currentColor; }

/* ---------------------------------------------------------------- footer */
footer.bottom { margin-top: 80px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
footer.bottom .wrap { padding-top: 56px; padding-bottom: 28px; font-size: 13px; color: var(--faint); position: relative; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; padding-bottom: 48px; }
.foot-brand p { color: var(--muted); margin: 16px 0 0; font-size: 14px; max-width: 300px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-cols h5 { margin: 0 0 14px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.foot-cols a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.foot-cols a:hover { color: var(--text); text-decoration: none; }
.foot-status { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--faint); }
.foot-status b { color: var(--muted); font-weight: 500; }
.foot-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; }
.foot-word { font: 600 clamp(80px, 17vw, 240px)/.8 var(--display); letter-spacing: -0.06em; text-align: center; margin: 40px 0 -0.14em; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(151,252,228,.11), rgba(151,252,228,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- home: hero */
.hero { text-align: center; padding: 88px 0 0; position: relative; }
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(14,22,21,.6); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.announce:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--mint-line); color: var(--text); }
.announce .tag { background: var(--amber-soft); color: var(--amber); box-shadow: none; padding: 4px 9px; }
.hero h1 { font: 600 clamp(48px, 8.4vw, 104px)/.95 var(--display); letter-spacing: -0.055em; margin: 30px auto 24px; max-width: 980px; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.03em; background: linear-gradient(100deg, #e6fff8 10%, var(--mint) 45%, var(--leaf) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; max-width: 600px; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* The instrument: the signature live chart. */
.instrument { position: relative; margin: 72px auto 0; max-width: 1120px; border-radius: 24px; padding: 1px; background: linear-gradient(180deg, rgba(151,252,228,.28), rgba(151,252,228,.04) 40%, rgba(255,255,255,.03)); box-shadow: 0 60px 140px -60px rgba(151,252,228,.35), 0 30px 60px -30px rgba(0,0,0,.8); }
.instrument::before { content: ""; position: absolute; inset: -120px -10% auto; height: 300px; background: radial-gradient(closest-side, rgba(151,252,228,.16), transparent); z-index: -1; pointer-events: none; }
.inst-in { border-radius: 23px; overflow: hidden; background: linear-gradient(180deg, #0b1312, #070b0a 70%); text-align: left; }
.inst-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inst-title { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.inst-title b { color: var(--text); font-weight: 500; }
.inst-dots { display: flex; gap: 6px; }
.inst-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.08); }
.inst-ctl { display: flex; gap: 8px; align-items: center; }
.inst-ctl .seg-ctl button { padding: 5px 11px; font-size: 12.5px; white-space: nowrap; }
.inst-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.sim-canvas { display: block; width: 100%; height: 400px; cursor: crosshair; }
.inst-side { border-left: 1px solid var(--line); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 18px; background: rgba(0,0,0,.14); }
.inst-side .k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.inst-side .v { font: 500 28px/1.15 var(--mono); letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.inst-side .v small { font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.inst-side .v.g { color: var(--mint); }
.inst-side .sep { height: 1px; background: var(--line); }
.inst-verdict { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); min-height: 76px; transition: background .4s, box-shadow .4s; }
.inst-verdict b { display: block; font: 500 20px var(--mono); color: var(--text); letter-spacing: -0.03em; margin-bottom: 2px; }
.inst-verdict.win { background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--mint-line); }
.inst-verdict.win b { color: var(--mint); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

/* Proof strip under the hero. */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 30px 28px; text-align: left; }
.proof > div + div { border-left: 1px solid var(--line); }
.proof .v { font: 500 clamp(34px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.proof .v .u { color: var(--faint); font-size: .55em; letter-spacing: -0.02em; margin-left: 2px; }
.proof .v.g { color: var(--mint); }
.proof .k { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Home sections. */
.sect { padding: 130px 0 0; }
.sect-head { max-width: 720px; margin-bottom: 52px; }
.sect-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.kicker .ix { color: var(--faint); }
.sect h2 { font: 600 clamp(34px, 4.6vw, 58px)/1.02 var(--display); letter-spacing: -0.05em; margin: 0; }
.sect h2 .serif { color: var(--mint); font-size: 1.06em; }
.sect-head p { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 20px 0 0; }

/* Two-way vs one-way comparison. */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 50%), var(--panel); overflow: hidden; }
.vs.good { border-color: var(--mint-line); background: radial-gradient(500px 220px at 80% 0%, rgba(151,252,228,.08), transparent 70%), var(--panel); box-shadow: 0 40px 100px -60px rgba(151,252,228,.4); }
.vs-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 26px 0; }
.vs-head h3 { font: 500 20px var(--display); letter-spacing: -0.03em; margin: 0; }
.vs-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; max-width: 320px; }
.vs-num { text-align: right; flex: none; }
.vs-num .v { font: 500 26px var(--mono); letter-spacing: -0.04em; }
.vs-num .k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.vs.bad .vs-num .v { color: var(--c-hold); }
.vs.good .vs-num .v { color: var(--mint); }
.vs canvas { display: block; width: 100%; height: 230px; }
.vs-foot { display: flex; gap: 18px; padding: 0 26px 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.vs-foot span { display: inline-flex; align-items: center; gap: 7px; }
.vs-foot i { width: 14px; height: 2px; display: inline-block; border-radius: 2px; }

/* How it works. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 32px 8px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .n { font: 500 12px var(--mono); color: var(--mint); letter-spacing: .06em; }
.step h4 { font: 500 22px/1.25 var(--display); letter-spacing: -0.03em; margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step svg { display: block; width: 100%; height: 150px; margin-top: 26px; border-radius: 16px; background: radial-gradient(120% 100% at 50% 0%, rgba(151,252,228,.06), transparent 70%), rgba(255,255,255,.015); box-shadow: inset 0 0 0 1px var(--line); }

/* Backtest. */
.bt { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: center; }
.bt-big { font: 500 clamp(80px, 11vw, 150px)/.9 var(--display); letter-spacing: -0.07em; background: linear-gradient(180deg, #e6fff8, var(--mint) 60%, var(--mint-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-big .of { font-size: .4em; letter-spacing: -0.03em; -webkit-text-fill-color: var(--faint); margin-left: 6px; }
.bt-lead { color: var(--muted); font-size: 17px; margin: 18px 0 28px; max-width: 380px; }
.bt-chart { border-radius: 22px; border: 1px solid var(--line); background: var(--panel); padding: 24px 24px 18px; position: relative; }
.bt-chart .head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.bt-chart .head b { color: var(--text); font-weight: 500; }
.bt-bars { display: flex; align-items: flex-end; gap: 5px; height: 240px; position: relative; border-bottom: 1px solid var(--line-2); }
.bt-bars a { flex: 1; height: 100%; position: relative; display: block; }
.bt-bars a i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, var(--mint), var(--c-ladder) 60%, rgba(38,164,149,.5)); transition: filter .2s, transform .8s var(--ease); transform-origin: bottom; }
.bt-bars a.neg i { background: var(--c-hold); bottom: auto; top: 100%; border-radius: 1px 1px 5px 5px; transform-origin: top; }
.bt-bars a:hover i { filter: brightness(1.25) drop-shadow(0 0 10px rgba(151,252,228,.5)); }
.bt-bars a .lbl { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 500 11px var(--mono); color: var(--text); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; background: var(--panel-3); padding: 3px 7px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line-2); z-index: 2; }
.bt-bars a:hover .lbl { opacity: 1; }
.bt-chart .axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); margin-top: 22px; }
.rv .bt-bars a i { transform: scaleY(0); }
.rv.in .bt-bars a i { transform: scaleY(1); }

/* Use cases. */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 60%), var(--panel); padding: 30px; display: flex; flex-direction: column; color: var(--text); position: relative; overflow: hidden; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; min-height: 300px; }
.use::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 280px; height: 280px; background: radial-gradient(closest-side, rgba(151,252,228,.12), transparent); opacity: 0; transition: opacity .3s; }
.use:hover { border-color: var(--mint-line); transform: translateY(-4px); text-decoration: none; box-shadow: 0 40px 80px -50px rgba(151,252,228,.45); }
.use:hover::after { opacity: 1; }
.use .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(151,252,228,.16), rgba(151,252,228,.02)); box-shadow: inset 0 0 0 1px var(--mint-line), inset 0 1px 0 rgba(255,255,255,.1); }
.use .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.use h4 { font: 500 24px var(--display); letter-spacing: -0.035em; margin: 34px 0 10px; }
.use p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.use .go { font-size: 14px; color: var(--mint); font-weight: 500; margin-top: 26px; display: inline-flex; gap: 6px; }
.use .go .arr { transition: transform .2s var(--ease); }
.use:hover .go .arr { transform: translateX(4px); }

/* Principles. */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 32px 28px 0 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle svg { width: 26px; height: 26px; fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.principle h4 { font: 500 18px var(--display); letter-spacing: -0.025em; margin: 22px 0 8px; }
.principle p { color: var(--muted); font-size: 14.5px; margin: 0; }
.principle .tag { margin-top: 16px; display: inline-block; }
.stack-row { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; margin-top: 72px; color: var(--faint); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.stack-row b { color: var(--muted); font: 600 17px var(--display); letter-spacing: -0.02em; text-transform: none; }

/* FAQ. */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.faq .sect-head { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 24px 0; font: 500 18px var(--display); letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .15s; }
summary:hover { color: var(--mint); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(var(--muted), var(--muted)) center/12px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center/1.5px 12px no-repeat; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: -6px 0 24px; font-size: 15.5px; max-width: 620px; }

/* Closing call to action. */
.finale { position: relative; text-align: center; padding: 110px 32px 120px; margin-top: 140px; border-radius: 32px; overflow: hidden; border: 1px solid var(--mint-line);
  background: radial-gradient(700px 360px at 50% 120%, rgba(151,252,228,.22), transparent 70%), radial-gradient(500px 200px at 50% -10%, rgba(151,252,228,.06), transparent 70%), linear-gradient(180deg, #0a1412, #060a09); }
.finale h2 { font: 600 clamp(38px, 5.6vw, 72px)/1 var(--display); letter-spacing: -0.055em; margin: 0 auto 20px; max-width: 800px; position: relative; }
.finale h2 .serif { color: var(--mint); }
.finale p { color: var(--muted); font-size: 18px; margin: 0 auto 34px; max-width: 520px; position: relative; }
.finale .cta-row { position: relative; }
.finale-art { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; display: flex; align-items: flex-end; gap: 10px; padding: 0 6%; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); pointer-events: none; }
.finale-art i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, rgba(151,252,228,.22), rgba(151,252,228,0)); }

/* Scroll reveal (shell.js adds .rv to blocks below the fold). */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 20px; align-items: start; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; border: 0 !important; }
.toc summary { display: none; }
.toc .grp { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin: 22px 0 8px; }
.toc .grp:first-of-type { margin-top: 0; }
.toc a { display: block; color: var(--muted); padding: 5px 12px; border-left: 1px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--line-3); }
.toc a.on { color: var(--mint); border-left-color: var(--mint); }
.doc { max-width: 740px; }
.doc h1 { font: 600 clamp(34px, 4.6vw, 52px)/1.04 var(--display); letter-spacing: -0.045em; margin: 16px 0 14px; }
.doc .lede { color: var(--muted); font-size: 18px; margin: 0 0 8px; }
.doc section { padding-top: 30px; scroll-margin-top: 90px; }
.doc h2 { font: 600 28px/1.2 var(--display); letter-spacing: -0.035em; margin: 22px 0 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.doc h3 { font: 500 18px var(--display); letter-spacing: -0.02em; margin: 26px 0 8px; }
.doc p, .doc li { color: #c3d1cc; font-size: 15.5px; line-height: 1.75; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); font-weight: 500; }
.doc code { font: 13px var(--mono); background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--faint); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.doc td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.doc .tbl { overflow-x: auto; }
.callout { border: 1px solid var(--mint-line); background: var(--mint-soft); border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-size: 14.5px; color: var(--text); }
.callout.warn { border-color: rgba(242,184,75,.25); background: var(--amber-soft); }
.callout b { color: var(--mint); font-weight: 500; }
.callout.warn b { color: var(--amber); }
.formula { font: 14px var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; color: var(--text); overflow-x: auto; white-space: nowrap; }
.doc-fig { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.doc-fig svg { display: block; width: 100%; height: auto; }
.doc-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.doc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
/* The results page keeps its "show as a table" disclosure in a card. */
.card details, .card details:first-child { border: 0; }
.card summary { font-size: 15px; padding: 16px 0 4px; }

/* ---------------------------------------------------------------- responsive */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 1100px) {
  .inst-body { grid-template-columns: minmax(0, 1fr); }
  .inst-side { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .inst-side .sep { display: none; }
  .inst-verdict { grid-column: 1 / -1; min-height: 0; }
  .inst-side .v { font-size: 22px; }
}
@media (max-width: 1000px) {
  header.top .wrap { grid-template-columns: auto 1fr; height: 62px; }
  header.top { background: rgba(5, 8, 7, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--line); }
  .grid, .grid.even { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static !important; }
  nav.links { display: none; }
  .subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); padding: 8px 16px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
  .subnav a.on { color: var(--text); background: var(--panel-3); box-shadow: 0 0 0 1px var(--line-2); }
  .subnav a:hover { text-decoration: none; }
  .steps, .uses, .versus { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 30px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .bt, .faq { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle { padding-bottom: 28px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { border-left: 0; }
  .proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sect { padding-top: 96px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 28px; }
  .toc { position: static; max-height: none; background: var(--panel); border: 1px solid var(--line) !important; border-radius: 14px; padding: 0 16px; }
  .toc summary { display: flex; padding: 14px 0; font-size: 15px; }
  .toc .inner { padding-bottom: 14px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .positions { grid-template-columns: minmax(0, 1fr); }
  .outcome { grid-template-columns: 1fr; }
  .chart-canvas { height: 280px; }
  .hero { padding-top: 56px; }
  .instrument { margin-top: 52px; border-radius: 18px; }
  .inst-in { border-radius: 17px; }
  .inst-dots { display: none; }
  .sim-canvas { height: 280px; }
  .inst-side { grid-template-columns: 1fr 1fr; padding: 16px; }
  .proof > div { padding: 22px 16px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle, .principle + .principle { padding-left: 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); padding-top: 28px; }
  .use { min-height: 0; padding: 26px; }
  .finale { padding: 72px 22px 90px; margin-top: 100px; border-radius: 24px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .page-head { padding-top: 40px; }
  .card { padding: 20px; }
}
@media (max-width: 480px) { #netPill { display: none; } .inst-ctl .seg-ctl button { padding: 5px 8px; } }

/* ---------------------------------------------------------------- launch-alert forms */
.wl { position: relative; max-width: 460px; }
.wl-row { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(5,8,7,.7); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.wl-row:focus-within { box-shadow: inset 0 0 0 1px var(--mint-3), 0 0 0 4px var(--mint-soft); }
.wl input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 14px; box-shadow: none !important; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl button { flex: none; }
.wl-msg { margin: 10px 4px 0; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.wl-msg.ok { color: var(--mint); } .wl-msg.err { color: var(--red); }
.wl.done .wl-row { opacity: .5; pointer-events: none; }
.wl.small button { padding: 8px 14px; font-size: 13px; }
.wl.lg { margin: 0 auto; position: relative; }
.wl.lg .wl-row { padding: 6px; }
.wl.lg input[type=email] { font-size: 15px; padding: 10px 18px; }
.wl.lg button { padding: 12px 22px; font-size: 15px; }
.wl.lg .wl-msg { text-align: center; }
.wl-h { margin: 28px 0 10px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.foot-brand .wl { max-width: 340px; }
.finale-alt { position: relative; display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); }
.finale-alt:hover { color: var(--mint); }
@media (max-width: 480px) { .wl.lg .wl-row { flex-direction: column; border-radius: 18px; } .wl.lg button { width: 100%; } }

/* ---------------------------------------------------------------- security page */
.sec-status .v { font-size: 30px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.checks > div { padding: 24px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checks b { font: 500 12px var(--mono); color: var(--mint); }
.checks p { margin: 12px 0 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.sub-h { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 56px 0 14px; }
.cmp-table td { color: var(--muted); vertical-align: top; }
.cmp-table td:first-child { color: var(--text); width: 55%; }
.risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.risks > div { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); padding: 24px; }
.risks h4 { font: 500 17px var(--display); letter-spacing: -0.02em; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.risks h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,184,75,.12); flex: none; }
.risks p { color: var(--muted); font-size: 14.5px; margin: 0; }
.report { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 36px; border-radius: 24px; border: 1px solid var(--mint-line); background: radial-gradient(500px 220px at 0% 0%, rgba(151,252,228,.1), transparent 70%), var(--panel); }
.report h3 { font: 600 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -0.04em; margin: 0 0 10px; }
.report h3 .serif { color: var(--mint); }
.report p { color: var(--muted); margin: 0; max-width: 520px; }
.report .kicker { margin-bottom: 12px; }

/* ---------------------------------------------------------------- roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.roadmap li { position: relative; padding: 34px 22px 0 0; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-3); }
.roadmap li.done::before { background: var(--mint); box-shadow: 0 0 12px rgba(151,252,228,.6); }
.roadmap li.done::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--mint); z-index: 0; }
.roadmap li.now::before { background: var(--bg); box-shadow: inset 0 0 0 2px var(--amber), 0 0 0 5px rgba(242,184,75,.15); }
.roadmap .st { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.roadmap li.done .st { color: var(--mint); } .roadmap li.now .st { color: var(--amber); }
.roadmap h4 { font: 500 17px var(--display); letter-spacing: -0.02em; margin: 8px 0 6px; }
.roadmap p { color: var(--muted); font-size: 14px; margin: 0; }
.roadmap li::after { pointer-events: none; }
.sect-link { display: inline-flex; gap: 6px; margin-top: 34px; font-size: 14px; font-weight: 500; }

@media (max-width: 1000px) {
  .checks, .risks { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .roadmap::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .roadmap li { padding: 0 0 28px 36px; }
  .roadmap li.done::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
}
@media (max-width: 720px) { .checks, .risks { grid-template-columns: minmax(0, 1fr); } .report { padding: 26px; } }

/* ---------------------------------------------------------------- builder: presets, tooltips, share */
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.presets button { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.02); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.presets button b { font-weight: 500; font-size: 14px; }
.presets button span { font: 11.5px var(--mono); color: var(--faint); }
.presets button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-3); transform: none; }
.presets button.on { background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--mint-line), 0 0 0 3px rgba(151,252,228,.05); }
.presets button.on span { color: var(--mint); }
.field > label > span:first-child { display: inline-flex; align-items: center; }
.q { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 7px; border-radius: 50%; font: 500 10px var(--mono); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3); cursor: help; position: relative; flex: none; outline-offset: 2px; }
.q:hover, .q:focus { color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint-line); }
.q::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: -10px; width: 270px; padding: 11px 13px; border-radius: 12px; background: rgba(15,22,21,.98); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.55); font: 400 12.5px/1.5 var(--sans); color: var(--text); text-align: left; white-space: normal; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; z-index: 15; }
.q:hover::after, .q:focus::after { opacity: 1; transform: none; }
.share-btn { width: 100%; margin-top: 10px; border-radius: 12px; }
@media (max-width: 480px) { .presets { grid-template-columns: minmax(0, 1fr); } .q::after { width: 230px; } }
