/* Polyfarmer — project site.
   Display: Archivo, extra wide and heavy. Body: Archivo at normal width.
   Numbers: Geist Mono, as in the dashboard. Dark first; light follows the
   system or data-theme. Motion is opt-in via prefers-reduced-motion. */

@font-face { font-family: 'Archivo'; src: url('fonts/Archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Metric-matched fallback so the swap to Archivo doesn't shift the layout. */
@font-face { font-family: 'Archivo Fallback'; src: local('Arial'); ascent-override: 88.96%; descent-override: 21.28%; line-gap-override: 0%; size-adjust: 98.7%; }

/* Layout: a 1200px column. Left-aligned editorial hero over the crop field,
   a pinned story, then bento and plain sections. */
:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-2: #0b0e12;
  --panel: #0f1318;
  --panel-2: #151a21;
  --line: #1c232c;
  --line-2: #29313c;
  --fg: #eef1f5;
  --fg-2: #b9c1cc;
  --muted: #858f9d;
  --faint: #808a97;
  --accent: #6c8cff;
  --accent-2: #93a8ff;
  --accent-bg: rgba(108, 140, 255, .12);
  --accent-line: rgba(108, 140, 255, .45);
  --zone: rgba(108, 140, 255, .07);
  --bid: #2ebd73;
  --bid-bg: rgba(46, 189, 115, .13);
  --ask: #ef5468;
  --ask-bg: rgba(239, 84, 104, .12);
  --warn: #f0b04a;
  --warn-bg: rgba(240, 176, 74, .12);
  --side-a: #4fb3ff;
  --side-b: #c38cff;
  --stem: #4a6cf7;
  --leaf: #2ebd73;
  --leaf-text: #2ebd73;
  --field: rgba(185, 193, 204, .22);
  --field-zone: rgba(108, 140, 255, .62);
  --glow: rgba(74, 108, 247, .20);
  --spot: rgba(147, 168, 255, .10);
  --shadow: 0 40px 100px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2);
  --btn-bg: #eef1f5;
  --btn-fg: #07090c;

  --display: 'Archivo', 'Archivo Fallback', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Archivo', 'Archivo Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.18, 1.25, .3, 1);
  --w: 1200px;
  --r: 14px;
  --r-sm: 8px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f5f1; --bg-2: #eceee8; --panel: #ffffff; --panel-2: #f6f7f3; --line: #e0e3dc; --line-2: #cfd4cc;
    --fg: #0b1210; --fg-2: #2c3631; --muted: #5a6560; --faint: #646d68;
    --accent: #3456e8; --accent-2: #2443c9; --accent-bg: rgba(52, 86, 232, .09); --accent-line: rgba(52, 86, 232, .4);
    --zone: rgba(52, 86, 232, .06);
    --bid: #0b7a4b; --bid-bg: rgba(17, 144, 90, .11); --leaf-text: #11905a; --ask: #d23a4f; --ask-bg: rgba(210, 58, 79, .09);
    --warn: #a86d0b; --warn-bg: rgba(168, 109, 11, .1); --side-a: #1f7fd1; --side-b: #8a4fd6;
    --field: rgba(11, 18, 16, .16); --field-zone: rgba(52, 86, 232, .55);
    --glow: rgba(52, 86, 232, .13); --spot: rgba(52, 86, 232, .07);
    --shadow: 0 40px 100px -24px rgba(11, 18, 16, .22), 0 0 0 1px var(--line-2);
    --btn-bg: #0b1210; --btn-fg: #f4f5f1;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f1; --bg-2: #eceee8; --panel: #ffffff; --panel-2: #f6f7f3; --line: #e0e3dc; --line-2: #cfd4cc;
  --fg: #0b1210; --fg-2: #2c3631; --muted: #5a6560; --faint: #646d68;
  --accent: #3456e8; --accent-2: #2443c9; --accent-bg: rgba(52, 86, 232, .09); --accent-line: rgba(52, 86, 232, .4);
  --zone: rgba(52, 86, 232, .06);
  --bid: #0b7a4b; --bid-bg: rgba(17, 144, 90, .11); --leaf-text: #11905a; --ask: #d23a4f; --ask-bg: rgba(210, 58, 79, .09);
  --warn: #a86d0b; --warn-bg: rgba(168, 109, 11, .1); --side-a: #1f7fd1; --side-b: #8a4fd6;
  --field: rgba(11, 18, 16, .16); --field-zone: rgba(52, 86, 232, .55);
  --glow: rgba(52, 86, 232, .13); --spot: rgba(52, 86, 232, .07);
  --shadow: 0 40px 100px -24px rgba(11, 18, 16, .22), 0 0 0 1px var(--line-2);
  --btn-bg: #0b1210; --btn-fg: #f4f5f1;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--fg); }
.checks a, .install .after a, .sec-head p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-bg); }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h2 { font-weight: 800; font-stretch: 118%; letter-spacing: -.035em; line-height: .98; }
h3 { font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .9em; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: calc(var(--w) + 2 * 32px); margin-inline: auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; border-radius: var(--r-sm); background: var(--btn-bg); color: var(--btn-fg); transition: top .15s; }
.skip:focus { top: 12px; color: var(--btn-fg); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg); font: 600 16px/1 var(--sans); font-stretch: 104%;
  cursor: pointer; white-space: nowrap; transition: border-color .25s, background .25s, color .25s, transform .35s var(--spring);
}
.btn:hover { color: var(--fg); border-color: var(--faint); background: var(--panel-2); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn.primary:hover { color: var(--btn-fg); background: var(--btn-bg); }
.btn .arrow { transition: translate .35s var(--spring); }
.btn:hover .arrow { translate: 3px 0; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ── header ───────────────────────────────────────────────────────────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.top.scrolled {
  background: color-mix(in srgb, var(--bg) 76%, transparent); border-bottom-color: var(--line);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
}
.top .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 800 19px/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; }
.brand:hover { color: var(--fg); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.top .actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .nav { display: none; } .top .wrap { justify-content: space-between; } }
@media (max-width: 440px) { .top .discord { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: 72px 0; isolation: isolate; }
.hero .field {
  position: absolute; left: 0; top: clamp(240px, 27vw, 400px); height: 560px; width: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 72%, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 55%, var(--glow), transparent 70%);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--fg-2); font: 500 14px/1 var(--sans);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge:hover { color: var(--fg); border-color: var(--faint); }
.badge .tag { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--bid-bg); color: var(--bid); font: 600 12px/1 var(--mono); }
.hero h1 {
  margin-top: 28px; font-weight: 800; font-stretch: 125%; letter-spacing: -.045em; line-height: .9;
  font-size: clamp(34px, 8.1vw, 116px);
}
@media (max-width: 640px) {
  .hero h1 { font-stretch: 112%; font-size: 9.6vw; }
  .hero .field { top: 600px; height: 460px; }
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .leaf { color: var(--leaf-text); }
.hero .below { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 40px; }
@media (max-width: 860px) { .hero .below { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.hero .lede { max-width: 54ch; color: var(--fg-2); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }
.hero .lede b { color: var(--fg); font-weight: 600; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font: 500 13.5px/1 var(--mono); }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); }

/* ── dashboard window (hero + story) ──────────────────────────────────── */
.stage { position: relative; margin-top: 88px; }
.window { position: relative; border-radius: 18px; background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.window::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%); }
.window .bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.window .lights { display: flex; gap: 7px; }
.window .lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window .status { display: flex; gap: 18px; margin-left: 8px; }
.window .status span { display: inline-flex; align-items: center; gap: 7px; }
.window .status b { color: var(--fg-2); font-weight: 600; }
.ok { width: 7px; height: 7px; border-radius: 50%; background: var(--bid); box-shadow: 0 0 0 3px var(--bid-bg); }
.sim-tag { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); padding: 6px 9px; border-radius: 5px; }
.window .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 900px) { .window .body { grid-template-columns: minmax(0, 1fr); } .window .status .hide-sm { display: none; } }

.kpis { display: grid; grid-template-columns: 1fr 1fr; border-right: 1px solid var(--line); align-content: start; }
@media (max-width: 900px) { .kpis { border-right: 0; border-bottom: 1px solid var(--line); } }
.kpi { padding: 20px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.kpi:nth-child(odd) { border-right: 1px solid var(--line); }
.lbl { color: var(--faint); font: 600 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.kpi .v { margin-top: 12px; font: 600 28px/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .s { margin-top: 9px; color: var(--muted); font-size: 13px; }
.kpi .v.pos { color: var(--bid); }
.meter { grid-column: 1 / -1; padding: 20px 22px; }
.meter .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.meter .v { font: 600 15px/1 var(--mono); color: var(--accent-2); }
.track { position: relative; height: 8px; margin-top: 13px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--stem), var(--accent-2)); transition: width .7s var(--ease); }
.meter .s { margin-top: 11px; color: var(--muted); font-size: 13px; }
.guards { grid-column: 1 / -1; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.guards ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }
.guards li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; font-size: 13.5px; color: var(--fg-2); }
.guards li span { display: inline-flex; align-items: center; gap: 9px; }
.guards li span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bid); box-shadow: 0 0 0 3px var(--bid-bg); }
.guards li.bad span::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.guards b { font: 600 13px/1 var(--mono); color: var(--fg); text-align: right; }
.guards em { font: 12px/1 var(--mono); font-style: normal; color: var(--faint); min-width: 96px; text-align: right; }

.book { padding: 16px 18px 18px 50px; min-width: 0; }
.book .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 12px; }
.book .title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book .zone-label { color: var(--accent-2); font: 500 12px/1 var(--mono); white-space: nowrap; }
.rows { font: 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.r { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; height: 25px; padding: 0 9px; border-radius: 5px; }
.r span:nth-of-type(2), .r span:nth-of-type(3) { text-align: right; }
.r .depth { position: absolute; top: 3px; bottom: 3px; right: 0; border-radius: 3px; opacity: .6; transition: width .6s var(--ease); }
.r.ask { color: var(--ask); } .r.ask .depth { background: var(--ask-bg); }
.r.bidr { color: var(--bid); } .r.bidr .depth { background: var(--bid-bg); }
.r span { position: relative; }
.r span + span { color: var(--fg-2); }
.r.inzone { background: var(--zone); }
.r.you { box-shadow: inset 0 0 0 1px var(--accent-line); background: var(--accent-bg); }
.r.you::after { content: "you"; position: absolute; left: -4px; translate: -100% 0; font: 600 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2); }
.r.you.pulled { box-shadow: inset 0 0 0 1px var(--warn); background: transparent; }
.r.you.pulled::after { content: "pulled"; color: var(--warn); }
.mid { display: flex; justify-content: space-between; align-items: center; height: 32px; margin: 5px 0; padding: 0 9px; border-block: 1px dashed var(--line-2); color: var(--muted); font: 12.5px/1 var(--mono); }
.mid b { color: var(--fg); font-weight: 600; }
.book .legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 13px; padding: 0 4px; color: var(--muted); font-size: 12.5px; }
.book .legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 10px; height: 10px; border-radius: 2px; }
.sw.z { background: var(--zone); box-shadow: inset 0 0 0 1px var(--accent-line); }
.sw.y { background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* ── facts strip ──────────────────────────────────────────────────────── */
.facts { margin-top: 64px; border-block: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts li { padding: 22px 0; display: grid; gap: 6px; min-width: 0; }
.facts li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.facts b { font: 800 22px/1.05 var(--display); font-stretch: 115%; letter-spacing: -.03em; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li + li { border-left: 0; padding-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts li:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* ── sections ─────────────────────────────────────────────────────────── */
.block { padding-block: 150px 0; }
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 20px; font-size: clamp(36px, 5.4vw, 72px); }
.sec-head p { margin-top: 22px; color: var(--fg-2); font-size: clamp(17px, 1.6vw, 19px); max-width: 60ch; }
@media (max-width: 640px) { .block { padding-block: 104px 0; } }

/* story: the window stays pinned while the steps scroll past */
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; margin-top: 72px; }
.story .pin { position: sticky; top: 104px; align-self: start; }
.story .steps { list-style: none; margin: 0; padding: 0; }
.story .step { position: relative; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 24px; padding-left: 26px; }
.story .step::before { content: ""; position: absolute; left: 0; top: 50%; height: 0; width: 2px; border-radius: 2px; background: var(--accent); translate: 0 -50%; transition: height .6s var(--ease); }
.story .step.on::before { height: 70%; }
.story .step h3 { color: var(--muted); transition: color .5s var(--ease); }
.story .step.on h3 { color: var(--fg); }
.story .step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 8vh; }
.story .step:last-child { min-height: 60vh; }
.story .num { font: 600 13px/1 var(--mono); color: var(--accent-2); letter-spacing: .08em; }
.story .step h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; }
.story .step p { color: var(--fg-2); max-width: 46ch; }
.story .chip { align-self: flex-start; margin-top: 4px; padding: 7px 11px; border-radius: 6px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font: 12.5px/1.3 var(--mono); }
.story-note { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--fg-2); font: 13px/1.4 var(--mono); }
.story-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.story-note.warn .dot { background: var(--warn); }
.story-note.good .dot { background: var(--bid); }
@media (max-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story .pin { position: relative; top: 0; }
  .story .step, .story .step:first-child, .story .step:last-child { min-height: 0; padding: 0 0 0 20px; justify-content: flex-start; }
  .story .step h3 { color: var(--fg); }
  .story .steps { display: grid; gap: 36px; }
}
.story .window .body { grid-template-columns: minmax(0, 1fr); }
.story .book { padding-left: 64px; }

/* scoring: interactive */
.score { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 64px; }
@media (max-width: 960px) { .score { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.plot { border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line); padding: 28px 26px 22px; }
.plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.dg-axis { stroke: var(--line-2); stroke-width: 1; }
.dg-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.dg-zone { fill: var(--zone); stroke: var(--accent-line); stroke-width: 1; stroke-dasharray: 4 4; }
.dg-curve { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.dg-curve.dim { stroke: var(--accent-line); stroke-width: 1.5; stroke-dasharray: 4 5; }
.dg-mid { stroke: var(--fg-2); stroke-width: 1.25; }
.dg-txt { fill: var(--muted); font: 14px var(--mono); }
.dg-txt.strong { fill: var(--fg); font-weight: 600; }
.dg-txt.accent { fill: var(--accent-2); }
.dg-bid { fill: var(--bid); }
.dg-other .dg-bid { fill: var(--side-b); }
.dg-other .dg-ring { stroke: var(--side-b); }
.dg-other .dg-drop { stroke: var(--side-b); }
.dg-other.off { opacity: 0; }
.dg-ring { fill: none; stroke: var(--bid); stroke-width: 1.5; opacity: .5; }
.dg-drop { stroke: var(--bid); stroke-width: 1; stroke-dasharray: 2 4; }
.controls { display: grid; gap: 26px; }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.readout > div { background: var(--panel); padding: 20px 22px; }
.readout .v { margin-top: 12px; font: 600 40px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout .v.accent { color: var(--accent-2); }
.readout .s { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.risk-low { color: var(--bid); } .risk-mid { color: var(--warn); } .risk-high { color: var(--ask); }
.slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.slider label output { font: 600 15px/1 var(--mono); color: var(--fg); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: 8px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 33%), var(--line-2) var(--p, 33%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--fg); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.slider .ticks { display: flex; justify-content: space-between; color: var(--faint); font: 12px/1 var(--mono); margin-top: 2px; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--fg-2); font-size: 15px; }
.toggle input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; cursor: pointer; transition: background .25s; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); transition: translate .3s var(--spring); }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { translate: 16px 0; background: #fff; }
.score .fine { color: var(--muted); font-size: 14px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.tile { position: relative; border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line); overflow: hidden; min-width: 0; --mx: 50%; --my: 50%; }
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--spot), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile .txt { position: relative; padding: 26px 26px 0; }
.tile .txt h3 { font-size: 22px; }
.tile .txt p { margin-top: 8px; color: var(--fg-2); font-size: 15.5px; max-width: 46ch; }
.tile .pic { position: relative; margin: 24px 0 0 26px; border-radius: 10px 0 0 0; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.tile .pic img { width: 100%; aspect-ratio: 7 / 4; }
.t-markets { grid-column: span 7; } .t-rewards { grid-column: span 5; }
.t-view { grid-column: span 5; } .t-guard { grid-column: span 7; }
@media (max-width: 960px) { .t-markets, .t-rewards, .t-view, .t-guard { grid-column: 1 / -1; } }
.glist { position: relative; list-style: none; margin: 22px 0 0; padding: 0 26px 26px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
@media (max-width: 600px) { .glist { grid-template-columns: minmax(0, 1fr); } }
.glist li { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.glist svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-2); }
.glist b { display: block; font-weight: 600; }
.glist span { color: var(--fg-2); font-size: 14.5px; }
.stat { position: relative; padding: 0 26px 26px; }
.stat .big { margin-top: 18px; font: 600 54px/1 var(--mono); letter-spacing: -.05em; color: var(--bid); font-variant-numeric: tabular-nums; }
.stat .s { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 24px; }
.bars i { flex: 1; min-width: 0; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--stem)); opacity: .85; transform-origin: bottom; }

.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0; background: var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.mini > div { background: var(--panel-2); padding: 14px 16px; min-width: 0; }
.mini dt { color: var(--faint); font: 600 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.mini dd { margin: 10px 0 0; font: 600 18px/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.mini dd span { color: var(--accent-2); font-size: 12px; }

/* security */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; color: var(--fg-2); }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--leaf); }
.checks b { color: var(--fg); font-weight: 600; }
.terminal { border-radius: var(--r); background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.terminal .tbar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 12.5px/1 var(--mono); }
.terminal .tbar .lights { display: flex; gap: 7px; } .terminal .tbar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal pre { margin: 0; padding: 20px 20px 22px; overflow-x: auto; font: 13px/1.85 var(--mono); color: var(--fg-2); }
.terminal .c { color: var(--faint); } .terminal .g { color: var(--bid); } .terminal .b { color: var(--accent-2); }
.terminal .cursor { display: inline-block; width: 8px; height: 15px; translate: 0 3px; background: var(--fg-2); }

/* install */
.install { margin-top: 56px; display: grid; gap: 18px; }
.tabs { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; }
.tab { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--panel-2); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2); }
.code { border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.code .label { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: 14px/1.8 var(--mono); color: var(--fg); }
.copy { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg-2); font: 600 13px/1 var(--sans); cursor: pointer; }
.copy:hover { color: var(--fg); }
.copy.done { color: var(--bid); border-color: var(--bid-bg); }
.install .after { color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 2px; cursor: pointer; list-style: none; font: 700 20px/1.25 var(--display); font-stretch: 106%; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center/14px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 14px no-repeat; color: var(--muted); transition: rotate .35s var(--spring); }
.faq details[open] summary::after { rotate: 45deg; }
.faq .a { padding: 0 2px 26px; color: var(--fg-2); max-width: 68ch; }

/* final CTA */
.final { position: relative; margin-top: 150px; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); padding: 96px 32px 0; overflow: hidden; isolation: isolate; text-align: center; }
.final .field { position: absolute; left: 0; bottom: 0; height: 300px; width: 100%; z-index: -1; pointer-events: none; }
.final h2 { font-size: clamp(36px, 5.6vw, 76px); max-width: 14ch; margin-inline: auto; }
.final p { margin: 22px auto 0; max-width: 50ch; color: var(--fg-2); font-size: 18px; }
.final .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; padding-bottom: 210px; }

/* footer: every block lines up with the content edges */
footer { margin-top: 88px; border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--muted); font-size: 14.5px; overflow: hidden; }
footer .wrap { container-type: inline-size; }
footer .cols { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
footer .links { display: flex; gap: 4px 28px; flex-wrap: wrap; }
footer .links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); } footer .links a:hover { color: var(--fg); }
.disclaimer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 56px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; line-height: 1.7; }
.disclaimer p { text-wrap: pretty; }
.disclaimer .lead { color: var(--muted); font-weight: 600; max-width: 30ch; }
/* Sized so the outline's ink spans the content width exactly. Measured
   at this weight, stretch and tracking: the ink is 6.313em wide and
   starts 0.08em right of the text box. */
.wordmark {
  margin: 56px 0 0 -.08em; font: 800 15.84cqw/.8 var(--display); font-stretch: 125%; letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; user-select: none;
}
@media (max-width: 760px) {
  .disclaimer { grid-template-columns: minmax(0, 1fr); }
  footer .links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; width: 100%; gap: 4px 28px; }
  .wordmark { margin-top: 40px; }
}

/* 404 */
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost img { margin: 0 auto 24px; }
.lost h1 { font: 800 clamp(40px, 6.4vw, 72px)/.95 var(--display); font-stretch: 120%; letter-spacing: -.04em; }
.lost p { margin-top: 16px; color: var(--fg-2); }
.lost .btn { margin-top: 30px; }

/* ── motion: all of it lives behind no-preference ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Headline lines rush up from behind their mask. */
  .hero h1 .line > span { animation: line-rush .95s var(--spring) both; animation-delay: .1s; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .19s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: .28s; }
  .hero h1 .line:nth-child(4) > span { animation-delay: .37s; }
  .d0 { --d: 0s; } .d1 { --d: .55s; } .d2 { --d: .65s; } .d3 { --d: .8s; }
  @keyframes line-rush { from { transform: translate(-4%, 108%) skewX(-8deg); filter: blur(4px); } 60% { filter: blur(0); } to { transform: none; filter: none; } }
  .rise { animation: rise 1s var(--ease) both; animation-delay: var(--d, .5s); }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  .stage.rise { animation-duration: 1.4s; }

  /* Sections settle into place as they enter. Only position and scale move:
     nothing is hidden, so a page captured without scrolling is complete. */
  @supports (animation-timeline: view()) {
    .settle { animation: settle linear both; animation-timeline: view(); animation-range: entry 0 cover 30%; }
  }
  @keyframes settle { from { translate: 0 56px; scale: .975; } to { translate: 0 0; scale: 1; } }
  .settle.js-pending { translate: 0 40px; }
  .settle.js-on { transition: translate 1s var(--ease); }

  .flash-up { animation: flash-up 1s ease-out; } .flash-up-b { animation: flash-up-b 1s ease-out; }
  .flash-down { animation: flash-down 1s ease-out; } .flash-down-b { animation: flash-down-b 1s ease-out; }
  @keyframes flash-up { from { background-color: var(--bid-bg); } to { background-color: transparent; } }
  @keyframes flash-up-b { from { background-color: var(--bid-bg); } to { background-color: transparent; } }
  @keyframes flash-down { from { background-color: var(--ask-bg); } to { background-color: transparent; } }
  @keyframes flash-down-b { from { background-color: var(--ask-bg); } to { background-color: transparent; } }
  .r.you { transition: background-color .45s, box-shadow .45s; }

  .dg-ring { animation: ring 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ring { from { scale: .6; opacity: .7; } to { scale: 2.4; opacity: 0; } }
  .dg-move { transition: transform .45s var(--ease), opacity .35s; }

  .terminal .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .btn:active { transform: scale(.97); }
}
