:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #686868;
  --soft: #f5f5f3;
  --softer: #fafaf9;
  --line: #dededb;
  --line-strong: #b9b9b5;
  --paper: #ffffff;
  --black: #1f1f1f;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 8px 28px rgb(0 0 0 / 4%);
  font-family: "Aptos", "Inter", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--softer);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 8px;
  color: white;
  background: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100vh; }

.topbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(280px, 600px) minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--black);
  font-family: Georgia, serif;
  font-size: 18px;
}

.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 11px; }

.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.global-search:focus-within {
  border-color: var(--line-strong);
  background: white;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 4%);
}

.global-search svg {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

kbd {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: white;
  font-size: 11px;
}

.research-status {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.research-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 8px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.tabs a:hover, .tabs a[aria-current="page"] { color: var(--ink); background: var(--soft); }

.count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  place-items: center;
  border-radius: 6px;
  color: white;
  background: var(--ink);
  font-size: 10px;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(18px, 3vw, 48px) 80px;
}

.loading-state, .error-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 15px;
  color: var(--muted);
}

.loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.page-head h1, .hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 540;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.page-head h1 { font-size: clamp(30px, 4vw, 48px); }

.page-head p, .hero-copy {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 34px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.hero-aside {
  align-self: stretch;
  padding: 22px;
  border-radius: var(--radius);
  color: white;
  background: var(--black);
}

.hero-aside .eyebrow { color: #bdbdbd; }
.hero-aside h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.03em; }
.hero-aside p { margin: 0; color: #d2d2d2; }

.inline-actions, .chip-row, .feature-row, .toolbar, .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions { margin-top: 24px; }

.button, button.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.button:hover { border-color: var(--line-strong); background: var(--soft); }
.button.primary { border-color: var(--black); color: white; background: var(--black); }
.button.primary:hover { background: #000; }
.button.ghost { background: transparent; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 40px;
}

.stat-card, .panel, .metric-card, .record-card, .insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stat-card { min-height: 136px; padding: 19px; }
.stat-card .label { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 18px; font-size: 28px; letter-spacing: -0.04em; }
.stat-card small { color: var(--muted); }

.section { margin-top: 42px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.035em; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.text-link { color: var(--muted); font-weight: 650; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); }

.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 14px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel { padding: 22px; }
.panel h2, .panel h3 { margin: 0 0 12px; letter-spacing: -0.025em; }
.panel h3 { font-size: 16px; }
.panel p { color: var(--muted); }

.plain-list, .rank-list, .source-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.rank-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list li:last-child { border-bottom: 0; }
.rank-list .rank { color: var(--muted); font-size: 12px; }
.rank-list a { text-decoration: none; font-weight: 700; }
.rank-list small { display: block; color: var(--muted); font-weight: 400; }
.rank-list .value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.rank-list .value small { font-size: 10px; }

.toolbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.filter-row { align-items: center; }

.filter-control {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--softer);
}

.filter-control select, .filter-control input {
  max-width: 180px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: white;
  cursor: pointer;
}

.toggle:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--soft); }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th {
  position: sticky;
  z-index: 1;
  top: 0;
  color: var(--muted);
  background: var(--softer);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
td { min-width: 115px; }
td.name-cell { min-width: 205px; }
.name-cell a { text-decoration: none; }
.name-cell strong { display: block; font-size: 14px; }
.name-cell small { color: var(--muted); }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }

.sort-button {
  display: inline-flex;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  text-transform: inherit;
}

.badge, .chip, .evidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 11px;
  white-space: nowrap;
}

.badge.dark { border-color: var(--ink); color: white; background: var(--ink); }
.badge.soft, .evidence-pill { background: var(--soft); }
.evidence-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip a, a.chip { text-decoration: none; }

.score {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 700;
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

.player-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.back-link { display: inline-block; margin-bottom: 15px; color: var(--muted); text-underline-offset: 3px; }
.player-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); font-weight: 540; letter-spacing: -0.06em; line-height: 1; }
.player-hero .positioning { max-width: 850px; margin: 16px 0; color: var(--muted); font-size: 18px; }
.player-initial {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 26px;
  color: white;
  background: var(--black);
  font-family: Georgia, serif;
  font-size: 35px;
}

.evidence-book {
  margin: 34px 0 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 18px 50px rgb(0 0 0 / 5%);
  overflow: hidden;
}

.book-section {
  position: relative;
  padding: clamp(26px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line-strong);
  background-image: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgb(0 0 0 / 2%) calc(100% - 1px));
}

.book-section:last-child { border-bottom: 0; }

.book-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
}

.book-heading .folio {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.book-heading h2 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.verdict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(28px, 5vw, 72px);
}

.verdict-lead h3,
.swot-quadrant h3,
.meaning-grid h3,
.peel-steal-grid h3 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict-lead > p:not(.evidence-gap) {
  max-width: 850px;
  margin: 0 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.4;
}

.identity-ledger {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
  align-content: start;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.identity-ledger dt,
.identity-ledger dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.identity-ledger dt { color: var(--muted); font-size: 11px; }
.identity-ledger dd { overflow-wrap: anywhere; font-size: 12px; }

.threat-score {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 148px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.threat-score strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.threat-score span { color: var(--muted); font-size: 9px; letter-spacing: 0.06em; line-height: 1.25; text-transform: uppercase; }

.threat-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  border: 1px solid var(--line);
}

.threat-breakdown span { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 13px; border-right: 1px solid var(--line); }
.threat-breakdown span:last-child { border-right: 0; }
.threat-breakdown small { color: var(--muted); text-transform: capitalize; }
.threat-breakdown strong { font-size: 18px; }

.journey-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.journey-stage {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.journey-stage:last-child { border-right: 0; }
.journey-stage > p:not(.journey-index, .evidence-gap) { margin: 20px 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.45; }
.journey-index { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.journey-stage footer { margin-top: auto; }

.swot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.swot-quadrant { min-height: 250px; padding: 22px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }

.claim-stack { display: grid; gap: 10px; }
.claim-card { padding: 16px; border: 1px solid var(--line); background: var(--softer); }
.claim-card p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.5; }
.claim-card footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }

.basis-pill {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-anchors { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.source-anchors a { color: var(--muted); font-size: 10px; font-weight: 650; text-underline-offset: 3px; }
.evidence-gap-inline { color: var(--muted); font-size: 10px; }

.evidence-gap {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: var(--softer);
  font-size: 12px;
}

.evidence-gap strong { color: var(--ink); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }

.meaning-grid,
.peel-steal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.meaning-grid > div,
.peel-steal-grid > div { min-width: 0; }

.next-question {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  margin-top: 34px;
  padding: 22px 0 0;
  border-top: 2px solid var(--ink);
}

.next-question > p:last-child { max-width: 850px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2.3vw, 28px); }

.visual-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.visual-source-row .basis-pill { margin-right: 6px; }
.visual-source-row p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.visual-source { display: inline-flex; padding: 9px 13px; border: 1px solid var(--ink); color: white; background: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; }
.visual-source:hover { background: #000; }
.evidence-note { margin: -10px 0 24px; color: var(--muted); font-size: 11px; }
.evidence-note strong { color: var(--ink); }
.book-sources { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 28px; }
.metric-card { min-height: 145px; padding: 17px; }
.metric-card .metric-label { color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 17px 0 8px; font-size: 22px; letter-spacing: -0.035em; }
.metric-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }

.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.definition-grid { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 10px 16px; }
.definition-grid dt { color: var(--muted); }
.definition-grid dd { margin: 0; }

.bullet-list { margin: 0; padding-left: 18px; }
.bullet-list li { margin: 7px 0; }
.bullet-list.muted li { color: var(--muted); }

.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.record-card { display: flex; flex-direction: column; min-height: 250px; padding: 19px; }
.record-card h3 { margin: 14px 0 8px; font-size: 17px; letter-spacing: -0.025em; }
.record-card p { margin: 0; color: var(--muted); }
.record-card .hook { color: var(--ink); font-size: 15px; font-weight: 650; }
.record-card footer { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; }
.record-card footer a { color: var(--muted); }

.compare-selector { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.compare-selector label { cursor: pointer; }
.compare-selector input { position: absolute; opacity: 0; }
.compare-selector .chip { padding: 7px 10px; }
.compare-selector input:checked + .chip { border-color: var(--ink); color: white; background: var(--ink); }
.compare-table th:first-child { min-width: 160px; }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { min-width: 240px; }
.compare-table th a { color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; }

.market-shell { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.market-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 25%;
  background-position: -1px -1px;
}
.market-map::before, .market-map::after { content: ""; position: absolute; z-index: 0; background: var(--line-strong); }
.market-map::before { top: 50%; right: 0; left: 0; height: 1px; }
.market-map::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.axis-label { position: absolute; z-index: 1; padding: 5px 8px; color: var(--muted); background: rgb(255 255 255 / 85%); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.axis-label.top { top: 8px; left: 50%; transform: translateX(-50%); }
.axis-label.bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.axis-label.left { top: 50%; left: 8px; transform: translateY(-50%); }
.axis-label.right { top: 50%; right: 8px; transform: translateY(-50%); }
.map-point {
  position: absolute;
  z-index: 2;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 8px rgb(0 0 0 / 7%);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transform: translate(-50%, -50%);
}
.map-point.direct { color: white; background: var(--ink); }
.map-point:hover { z-index: 3; transform: translate(-50%, -50%) scale(1.05); }

.insight-layout { display: grid; grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr); gap: 16px; }
.sticky-note { position: sticky; top: 24px; height: fit-content; padding: 26px; border-radius: var(--radius-lg); color: white; background: var(--black); }
.sticky-note .eyebrow { color: #bababa; }
.sticky-note h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.04em; }
.sticky-note p { color: #d1d1d1; }
.insight-stack { display: grid; gap: 12px; }
.insight-card { padding: 21px; }
.insight-card h3 { margin: 0 0 8px; letter-spacing: -0.025em; }
.insight-card p { margin: 0 0 14px; color: var(--muted); }

.source-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 0; }
.source-list a { font-weight: 650; text-underline-offset: 3px; }
.source-list small { display: block; color: var(--muted); }

.scope-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  color: white;
  background: var(--black);
}

.scope-banner h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); font-weight: 520; letter-spacing: -0.045em; }
.scope-banner p { max-width: 880px; margin: 0; color: #cfcfcd; }
.scope-banner .eyebrow { color: #a9a9a6; }
.scope-banner .button { border-color: #4d4d4d; color: white; background: #2b2b2b; }
.scope-banner .button:hover { border-color: #777; background: #383838; }
.compact-stats { margin-top: 0; }
.compact-stats .stat-card { min-height: 124px; }
.revenue-table-wrap { max-height: min(74vh, 880px); }
.revenue-table td { min-width: 145px; vertical-align: top; }
.revenue-table td:nth-child(1) { min-width: 270px; }
.revenue-table td:nth-child(6) { min-width: 260px; }
.revenue-table td:nth-child(7) { min-width: 230px; }
.revenue-table td > small, .plan-table td small, .price-stack small { display: block; margin-top: 5px; color: var(--muted); white-space: normal; }
.revenue-table td > small a { color: var(--muted); }
.revenue-table .name-cell small { display: block; margin-top: 4px; line-height: 1.4; }
.muted-text { color: var(--muted); }

.mini-chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.mini-chip-row span { padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mini-chip-row.prominent { justify-content: flex-end; margin-top: 0; }
.mini-chip-row.prominent span { padding: 5px 8px; font-size: 10px; }

.price-stack { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.price-stack li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.price-stack li:last-child { padding-bottom: 0; border-bottom: 0; }
.price-stack strong { font-size: 12px; }
.price-stack span { color: var(--muted); font-size: 11px; text-align: right; }

.revenue-evidence-grid { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(220px, 0.55fr) minmax(320px, 1.1fr); gap: 14px; }
.revenue-evidence-grid .panel { min-height: 210px; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.primary-evidence { color: white; background: var(--black); }
.primary-evidence .metric-label, .primary-evidence p, .primary-evidence small, .primary-evidence .metric-meta { color: #c8c8c5; }
.primary-evidence strong { display: block; margin: 22px 0 6px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.055em; }
.primary-evidence a { color: white; }
.primary-evidence .evidence-pill { border-color: #4d4d4d; color: white; background: #2c2c2c; }
.large-value { display: block; margin: 22px 0 6px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.05em; }
.alternate-evidence .plain-list small { display: block; margin-top: 4px; color: var(--muted); }

.monetisation-profile > .section-head { align-items: start; }
.monetisation-profile > .section-head h2 { max-width: 860px; font-size: clamp(22px, 3vw, 32px); font-weight: 520; line-height: 1.15; }
.plan-table td { min-width: 150px; vertical-align: top; }
.plan-table td:first-child { min-width: 250px; }
.plan-table td:nth-child(2) { min-width: 180px; }
.plan-table td:nth-child(4) { min-width: 210px; }
.plan-table td a { color: var(--ink); }
.monetisation-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.monetisation-facts .panel { min-height: 210px; }
.monetisation-facts .panel > a { color: var(--muted); font-size: 12px; font-weight: 650; }
.lifecycle-grid { margin-top: 14px; }
.lifecycle-grid .panel { min-height: 155px; }

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: 330px;
  padding: 12px 15px;
  border-radius: 11px;
  color: white;
  background: var(--black);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.candidate-grid, .observation-grid, .synthesis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.candidate-card, .observation-card, .synthesis-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.candidate-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.candidate-card h2, .observation-card h2, .synthesis-card h2 { margin: 5px 0 18px; font-size: 22px; line-height: 1.2; }
.candidate-card h3, .observation-card h3, .synthesis-card h3 { font-size: 13px; }
.candidate-card footer, .observation-card footer, .synthesis-card footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.observation-meta { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 5px 12px; margin: 0 0 18px; padding: 12px; border-radius: var(--radius-sm); background: var(--soft); font-size: 12px; }
.observation-meta dt { color: var(--muted); }
.observation-meta dd { margin: 0; font-weight: 650; }
.fact-inference, .evidence-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.observation-card .fact-inference { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact-inference > div, .evidence-sides > div { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--softer); }
.status-pill { padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.status-settled { color: white; background: var(--black); }
.status-open { border-style: dashed; }
.synthesis-card { grid-column: 1 / -1; }
.synthesis-card .evidence-gap { margin: 0; }
.evidence-sides { margin-top: 12px; }
.evidence-sides ul { margin: 0; padding-left: 18px; }
.evidence-sides a { overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: auto minmax(250px, 1fr); }
  .research-status { display: none; }
  .hero { grid-template-columns: 1fr; }
  .stat-grid, .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .revenue-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alternate-evidence { grid-column: 1 / -1; }
  .monetisation-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr; gap: 10px; padding-block: 14px; }
  .global-search { grid-row: 2; }
  .tabs { padding-block: 7px; }
  main { padding-top: 28px; }
  .page-head { display: block; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 39px; }
  .two-column, .three-column, .details-grid, .insight-layout { grid-template-columns: 1fr; }
  .scope-banner, .revenue-evidence-grid, .monetisation-facts { grid-template-columns: 1fr; }
  .scope-banner { align-items: start; }
  .scope-banner .button { width: fit-content; }
  .alternate-evidence { grid-column: auto; }
  .mini-chip-row.prominent { justify-content: flex-start; }
  .sticky-note { position: static; }
  .record-grid { grid-template-columns: 1fr; }
  .player-hero { grid-template-columns: 1fr; }
  .player-initial { grid-row: 1; width: 58px; height: 58px; border-radius: 18px; font-size: 25px; }
  .book-section { padding: 28px 20px; }
  .book-heading { grid-template-columns: 34px minmax(0, 1fr); }
  .book-heading .threat-score { grid-column: 2; width: fit-content; }
  .verdict-grid, .swot-grid, .meaning-grid, .peel-steal-grid { grid-template-columns: 1fr; }
  .identity-ledger { margin-top: 8px; }
  .threat-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .threat-breakdown span:nth-child(2) { border-right: 0; }
  .threat-breakdown span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .journey-flow { grid-template-columns: 1fr; overflow: visible; }
  .journey-stage { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .journey-stage:last-child { border-bottom: 0; }
  .journey-stage footer { margin-top: 20px; }
  .swot-grid { border: 0; gap: 12px; }
  .swot-quadrant { min-height: 0; border: 1px solid var(--line-strong); }
  .next-question { grid-template-columns: 1fr; gap: 6px; }
  .visual-source-row { align-items: start; flex-direction: column; }
  .market-map { min-height: 480px; }
  .candidate-grid, .observation-grid, .synthesis-grid, .fact-inference, .evidence-sides, .observation-card .fact-inference { grid-template-columns: 1fr; }
  .observation-meta { grid-template-columns: max-content 1fr; }
  .candidate-card footer, .observation-card footer, .synthesis-card footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .stat-grid, .metrics-grid { grid-template-columns: 1fr; }
  .stat-card, .metric-card { min-height: 120px; }
  .definition-grid { grid-template-columns: 1fr; gap: 3px; }
  .definition-grid dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
