/* App-specific styles (layout + per-view) */

/* ——— Top chrome ——— */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.ticker {
  display: flex; align-items: center; gap: var(--s-6);
  padding: 6px var(--s-8);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.02em; overflow: hidden;
  border-bottom: 1px solid var(--ink-2);
}
.ticker .marq { display: flex; gap: var(--s-8); animation: marq 60s linear infinite; white-space: nowrap; }
.ticker .item { display: inline-flex; gap: 8px; align-items: center; }
.ticker .label { color: var(--gold); }
.ticker .val { color: var(--paper); }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--s-6);
  padding: var(--s-3) var(--s-8);
}
.nav-brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--serif); font-weight: 600;
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
}
.nav-brand .mark {
  width: 28px; height: 28px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--mono);
  font-size: 14px; font-weight: 600;
}
.nav-brand .mark svg { width: 14px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 2px; font-size: var(--fs-md); font-weight: 500; }
.nav-links a {
  padding: 6px 10px; color: var(--ink);
  border: 1px solid transparent;
  transition: all 120ms ease;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { background: var(--gold-soft); color: var(--ink); }
.nav-links .flag { font-family: var(--mono); font-size: 10px; background: var(--gold); color: #1a1206; padding: 1px 4px; margin-left: 4px; letter-spacing: 0.05em; }

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

.crumb {
  padding: 8px var(--s-8);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: var(--fs-xs);
  color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase;
}
.crumb .path { display: flex; gap: 6px; align-items: center; }
.crumb .path .slash { opacity: 0.4; }
.crumb .path .now { color: var(--ink); }
.crumb .meta { display: flex; gap: var(--s-4); align-items: center; }

/* ——— HOME ——— */
.hero {
  padding: var(--s-10) var(--s-8) var(--s-10);
  border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-12);
  align-items: end;
  position: relative;
}
.hero-left { min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-counter {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); display: flex; align-items: center; gap: 8px;
}
.hero-headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5.4vw, 84px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 var(--s-5); color: var(--ink);
  text-wrap: balance;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-headline .light { color: var(--ink-mute); font-style: italic; font-weight: 300; }
.hero-sub {
  font-size: var(--fs-lg); line-height: 1.5; max-width: 58ch;
  color: var(--ink-2); margin: 0 0 var(--s-6);
}
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-6); }
.hero-proof {
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.06em; color: var(--ink-mute);
  text-transform: uppercase;
}
.hero-proof span { display: inline-flex; gap: 6px; align-items: center; }

/* Hero right — live feed */
.hero-feed {
  background: var(--surface);
  border: 1px solid var(--ink);
  display: flex; flex-direction: column;
  min-height: 460px;
  box-shadow: 8px 8px 0 var(--ink);
}
.hero-feed .hf-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px var(--s-4); border-bottom: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-feed .hf-head .live { color: var(--gold); display: flex; gap: 6px; align-items: center; }
.hero-feed .hf-col {
  display: grid; grid-template-columns: 82px 1fr 60px 28px;
  gap: 8px; padding: 6px var(--s-4);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
}
.hf-row {
  display: grid; grid-template-columns: 82px 1fr 60px 28px;
  gap: 8px; padding: 10px var(--s-4);
  font-family: var(--mono); font-size: 12px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.hf-row.new { animation: hfIn 400ms ease; background: var(--gold-soft); }
@keyframes hfIn {
  from { background: var(--gold); }
  to { background: var(--gold-soft); }
}
.hf-row .ts { color: var(--ink-mute); font-size: 11px; }
.hf-row .dom { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-row .dom .cat { color: var(--ink-mute); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.hf-row .score { text-align: right; font-weight: 500; }
.hf-row .score.hi { color: var(--pos); }
.hf-row .score.mid { color: var(--warn); }
.hf-row .score.lo { color: var(--neg); }

.hero-feed .hf-foot {
  margin-top: auto;
  padding: 10px var(--s-4);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ——— HOW IT WORKS (dense grid) ——— */
.how {
  border-bottom: 1px solid var(--ink);
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.how-card {
  padding: var(--s-8);
  border-right: 1px solid var(--rule);
  position: relative;
}
.how-card:last-child { border-right: 0; }
.how-card .idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: var(--s-6);
  display: flex; justify-content: space-between;
}
.how-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.how-card .sub { color: var(--ink-2); margin: 0 0 var(--s-6); max-width: 36ch; }
.how-card .detail {
  border-top: 1px solid var(--rule); padding-top: var(--s-4);
  font-family: var(--mono); font-size: 11px;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: var(--s-4); row-gap: 6px;
}
.how-card .detail dt { color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.how-card .detail dd { margin: 0; color: var(--ink); }

/* ——— METRICS BAND ——— */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}
.metric {
  padding: var(--s-6) var(--s-8);
  border-right: 1px solid var(--rule);
}
.metric:last-child { border-right: 0; }
.metric .label {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.metric .num {
  font-family: var(--serif); font-weight: 500;
  font-size: 44px; line-height: 1; letter-spacing: -0.02em;
}
.metric .num .unit { font-size: 16px; color: var(--ink-mute); margin-left: 4px; }
.metric .delta { margin-top: var(--s-2); font-family: var(--mono); font-size: var(--fs-xs); }

/* ——— FEATURE MATRIX ——— */
.features-section { padding: var(--s-16) 0; border-bottom: 1px solid var(--ink); }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--s-8); margin-bottom: var(--s-10);
  padding: 0 var(--s-8);
}
.section-head .label {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1; letter-spacing: -0.02em;
  margin: 0; text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--gold); }

.feature-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.f {
  grid-column: span 4;
  padding: var(--s-8);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.f.wide { grid-column: span 6; }
.f.x-wide { grid-column: span 8; }
.f:nth-child(3n) { border-right: 0; }
.f .f-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
}
.f h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; letter-spacing: -0.015em;
  line-height: 1.1; margin: var(--s-1) 0 var(--s-2);
}
.f p { margin: 0; color: var(--ink-2); }
.f .viz {
  margin-top: var(--s-4); border-top: 1px solid var(--rule); padding-top: var(--s-4);
  font-family: var(--mono); font-size: 11px;
}

/* ——— TESTIMONIAL TICKER ——— */
.testimonials {
  background: var(--ink); color: var(--paper);
  padding: var(--s-12) 0; border-bottom: 1px solid var(--ink);
}
.testimonials .section-head .label { color: var(--gold); }
.testimonials .section-head h2 { color: var(--paper); }
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-3);
}
.test-grid > div {
  padding: var(--s-8);
  border-right: 1px solid var(--ink-3);
}
.test-grid > div:last-child { border-right: 0; }
.test-quote {
  font-family: var(--serif); font-weight: 300;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--paper); margin: 0 0 var(--s-6);
}
.test-meta {
  display: flex; gap: var(--s-3); align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
}
.test-meta .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-soft); color: var(--ink);
  display: grid; place-items: center; font-weight: 600;
  font-family: var(--mono);
}

/* ——— FOOTER ——— */
.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--ink);
  padding: var(--s-12) var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--s-8); margin-bottom: var(--s-10);
  padding-bottom: var(--s-10); border-bottom: 1px solid var(--rule);
}
.footer-brand .mark-lg {
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.footer-brand .lede { color: var(--ink-2); max-width: 38ch; margin: 0 0 var(--s-4); }
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase; font-weight: 500;
  margin: 0 0 var(--s-4);
}
.footer-col a { display: block; padding: 4px 0; color: var(--ink); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ——— SEARCH VIEW ——— */
.search-shell {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 120px);
}
.search-side {
  border-right: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--s-5) 0;
}
.filter-group { border-bottom: 1px solid var(--rule); padding: var(--s-4) var(--s-5); }
.filter-group h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-mute); text-transform: uppercase; font-weight: 500;
  margin: 0 0 var(--s-3);
  display: flex; justify-content: space-between;
}
.filter-group h4 .count { color: var(--ink); }
.filter-list { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px; border: 1px solid transparent;
  cursor: pointer; font-family: var(--mono); font-size: 12px;
}
.filter-item:hover { background: var(--paper-2); }
.filter-item.on { background: var(--gold-soft); border-color: var(--gold); }
.filter-item .n { color: var(--ink-mute); font-size: 11px; }

.range-slider {
  display: flex; flex-direction: column; gap: var(--s-2);
  font-family: var(--mono); font-size: 11px;
}
.range-slider input { width: 100%; accent-color: var(--gold); }
.range-slider .vals { display: flex; justify-content: space-between; color: var(--ink-mute); }

.search-main { min-width: 0; }
.search-toolbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.search-box {
  flex: 1; display: flex; align-items: center; gap: var(--s-2);
  border: 1px solid var(--ink); padding: 6px var(--s-3);
  background: var(--surface); font-family: var(--mono);
  font-size: var(--fs-sm);
}
.search-box input {
  border: 0; outline: 0; flex: 1; background: transparent;
  font: inherit; color: var(--ink);
}
.search-box .kbd {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 5px; border: 1px solid var(--rule); color: var(--ink-mute);
  background: var(--paper);
}
.sort-select {
  border: 1px solid var(--rule); padding: 6px 10px;
  font-family: var(--mono); font-size: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}

.results-header {
  display: grid; grid-template-columns: 40px 2fr 100px 80px 90px 90px 90px 100px 40px;
  gap: var(--s-3); padding: 8px var(--s-5);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute);
  background: var(--paper);
  position: sticky; top: 49px; z-index: 9;
}
.results-header .sortable { cursor: pointer; display: flex; gap: 4px; align-items: center; }
.results-header .sortable.active { color: var(--ink); }

.result-row {
  display: grid; grid-template-columns: 40px 2fr 100px 80px 90px 90px 90px 100px 40px;
  gap: var(--s-3); padding: 10px var(--s-5);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px;
  align-items: center;
  cursor: pointer;
  transition: background 80ms;
}
.result-row:hover { background: var(--paper-2); }
.result-row.selected { background: var(--gold-soft); }
.result-row .dom-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result-row .dom-cell .d { color: var(--ink); font-weight: 500; }
.result-row .dom-cell .meta {
  display: flex; gap: var(--s-3); font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.04em;
}
.result-row .fav { color: var(--ink-mute); }
.result-row .fav:hover { color: var(--gold); }
.result-row .fav.on { color: var(--gold); }
.score-pill {
  font-family: var(--mono); font-size: 11px; padding: 3px 6px;
  background: var(--paper-2); text-align: center; letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.score-pill.hi { background: var(--pos-soft); color: var(--pos); }
.score-pill.mid { background: var(--warn-soft); color: var(--warn); }
.score-pill.lo { background: var(--neg-soft); color: var(--neg); }

.spark { display: inline-flex; gap: 1px; height: 16px; align-items: flex-end; }
.spark span { display: block; width: 3px; background: var(--ink-3); }

.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-5);
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pagination .pages { display: flex; gap: 2px; }
.pagination .pages button {
  padding: 4px 10px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
}
.pagination .pages button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ——— INTELLIGENCE Q&A ——— */
.intel-hero {
  padding: var(--s-10) var(--s-8) var(--s-6);
  border-bottom: 1px solid var(--ink);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--s-10); align-items: end;
}
.intel-hero .dom-big {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 72px); line-height: 0.98;
  letter-spacing: -0.02em; margin: 0;
}
.intel-hero .dom-big .tld { color: var(--gold); font-style: italic; }
.intel-hero .lede { color: var(--ink-2); max-width: 54ch; font-size: var(--fs-lg); margin: var(--s-4) 0 0; }
.intel-hero .facts {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
}
.intel-hero .facts > div {
  padding: var(--s-4); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.intel-hero .facts > div:nth-child(2n) { border-right: 0; }
.intel-hero .facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.intel-hero .facts .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 4px;
}
.intel-hero .facts .v { font-family: var(--mono); font-size: 15px; }

.score-overview {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--ink);
}
.score-cell {
  padding: var(--s-5) var(--s-6);
  border-right: 1px solid var(--rule);
}
.score-cell:last-child { border-right: 0; }
.score-cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; }
.score-cell .big {
  font-family: var(--serif); font-size: 40px; letter-spacing: -0.02em;
  line-height: 1; margin: 6px 0 8px;
}
.score-cell .big.pos { color: var(--pos); }
.score-cell .big.neg { color: var(--neg); }
.score-cell .big.warn { color: var(--warn); }
.score-cell .bar {
  height: 3px; background: var(--rule); position: relative;
}
.score-cell .bar span { display: block; height: 100%; background: var(--ink); }

.qa-section { padding: var(--s-10) var(--s-8); border-bottom: 1px solid var(--rule); }
.qa-section:last-child { border-bottom: 0; }
.qa-section .qa-head {
  display: grid; grid-template-columns: 200px 1fr;
  gap: var(--s-8); margin-bottom: var(--s-6);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--ink);
}
.qa-section .qa-head .sec-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.qa-section .qa-head h2 {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  line-height: 1; letter-spacing: -0.02em; margin: 0;
}
.qa-section .qa-head .status {
  display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-3);
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
}
.qa-list { display: flex; flex-direction: column; }
.qa-item {
  display: grid; grid-template-columns: 70px 1fr 140px;
  gap: var(--s-6); padding: var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 120ms, opacity 120ms;
}
.qa-item:last-child { border-bottom: 0; }
.qa-item.checked { background: color-mix(in oklab, var(--gold-soft) 35%, transparent); }
.qa-item.unchecked { opacity: 0.55; }
.qa-item.unchecked:hover { opacity: 0.9; }
.qa-check {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding-top: 2px; cursor: pointer;
}
.qa-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; border: 1.5px solid var(--ink);
  background: var(--surface); cursor: pointer; position: relative;
  transition: all 120ms;
}
.qa-check input[type="checkbox"]:checked {
  background: var(--gold); border-color: var(--gold);
}
.qa-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 11px; border: solid #1a1206;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.qa-check .q-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.qa-item .q {
  font-family: var(--serif); font-size: 22px; line-height: 1.25;
  letter-spacing: -0.01em; font-weight: 400; margin: 0 0 var(--s-3);
}
.qa-item .a { color: var(--ink-2); font-size: var(--fs-base); line-height: 1.55; margin: 0 0 var(--s-3); max-width: 70ch; }
.qa-item .evidence {
  margin-top: var(--s-3); padding: var(--s-3);
  background: var(--paper-2); border-left: 2px solid var(--gold);
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  line-height: 1.5;
}
.qa-item.checked .evidence { background: var(--surface); }
.qa-item .evidence .ev-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 4px;
}
.verdict-col {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  padding-top: 2px;
}
.verdict-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.verdict-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 6px 10px; border: 1px solid transparent;
  background: var(--paper-2); color: var(--ink);
  text-transform: uppercase; white-space: nowrap;
  text-align: center;
}
.verdict-chip.pos { background: var(--pos-soft); color: var(--pos); }
.verdict-chip.warn { background: var(--warn-soft); color: var(--warn); }
.verdict-chip.neg { background: var(--neg-soft); color: var(--neg); }

/* Report builder toolbar */
.report-toolbar {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-6); align-items: center;
  padding: var(--s-5) var(--s-8);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  position: sticky; top: 0; z-index: 20;
}
.rt-right { display: flex; align-items: center; gap: var(--s-4); }
.rt-meta {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  display: flex; gap: 8px; letter-spacing: 0.02em;
}
.rt-meta strong { color: var(--ink); font-weight: 500; }

/* Resell bar */
.resell-bar {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: var(--s-10);
  padding: var(--s-12) var(--s-8);
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.resell-bar .eyebrow { color: var(--gold); }
.resell-bar h2 { color: var(--paper); }
.resell-bar .rs-col p { color: var(--ink-mute); }
.rs-config {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--gold);
  padding: var(--s-5);
}
.rs-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px;
}
.rs-row:last-of-type { border-bottom: 0; }
.rs-row.total { border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 14px; margin-top: 4px; }
.rs-k { color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.rs-v { color: var(--ink); font-weight: 500; }
.rs-v.price { font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; }
.rs-input {
  border: 1px solid var(--rule); padding: 6px 10px;
  font-family: var(--mono); font-size: 12px;
  background: var(--paper); color: var(--ink); outline: 0;
  text-align: right; width: 60%;
}
.rs-input:focus { border-color: var(--ink); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 30, 61, 0.55);
  display: grid; place-items: center;
  padding: var(--s-6);
  animation: fadeIn 160ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(760px, 100%); max-height: 88vh;
  background: var(--surface); border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  display: flex; flex-direction: column;
  animation: slideIn 180ms ease;
}
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  padding: var(--s-4) var(--s-5);
  background: var(--ink); color: var(--paper);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--ink);
}
.modal-head > div > div:last-child { color: var(--paper); }
.modal-close {
  color: var(--paper); font-size: 22px; line-height: 1; padding: 0 8px;
}
.modal-body { padding: var(--s-6) var(--s-6); overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--rule);
  background: var(--paper-2); gap: 12px;
}
.report-cover {
  border: 1px solid var(--rule); padding: var(--s-6);
  margin-bottom: var(--s-5); background: var(--paper);
}
.report-toc { display: flex; flex-direction: column; }
.toc-row {
  display: grid; grid-template-columns: 40px 1fr auto;
  gap: var(--s-3); padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  font-size: 13px;
}
.toc-row:last-child { border-bottom: 0; }
.toc-num { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; }
.toc-q { font-family: var(--serif); font-size: 16px; letter-spacing: -0.005em; }
.toc-ver { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; padding: 3px 6px; background: var(--paper-2); text-transform: uppercase; }
.toc-ver.pos { background: var(--pos-soft); color: var(--pos); }
.toc-ver.warn { background: var(--warn-soft); color: var(--warn); }
.toc-ver.neg { background: var(--neg-soft); color: var(--neg); }

.pitch-block {
  margin-top: var(--s-6);
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  background: var(--surface);
}
.pitch-block > div { padding: var(--s-5) var(--s-6); border-right: 1px solid var(--rule); }
.pitch-block > div:last-child { border-right: 0; }
.pitch-block .pb-head { display: flex; justify-content: space-between; margin-bottom: var(--s-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; }
.pitch-block .email-sub { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; margin: 0 0 var(--s-2); }
.pitch-block .email-body { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; }
.pitch-block .talking-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.pitch-block .talking-points li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-2); font-size: var(--fs-sm); line-height: 1.5; }
.pitch-block .talking-points .n { font-family: var(--mono); color: var(--gold); font-size: 11px; padding-top: 2px; }

/* ——— PRICING ——— */
.pricing-hero {
  padding: var(--s-12) var(--s-8) var(--s-8);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.pricing-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.025em;
  margin: var(--s-4) 0 var(--s-4);
}
.pricing-hero h1 em { color: var(--gold); font-style: italic; }
.pricing-hero .sub { font-size: var(--fs-lg); color: var(--ink-2); max-width: 58ch; margin: 0 auto var(--s-6); }
.billing-toggle {
  display: inline-flex; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: var(--fs-sm);
}
.billing-toggle button { padding: 8px 16px; }
.billing-toggle button.on { background: var(--ink); color: var(--paper); }

.plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}
.plan {
  padding: var(--s-6);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  position: relative;
}
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--ink); color: var(--paper); }
.plan.featured .p-price .n { color: var(--gold); }
.plan.featured .p-name { color: var(--gold); }
.plan.featured .p-desc { color: var(--ink-mute); }
.plan.featured .p-feat li { color: var(--paper); border-color: var(--ink-3); }
.plan.featured .p-feat li::before { background: var(--gold); }
.plan .p-name {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; justify-content: space-between; margin-bottom: var(--s-6);
}
.plan .p-title {
  font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em;
  margin: 0 0 var(--s-2); line-height: 1;
}
.plan .p-desc { color: var(--ink-2); margin: 0 0 var(--s-5); font-size: var(--fs-sm); }
.plan .p-price {
  font-family: var(--serif); display: flex; align-items: baseline; gap: 4px;
  margin-bottom: var(--s-1);
}
.plan .p-price .n { font-size: 56px; letter-spacing: -0.02em; line-height: 1; }
.plan .p-price .per { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.plan .p-billed { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-bottom: var(--s-5); }
.plan .p-feat { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-5); }
.plan .p-feat li {
  padding: 8px 0 8px 18px; position: relative; border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
}
.plan .p-feat li:last-child { border-bottom: 1px solid var(--rule); }
.plan .p-feat li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 8px; height: 2px; background: var(--ink);
}
.plan .p-feat li.off { color: var(--ink-mute); text-decoration: line-through; }
.plan .p-feat li.off::before { background: var(--ink-mute); }
.plan .p-cta { margin-top: auto; }
.plan.featured .btn { border-color: var(--gold); background: var(--gold); color: #1a1206; }

.compare {
  border-bottom: 1px solid var(--ink);
}
.compare table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 12px;
}
.compare th, .compare td {
  padding: 10px var(--s-5); text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.compare th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; background: var(--paper-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.compare td:first-child, .compare th:first-child { padding-left: var(--s-8); font-family: var(--sans); font-size: var(--fs-sm); }
.compare .cat-row td { background: var(--paper-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.compare td.check { text-align: center; }
.compare .yes { color: var(--pos); }
.compare .no { color: var(--ink-mute); }

/* ——— BLOG ——— */
.blog-hero {
  padding: var(--s-10) var(--s-8) var(--s-6);
  border-bottom: 1px solid var(--ink);
}
.blog-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.025em;
  line-height: 1; margin: 0 0 var(--s-3);
}
.blog-hero h1 em { color: var(--gold); font-style: italic; }
.blog-hero .sub { color: var(--ink-2); font-size: var(--fs-lg); max-width: 60ch; }
.blog-toolbar {
  display: flex; gap: var(--s-2); padding: var(--s-3) var(--s-8);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px;
  overflow-x: auto;
}
.blog-toolbar button {
  padding: 4px 10px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; white-space: nowrap;
}
.blog-toolbar button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.blog-feature {
  display: grid; grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.blog-feature > div { padding: var(--s-8); }
.blog-feature > div:first-child { border-right: 1px solid var(--rule); }
.blog-feature .tag-row { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.blog-feature h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
.blog-feature p { color: var(--ink-2); font-size: var(--fs-lg); max-width: 52ch; margin: 0 0 var(--s-5); }
.blog-feature .meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--ink-mute); text-transform: uppercase;
  display: flex; gap: var(--s-4); flex-wrap: wrap;
}
.blog-feature .placeholder-img {
  width: 100%; aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 10px, var(--rule) 10px 11px);
  border: 1px solid var(--rule);
  position: relative;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase;
}

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.blog-card {
  padding: var(--s-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-3);
  cursor: pointer; transition: background 100ms;
}
.blog-card:hover { background: var(--paper-2); }
.blog-card:nth-child(3n) { border-right: 0; }
.blog-card .tag-row { display: flex; gap: 6px; }
.blog-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.015em;
  margin: var(--s-1) 0 var(--s-1);
}
.blog-card p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.blog-card .meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-mute); text-transform: uppercase;
  display: flex; justify-content: space-between; margin-top: auto;
  padding-top: var(--s-3); border-top: 1px solid var(--rule);
}

/* ——— AUTH ——— */
.auth-shell {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}
.auth-left {
  padding: var(--s-10) var(--s-10);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--ink);
}
.auth-left h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 48px; line-height: 1; letter-spacing: -0.02em;
  margin: var(--s-6) 0 var(--s-4);
}
.auth-left h1 em { color: var(--gold); font-style: italic; }
.auth-left .lede { color: var(--ink-2); font-size: var(--fs-lg); max-width: 44ch; }

.auth-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink); margin-top: var(--s-8);
}
.auth-stats > div { padding: var(--s-4); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.auth-stats > div:nth-child(2n) { border-right: 0; }
.auth-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.auth-stats .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }
.auth-stats .v { font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; margin-top: 4px; }

.auth-right {
  padding: var(--s-10) var(--s-10);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
}
.auth-form {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--ink);
  padding: var(--s-8);
}
.auth-form .tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink); margin: calc(-1 * var(--s-8)) calc(-1 * var(--s-8)) var(--s-6);
}
.auth-form .tabs button {
  padding: var(--s-4); border-bottom: 2px solid transparent;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.auth-form .tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.field input {
  padding: 10px var(--s-3); border: 1px solid var(--rule);
  background: var(--paper); font: inherit; font-family: var(--mono); font-size: 13px;
  color: var(--ink); outline: 0;
  transition: border-color 120ms;
}
.field input:focus { border-color: var(--ink); }
.field .hint { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.05em; }
.auth-form .btn { width: 100%; justify-content: center; padding: 12px; }
.auth-form .or {
  display: flex; align-items: center; gap: var(--s-3); margin: var(--s-5) 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-mute); text-transform: uppercase;
}
.auth-form .or::before, .auth-form .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.sso-row .btn { width: 100%; justify-content: center; }
.legal { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); margin-top: var(--s-5); letter-spacing: 0.04em; }

/* ——— ONBOARDING ——— */
.ob-shell { max-width: 840px; margin: 0 auto; padding: var(--s-10) var(--s-6) var(--s-12); }
.ob-stepper {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; margin-bottom: var(--s-10);
}
.ob-step {
  padding: var(--s-3) var(--s-4);
  border-top: 2px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em;
}
.ob-step.done { border-color: var(--pos); color: var(--ink); }
.ob-step.active { border-color: var(--gold); color: var(--ink); }
.ob-step .s-num { display: block; font-size: 10px; color: var(--ink-mute); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2px; }
.ob-step .s-title { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ink); }

.ob-card {
  border: 1px solid var(--ink); background: var(--surface);
  padding: var(--s-8);
}
.ob-card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.ob-card h2 em { color: var(--gold); font-style: italic; }
.ob-card .lede { color: var(--ink-2); font-size: var(--fs-lg); margin: 0 0 var(--s-6); max-width: 54ch; }

.choice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-bottom: var(--s-6);
}
.choice {
  border: 1px solid var(--rule); padding: var(--s-4);
  cursor: pointer; transition: all 100ms;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.choice:hover { border-color: var(--ink); }
.choice.on { border-color: var(--gold); background: var(--gold-soft); }
.choice .c-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; }
.choice h4 { font-family: var(--serif); font-size: 20px; margin: 0; letter-spacing: -0.01em; font-weight: 500; }
.choice p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }

.ob-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-6); border-top: 1px solid var(--rule); margin-top: var(--s-6);
}

.ob-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chip {
  padding: 6px 12px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.ob-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ob-summary-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--rule);
}
.ob-summary-grid > div {
  padding: var(--s-4); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.ob-summary-grid > div:nth-child(2n) { border-right: 0; }
.ob-summary-grid > div:nth-last-child(-n+2) { border-bottom: 0; }

/* ——— Tweaks panel ——— */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  width: 280px; background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: var(--fs-sm);
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head {
  padding: 8px var(--s-4); border-bottom: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-body { padding: var(--s-3); }
.tweak-row { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.tweak-row:last-child { border-bottom: 0; }
.tweak-row label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-mute); text-transform: uppercase; display: block; margin-bottom: 6px;
}
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--rule); }
.seg button { padding: 6px; font-family: var(--mono); font-size: 11px; }
.seg button.on { background: var(--ink); color: var(--paper); }
.swatch-row { display: flex; gap: 6px; }
.swatch { width: 26px; height: 26px; border: 1px solid var(--rule); cursor: pointer; }
.swatch.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ——— Responsive tweaks ——— */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-feed { min-height: 360px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .blog-card:nth-child(2n) { border-right: 0; }
  .blog-feature { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .score-overview { grid-template-columns: repeat(3, 1fr); }
  .intel-hero { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .search-shell { grid-template-columns: 1fr; }
  .search-side { display: none; }
  .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .results-header, .result-row { grid-template-columns: 40px 1fr 80px 40px; font-size: 11px; }
  .results-header > :nth-child(n+5):nth-child(-n+8),
  .result-row > :nth-child(n+5):nth-child(-n+8) { display: none; }
  .feature-grid > .f { grid-column: span 12 !important; border-right: 0; }
  .score-overview { grid-template-columns: repeat(2, 1fr); }
  .score-cell:nth-child(2n) { border-right: 0; }
}

/* Print */
@media print {
  .topbar, .site-footer, .tweaks, .crumb { display: none; }
  body { background: white; color: black; }
  .page { max-width: 100%; padding: 0; }
}
