/* ==========================================================================
   Klyptic Pulse / FilingPulse: "regulatory wire" design system
   Paper + ink editorial base, one vermilion signal colour, tabular mono data.
   ========================================================================== */

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d7;
  --paper-3: #e2dac9;
  --ink: #16130f;
  --ink-2: #3a362e;
  --muted: #6f685a;
  --rule: #d5ccb9;
  --rule-strong: #16130f;
  --signal: #d93a17;
  --signal-ink: #fff8f2;
  --bull: #16704a;
  --bull-bg: rgba(22, 112, 74, 0.10);
  --bear: #b02a1d;
  --bear-bg: rgba(176, 42, 29, 0.09);
  --neut: #6f685a;
  --neut-bg: rgba(111, 104, 90, 0.10);
  --focus: #d93a17;
  --shadow: 0 1px 0 rgba(22, 19, 15, 0.06), 0 12px 32px -18px rgba(22, 19, 15, 0.35);

  --serif: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --sans: "Geist", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --w: 1240px;
  --gutter: clamp(16px, 3vw, 28px);
  --radius: 3px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0e0b;
    --paper-2: #171510;
    --paper-3: #201d16;
    --ink: #ece6d8;
    --ink-2: #c8c0ae;
    --muted: #8f8776;
    --rule: #2b2820;
    --rule-strong: #ece6d8;
    --signal: #ff5a35;
    --signal-ink: #140a06;
    --bull: #4fc58c;
    --bull-bg: rgba(79, 197, 140, 0.12);
    --bear: #ff6a5c;
    --bear-bg: rgba(255, 106, 92, 0.12);
    --neut: #9a917f;
    --neut-bg: rgba(154, 145, 127, 0.12);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0e0b;
  --paper-2: #171510;
  --paper-3: #201d16;
  --ink: #ece6d8;
  --ink-2: #c8c0ae;
  --muted: #8f8776;
  --rule: #2b2820;
  --rule-strong: #ece6d8;
  --signal: #ff5a35;
  --signal-ink: #140a06;
  --bull: #4fc58c;
  --bull-bg: rgba(79, 197, 140, 0.12);
  --bear: #ff6a5c;
  --bear-bg: rgba(255, 106, 92, 0.12);
  --neut: #9a917f;
  --neut-bg: rgba(154, 145, 127, 0.12);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* faint paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(22,19,15,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--signal); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--signal); color: var(--signal-ink); }

h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; line-height: 1.12; margin: 0; }
code, pre, kbd, .mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
code { font-size: 0.86em; background: var(--paper-2); border: 1px solid var(--rule); padding: 0 4px; border-radius: 2px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 6px 10px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-heavy { border: 0; border-top: 3px double var(--rule-strong); margin: 0; }

/* ---------- masthead ---------- */
.dateline {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.dateline .container { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 30px; flex-wrap: wrap; }
.dateline .dl-left, .dateline .dl-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dateline a { text-decoration: none; }

.masthead { background: var(--paper); border-bottom: 3px double var(--rule-strong); position: sticky; top: 0; z-index: 40; }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--signal); }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links > a, .nav-links .linkish {
  font-size: 0.84rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 10px; border-radius: var(--radius); background: none; border: 0; cursor: pointer; font-family: var(--sans);
}
.nav-links > a:hover, .nav-links .linkish:hover { color: var(--ink); background: var(--paper-2); }
.nav-links > a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav-toggle { display: none; }
.theme-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); border-radius: var(--radius); cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: var(--radius); }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule-strong); padding: 10px var(--gutter) 16px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-links .linkish { padding: 10px 6px; font-size: 0.95rem; text-align: left; }
  .dateline .dl-right { display: none; }
}

/* ---------- ticker tape ---------- */
.tape { border-bottom: 1px solid var(--rule); background: var(--ink); color: var(--paper); overflow: hidden; position: relative; }
.tape-track { display: flex; width: max-content; animation: tape 90s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px; font-family: var(--mono); font-size: 0.76rem; white-space: nowrap; color: var(--paper); text-decoration: none; border-right: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.tape-item:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 8%, transparent); }
.tape-item .t-sym { font-weight: 600; }
.tape-item .t-score { padding: 1px 6px; border-radius: 2px; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.tape-item .t-score.hot { background: var(--signal); color: var(--signal-ink); }
.tape-item .t-txt { opacity: 0.78; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; }
.tape-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--signal); color: var(--signal-ink); font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- live dot / status ---------- */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bull); display: inline-block; position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--bull); animation: ping 2s ease-out infinite; }
.live-dot.delayed { background: var(--muted); }
.live-dot.delayed::after { display: none; }
.live-dot.warn { background: #c98a12; }
.live-dot.warn::after { border-color: #c98a12; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.delay-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px dashed var(--muted); border-radius: var(--radius); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.delay-badge strong { color: var(--signal); font-weight: 600; }
.delay-badge:hover { border-color: var(--signal); border-style: solid; color: var(--ink); }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.005em;
  color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--rule); }
.btn-danger { border-color: var(--bear); color: var(--bear); }
.btn-danger:hover { background: var(--bear); color: #fff; border-color: var(--bear); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 0.8rem; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 0.95rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 0.9rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  min-height: 40px; padding: 0 12px; width: 100%; max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 28px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }
input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input[type=checkbox] { accent-color: var(--signal); width: 16px; height: 16px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0.01em; }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; font-size: 0.72rem; text-align: center; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; }

/* ---------- generic surfaces (kept for dashboard/auth) ---------- */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 24px); }
.card.raised { box-shadow: var(--shadow); border-color: var(--rule-strong); }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.panel-title h2 { font-size: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; white-space: nowrap; }
.badge-ticker { color: var(--ink); border-color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0.02em; }
.badge-ticker:hover { background: var(--ink); color: var(--paper); }
.badge-bullish { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 45%, transparent); background: var(--bull-bg); }
.badge-bearish { color: var(--bear); border-color: color-mix(in srgb, var(--bear) 45%, transparent); background: var(--bear-bg); }
.badge-neutral, .badge-source { color: var(--muted); }
.badge-signal { color: var(--signal-ink); background: var(--signal); border-color: var(--signal); }
.highlight-chip { display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px; font-size: 0.76rem; color: var(--ink-2); background: var(--paper-2); border-left: 2px solid var(--signal); }

.alert-banner { padding: 11px 14px; margin-bottom: 16px; border: 1px solid var(--rule); border-left: 3px solid var(--ink); background: var(--paper-2); font-size: 0.88rem; border-radius: var(--radius); }
.alert-success { border-left-color: var(--bull); }
.alert-error { border-left-color: var(--bear); color: var(--bear); }
pre.code { margin: 14px 0 0; padding: 12px 14px; overflow-x: auto; font-size: 0.78rem; line-height: 1.6; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); border-radius: var(--radius); }

/* ---------- materiality gauge ---------- */
.gauge { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gauge .g-track { stroke: var(--rule); }
.gauge .g-val { stroke: var(--ink); stroke-linecap: butt; transition: stroke-dasharray .6s cubic-bezier(.2,.8,.2,1); }
.gauge.hot .g-val { stroke: var(--signal); }
.gauge.mid .g-val { stroke: var(--ink-2); }
.gauge.low .g-val { stroke: var(--muted); }
.gauge .g-num { font-family: var(--mono); font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gauge.hot .g-num { color: var(--signal); }
.gauge-lg { width: 108px; height: 108px; }
.gauge-lg .g-num { font-size: 1.9rem; font-family: var(--serif); font-weight: 600; }
.gauge-lg .g-sub { position: absolute; bottom: 24px; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; color: var(--muted); }

.dir { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.dir-bullish { color: var(--bull); }
.dir-bearish { color: var(--bear); }
.dir-neutral { color: var(--muted); }

/* ---------- ledger (event rows) ---------- */
.feed-list { border-top: 2px solid var(--rule-strong); }
.ledger-head { display: grid; grid-template-columns: 76px 54px minmax(0, 1fr) 170px; gap: 16px; padding: 8px 4px; border-bottom: 1px solid var(--rule); }
.ledger-head span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.event-row {
  display: grid; grid-template-columns: 76px 54px minmax(0, 1fr) 170px; gap: 16px; align-items: start;
  padding: 16px 4px; border-bottom: 1px solid var(--rule); position: relative;
  transition: background .15s;
}
.event-row:hover, .event-row.is-active { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.event-row.is-active { box-shadow: inset 3px 0 0 var(--signal); }
.event-row.is-new { animation: arrive 1.4s ease-out; }
@keyframes arrive { 0% { background: color-mix(in srgb, var(--signal) 22%, transparent); } 100% { background: transparent; } }

.ev-time { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); line-height: 1.4; padding-top: 3px; }
.ev-time strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.8rem; }
.ev-body { min-width: 0; }
.ev-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.event-title { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; line-height: 1.25; margin: 0 0 4px; letter-spacing: -0.01em; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.event-summary { margin: 0; font-size: 0.9rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-chips { margin-top: 8px; }
.ev-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: 0.76rem; color: var(--muted); padding-top: 2px; }
.ev-aside .company { color: var(--ink-2); font-weight: 500; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-aside .usd { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.ev-links { display: flex; gap: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ev-links a { text-decoration: none; color: var(--muted); }
.ev-links a:hover { color: var(--signal); }
.ev-detail { display: none; }

@media (max-width: 860px) {
  .ledger-head { display: none; }
  .event-row { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 14px 2px; }
  .ev-time { grid-column: 1 / -1; display: flex; gap: 8px; padding: 0; }
  .ev-time strong { display: inline; }
  .ev-aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .event-title { font-size: 1.06rem; }
}

/* ---------- landing ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero h1 { text-wrap: balance; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; margin: 14px 0 22px; }
.hero h1 em { font-style: italic; color: var(--signal); font-weight: 500; }
.hero .lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--ink-2); max-width: 58ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }

.brief-card { border: 1px solid var(--rule-strong); background: var(--paper); box-shadow: var(--shadow); }
.brief-card .bc-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.brief-card .bc-body { padding: 18px 16px 16px; }
.brief-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.brief-card p { margin: 0 0 14px; font-size: 0.88rem; color: var(--ink-2); }
.brief-card form { display: flex; flex-direction: column; gap: 10px; }
.form-msg { font-size: 0.82rem; min-height: 18px; }
.form-msg.ok { color: var(--bull); }
.form-msg.err { color: var(--bear); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.figure { padding: 20px var(--gutter) 18px 0; border-right: 1px solid var(--rule); }
.figure + .figure { padding-left: 22px; }
.figure:last-child { border-right: 0; }
.figure .f-val { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.figure .f-lbl { margin-top: 8px; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure:nth-child(2) { border-right: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--rule); } .figure:nth-child(3) { padding-left: 0; } }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.025em; }
.section-sub { margin: 8px 0 0; color: var(--ink-2); max-width: 62ch; }

.ticker-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ticker-cloud a { font-family: var(--mono); font-size: 0.76rem; padding: 3px 8px; border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; color: var(--ink-2); }
.ticker-cloud a b { color: var(--ink); font-weight: 600; }
.ticker-cloud a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ticker-cloud a:hover b { color: var(--paper); }

.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); }
.method > div { padding: 22px 24px 8px 0; }
.method > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.method .m-no { font-family: var(--mono); font-size: 0.7rem; color: var(--signal); letter-spacing: 0.14em; }
.method h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.method p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .method > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

.sources-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sources-row span { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); }
.sources-row span::before { content: "■ "; color: var(--signal); }

/* pricing */
.pricing { border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 22px 20px 20px; border-right: 1px solid var(--rule); position: relative; }
.price-card:last-child { border-right: 0; }
.price-card.featured { background: var(--ink); color: var(--paper); }
.price-card.featured .feature-list li { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.price-card.featured .feature-list li::before { color: var(--signal); }
.price-card.featured .kicker { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.price-card.featured .btn { border-color: var(--paper); color: var(--paper); }
.price-card.featured .btn-signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.price-card .tier { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 4px 0 0; }
.price-num { font-family: var(--serif); font-size: 2.9rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 2px; font-variant-numeric: lining-nums; }
.price-num span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.price-card.featured .price-num span { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; font-size: 0.86rem; }
.feature-list li { padding: 6px 0 6px 18px; position: relative; color: var(--ink-2); border-top: 1px dotted var(--rule); }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
@media (max-width: 900px) { .price-card { border-right: 0; border-bottom: 1px solid var(--rule); } .price-card:nth-child(odd) { border-right: 1px solid var(--rule); } }
@media (max-width: 560px) { .price-card:nth-child(odd) { border-right: 0; } }

/* ---------- page header (ticker / catalyst / detail) ---------- */
.page-head { padding: clamp(26px, 4vw, 44px) 0 20px; }
.crumbs { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; }
.page-head .sub { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; font-size: 1.02rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sym-big { font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; padding: 4px 10px; border: 2px solid var(--ink); display: inline-block; margin-bottom: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; }

/* event detail */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 56px); padding-bottom: 48px; }
.article .deck { font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.38rem); line-height: 1.45; color: var(--ink-2); margin: 16px 0 22px; font-weight: 400; }
.article h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.excerpt { margin-top: 26px; }
.excerpt-body { font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; padding: 18px 0 0; border-top: 1px solid var(--rule); max-height: 520px; overflow: auto; }
.excerpt-body::first-letter { font-size: 3.1em; float: left; line-height: 0.9; padding: 4px 8px 0 0; font-weight: 600; color: var(--ink); }
.factsheet { border-top: 2px solid var(--rule-strong); align-self: start; position: sticky; top: 92px; }
.factsheet .fs-gauge { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.factsheet dl { margin: 0; }
.factsheet dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.factsheet dd { margin: 3px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 0.9rem; word-break: break-word; }
.factsheet .btn { width: 100%; margin-top: 10px; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .factsheet { position: static; } }

/* ---------- terminal ---------- */
.term { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 22px 0 60px; }
.rail { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.rail .rail-block { border-top: 2px solid var(--rule-strong); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.rail .btn { width: 100%; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 7px 4px; font-size: 0.74rem; font-weight: 600; cursor: pointer; color: var(--ink-2); border-left: 1px solid var(--rule); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -2px; }
.shortcuts { font-size: 0.78rem; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.term-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.term-top h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; }
.term-search { position: relative; margin-bottom: 4px; }
.term-search input { min-height: 46px; padding-left: 40px; font-size: 1rem; border-color: var(--ink); }
.term-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.term-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.new-pill { position: sticky; top: 76px; z-index: 5; display: none; margin: 8px auto; width: max-content; padding: 6px 14px; border-radius: 999px; background: var(--signal); color: var(--signal-ink); font-family: var(--mono); font-size: 0.74rem; font-weight: 600; border: 0; cursor: pointer; box-shadow: var(--shadow); }
.new-pill.show { display: block; }
.filters-grid { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 980px) {
  .term { grid-template-columns: 1fr; gap: 16px; }
  .rail { position: static; }
  .rail .shortcuts-block { display: none; }
  .filters-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 14, 11, 0.38); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); border-left: 2px solid var(--rule-strong); z-index: 90; transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.drawer.open { transform: translateX(0); }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.drawer-body { padding: 20px 18px 28px; overflow-y: auto; flex: 1; }
.drawer-body h2 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; margin: 12px 0 10px; }
.drawer-body .d-summary { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.drawer-body .d-excerpt { font-family: var(--serif); font-size: 0.95rem; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; border-top: 1px solid var(--rule); padding-top: 14px; max-height: 40vh; overflow: auto; }
.drawer-body .d-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.84rem; margin: 16px 0; }
.drawer-body .d-meta dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.drawer-body .d-meta dd { margin: 0; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--rule); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(32px, 7vw, 84px) 0; }
.auth-wrap .pitch h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; }
.auth-wrap .pitch h1 em { color: var(--signal); }
.auth-wrap .pitch ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--rule); }
.auth-wrap .pitch li { padding: 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 0.94rem; }
.auth-wrap .pitch li b { font-family: var(--mono); font-size: 0.72rem; color: var(--signal); margin-right: 10px; }
.auth-card { border: 1px solid var(--rule-strong); padding: clamp(20px, 3vw, 30px); background: var(--paper); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-wrap .pitch ul { display: none; } }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px) 0 18px; border-bottom: 2px solid var(--rule-strong); margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; }
.plan-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--ink); }
.plan-tag.paid { background: var(--ink); color: var(--paper); }
.meter { height: 4px; background: var(--rule); margin-top: 6px; }
.meter > span { display: block; height: 100%; background: var(--ink); }
.meter.full > span { background: var(--signal); }
.chan-form { display: grid; grid-template-columns: 1.1fr 130px 1.7fr 90px auto auto; gap: 8px; align-items: center; margin-bottom: 16px; }
@media (max-width: 980px) { .chan-form { grid-template-columns: 1fr 1fr; } .chan-form .wide { grid-column: 1 / -1; } }
.list-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 0.88rem; }
.list-row .sub { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 3px; word-break: break-all; }
.wl-chip { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; border: 1px solid var(--ink); border-radius: 2px; }
.wl-chip a { padding: 4px 4px 4px 9px; text-decoration: none; }
.wl-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 8px; font-size: 0.95rem; line-height: 1; }
.wl-chip button:hover { color: var(--bear); }
.lock-note { font-size: 0.84rem; color: var(--ink-2); padding: 12px 14px; border: 1px dashed var(--rule); margin-bottom: 14px; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; border-top: 3px double var(--rule-strong); padding: 34px 0 40px; font-size: 0.84rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer a { text-decoration: none; }
.footer .fine { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.76rem; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .tape-track { animation: none; }
}

/* ---------- small-screen fixes ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .brief-card { max-width: 560px; }
}
@media (max-width: 560px) {
  .figure { padding-right: 12px; }
  .figure + .figure { padding-left: 12px; }
  .figure:nth-child(3) { padding-left: 0; }
  .figure .f-lbl { letter-spacing: 0.08em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .delay-badge { flex-wrap: wrap; }
  .tape-item .t-txt { max-width: 26ch; }
}

/* =========================================================================
   v3 simplification layer: calmer layout, fewer labels, clearer hierarchy
   ========================================================================= */
body::before { display: none; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead .container { min-height: 60px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.small { font-size: 0.86rem; }
.text-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; cursor: pointer; }
.text-link:hover { color: var(--signal); text-decoration-color: currentColor; }
.sub-h { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 18px 0 8px; }

/* tape: quieter */
.tape { background: var(--paper-2); color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.tape-track { animation-duration: 120s; }
.tape-item { color: var(--ink-2); border-right: 1px solid var(--rule); padding: 8px 20px; font-size: 0.74rem; gap: 8px; }
.tape-item:hover { color: var(--ink); background: var(--paper-3); }
.tape-item .t-sym { color: var(--ink); }
.tape-item .t-score { background: transparent; color: var(--muted); padding: 0; }
.tape-item .t-score.hot { background: transparent; color: var(--signal); font-weight: 600; }
.tape-item .t-txt { opacity: 1; }

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(44px, 6vw, 72px); border-bottom: 0; }
.hero-inner { max-width: 820px; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
.hero .lead { margin: 0 auto 30px; max-width: 54ch; font-size: clamp(1.02rem, 1.5vw, 1.14rem); }
.hero-actions { justify-content: center; }
.hero-note { margin-top: 22px; font-size: 0.84rem; color: var(--muted); }

/* sections */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { align-items: baseline; margin-bottom: 14px; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.section-sub { margin: 10px 0 0; }
.section-sub.center { max-width: 52ch; }
.narrow { max-width: 860px; }

/* event row: two columns, one quiet meta line */
.feed-list { border-top: 1px solid var(--rule); }
.event-row { grid-template-columns: 46px minmax(0, 1fr); gap: 18px; padding: 18px 6px; cursor: pointer; }
.event-row .gauge { margin-top: 2px; }
.event-title { font-size: 1.12rem; margin: 0 0 4px; }
.event-summary { font-size: 0.9rem; color: var(--ink-2); -webkit-line-clamp: 2; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.ev-meta .sym { font-family: var(--mono); font-weight: 600; color: var(--ink); text-decoration: none; }
.ev-meta .sym:hover { color: var(--signal); }
.ev-meta .dir { font-size: 0.72rem; letter-spacing: 0.02em; text-transform: none; font-family: var(--sans); font-weight: 600; }
.ev-meta .usd { font-family: var(--mono); color: var(--ink); }
.ev-meta .when { margin-left: auto; }
.new-tag { font-size: 0.7rem; font-weight: 600; color: var(--signal-ink); background: var(--signal); padding: 1px 6px; border-radius: 2px; }
@media (max-width: 860px) {
  .event-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .event-row .gauge { width: 40px; height: 40px; }
  .event-row .gauge svg { width: 40px; height: 40px; }
  .ev-meta .when { margin-left: 0; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin-top: 30px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 30px auto 18px; max-width: 980px; }
.plan { position: relative; border: 1px solid var(--rule); border-radius: 6px; padding: 26px 22px 22px; display: flex; flex-direction: column; background: var(--paper); }
.plan h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.plan .price-num { font-size: 2.6rem; margin: 10px 0 4px; }
.plan .feature-list { flex: 1; margin-bottom: 20px; }
.plan .feature-list li { border-top: 0; padding: 5px 0 5px 20px; }
.plan .feature-list li::before { content: "✓"; color: var(--bull); font-family: var(--sans); }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -11px; left: 22px; background: var(--ink); color: var(--paper); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 2px; }
.plan .btn { width: 100%; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; max-width: 440px; } }

/* inline newsletter */
.inline-form { display: flex; gap: 8px; max-width: 440px; margin: 22px auto 8px; }
.inline-form input { flex: 1; }
@media (max-width: 480px) { .inline-form { flex-direction: column; } }

/* terminal */
.term-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: clamp(22px, 4vw, 36px) 0 16px; }
.term-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 500; }
.filterbar { display: grid; grid-template-columns: minmax(0, 1fr) 110px 170px 120px 140px auto auto; gap: 8px; align-items: center; }
.fb-search { position: relative; }
.fb-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.fb-search input { padding-left: 36px; }
.status-chip { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.84rem; }
.term-sub { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 8px; font-size: 0.84rem; color: var(--muted); }
.kb-hint { font-size: 0.82rem; color: var(--muted); }
.kb-help { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; margin-bottom: 10px; background: var(--paper-2); border-radius: 4px; font-size: 0.82rem; color: var(--ink-2); }
.kb-help[hidden] { display: none; }
@media (max-width: 980px) {
  .filterbar { grid-template-columns: 1fr 1fr; }
  .filterbar .fb-search { grid-column: 1 / -1; }
  .kb-hint { display: none; }
}
.delay-badge { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.82rem; border-style: solid; border-color: var(--rule); border-radius: 999px; padding: 5px 12px; }
.drawer-head .muted { font-size: 0.84rem; }

/* footer */
.footer { margin-top: 24px; border-top: 1px solid var(--rule); padding: 26px 0 30px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.86rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--signal); }
.footer .fine { margin-top: 16px; padding-top: 0; border-top: 0; font-size: 0.78rem; color: var(--muted); display: block; }

/* page heads: calmer */
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.crumbs { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.82rem; }
.sym-big { font-size: 1rem; border-width: 1px; border-radius: 3px; padding: 2px 8px; margin-bottom: 10px; }
.kicker { letter-spacing: 0.06em; }

/* ---------- developer docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 28px; padding-bottom: 60px; }
.docs-nav-inner { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1px; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 20px; }
.docs-nav-h { margin: 18px 0 6px; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.docs-nav-h:first-child { margin-top: 0; }
.docs-nav a { font-size: 0.88rem; color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--ink); background: var(--paper-2); }
.docs-nav a.on { color: var(--ink); border-left-color: var(--signal); background: var(--paper-2); }
.docs-nav .m { font-family: var(--mono); font-size: 0.66rem; color: var(--bull); margin-right: 4px; }
.docs-body { min-width: 0; max-width: 860px; }
.docs-hero { padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.docs-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.025em; }
.docs-hero .lead { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; margin: 12px 0 18px; }
.base-url { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 6px 6px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-2); }
.base-url span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.base-url code { background: none; border: 0; font-size: 0.88rem; padding: 0; }
.doc-sec { padding: 36px 0 8px; scroll-margin-top: 80px; }
.doc-sec h2 { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-sec h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 22px 0 8px; }
.doc-sec p { color: var(--ink-2); margin: 0 0 14px; max-width: 70ch; }
.doc-sec .note { font-size: 0.88rem; padding: 10px 14px; background: var(--paper-2); border-radius: 6px; }
.endpoint h2 code { font-family: var(--mono); font-size: 1.02rem; background: none; border: 0; padding: 0; font-weight: 500; }
.method { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: #fff; background: var(--bull); padding: 3px 7px; border-radius: 4px; letter-spacing: 0.04em; }
.docs-body pre { position: relative; margin: 0 0 16px; padding: 16px 18px; background: #16130f; color: #ece6d8; border-radius: 8px; overflow-x: auto; font-size: 0.8rem; line-height: 1.65; border: 1px solid #2b2820; }
.docs-body pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.docs-body pre .copy, .base-url .copy { position: absolute; top: 8px; right: 8px; font: 500 0.72rem var(--sans); color: #c8c0ae; background: #2b2820; border: 0; border-radius: 4px; padding: 4px 8px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.base-url .copy { position: static; opacity: 1; background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); }
.docs-body pre:hover .copy, .docs-body pre .copy:focus { opacity: 1; }
.code-tabs { margin: 0 0 16px; border-radius: 8px; overflow: hidden; border: 1px solid #2b2820; background: #16130f; }
.code-tabs .tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #201d16; }
.code-tabs .tabs button { font: 500 0.78rem var(--sans); color: #9a917f; background: none; border: 0; padding: 8px 12px; cursor: pointer; border-radius: 6px 6px 0 0; }
.code-tabs .tabs button[aria-selected="true"] { color: #ece6d8; background: #16130f; }
.code-tabs pre { margin: 0; border: 0; border-radius: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.doc-table th { text-align: left; font-weight: 600; font-size: 0.78rem; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.doc-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.doc-table td:first-child { white-space: nowrap; color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split.two { gap: 20px; }
.sticky-code { position: sticky; top: 84px; }
.fields { margin: 0; }
.fields dt { font-family: var(--mono); font-size: 0.84rem; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--rule); }
.fields dt:first-child { border-top: 0; padding-top: 0; }
.fields dt span { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 0.76rem; }
.fields dd { margin: 4px 0 12px; font-size: 0.88rem; color: var(--ink-2); }
.docs-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; }
  .docs-nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .sticky-code { position: static; }
}

/* ---------- cluster buys ---------- */
.seg-links { display: inline-flex; margin-top: 18px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg-links a { padding: 6px 14px; font-size: 0.84rem; text-decoration: none; color: var(--ink-2); border-left: 1px solid var(--rule); }
.seg-links a:first-child { border-left: 0; }
.seg-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.clusters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cluster { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--rule); align-items: start; }
.c-rank { color: var(--muted); font-size: 0.9rem; padding-top: 3px; }
.c-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-sym { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.c-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.pill { font-size: 0.72rem; font-weight: 600; color: var(--signal); border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent); padding: 1px 8px; border-radius: 999px; }
.c-insiders { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 0.84rem; color: var(--ink-2); }
.c-insiders em { font-style: normal; color: var(--muted); }
.c-insiders b { font-weight: 500; color: var(--ink); }
.c-stats { text-align: right; }
.c-total { font-size: 1.15rem; font-weight: 600; }
@media (max-width: 640px) { .cluster { grid-template-columns: 26px minmax(0, 1fr); } .c-stats { grid-column: 2; text-align: left; } }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin: 36px 0 20px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); }
.callout h2 { font-size: 1.25rem; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }

/* ---------- status ---------- */
.status-banner { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 8px; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; background: var(--bull-bg); color: var(--ink); }
.status-banner.status-degraded { background: color-mix(in srgb, #c98a12 14%, transparent); }
.feeds { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.feeds li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.f-name { font-weight: 500; }
.f-state { font-size: 0.82rem; font-weight: 600; min-width: 92px; text-align: right; }
.state-operational { color: var(--bull); }
.state-delayed { color: #c98a12; }
.state-degraded { color: var(--bear); }
.state-unknown { color: var(--muted); }
@media (max-width: 560px) { .feeds li { grid-template-columns: 1fr auto; } .feeds li .small { display: none; } }

/* ---------- legal prose ---------- */
.prose-wrap { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 40px; }
.prose { max-width: 700px; margin: 0 auto; font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.prose h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 30px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--ink); }

/* ---------- single-column auth ---------- */
.auth-solo { max-width: 440px; margin: clamp(36px, 8vw, 90px) auto; }
.auth-card .sub { color: var(--ink-2); font-size: 0.92rem; margin: 6px 0 0; }
.auth-card .text-link.center { display: block; text-align: center; }
.type-pick { grid-column: 1 / -1; font-size: 0.86rem; }
.type-pick summary { cursor: pointer; color: var(--ink-2); padding: 4px 0; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; padding: 10px 0 4px; }
.type-grid label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.section-sub.center, p.center { margin-left: auto; margin-right: auto; }
.hero { padding-bottom: clamp(28px, 4vw, 48px); }
.hero + .section { border-top: 0; padding-top: clamp(16px, 3vw, 32px); }
.bulk-form { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.bulk-form textarea { flex: 1; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 9px 12px; resize: vertical; min-height: 42px; }
.bulk-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }
.bulk-form .btn { min-height: 42px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.chip-btn { font: 500 0.82rem var(--sans); color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip-btn:hover, .chip-btn.on { border-color: var(--ink); color: var(--ink); }
.chip-btn.on { background: var(--ink); color: var(--paper); }
.sc-chart { margin: 8px 0 26px; padding: 20px; border: 1px solid var(--rule); border-radius: 8px; }
.sc-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 14px; align-items: center; padding: 7px 0; }
.sc-label { font-size: 0.88rem; color: var(--ink-2); }
.sc-bar { height: 14px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.sc-bar > span { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.sc-bar > span.hot { background: var(--signal); }
.sc-val { text-align: right; font-weight: 600; font-size: 0.92rem; }
.doc-table .r { text-align: right; }
.sub-title { font-size: 1.3rem; margin: 30px 0 8px; }
.method-list { padding-left: 20px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.65; }
.method-list li { margin: 6px 0; }
.sc-row { grid-template-columns: 120px minmax(0, 1fr) 96px; }
.plan-tag { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.82rem; border-radius: 999px; padding: 4px 12px; }
.hero-note .live-dot { margin-right: 8px; vertical-align: 1px; }

/* pricing: four plans, comparison, faq */
.plans.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; }
.plan-for { color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; min-height: 2.6em; }
.plan-note { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 8px 0 0; }
@media (max-width: 1080px) { .plans.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 620px) { .plans.plans-4 { grid-template-columns: 1fr; max-width: 440px; } .plan-for { min-height: 0; } }
.page-h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cmp-wrap { overflow-x: auto; margin: 26px auto 0; max-width: 980px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9rem; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1px solid var(--rule); text-align: center; }
.cmp thead th { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid var(--rule-strong); }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink-2); }
.cmp td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cmp .cmp-feat { background: color-mix(in srgb, var(--signal) 5%, transparent); }
.cmp-group th { text-align: left !important; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 26px; font-weight: 600; }
.cmp-yes { color: var(--ink); font-weight: 600; }
.cmp-no { color: var(--muted); }
.faq { margin-top: 22px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 2px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }

/* ticker lookback */
.lb-form { max-width: 520px; }
.lb-try { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--signal); }
.form-msg.center { text-align: center; margin-top: 8px; }
.lb-out { margin-top: 18px; }
.lb-summary { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; }
.lb-ticker { border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.lb-th { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.lb-sym { font-family: var(--mono); font-weight: 600; color: var(--ink); text-decoration: none; }
.lb-co { color: var(--ink-2); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.lb-count { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.lb-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.lb-score { font-family: var(--mono); font-size: 0.82rem; text-align: center; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 2px 0; color: var(--ink-2); }
.lb-score.hot { border-color: var(--signal); color: var(--signal); }
.lb-body { display: flex; flex-direction: column; min-width: 0; }
.lb-title { font-size: 0.92rem; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.lb-meta { font-size: 0.78rem; color: var(--muted); }
.lb-move { font-family: var(--mono); font-size: 0.85rem; text-align: right; font-variant-numeric: tabular-nums; }
.lb-move.up { color: var(--bull); }
.lb-move.down { color: var(--bear); }
.lb-none { color: var(--muted); font-size: 0.88rem; padding: 12px 16px; margin: 0; }
.lb-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 6px; }
.lb-cta-text { margin: 0; color: var(--ink-2); }
.lb-cta-note { color: var(--muted); font-size: 0.85rem; }
.lb-fine { text-align: center; color: var(--muted); font-size: 0.76rem; margin: 8px 0 0; }

.lb-more { display: block; padding: 10px 16px; font-size: 0.84rem; color: var(--ink-2); border-top: 1px solid var(--rule); text-decoration: none; }
.lb-more:hover { color: var(--signal); }

/* contact + admin */
.ct-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.ct-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.ct-form textarea { resize: vertical; min-height: 120px; font: inherit; }
.ct-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-done { text-align: center; padding: 24px 0; color: var(--ink); }
.adm-msg { border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; background: var(--paper); }
.adm-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.adm-body { white-space: pre-wrap; margin: 0 0 10px; color: var(--ink); }
.docs pre .c { color: #8a8478; }
