/* Early Clue — shared design system · "Terminal Pro".
   Dense, financial-terminal aesthetic: cold near-white surfaces, hairline grids
   (gap:1px on --line), monospace data, Archivo display + IBM Plex Mono for data.
   Accent is "vert d'eau" (water green / teal). No border-radius, near-zero shadow:
   the whole look rides on hairlines.

   Loaded by the static landing AND the server-rendered pages (/trending,
   /cluster, /digest) so the whole product reads as one thing. Legacy variable
   NAMES (--serif, --amber, --surface, --muted, --rise…) are kept and remapped to
   Terminal Pro values so the templates' inline styles inherit the new look
   without a rewrite. Served statically by nginx at /clue.css. */

:root {
  /* ---- Terminal Pro tokens (canonical, oklch) ---- */
  --bg: oklch(0.955 0.004 250);        /* page, cold near-white */
  --panel: oklch(0.995 0.001 250);     /* panels / cards */
  --panel-2: oklch(0.975 0.003 250);   /* hover / table header */
  --ink: oklch(0.24 0.012 255);        /* primary text / dark blocks */
  --ink-soft: oklch(0.50 0.012 255);
  --ink-faint: oklch(0.66 0.01 255);
  --line: oklch(0.90 0.006 255);       /* hairline separators / grid gap fill */
  --line-2: oklch(0.84 0.008 255);     /* card borders */
  --accent: oklch(0.74 0.085 192);     /* vert d'eau — vivid, for FILLS */
  --accent-deep: oklch(0.56 0.08 198); /* readable accent for TEXT on light */
  --on-accent: oklch(0.24 0.03 210);   /* dark text on the accent fill */
  --up: oklch(0.58 0.13 150);          /* rising / live data (green) */
  --down: oklch(0.58 0.17 25);         /* falling (red, rarely used) */

  /* ---- legacy aliases (templates reference these by name) ---- */
  --bg-2: var(--panel-2);
  --surface: var(--panel);
  --surface-2: var(--panel-2);
  --fg: var(--ink);
  --fg-2: oklch(0.38 0.012 255);
  --muted: var(--ink-soft);
  --dim: var(--ink-faint);
  --amber: var(--accent-deep);         /* text/link accent — readable on light */
  --amber-bright: oklch(0.48 0.08 198);/* hover = darker */
  --amber-deep: var(--accent-deep);
  --amber-fill: var(--accent);         /* vivid fill (dots, bars, highlights) */
  --rise: var(--up);
  --ember: oklch(0.52 0.16 150);       /* "surging" = strong green, not orange */
  --glow: oklch(0.74 0.085 192 / 0.22);

  /* Display + UI is Archivo; --serif kept as an alias so template headings
     (font-family:var(--serif)) render Archivo, not a serif. */
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1280px;
  --radius: 0px;                       /* angular by default */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-bright); }

::selection { background: oklch(0.74 0.085 192 / 0.35); color: var(--ink); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .ix {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 21px; height: 17px; padding: 0 5px; margin-right: 9px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; letter-spacing: 0.02em; vertical-align: 1px;
}

/* terminal eyebrow/label, mono uppercase — proto's .tag */
.tagline {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}

.section-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

section { padding: 56px 0; border-bottom: 1px solid var(--line-2); }
.part { padding: 56px 0; }

/* ---------- top status bar (landing) ---------- */
.statusbar { background: var(--ink); color: oklch(0.9 0.008 255); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.statusbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 7px 32px; }
.statusbar .left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.statusbar span { white-space: nowrap; }
.statusbar a { color: oklch(0.9 0.008 255); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--up); display: inline-block; animation: blink 1.6s steps(1) infinite; }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--line-2); background: var(--panel); overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; gap: 0; animation: scroll 50s linear infinite; font-family: var(--mono); font-size: 12px; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
/* single-line items: ▲ +N then the full-text label, no separators */
.tk { display: inline-flex; flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 32px 8px 0; white-space: nowrap; }
.tk .tkv { color: var(--up); font-weight: 700; font-size: 11px; letter-spacing: 0.02em; }
.tk .tkl { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ---------- site header ---------- */
/* Server pages: <header class="nav"><div class="wrap">…</div></header>.
   Landing: <div class="wrap"><div class="topnav">…</div></div>. Two classes so
   the inverted nesting never collides (and never matches the inner .nav-links). */
.nav { border-bottom: 1px solid var(--line-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.topnav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.brand, .ec { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-transform: uppercase; }
.brand:hover, .ec:hover { color: var(--ink); }
.ec .wm { font-weight: 800; }
/* legacy round "dot" brand mark → keep, recoloured to accent */
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 oklch(0.74 0.085 192 / 0.6); animation: ping 2.6s ease-out infinite; flex: none; }
.nav-links { display: flex; gap: 4px; align-items: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a { color: var(--ink-soft); padding: 8px 12px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-links a.active { color: var(--accent-deep); }
.nav-links a.active:hover { color: var(--accent-deep); background: var(--panel-2); }
@media (max-width: 640px) { .nav-links { gap: 0; font-size: 11px; } .nav-links a { padding: 8px 8px; } .nav-links a.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 9px 16px; border: 1px solid var(--accent-deep);
  background: var(--accent); color: var(--on-accent);
  cursor: pointer; white-space: nowrap;
  transition: filter .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { filter: brightness(1.05); color: var(--on-accent); }
.btn-amber { background: var(--accent); color: var(--on-accent); border-color: var(--accent-deep); }
.btn-amber:hover { filter: brightness(1.05); color: var(--on-accent); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover, .btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 11px; }
/* nav CTA button: the generic ".nav-links a { color: --ink-soft }" rule wins on
   specificity and greys out the button text. Restate the dark on-accent ink and
   keep the teal fill on hover so it reads like the hero CTA. */
.nav-links a.btn { color: var(--on-accent); }
.nav-links a.btn:hover { color: var(--on-accent); background: var(--accent); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line-2); }
.hero-l, .hero-r { background: var(--bg); padding: 56px 0; }
.hero-l { padding-right: 48px; }
.hero-r { padding-left: 48px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-weight: 800; font-size: 60px; line-height: 0.96; letter-spacing: -0.03em; margin: 18px 0 22px; text-transform: none; }
.hero h1 .accent { color: var(--accent-deep); }
.hero p.lede { font-size: 17px; color: var(--ink-soft); max-width: 42ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 36px; border: 1px solid var(--line); }
.hs { background: var(--bg); padding: 16px 14px; }
.hs .n { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.hs .l { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 4px; }

/* ---------- live board (hero right) ---------- */
.lboard { border: 1px solid var(--line-2); background: var(--panel); }
.lboard-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.brow { display: grid; grid-template-columns: 18px 1fr 70px 58px; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.brow:last-child { border-bottom: 0; }
.brow .r { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.brow .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .v { font-family: var(--mono); font-weight: 700; text-align: right; color: var(--up); }
.spark { height: 18px; display: flex; align-items: flex-end; gap: 1.5px; }
.spark i { flex: 1; background: var(--up); opacity: 0.55; display: block; }

/* ---------- section heads (landing) ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sec-head h2 { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.sec-head .meta-r { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; text-align: right; }

/* ---------- dense data table (landing radar) ---------- */
.dt-wrap { overflow-x: auto; }
.dt { border: 1px solid var(--line-2); background: var(--panel); min-width: 720px; }
.dt-head, .dt-row { display: grid; grid-template-columns: 36px 1.6fr 96px 84px 70px 1.5fr; gap: 14px; align-items: center; padding: 0 16px; }
.dt-head { height: 40px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.dt-row { min-height: 70px; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); transition: background .12s; color: var(--ink); }
.dt-row:last-child { border-bottom: 0; }
.dt-row:hover { background: var(--panel-2); color: var(--ink); }
.dt-rank { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.dt-topic { font-weight: 600; font-size: 16px; }
.dt-topic small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); font-weight: 400; margin-top: 3px; letter-spacing: 0.02em; }
.dt-vel { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--up); }
.dt-win { font-family: var(--mono); font-size: 15px; color: var(--accent-deep); font-weight: 600; }
.dt-src { font-family: var(--mono); font-size: 15px; color: var(--ink-soft); }
.dt-angle { font-size: 14px; line-height: 1.4; color: var(--ink); }
.alignr { text-align: right; justify-self: end; }

/* ---------- pipeline ---------- */
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.pstep { background: var(--panel); padding: 20px 16px; }
.pnum { font-family: var(--mono); font-size: 10.5px; color: var(--accent-deep); letter-spacing: 0.06em; font-weight: 600; }
.pname { font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: -0.01em; margin: 8px 0 7px; }
.pdesc { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- moat cards ---------- */
.moat { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.mcard { background: var(--panel); padding: 26px 22px; }
.mcard.lead { background: var(--ink); color: oklch(0.92 0.01 255); }
.mcard.lead h3 { font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1.05; letter-spacing: -0.01em; }
.mcard.lead h3 .accent { color: var(--accent); }
.mcard .t { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; }
.mcard.lead .t { color: var(--accent); }
.mcard p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.mcard.lead p { color: oklch(0.78 0.01 255); }

/* ---------- two-column panels (api + digest) ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.panel-x { background: var(--panel); }
.panel-head { padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--panel-2); display: flex; justify-content: space-between; }
.ep { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.ep:last-child { border-bottom: 0; }
.ep .verb { color: var(--on-accent); background: var(--accent); font-weight: 700; font-size: 10px; padding: 3px 7px; letter-spacing: 0.05em; }
.code { background: var(--ink); color: oklch(0.9 0.01 255); font-family: var(--mono); font-size: 12px; line-height: 1.7; padding: 16px 14px; overflow-x: auto; white-space: pre; }
.code .k { color: var(--accent); } .code .c { color: oklch(0.58 0.02 255); } .code .g { color: var(--up); }

/* ---------- digest items (landing) ---------- */
.digest-item { padding: 20px 16px; border-bottom: 1px solid var(--line); position: relative; }
.digest-item:last-child { border-bottom: 0; }
.di-title { font-weight: 700; font-size: 16px; display: block; padding-right: 110px; }
.di-vel { position: absolute; top: 19px; right: 16px; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--up); }
.di-angle { font-size: 13.5px; color: var(--ink-soft); margin-top: 9px; line-height: 1.5; }
.di-angle b { color: var(--ink); font-weight: 600; }

/* ---------- final CTA ---------- */
.final { padding: 72px 0; text-align: center; background: var(--ink); color: oklch(0.95 0.008 255); border-bottom: 0; }
.final .tagline { color: var(--accent); }
.final h2 { font-weight: 800; font-size: 46px; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1; margin: 14px 0 16px; }
.final h2 .accent { color: var(--accent); }
.final p { color: oklch(0.72 0.01 255); margin-bottom: 28px; font-family: var(--mono); font-size: 13px; }
.subscribe { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.subscribe input { flex: 1; font-family: var(--mono); font-size: 13px; padding: 11px 13px; border: 1px solid oklch(0.4 0.01 255); background: oklch(0.3 0.01 255); color: oklch(0.95 0.01 255); }
.subscribe input::placeholder { color: oklch(0.6 0.01 255); }
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe .msg { font-size: 12px; margin-top: 0; }
/* signup states (shared with landing hero form) */
.signup .msg { font-family: var(--mono); font-size: 12px; margin-top: 10px; min-height: 1.1em; }
.signup .msg.ok { color: var(--up); }
.signup .msg.err { color: var(--down); }
.signup .note { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 8px; }
/* hero variant: single unified field on light bg — borderless input with the
   submit button flush right inside one frame (no separate green button). Stays a
   row on mobile (overrides the .subscribe column rule via higher specificity). */
.subscribe.field { flex-direction: row; gap: 0; max-width: 420px; margin: 0; border: 1px solid var(--line-2); background: var(--surface); }
.subscribe.field:focus-within { border-color: var(--accent-deep); }
.subscribe.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); }
.subscribe.field input:focus { outline: none; border: 0; }
.subscribe.field input::placeholder { color: var(--ink-faint); }
.subscribe.field .btn { flex: none; border: 0; padding: 0 16px; font-size: 16px; }
/* hero row: unified field + ghost CTA on one line; ghost wraps below only if
   the row truly cannot fit (narrow phones). */
.hero-join { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; max-width: 560px; }
.hero-join .subscribe.field { flex: 1 1 240px; max-width: none; }
.hero-join .btn.ghost { flex: 0 0 auto; }
.hero-note { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-top: 8px; }

/* ---------- shared topic rows (server pages: trending / digest_web) ---------- */
.board { border-top: 1px solid var(--line-2); }
.row {
  display: block; color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 18px 12px;
  transition: background .14s ease, padding-left .14s ease;
  position: relative;
}
.row:hover { background: var(--panel-2); padding-left: 18px; color: var(--ink); }
.row:hover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.meta { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 7px; }
.meta .rank { color: var(--ink-faint); font-weight: 600; }
.meta .sep { color: var(--line-2); }
.row h3, .row .title { font-family: var(--sans); font-size: 1.28rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 620px) { .row .title, .row h3 { font-size: 1.1rem; } }

/* heat badges — financial-terminal greens (no orange) */
.heat { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 5px; }
.heat.surging { color: var(--ember); font-weight: 600; }
.heat.rising-fast { color: var(--up); }
.heat.rising { color: var(--accent-deep); }
.heat.new { color: var(--ink-faint); font-weight: 500; }

/* "N angles ready" pill — kept readable, accent outline, angular */
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em;
  color: var(--accent-deep); font-weight: 600;
  background: oklch(0.74 0.085 192 / 0.12);
  border: 1px solid var(--accent-deep);
  padding: 1px 7px;
}

/* ---------- cards / angles (cluster + digest) ---------- */
.card { background: var(--panel); border: 1px solid var(--line-2); padding: 1.15rem 1.25rem; }
.angle { background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 1.1rem 1.2rem; margin-bottom: 0.85rem; }
.angle .at { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
.angle .ah { color: var(--ink-soft); margin-top: 0.4rem; font-size: 0.98rem; }
.angle .an { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }
.angle .an b { color: var(--up); font-weight: 600; }
.angle .aq { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.85rem; padding-top: 0.7rem; border-top: 1px dashed var(--line-2); letter-spacing: 0.01em; }
.angle .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0.85rem; }
.chip {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--line-2);
  padding: 0.34rem 0.7rem; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.chip.active { border-color: var(--accent-deep); color: var(--accent-deep); background: oklch(0.74 0.085 192 / 0.1); font-weight: 600; }

.srcs a { color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.srcs a:hover, .srcs a:focus-visible { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-deep); font-family: var(--mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-soft); margin-top: 12px; max-width: 72ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-2); margin-top: 0; padding: 40px 0 36px; color: var(--ink-soft); font-size: 0.9rem; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--accent-deep); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { font-size: 18px; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.foot-brand p { color: var(--ink-soft); margin-top: 12px; max-width: 36ch; font-size: 0.9rem; }
.foot-copy { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-faint); margin-top: 16px; white-space: nowrap; }
.foot-col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); padding: 5px 0; font-size: 0.9rem; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.foot-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .legal-links a { color: var(--ink-faint); }
.foot-bottom .legal-links a:hover { color: var(--accent-deep); }
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 32px 24px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); text-transform: none; }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; text-transform: none; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 12px 0; }
.legal ul { margin: 12px 0 12px 1.2rem; }
.legal li { margin: 7px 0; }
.legal a { color: var(--accent-deep); }

/* ---------- keyframes ---------- */
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 oklch(0.74 0.085 192 / 0.55); }
  70%  { box-shadow: 0 0 0 10px oklch(0.74 0.085 192 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.74 0.085 192 / 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-l { padding-right: 0; padding-bottom: 40px; }
  .hero-r { padding-left: 0; padding-top: 8px; }
  .hero h1 { font-size: 44px; }
  .pipe { grid-template-columns: repeat(3, 1fr); }
  .moat { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .statusbar .wrap { padding: 7px 18px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sec-head .meta-r { text-align: left; }
  .subscribe { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .brand .dot, .dot-live, .ticker-inner { animation: none; }
  html { scroll-behavior: auto; }
}
