/* ═══════════════════════════════════════════════════════════════════════════
   PULSE OF MARKETS — landing mockups, shared instrument system (2026-11-17)
   Every value below is carried over from the desktop app's shipped tokens
   (src/frontend/src/app/tokens.css, rev7) and the ratified control set v2.1,
   so the website and the product read as one machined object.
   Layout concept: one dark instrument housing; sections are "Sessions" with a
   single gilded title each; product proof lives in recessed chambers.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* Surfaces — cold neutral→blue axis (B ≥ R, no green excess) */
  --surface-well: #050608;
  --surface-0: #07090b;
  --surface-1: #0d1114;
  --surface-2: #13181c;
  --surface-3: #1a2025;
  --surface-4: #212931;

  /* Hairlines — one white base, monotonic ladder */
  --border-faint: rgba(255, 255, 255, .035);
  --border-soft: rgba(255, 255, 255, .055);
  --line-soft: rgba(255, 255, 255, .085);
  --border-subtle: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .18);

  /* Text — warm ramp, the deliberate opposite of the cold shell */
  --text-primary: #ebe5d8;
  --text-secondary: #b7b0a1;
  --text-tertiary: #948e82;
  --text-quaternary: #7c7a73;

  /* Gold — scarce chrome accent only */
  --gold-1: #f3d89f;
  --gold-2: #d6b15c;
  --gold-3: #9d6f2b;
  --gold-4: #69481b;
  --accent: var(--gold-2);
  --accent-dim: rgba(214, 177, 92, .12);
  --accent-line: rgba(214, 177, 92, .28);
  --accent-soft: rgba(214, 177, 92, .06);

  /* Data semantics — P&L axis */
  --pl-pos: #27e0a2;
  --pl-neg: #ff6b86;
  --pl-warn: #f5d16a;
  --chart-up: #82efbb;
  --pl-pos-dim: rgba(39, 224, 162, .12);
  --pl-neg-dim: rgba(255, 107, 134, .12);

  /* Status axis (never in the same cluster as a P&L number) */
  --state-ok: #58c39b;
  --state-warn: #e59a3c;
  --state-alert: #df6a83;

  /* Quality ramp */
  --score-bad: #ff6b86;
  --score-risky: #d97706;
  --score-good: #52b08e;
  --score-perfect: #27e0a2;

  /* Non-P&L data */
  --flow-in: #5fa7d4;
  --flow-out: #d97706;
  --radar-data: #54606e;
  --radar-line: #8b9bab;
  --bar-neu-fill: #3a3f45;
  --bar-neu-fill-2: #2c3034;
  --bar-neu-cap: #6b7278;

  /* Control system internals (ratified v2.1) */
  --pc-gold-ink: #20160a;
  --pc-dur: 220ms;
  --pc-ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pc-gold-plate: linear-gradient(180deg, #d8b063 0%, #cda052 50%, #a8792f 100%);
  --pc-titan-plate: linear-gradient(180deg, #2a2d31 0%, #1d2024 52%, #14171a 100%);
  --pc-steel-plate: linear-gradient(180deg, #34383d 0%, #25292e 50%, #1a1d21 100%);
  --pc-dark-plate: linear-gradient(180deg, #141819, #0d1114);
  --pc-track: linear-gradient(180deg, #090b0d, #12161a);
  --pc-sh-hard: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .30), 0 6px 14px rgba(0, 0, 0, .32), 0 2px 4px rgba(0, 0, 0, .28);
  --pc-sh-engraved: inset 0 8px 16px rgba(0, 0, 0, .50), inset 0 -2px 6px rgba(255, 255, 255, .015), inset 0 0 0 1px rgba(255, 255, 255, .012);
  --pc-sh-gold: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .26), 0 2px 6px rgba(0, 0, 0, .34);
  --pc-sh-plate: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .30);
  --pc-ring: 0 0 0 2px rgba(211, 169, 94, .32);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, .45);
  --well-rim: inset 0 2px 11px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .5);

  /* Radii — decrease inward */
  --r-shell: 30px;
  --r-panel: 24px;
  --r-inner: 20px;
  --r-well: 18px;
  --r-plate: 14px;
  --r-control: 10px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --fs-eyebrow: 12px;
  --fs-body: clamp(15px, 14.4px + .2vw, 17px);
  --fs-lead: clamp(16px, 15px + .35vw, 19px);
  --fs-h3: clamp(18px, 16.5px + .45vw, 22px);
  --fs-h2: clamp(30px, 2.1vw + 20px, 52px);
  --fs-h1: clamp(40px, 4.6vw + 14px, 86px);
  --section-y: clamp(72px, 5vw + 44px, 140px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--surface-0); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* safe-area band above a sticky header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--surface-0);
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(214, 177, 92, .28); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--border-faint); }

/* ── Mockup chrome: variant switcher pinned to the bottom-left ─────────── */
.mock-bar {
  position: fixed; z-index: 90;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 5px; border-radius: 14px;
  background: rgba(7, 9, 11, .94);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-deep);
  font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  max-width: calc(100vw - 28px);
}
.mock-bar a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 9px;
  color: var(--text-tertiary); text-decoration: none;
}
.mock-bar a:hover { color: var(--text-primary); }
.mock-bar a[aria-current="page"] { background: var(--surface-3); color: var(--gold-1); }
.mock-bar .mb-label { color: var(--text-quaternary); padding: 0 6px 0 8px; }
@media (max-width: 640px) { .mock-bar .mb-label { display: none; } .mock-bar a { padding: 0 8px; } }

.mock-bar button {
  height: 28px; padding: 0 10px; border-radius: 9px; border: 1px dashed rgba(155, 216, 255, .35);
  background: transparent; color: #9bd8ff; font: inherit; letter-spacing: inherit; cursor: pointer;
}
.mock-bar button[aria-pressed="true"] { background: rgba(155, 216, 255, .1); border-style: solid; }

/* Designer notes — hidden until "Notes" is on; never part of the design */
.dnote {
  display: none; position: relative; z-index: 5;
  margin: 0 0 18px; padding: 10px 14px 10px 34px; border-radius: 10px;
  border: 1px dashed rgba(155, 216, 255, .4); background: rgba(16, 28, 38, .92);
  color: #cfe9fb; font: 500 13px/1.5 var(--font-sans); max-width: 760px;
}
.dnote::before { content: "i"; position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: #9bd8ff; color: #07131c; font: 800 11px/16px var(--font-mono); text-align: center; }
.dnote b { color: #fff; }
.show-notes .dnote { display: block; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Brand lockup (new brand system: glyph + Inter wordmark) ───────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.brand-glyph {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #171b1f, #0d1013);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 4px 10px rgba(0, 0, 0, .35);
}
.brand-glyph svg { width: 26px; height: 26px; }
.brand-word { display: grid; line-height: 1.05; }
.brand-word b { font-size: 15px; letter-spacing: -.01em; font-weight: 700; }
.brand-word b .p {
  font-weight: 800;
  background: linear-gradient(180deg, #fbe7bd, #e3bd6f 45%, #b07f33);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word b .o { font-weight: 500; color: var(--text-secondary); }
.brand-word small { font: 600 9px/1.2 var(--font-mono); letter-spacing: .2em; color: var(--text-tertiary); margin-top: 3px; text-transform: uppercase; }

/* ── Header + engraved navbar ──────────────────────────────────────────── */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(7, 9, 11, .94);
  border-bottom: 1px solid var(--border-faint);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.site-head .head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.navbar {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px;
  background: linear-gradient(180deg, #0a0d10, #080a0c);
  border: 1px solid rgba(220, 220, 220, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 26px rgba(0, 0, 0, .34);
}
.navlink {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: background var(--pc-dur) var(--pc-ease), color var(--pc-dur) var(--pc-ease);
}
.navlink:not(.is-active):hover { background: rgba(255, 255, 255, .03); color: var(--text-primary); }
.navlink.is-active {
  background: linear-gradient(180deg, #101418, var(--surface-1));
  color: var(--accent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.navlink.is-active::after { /* the one permitted glow: a light puddle under the latch */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 8px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(214, 177, 92, .32), transparent 70%);
  pointer-events: none;
}
.navlink .ext { width: 11px; height: 11px; opacity: .6; }
@media (max-width: 1020px) { .site-head .navbar { display: none; } }
@media (max-width: 760px) { .site-head .provenance { display: none; } }
@media (max-width: 560px) {
  .site-head .head-actions > *:not(.keep-sm) { display: none; }
  .site-head .wrap { gap: 10px; }
}

/* ── Buttons (ratified pc-btn) ─────────────────────────────────────────── */
@keyframes pc-glint { from { transform: skewX(-18deg) translateX(0); opacity: 0; } 30% { opacity: 1; } to { transform: skewX(-18deg) translateX(420%); opacity: 0; } }
.pc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .05); border-radius: var(--r-control);
  background: var(--pc-dark-plate); color: var(--text-secondary);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  cursor: pointer; user-select: none; white-space: nowrap; text-decoration: none;
  overflow: hidden; isolation: isolate;
  box-shadow: var(--pc-sh-hard);
  transition: transform var(--pc-dur) var(--pc-ease), box-shadow var(--pc-dur) var(--pc-ease), border-color var(--pc-dur) var(--pc-ease), color var(--pc-dur) var(--pc-ease), filter var(--pc-dur) var(--pc-ease);
}
.pc-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .85;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 26%), linear-gradient(155deg, rgba(255, 255, 255, .04), transparent 24%, transparent 80%, rgba(0, 0, 0, .16));
}
.pc-btn > * { position: relative; z-index: 2; }
.pc-btn svg { width: 16px; height: 16px; flex: none; }
.pc-btn:hover { border-color: rgba(243, 216, 159, .16); color: var(--text-primary); transform: translateY(-1px); }
.pc-btn:active { transform: translateY(1px) scale(.997); }
.pc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: var(--pc-sh-hard), var(--pc-ring); }
.pc-btn--gold { background: var(--pc-gold-plate); border-color: rgba(245, 210, 130, .22); color: var(--pc-gold-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .12); box-shadow: var(--pc-sh-gold); }
.pc-btn--gold::before { opacity: 1; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 28%), linear-gradient(155deg, rgba(255, 255, 255, .06), transparent 24%, transparent 84%, rgba(0, 0, 0, .20)); }
.pc-btn--gold::after { content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; z-index: 1; pointer-events: none; opacity: 0; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.pc-btn--gold:hover { color: var(--pc-gold-ink); border-color: rgba(255, 245, 220, .40); filter: brightness(1.05); }
.pc-btn--gold:hover::after { animation: pc-glint .7s var(--pc-ease) forwards; }
.pc-btn--titan { background: var(--pc-titan-plate); border-color: rgba(255, 255, 255, .08); color: var(--gold-1); }
.pc-btn--titan:hover { color: var(--gold-1); border-color: rgba(243, 216, 159, .28); filter: brightness(1.06); }
.pc-btn--steel { background: var(--pc-steel-plate); border-color: rgba(255, 255, 255, .10); color: #d6dbe0; }
.pc-btn--steel::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 26%); }
.pc-btn--steel:hover { color: #eef1f4; border-color: rgba(255, 255, 255, .20); filter: brightness(1.05); }
.pc-btn--ghost { background: transparent; border-color: transparent; color: var(--text-secondary); box-shadow: none; }
.pc-btn--ghost::before { opacity: 0; }
.pc-btn--ghost:hover { background: var(--accent-soft); border-color: rgba(243, 216, 159, .18); color: var(--text-primary); box-shadow: none; }
.pc-btn--xl { height: 54px; padding: 0 28px; font-size: 15px; border-radius: 14px; gap: 10px; }
.pc-btn--lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.pc-btn--sm { height: 32px; padding: 0 13px; font-size: 12px; border-radius: 8px; gap: 6px; }
.pc-btn--sm svg { width: 14px; height: 14px; }
.pc-btn .chev { width: 12px; height: 12px; opacity: .7; transition: transform var(--pc-dur) var(--pc-ease); }
.pc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Request-access drawer: one secondary CTA that holds both channels */
.access { position: relative; display: inline-flex; }
.access-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(320px, calc(100vw - 40px));
  padding: 8px; border-radius: 16px;
  background: linear-gradient(180deg, #13181c, #0d1114);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.access-menu[hidden] { display: none; }
.access--right .access-menu { left: auto; right: 0; }
.access--up .access-menu { top: auto; bottom: calc(100% + 8px); }
.access-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; }
.access-row + .access-row { border-top: 1px solid var(--border-soft); }
.access-row .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-well); box-shadow: var(--well-rim); color: var(--text-secondary); }
.access-row .ic svg { width: 16px; height: 16px; }
.access-row b { display: block; font-size: 13px; font-weight: 600; }
.access-row span { display: block; font: 500 12px/1.3 var(--font-mono); color: var(--text-tertiary); user-select: all; }
.access-note { font-size: 11.5px; line-height: 1.45; color: var(--text-tertiary); padding: 8px 10px 4px; margin: 0; }

/* ── Type roles ────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 var(--fs-eyebrow)/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.eyebrow .led, .led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--state-ok); flex: none;
  box-shadow: 0 0 0 3px rgba(88, 195, 155, .12);
}
/* Gilded Session title — the one non-interactive gold accent per viewport */
.session-title {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px/1.2 var(--font-sans); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, #f3d89f, #d6b15c 55%, #a8792f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6));
}
.session-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--pc-gold-plate); flex: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: .98; letter-spacing: -.035em; color: var(--text-primary); }
.h2 { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.028em; }
.h3 { font-weight: 650; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.012em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-secondary); max-width: 62ch; margin: 0; text-wrap: pretty; }
.body { color: var(--text-secondary); max-width: 64ch; margin: 0; text-wrap: pretty; }
.micro { font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--text-tertiary); text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4vw, 60px); }
.sec-head.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; column-gap: 48px; }
@media (max-width: 900px) { .sec-head.split { grid-template-columns: 1fr; } }

/* ── Instrument primitives ─────────────────────────────────────────────── */
/* chamber → inset → well : the three-layer engraved dataviz housing */
.chamber {
  position: relative; border-radius: var(--r-shell); padding: 10px;
  background: linear-gradient(180deg, #11161a, #0a0d10);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.chamber-inset {
  border-radius: calc(var(--r-shell) - 6px); padding: 8px;
  background: linear-gradient(180deg, #0b0e11, #07090b);
  box-shadow: var(--well-rim);
}
.well {
  position: relative; overflow: hidden; border-radius: var(--r-well);
  background: radial-gradient(120% 70% at 50% -12%, rgba(39, 224, 162, .07), transparent 62%), linear-gradient(180deg, #080a0c, #050608);
  box-shadow: inset 0 2px 11px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .035);
}
.well.calib::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
}
.well canvas, .fill-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.housing { /* one machined body that holds several sub-structures */
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, #0f1317, #0b0e11);
  border: 1px solid rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 18px 50px rgba(0, 0, 0, .35);
}
.seam { background: linear-gradient(180deg, transparent, var(--line-soft) 20%, var(--line-soft) 80%, transparent); width: 1px; }

/* KPI plate — emphasis in the number, a narrow rail, never a filled slab */
.kpi {
  position: relative; display: grid; gap: 6px; padding: 14px 16px 14px 18px; border-radius: var(--r-plate);
  background: linear-gradient(180deg, #12171b, #0c1013);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  min-width: 0;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--border-subtle); }
.kpi.is-pos::before { background: var(--pl-pos); opacity: .75; }
.kpi.is-neg::before { background: var(--pl-neg); opacity: .75; }
.kpi .k { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; color: var(--text-tertiary); text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.kpi .v { font: 650 clamp(18px, 1.3vw + 8px, 26px)/1.05 var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .s { font-size: 11.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pos { color: var(--pl-pos); }
.neg { color: var(--pl-neg); }
.warn { color: var(--pl-warn); }
.gold { color: var(--accent); }

/* Report lane — 2px semantic rail, fast-fading tint, engraved notch */
.lane {
  --rail: var(--text-tertiary);
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px;
  padding: 12px 14px 12px 20px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rail) 9%, transparent), transparent 40%), linear-gradient(180deg, #0f1316, #0b0e11);
  border: 1px solid rgba(255, 255, 255, .05);
}
.lane::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--rail); }
.lane::after { content: ""; position: absolute; left: 8px; top: 13px; width: 5px; height: 5px; border-radius: 1.5px; background: var(--surface-well); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04); }
.lane b { font-size: 13.5px; font-weight: 600; }
.lane p { grid-column: 1; margin: 0; font-size: 12.5px; color: var(--text-tertiary); line-height: 1.45; }
.lane .tag { grid-row: 1 / span 2; grid-column: 2; font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; color: var(--text-tertiary); text-transform: uppercase; }
.lane--neg { --rail: var(--pl-neg); }
.lane--pos { --rail: var(--pl-pos); }
.lane--warn { --rail: var(--state-warn); }
.lane--info { --rail: var(--flow-in); }

/* Matrix field — calendar / heatmap as one recessed field of plates */
.matrix { display: grid; gap: 4px; padding: 8px; border-radius: 14px; background: var(--surface-well); box-shadow: var(--well-rim); }
.cell {
  --t: 0; position: relative; aspect-ratio: 1; border-radius: 6px; min-width: 0;
  background: linear-gradient(180deg, #11161a, #0c1013);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.cell.p { background: radial-gradient(90% 90% at 50% 30%, rgba(39, 224, 162, calc(.08 + var(--t) * .38)), transparent 85%), linear-gradient(180deg, #11161a, #0c1013); }
.cell.n { background: radial-gradient(90% 90% at 50% 30%, rgba(255, 107, 134, calc(.08 + var(--t) * .36)), transparent 85%), linear-gradient(180deg, #11161a, #0c1013); }
.cell.e { background: linear-gradient(180deg, #0b0e11, #090b0d); }
.cell.today::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 3px 0 0; }

/* Stat channel — calibration meter with a metallic marker */
.channel { display: grid; gap: 8px; }
.channel .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; }
.channel .row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.channel .row span { color: var(--text-tertiary); }
.channel .track { position: relative; height: 8px; border-radius: 6px; background: var(--surface-well); box-shadow: var(--well-rim); overflow: visible; }
.channel .track::before { content: ""; position: absolute; inset: 2px; border-radius: 4px; opacity: .55; background: linear-gradient(90deg, #7c151c, #b43b3f 22%, #d66f2f 42%, #d6ad29 58%, #7ea33a 76%, #1e7f47); }
.channel .marker { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; transform: translateX(-50%); background: linear-gradient(180deg, #f2f4f6, #9aa1a8); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); transition: left 1.2s var(--ease-out); }

/* Neutral gunmetal bars (counts / categories) */
.bars { display: flex; align-items: flex-end; gap: 3px; }
.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--bar-neu-fill), var(--bar-neu-fill-2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); min-height: 2px; }
.bars i.p { background: linear-gradient(180deg, var(--pl-pos), color-mix(in srgb, var(--pl-pos) 55%, #000)); }
.bars i.n { background: linear-gradient(180deg, var(--pl-neg), color-mix(in srgb, var(--pl-neg) 62%, #000)); }

/* ── Segmented control: ONE gold plate that slides (ratified O1–O6) ─────── */
.pc-seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
  gap: 3px; padding: 3px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px;
  background: var(--pc-track); box-shadow: var(--pc-sh-engraved); vertical-align: middle; max-width: 100%;
}
.pc-seg::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: var(--seg-w, 0); height: var(--seg-h, 0);
  transform: translate(var(--seg-x, 0px), var(--seg-y, 0px));
  border-radius: 9px; background: var(--pc-gold-plate);
  border: 1px solid rgba(255, 240, 210, .22); box-shadow: var(--pc-sh-plate);
  opacity: var(--seg-on, 0); pointer-events: none; z-index: 0;
  transition: transform var(--pc-dur) var(--pc-ease), width var(--pc-dur) var(--pc-ease), height var(--pc-dur) var(--pc-ease), opacity 150ms var(--pc-ease);
}
.pc-seg:not(.is-ready)::before { transition: none; }
.pc-seg-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 30px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-tertiary); font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: color var(--pc-dur) var(--pc-ease);
}
.pc-seg-btn:not(.is-active):hover { color: var(--text-primary); }
.pc-seg-btn.is-active { color: var(--pc-gold-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .20); }
.pc-seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pc-seg-btn svg { width: 15px; height: 15px; flex: none; }
.pc-seg--lg { border-radius: 14px; }
.pc-seg--lg::before { border-radius: 10px; }
.pc-seg--lg .pc-seg-btn { height: 42px; padding: 0 18px; font-size: 13.5px; border-radius: 10px; }
.pc-seg--sm { border-radius: 10px; padding: 2px; gap: 2px; }
.pc-seg--sm::before { border-radius: 8px; }
.pc-seg--sm .pc-seg-btn { height: 26px; padding: 0 11px; font-size: 11px; border-radius: 8px; }
.seg-scroll { overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { .pc-seg--stack { grid-auto-flow: row; grid-auto-columns: auto; width: 100%; } }

/* ── App window mock (drawn, synthetic) ────────────────────────────────── */
.appwin {
  position: relative; border-radius: var(--r-panel); overflow: hidden;
  background: linear-gradient(180deg, #0c1013, #07090b);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, .04);
  min-width: 0;
}
.aw-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); background: linear-gradient(180deg, #0f1317, #0b0e11); }
.aw-acct { display: grid; line-height: 1.15; min-width: 0; }
.aw-acct b { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-acct span { font: 500 10.5px/1.2 var(--font-mono); color: var(--text-tertiary); }
.aw-top .pc-seg { margin-left: auto; }
.aw-tabs { display: flex; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--border-faint); overflow: hidden; background: #090c0e; }
.aw-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 500; color: var(--text-tertiary); white-space: nowrap; }
.aw-tab svg { width: 13px; height: 13px; opacity: .65; }
.aw-tab.is-active { color: var(--accent); background: linear-gradient(180deg, #101418, var(--surface-1)); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.aw-tab.is-active svg { opacity: 1; }
.aw-body { padding: 14px; display: grid; gap: 12px; min-width: 0; }
.aw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .aw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aw-tabs .aw-tab:nth-child(n+5) { display: none; } }
.aw-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-quaternary); padding: 2px 4px 0; }
.panel-title { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.provenance {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
  font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary);
  background: var(--surface-well); box-shadow: var(--well-rim);
}
.provenance::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flow-in); }

/* Placeholder marker: what must be replaced by a fresh synthetic capture */
.capture-note {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-quaternary);
}
.capture-note::before { content: ""; width: 14px; height: 1px; background: currentColor; }

/* ── Ticker / tape ─────────────────────────────────────────────────────── */
.tape { position: relative; overflow: hidden; border-block: 1px solid var(--border-soft); background: linear-gradient(180deg, #090c0e, #07090b); }
.tape-track { display: flex; width: max-content; gap: 0; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; border-right: 1px solid var(--border-faint); }
.tape-item b { color: var(--text-primary); font-weight: 600; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ── FAQ ledger ────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; border-radius: var(--r-panel); padding: 6px; background: var(--surface-well); box-shadow: var(--well-rim); }
.faq details { border-radius: 16px; transition: background var(--pc-dur) var(--pc-ease); }
.faq details + details { border-top: 1px solid var(--border-soft); }
.faq details[open] { background: linear-gradient(180deg, #0f1317, #0c1013); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-size: 16px; font-weight: 600; letter-spacing: -.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--pc-track); box-shadow: var(--pc-sh-engraved); color: var(--text-tertiary); transition: transform var(--pc-dur) var(--pc-ease), color var(--pc-dur); }
.faq summary .pm svg { width: 12px; height: 12px; }
.faq details[open] summary .pm { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text-secondary); max-width: 70ch; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--border-soft); padding-block: 48px 110px; background: var(--surface-well); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { margin: 0 0 12px; font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-tertiary); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: var(--text-primary); }
.site-foot .fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border-faint); font-size: 12px; color: var(--text-quaternary); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }

/* ── Cursor + progress + reveal (kept from the current site, re-skinned) ─ */
#page-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-4), var(--gold-2)); z-index: 70; pointer-events: none; }
#cursor-dot, #cursor-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .25s; }
.has-cursor #cursor-dot, .has-cursor #cursor-ring { opacity: 1; }
#cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--gold-1); }
#cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(243, 216, 159, .35); display: grid; place-items: center; transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background .25s, border-color .25s, opacity .25s; }
#cursor-ring .cur-label { font: 700 8.5px/1 var(--font-mono); letter-spacing: .14em; color: var(--pc-gold-ink); opacity: 0; transition: opacity .2s; }
#cursor-ring.is-label { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(214, 177, 92, .92); border-color: transparent; }
#cursor-ring.is-label .cur-label { opacity: 1; }
@media (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

.rv { transform: translateY(18px); opacity: .55; transition: transform .9s var(--ease-out), opacity .9s var(--ease-out); }
.rv.in { transform: none; opacity: 1; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { transform: none; opacity: 1; transition: none; }
  .tape-track { animation: none; flex-wrap: wrap; width: auto; }
  .pc-btn--gold:hover::after { animation: none; }
  #cursor-dot, #cursor-ring { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
