@font-face{font-family:Bricolage;src:url("fonts/bricolagegrotesque.woff2") format("woff2");font-weight:200 800;font-stretch:75% 100%;font-display:swap}
@font-face{font-family:Plex;src:url("fonts/ibmplexmono.woff2") format("woff2");font-weight:400 700;font-display:swap}

/* Limestra Labs — Unified Editorial Design System
   Default: Ink #161825 · Paper #F7F7EF · Lime #E0F53A · Coral #FF8773
   No mixed light/dark patchwork: every section obeys the active theme cleanly. */
:root {
  --ink: #161825;
  --paper: #F7F7EF;
  --lime: #E0F53A;
  --coral: #FF8773;
  --warn: #F4C430;
  --mono: Plex, ui-monospace, SFMono-Regular, monospace;
  --body: Bricolage, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Default: Ink #161825 (consistent dark editorial surface) */
  color-scheme: dark;
  --bg: #161825;
  --surface: #1B1E2E;
  --surface-alt: #121420;
  --fg: #F7F7EF;
  --fg-muted: rgba(247, 247, 239, 0.72);
  --fg-faint: rgba(247, 247, 239, 0.48);
  --border: rgba(247, 247, 239, 0.13);
  --border-strong: rgba(247, 247, 239, 0.30);
  --border-subtle: rgba(247, 247, 239, 0.08);
  --accent: #E0F53A;
  --accent-ink: #161825;
  --danger: #FF8773;
  --danger-bg: rgba(255, 135, 115, 0.12);
  --danger-text: #FF9C8B;
  --pos-text: #E0F53A;
  --chart-bg: #10121D;
  --chart-grid: rgba(247, 247, 239, 0.07);
  --chart-text: #F7F7EF;
  --candle-up: #E0F53A;
  --candle-down: #FF8773;
  --hero-bg: #161825;
  --hero-fg: #F7F7EF;
  --hero-card-bg: #1B1E2E;
  --hero-card-fg: #F7F7EF;
  --hero-card-border: rgba(247, 247, 239, 0.16);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F7EF;
  --surface: #FFFFFF;
  --surface-alt: #EFEFE5;
  --fg: #161825;
  --fg-muted: #4E5266;
  --fg-faint: #767B91;
  --border: rgba(22, 24, 37, 0.14);
  --border-strong: #161825;
  --border-subtle: rgba(22, 24, 37, 0.08);
  --accent: #E0F53A;
  --accent-ink: #161825;
  --danger: #D9483B;
  --danger-bg: #FDF1EF;
  --danger-text: #A5271D;
  --pos-text: #156F3C;
  --chart-bg: #F7F7EF;
  --chart-grid: rgba(22, 24, 37, 0.09);
  --chart-text: #161825;
  --candle-up: #15803D;
  --candle-down: #D9483B;
  --hero-bg: #F7F7EF;
  --hero-fg: #161825;
  --hero-card-bg: #FFFFFF;
  --hero-card-fg: #161825;
  --hero-card-border: #161825;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
html[lang="en"] .de, html[lang="de"] .en { display: none !important; }
h1, h2, h3, p, blockquote, figure, ol, dl, dd { margin: 0; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; border-radius: 0; }
a { text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 1.5px; }
img, svg { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1140px, calc(100% - 2 * clamp(20px, 4.5vw, 56px)));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: .6em 1em;
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-180%);
  z-index: 40;
  font: 600 13px/1 var(--mono);
  text-decoration: none;
}
.skip:focus { transform: none; }

/* ==================== MASTHEAD ==================== */
.masthead {
  background: rgba(22, 24, 37, 0.92);
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .masthead {
  background: rgba(247, 247, 239, 0.94);
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  flex-shrink: 0;
}
.brand-link img {
  width: 132px;
  height: auto;
}
html:not([data-theme="light"]) .brand-link img {
  filter: invert(1) hue-rotate(180deg);
}
.topnav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.topnav a {
  padding: 6px 0;
  text-decoration: none;
  font: 500 15px/1 var(--body);
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.14s ease;
}
.topnav a:hover, .topnav a[aria-current="page"] {
  color: var(--fg);
}
.topnav a[aria-current="page"] {
  font-weight: 660;
}
.topnav a.nav-report {
  color: var(--fg);
  font-weight: 660;
}
.topnav a.nav-report::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  margin-left: 6px;
  vertical-align: 1px;
}
html[data-theme="light"] .topnav a.nav-report::after {
  border: 1px solid var(--ink);
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-drop-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 0;
  font: 500 15px/1 var(--body);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.14s ease;
}
.nav-drop-btn:hover,
.nav-drop-btn[aria-expanded="true"],
.nav-drop-btn.is-active {
  color: var(--fg);
}
.nav-drop-btn.is-active {
  font-weight: 660;
}
.nav-drop-caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  transition: transform 0.16s ease;
  opacity: 0.72;
}
.nav-drop-btn[aria-expanded="true"] .nav-drop-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  z-index: 60;
}
html[data-theme="light"] .nav-drop-menu {
  box-shadow: 0 12px 28px rgba(22, 24, 37, 0.14);
}
.nav-drop-menu a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  white-space: normal;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-drop-menu a:last-child {
  border-bottom: 0;
}
.nav-drop-menu a:hover,
.nav-drop-menu a[aria-current="page"] {
  background: rgba(224, 245, 58, 0.09);
  color: var(--fg);
}
html[data-theme="light"] .nav-drop-menu a:hover,
html[data-theme="light"] .nav-drop-menu a[aria-current="page"] {
  background: rgba(22, 24, 37, 0.05);
}
.nav-drop-title {
  font: 620 14.5px/1.2 var(--body);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nav-drop-menu a[aria-current="page"] .nav-drop-title::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--lime);
  flex-shrink: 0;
}
html[data-theme="light"] .nav-drop-menu a[aria-current="page"] .nav-drop-title::after {
  background: var(--ink);
}
.nav-drop-sub {
  font: 400 11px/1.3 var(--mono);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.theme-btn {
  appearance: none;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  min-height: 32px;
  padding: 0 10px;
  font: 500 12px/1 var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.theme-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}
.langs {
  display: flex;
  border: 1px solid var(--border);
  align-items: stretch;
}
.langs button {
  appearance: none;
  background: transparent;
  color: var(--fg-muted);
  border: 0;
  font: 500 12px/1 var(--mono);
  min-height: 30px;
  padding: 0 9px;
}
.langs button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
html[data-theme="light"] .langs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.langs button[aria-pressed="false"]:hover {
  color: var(--fg);
}

/* ==================== EDITORIAL HERO INTRO ==================== */
.editorial-intro {
  padding: clamp(36px, 5vw, 60px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--border);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}
.intro-kicker {
  font: 500 11.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.intro-h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 760;
  line-height: 0.99;
  letter-spacing: -0.04em;
}
.intro-lead {
  margin-top: 14px;
  max-width: 52ch;
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  line-height: 1.52;
  color: var(--fg-muted);
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--border-strong);
  padding-top: 14px;
  gap: 14px;
}
.istat strong {
  display: block;
  font: 600 clamp(22px, 2.3vw, 28px)/1.05 var(--mono);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.istat > span {
  display: block;
  margin-top: 4px;
  font: 400 11px/1.35 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

/* ==================== SHARED TYPOGRAPHY ==================== */
.kicker, .index, .data-source, .social, .footgrid {
  font-family: var(--mono);
  font-weight: 500;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--fg-muted);
}
.rule-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  display: inline-block;
  flex-shrink: 0;
}
html[data-theme="light"] .rule-dot {
  background: var(--ink);
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--lime);
  color: var(--ink);
  border: 1px solid var(--lime);
  padding: 10px 22px;
  font: 700 15.5px/1 var(--body);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
html[data-theme="light"] .primary {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}
html[data-theme="light"] .primary:hover {
  background: var(--lime);
  color: var(--ink);
}

/* ==================== FEATURED REPORT BAND (THEME-CONSISTENT) ==================== */
.report-band {
  background: var(--surface-alt);
  color: var(--fg);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.report-eyebrow {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pos-text);
  margin-bottom: 12px;
}
.report-band h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.report-desc {
  margin-top: 14px;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.54;
  color: var(--fg-muted);
}
.report-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rfact strong {
  display: block;
  font: 600 24px/1.1 var(--mono);
  color: var(--pos-text);
  font-variant-numeric: tabular-nums;
}
.rfact > span {
  display: block;
  margin-top: 4px;
  font: 400 11.5px/1.35 var(--mono);
  color: var(--fg-muted);
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.report-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  background: var(--lime);
  color: var(--ink) !important;
  border: 1px solid var(--lime);
  font: 700 16px/1 var(--body);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.14s ease;
}
.report-cta:hover {
  transform: translateY(-1px);
  background: #ECFF66;
}
html[data-theme="light"] .report-cta {
  background: var(--ink);
  color: var(--lime) !important;
  border-color: var(--ink);
}
html[data-theme="light"] .report-cta:hover {
  background: var(--lime);
  color: var(--ink) !important;
}
.report-link-sec {
  font: 500 13.5px/1 var(--mono);
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 4px;
}
.report-link-sec:hover { color: var(--fg); }
.report-thumb-link {
  display: block;
  max-width: 310px;
  margin-left: auto;
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease;
}
html[data-theme="light"] .report-thumb-link {
  box-shadow: 0 20px 44px rgba(22, 24, 37, 0.14);
}
.report-thumb-link:hover { transform: translateY(-3px); }
.report-thumb-link img { width: 100%; height: auto; }

/* ==================== RESEARCH & TOOLS BANDS ==================== */
.home-band {
  padding: clamp(52px, 6.5vw, 90px) 0;
  border-top: 1px solid var(--border);
}
.home-band.is-alt {
  background: var(--surface-alt);
}
.home-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.5vw, 42px);
}
.home-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.035em;
  font-weight: 740;
  line-height: 1.04;
  margin-top: 10px;
}
.home-band-sub {
  max-width: 54ch;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.54;
  margin-top: 10px;
}
.home-quote {
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -.015em;
  line-height: 1.32;
  font-weight: 520;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  color: var(--fg-muted);
  max-width: 28ch;
}
html[data-theme="light"] .home-quote {
  border-left-color: var(--ink);
}

/* ==================== RESEARCH LEDGER (CONDENSED + BRICOLAGE COPY) ==================== */
.sweep-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: clamp(22px, 3vw, 36px);
}
.sweep-box.is-bonus {
  border-color: var(--accent);
  margin-top: 18px;
}
.sweep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.sweep-head h3 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.14;
  letter-spacing: -.028em;
  font-weight: 740;
  margin-top: 8px;
}
.sweep-badge {
  display: inline-block;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 4px 8px;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger);
}
.sweep-badge.is-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.sweep-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sweep-kpi {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--border);
}
.sweep-kpi + .sweep-kpi { padding-left: 18px; }
.sweep-kpi:last-child { border-right: 0; padding-right: 0; }
.sweep-kpi span {
  display: block;
  font: 500 10.5px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.sweep-kpi strong {
  display: block;
  font: 600 clamp(24px, 2.5vw, 32px)/1.1 var(--mono);
  margin-top: 6px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.sweep-kpi small {
  display: block;
  margin-top: 6px;
  font: 400 13.5px/1.4 var(--body);
  color: var(--fg-muted);
}
.sweep-kpi.is-neg strong { color: var(--danger-text); }
.sweep-kpi.is-pos strong { color: var(--pos-text); }

/* Condensed split line (calm secondary layer) */
.sweep-split-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.sweep-split-item {
  padding: 10px 0;
  font: 500 14px/1.45 var(--body);
  color: var(--fg-muted);
}
.sweep-split-item b {
  display: block;
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 3px;
}

.sweep-examples {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sweep-ex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sweep-ex-head p { font: 600 16px/1.35 var(--body); }
.sweep-ex-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sweep-kpi, .sweep-split-item, .ict-detail, .tool-card, .stage-card, .sweep-box {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sweep-ex-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  font: 500 12.5px/1.25 var(--mono);
  padding: 8px 13px;
  max-width: 100%;
  text-align: left;
  transition: all 0.12s ease;
}
.sweep-ex-tab:hover { border-color: var(--border-strong); color: var(--fg); }
.sweep-ex-tab.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 700;
}
html[data-theme="light"] .sweep-ex-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.sweep-chart-wrap {
  background: var(--chart-bg);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  max-height: 340px;
}
.sweep-chart-wrap canvas { width: 100%; height: 100%; display: block; }
/* Bricolage 15-16px for longer explanations instead of tiny mono fine-print */
.sweep-ex-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
  font: 400 14.5px/1.5 var(--body);
  color: var(--fg-muted);
}
.sweep-ex-meta strong { color: var(--fg); font-family: var(--mono); font-size: 13.5px; }
.sweep-footnote {
  margin-top: 12px;
  font: 400 15px/1.55 var(--body);
  color: var(--fg-muted);
  max-width: 74ch;
}

/* ICT 6-Setup Interactive Panel */
.ict-panel {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: clamp(22px, 3vw, 36px);
}
.ict-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ict-panel-head h3 {
  font-size: clamp(21px, 2.2vw, 28px);
  letter-spacing: -.028em;
  font-weight: 740;
}
.ict-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ict-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  font: 500 12.5px/1 var(--mono);
  padding: 9px 13px;
  transition: all 0.12s ease;
}
.ict-tab:hover { border-color: var(--border-strong); color: var(--fg); }
.ict-tab.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 700;
}
html[data-theme="light"] .ict-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ict-detail {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.ict-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 14px;
}
.ict-m span {
  display: block;
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.ict-m strong {
  display: block;
  font: 600 24px/1.15 var(--mono);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ict-verdict {
  display: inline-block;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.06em;
  padding: 4px 8px;
  margin-bottom: 10px;
  border: 1px solid var(--border-strong);
}
.ict-verdict.is-bad {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger);
}
.ict-note {
  font: 400 16px/1.55 var(--body);
  color: var(--fg-muted);
  max-width: 72ch;
}

/* ==================== 3-COL TOOLS LEDGER WITH REAL DATA VIZ ==================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}
.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  padding: 28px 26px 26px 0;
  text-decoration: none;
}
.tool-card + .tool-card { padding-left: 26px; }
.tool-card:last-child { border-right: 0; padding-right: 0; }
.tool-card:hover .tool-cta {
  color: var(--pos-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tool-card .index {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.tool-viz {
  margin: 14px 0 6px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tool-card h3 {
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: -.025em;
  line-height: 1.15;
  font-weight: 720;
  margin-top: 10px;
}
.tool-card p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.52;
  margin-top: 8px;
}
.tool-cta {
  font: 600 13px/1 var(--mono);
  color: var(--fg);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ==================== WAITLIST & FOOTER (THEME-CONSISTENT) ==================== */
.closing {
  background: var(--surface-alt);
  color: var(--fg);
  border-top: 1px solid var(--border);
  padding: clamp(56px, 7vw, 88px) 0;
}
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}
.closing .kicker { color: var(--pos-text); }
.closing h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  letter-spacing: -.035em;
  line-height: 1.04;
}
.closing-sub {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.52;
  color: var(--fg-muted);
  max-width: 44ch;
}
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  width: 100%;
}
.wl-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.wl-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 16px;
  font: 500 15px/1.2 var(--mono);
  background: transparent;
  color: var(--fg);
  border: 0;
  outline: none;
}
.wl-row input[type="email"]::placeholder { color: var(--fg-faint); }
.wl-row button {
  flex: 0 0 auto;
  padding: 15px 22px;
  background: var(--lime);
  color: var(--ink);
  border: 0;
  font: 700 15.5px/1 var(--body);
  letter-spacing: -0.01em;
}
html[data-theme="light"] .wl-row button {
  background: var(--ink);
  color: var(--lime);
}
.wl-row button:hover { filter: brightness(1.06); }
.wl-row button:disabled { opacity: 0.6; cursor: wait; }
.wl-privacy {
  font: 400 13.5px/1.45 var(--body);
  color: var(--fg-muted);
}
.wl-privacy a { color: var(--fg); }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.social a { text-decoration: none; }
.social a:hover { color: var(--fg); }

.footer {
  background: var(--bg);
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}
.footgrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  font-size: 12.5px;
}
.footgrid nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footgrid nav a { text-decoration: none; }
.footgrid nav a:hover { color: var(--fg); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  font: 500 12.5px/1.5 var(--mono);
}

/* Legal pages */
.legal-main { padding-block: 40px 72px; max-width: 780px; }
.legal-main h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0; }
.legal-main h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; margin: 20px 0 10px; }
.legal-main p, .legal-main address, .legal-main ul { max-width: 72ch; line-height: 1.6; color: var(--fg-muted); }
.legal-main p + p { margin-top: 10px; }
.legal-main section { border-top: 1px solid var(--border); padding: 14px 0 20px; }
.legal-main address { font-style: normal; color: var(--fg); }
.legal-main a { overflow-wrap: anywhere; color: var(--fg); }
.legal-date { margin-bottom: 18px; font: 500 12px/1 var(--mono); color: var(--fg-muted); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 920px) {
  .intro-grid, .report-grid, .closing-grid { grid-template-columns: 1fr; }
  .report-thumb-link { margin-left: 0; max-width: 260px; }
  .sweep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sweep-kpi { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 0; }
  .sweep-kpi + .sweep-kpi { padding-left: 0; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card, .tool-card + .tool-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
  }
  .tool-card:last-child { border-bottom: 0; }
  .sweep-split-bar, .ict-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { height: auto; flex-wrap: wrap; padding-block: 10px; row-gap: 8px; gap: 8px; }
  .brand-link img { width: 104px; }
  .topnav { position: relative; order: 3; width: 100%; margin-left: 0; gap: 10px 16px; font-size: 13.5px; border-top: 1px solid var(--border-subtle); padding-top: 8px; flex-wrap: wrap; }
  .topnav a, .nav-drop-btn { font-size: 14px; }
  .nav-dropdown { position: static; }
  .nav-drop-menu { top: calc(100% + 6px); left: 0; right: 0; min-width: 0; width: 100%; }
  .top-controls { margin-left: auto; gap: 6px; }
  .theme-btn { padding: 0 8px; font-size: 11px; }
  .langs button { padding: 0 7px; font-size: 11px; }
  .wl-row { flex-direction: column; }
  .wl-row button { width: 100%; }
  .footgrid { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sweep-chart-wrap { aspect-ratio: 4 / 3; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html:not(.interactive) .langs, html:not(.interactive) .theme-btn { opacity: 0.7; }
