/* Synthetic — Shared Stylesheet */

/* Tokens */
:root {
  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container-max: 1160px;
  --container-narrow: 840px;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.25rem;

  /* Radii & Motion */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease;
  --transition-med: 280ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Light Theme */
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F4F5F8;
  --bg-tint: #EEF1FF;
  --bg-header: rgba(255, 255, 255, 0.92);

  --ink-primary: #0D1017;
  --ink-secondary: #434B5C;
  --ink-muted: #697386;

  --border-subtle: rgba(13, 16, 23, 0.09);
  --border-strong: rgba(13, 16, 23, 0.2);
  --border-btn-outline: rgba(13, 16, 23, 0.42);

  --accent-primary: #2447F9;
  --accent-primary-hover: #1836D6;
  --accent-primary-soft: rgba(36, 71, 249, 0.08);
  --accent-on-primary: #FFFFFF;

  --accent-lime: #C5F84E;
  --accent-lime-hover: #B4EA3A;
  --accent-lime-ink: #0D1017;

  /* ISP vs Reality */
  --isp-accent: #D9480F;
  --isp-bg: #FFFFFF;
  --isp-border: rgba(217, 72, 15, 0.3);
  --isp-badge-bg: rgba(217, 72, 15, 0.1);

  --reality-accent: #059669;
  --reality-bg: #FFFFFF;
  --reality-border: rgba(5, 150, 105, 0.36);
  --reality-badge-bg: rgba(5, 150, 105, 0.11);

  --shadow-sm: 0 1px 3px rgba(13, 16, 23, 0.05);
  --shadow-md: 0 12px 32px rgba(13, 16, 23, 0.07);

  /* Report Map & Flags (Light) */
  --map-ocean: #ECECE5;
  --map-land: #DCE0D9;
  --map-stroke: #FFFFFF;
  --map-graticule: rgba(20, 22, 25, 0.07);
  --map-l1: #CFDCEB;
  --map-l2: #9AB7D9;
  --map-l3: #638EC4;
  --map-l4: #3664A3;
  --map-l5: #1B3B6F;
  --map-hover: #B45309;
  --flag-v-bg: rgba(15, 118, 110, 0.13);
  --flag-v-fg: #0F766E;
  --flag-v-bd: rgba(15, 118, 110, 0.34);
  --flag-e-bg: rgba(180, 83, 9, 0.12);
  --flag-e-fg: #B45309;
  --flag-e-bd: rgba(180, 83, 9, 0.34);
}

/* Dark Theme */
@media (prefers-color-scheme: light) {
  :root:has(#theme-toggle:checked),
  #theme-toggle:checked ~ .site-wrapper {
  --bg-canvas: #090B10;
  --bg-surface: #111520;
  --bg-surface-alt: #171C2B;
  --bg-tint: #131B36;
  --bg-header: rgba(9, 11, 16, 0.9);

  --ink-primary: #F8FAFC;
  --ink-secondary: #B8C2D6;
  --ink-muted: #8490A8;

  --border-subtle: rgba(248, 250, 252, 0.1);
  --border-strong: rgba(248, 250, 252, 0.22);
  --border-btn-outline: rgba(248, 250, 252, 0.42);

  --accent-primary: #5B7CFA;
  --accent-primary-hover: #7A96FF;
  --accent-primary-soft: rgba(91, 124, 250, 0.15);
  --accent-on-primary: #FFFFFF;

  --accent-lime: #C5F84E;
  --accent-lime-hover: #D4FF6E;
  --accent-lime-ink: #090B10;

  --isp-accent: #FB923C;
  --isp-bg: #121520;
  --isp-border: rgba(251, 146, 60, 0.35);
  --isp-badge-bg: rgba(251, 146, 60, 0.16);

  --reality-accent: #34D399;
  --reality-bg: #0E1B1A;
  --reality-border: rgba(52, 211, 153, 0.38);
  --reality-badge-bg: rgba(52, 211, 153, 0.16);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.55);

  /* Report Map & Flags (Dark) */
  --map-ocean: #12151A;
  --map-land: #262E3A;
  --map-stroke: #12151A;
  --map-graticule: rgba(242, 243, 238, 0.07);
  --map-l1: #233754;
  --map-l2: #34537D;
  --map-l3: #4B74AC;
  --map-l4: #6D9AD6;
  --map-l5: #9EC0F2;
  --map-hover: #F59E0B;
  --flag-v-bg: rgba(45, 212, 191, 0.15);
  --flag-v-fg: #2DD4BF;
  --flag-v-bd: rgba(45, 212, 191, 0.36);
  --flag-e-bg: rgba(245, 158, 11, 0.16);
  --flag-e-fg: #F59E0B;
  --flag-e-bd: rgba(245, 158, 11, 0.38);
}
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-toggle:checked)),
  #theme-toggle:not(:checked) ~ .site-wrapper {
  --bg-canvas: #090B10;
  --bg-surface: #111520;
  --bg-surface-alt: #171C2B;
  --bg-tint: #131B36;
  --bg-header: rgba(9, 11, 16, 0.9);

  --ink-primary: #F8FAFC;
  --ink-secondary: #B8C2D6;
  --ink-muted: #8490A8;

  --border-subtle: rgba(248, 250, 252, 0.1);
  --border-strong: rgba(248, 250, 252, 0.22);

  --accent-primary: #5B7CFA;
  --accent-primary-hover: #7A96FF;
  --accent-primary-soft: rgba(91, 124, 250, 0.15);
  --accent-on-primary: #FFFFFF;

  --accent-lime: #C5F84E;
  --accent-lime-hover: #D4FF6E;
  --accent-lime-ink: #090B10;

  --isp-accent: #FB923C;
  --isp-bg: #121520;
  --isp-border: rgba(251, 146, 60, 0.35);
  --isp-badge-bg: rgba(251, 146, 60, 0.16);

  --reality-accent: #34D399;
  --reality-bg: #0E1B1A;
  --reality-border: rgba(52, 211, 153, 0.38);
  --reality-badge-bg: rgba(52, 211, 153, 0.16);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.55);

  /* Report Map & Flags (Dark) */
  --map-ocean: #12151A;
  --map-land: #262E3A;
  --map-stroke: #12151A;
  --map-graticule: rgba(242, 243, 238, 0.07);
  --map-l1: #233754;
  --map-l2: #34537D;
  --map-l3: #4B74AC;
  --map-l4: #6D9AD6;
  --map-l5: #9EC0F2;
  --map-hover: #F59E0B;
  --flag-v-bg: rgba(45, 212, 191, 0.15);
  --flag-v-fg: #2DD4BF;
  --flag-v-bd: rgba(45, 212, 191, 0.36);
  --flag-e-bg: rgba(245, 158, 11, 0.16);
  --flag-e-fg: #F59E0B;
  --flag-e-bd: rgba(245, 158, 11, 0.38);
}
}

/* Base & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-wrapper {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink-primary);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 200;
  padding: 0.55rem 1rem;
  background: var(--accent-primary);
  color: var(--accent-on-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-primary);
  letter-spacing: 0.01em;
  text-decoration: none;
  user-select: none;
}

.wordmark--nav {
  font-size: 1.65rem;
}

.wordmark--hero {
  font-size: clamp(3.2rem, 7.2vw, 5.15rem);
  margin-bottom: 1.1rem;
}

.wordmark--footer {
  font-size: 1.4rem;
}

.wm-s { font-family: 'Roboto', sans-serif; }
.wm-y { font-family: 'Playfair Display', Georgia, serif; }
.wm-n { font-family: 'Montserrat', sans-serif; }
.wm-t1 { font-family: 'Merriweather', Georgia, serif; }
.wm-h { font-family: 'Open Sans', sans-serif; }
.wm-e { font-family: 'Poppins', sans-serif; }
.wm-t2 { font-family: 'Lato', sans-serif; }
.wm-i { font-family: 'JetBrains Mono', monospace; }
.wm-c { font-family: 'Inter', sans-serif; }

/* Layout & Shared Components */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section--alt {
  background-color: var(--bg-surface-alt);
}

.section-header {
  max-width: 960px;
  margin-bottom: var(--space-lg);
}

.lead {
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--accent-primary);
  color: var(--accent-on-primary);
}

.btn--primary:hover {
  background-color: var(--accent-primary-hover);
  color: var(--accent-on-primary);
}

.btn--lime {
  background-color: var(--accent-lime);
  color: var(--accent-lime-ink);
  border-color: rgba(13, 16, 23, 0.1);
}

.btn--lime:hover {
  background-color: var(--accent-lime-hover);
  color: var(--accent-lime-ink);
}

.btn--outline {
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border: 1.5px solid var(--border-btn-outline);
}

.btn--outline:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn--sm {
  height: 34px;
  padding: 0 0.98rem;
  font-size: 0.84rem;
}

/* Cards & Callouts */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.9rem;
  background-color: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.callout__text {
  flex: 1 1 380px;
  min-width: 0;
}

.callout__text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.callout__text p:last-child {
  margin-bottom: 0;
}

/* Paper callout desktop fit */
@media (min-width: 1120px) {
  .callout--paper {
    flex-wrap: nowrap;
    gap: 0.9rem;
    padding: 1.45rem 1.5rem;
  }

  .callout--paper .callout__text p {
    font-size: 0.84rem;
    letter-spacing: -0.015em;
    line-height: 1.45;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.72rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.badge--isp {
  background-color: var(--isp-badge-bg);
  color: var(--isp-accent);
}

.badge--reality {
  background-color: var(--reality-badge-bg);
  color: var(--reality-accent);
}

/* Media Slots */
.media-slot {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 85% 15%, var(--accent-primary-soft), transparent 55%),
    var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
}

.hero-visual .media-slot,
.feature-art .media-slot {
  border: none;
}

.media-slot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Light / Dark SVG swap */
.media-slot .img-dark {
  display: none;
}

@media (prefers-color-scheme: light) {
  #theme-toggle:checked ~ .site-wrapper .media-slot .img-light {
    display: none;
  }

  #theme-toggle:checked ~ .site-wrapper .media-slot .img-dark {
    display: block;
  }
}

@media (prefers-color-scheme: dark) {
  #theme-toggle:not(:checked) ~ .site-wrapper .media-slot .img-light {
    display: none;
  }

  #theme-toggle:not(:checked) ~ .site-wrapper .media-slot .img-dark {
    display: block;
  }
}

.media-slot--hero {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
}

.media-slot--feature {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
}

.media-slot--compare {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 680px;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background-color: var(--bg-surface-alt);
}

/* Landing comparison table headers */
.comparison-table thead th {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  padding: 1rem 1.05rem;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child {
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

.data-table .col-gap {
  color: var(--isp-accent);
}

.data-table .col-fix {
  color: var(--reality-accent);
  font-weight: 500;
}

/* Header & Theme Toggle */
.theme-toggle-input {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.65rem 1.25rem;
}

.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Scroll header */
.site-header--scroll-logo .header-inner {
  position: relative;
  justify-content: flex-start;
  gap: 0;
  min-height: 58px;
  padding-right: 4rem;
}

.site-header--scroll-logo .wordmark--nav {
  margin-right: 1.75rem;
  flex-shrink: 0;
}

.site-header--scroll-logo .header-actions {
  margin-left: auto;
  gap: 0;
}

.site-header--scroll-logo .header-cta-group {
  margin-right: 0;
}

/* Theme toggle position */
.site-header--scroll-logo .theme-toggle-btn {
  position: absolute;
  top: 12px;
  right: 1.25rem;
  z-index: 150;
  box-shadow: var(--shadow-sm);
}

@supports (animation-timeline: scroll()) {
  .site-header--scroll-logo .wordmark--nav {
    max-width: 0;
    max-height: 0;
    opacity: 0;
    margin-right: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-10px);
    animation-name: header-logo-reveal;
    animation-duration: 1ms;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: 110px 210px;
  }

  .site-header--scroll-logo .header-cta-group {
    max-width: 0;
    max-height: 0;
    opacity: 0;
    margin-right: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    animation-name: header-cta-reveal;
    animation-duration: 1ms;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: 290px 410px;
  }

  @keyframes header-logo-reveal {
    0% {
      max-width: 0;
      max-height: 0;
      opacity: 0;
      margin-right: 0;
      pointer-events: none;
      transform: translateX(-10px);
    }
    15% {
      pointer-events: auto;
    }
    100% {
      max-width: 160px;
      max-height: 44px;
      opacity: 1;
      margin-right: 1.75rem;
      pointer-events: auto;
      transform: translateX(0);
    }
  }

  @keyframes header-cta-reveal {
    0% {
      max-width: 0;
      max-height: 0;
      opacity: 0;
      margin-right: 0;
      pointer-events: none;
      transform: translateY(-6px);
    }
    15% {
      pointer-events: auto;
    }
    100% {
      max-width: 380px;
      max-height: 44px;
      opacity: 1;
      margin-right: 0;
      pointer-events: auto;
      transform: translateY(0);
    }
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav > a:hover {
  color: var(--ink-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle-input {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nav-toggle-btn:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.nav-icon-close {
  display: none;
}

.mobile-nav-ctas {
  display: none;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

#theme-toggle:focus-visible ~ .site-wrapper .theme-toggle-btn {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.theme-icon-sun {
  display: none;
}

@media (prefers-color-scheme: light) {
  #theme-toggle:checked ~ .site-wrapper .theme-icon-moon {
    display: none;
  }

  #theme-toggle:checked ~ .site-wrapper .theme-icon-sun {
    display: block;
  }
}

@media (prefers-color-scheme: dark) {
  #theme-toggle:not(:checked) ~ .site-wrapper .theme-icon-moon {
    display: none;
  }

  #theme-toggle:not(:checked) ~ .site-wrapper .theme-icon-sun {
    display: block;
  }
}

/* Hero */
.hero {
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  background:
    radial-gradient(ellipse 65% 55% at 80% 20%, var(--bg-tint), transparent 70%),
    var(--bg-canvas);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.3vw, 1.72rem);
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 560px;
}

.hero-lead {
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-visual {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

/* Why */
.metrics-strip {
  margin-top: var(--space-md);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.45vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--accent-primary);
  margin-bottom: 0.55rem;
}

.metric-label {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.4rem;
}

.metric-note {
  margin: auto 0 0;
  font-size: 0.83rem;
  line-height: 1.48;
  color: var(--ink-muted);
}

.metrics-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Threat grid */
.threat-block {
  margin-top: var(--space-xl);
}

.threat-block h3.block-subhead {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.threat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.threat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.threat-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary-soft);
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
}

.threat-card h4 {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.threat-card p {
  font-size: 0.85rem;
  line-height: 1.48;
  margin: 0;
}

/* Quotes ticker */
.ticker-section {
  margin: var(--space-xl) 0 var(--space-lg);
}

.quotes-pause-input {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.quotes-ticker {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.quotes-pause-input:checked + .quotes-ticker {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: none;
  -webkit-mask-image: none;
  cursor: grab;
  padding-bottom: 0.35rem;
}

.quotes-pause-input:checked + .quotes-ticker::-webkit-scrollbar {
  display: none;
}

.quotes-pause-input:checked + .quotes-ticker .quotes-track {
  animation: none;
  transform: none;
}

.quotes-pause-input:checked + .quotes-ticker .quotes-list[aria-hidden="true"] {
  display: none;
}

.quotes-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 82s linear infinite;
}

.quotes-ticker:hover .quotes-track,
.quotes-ticker:focus-within .quotes-track {
  animation-play-state: paused;
}

.quotes-list {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: stretch;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem 1rem 0.25rem 0;
}

.quotes-list li {
  flex: 0 0 auto;
  width: 340px;
  padding: 1rem 1.2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.48;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Solution */
.umbrella-lead {
  padding: 1.6rem 2rem;
  background-color: var(--bg-tint);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
}

.umbrella-lead p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-primary);
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-xl);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.feature-row--reverse .feature-art {
  order: 2;
}

.feature-art {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.feature-copy {
  max-width: 520px;
}

.feature-copy h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.feature-copy p {
  font-size: 1rem;
  line-height: 1.62;
  margin: 0;
}

.comparison-block {
  margin-bottom: var(--space-lg);
}

.comparison-block h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* How It Works */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.compare-card {
  position: relative;
  display: flex;
}

.compare-toggle {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.compare-surface {
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--isp-border);
  background-color: var(--isp-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-med), background-color var(--transition-med), box-shadow var(--transition-med);
}

.compare-toggle:focus-visible + .compare-surface {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* CRT overlay */
.compare-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 45%,
      rgba(13, 16, 23, 0.18) 52%,
      transparent 100%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(13, 16, 23, 0.22) 0px,
      rgba(13, 16, 23, 0.22) 1px,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 3px
    );
  background-size: 100% 220%, 100% 3px;
}

.compare-layer {
  grid-area: 1 / 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  transition: opacity 120ms ease;
}

.layer-isp {
  opacity: 1;
  z-index: 2;
}

.layer-reality {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* CRT keyframes */
@keyframes crt-switch {
  0% {
    opacity: 0.2;
    transform: scaleY(0.16) scaleX(1.04) translateY(-14px);
    filter: brightness(1.9) contrast(1.55) saturate(0.15);
  }
  24% {
    opacity: 0.78;
    transform: scaleY(1.05) translateY(11px) skewX(-2.5deg);
    filter: brightness(1.32) contrast(1.38) saturate(0.35);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(0.97) translateY(-5px) skewX(1.2deg);
    filter: brightness(1.15) contrast(1.18) saturate(0.65);
  }
  76% {
    opacity: 0.97;
    transform: scaleY(1.01) translateY(2px);
    filter: brightness(1.05) contrast(1.06);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes crt-switch-back {
  0% {
    opacity: 0.2;
    transform: scaleY(0.16) scaleX(1.04) translateY(14px);
    filter: brightness(1.9) contrast(1.55) saturate(0.15);
  }
  24% {
    opacity: 0.78;
    transform: scaleY(1.05) translateY(-11px) skewX(2.5deg);
    filter: brightness(1.32) contrast(1.38) saturate(0.35);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(0.97) translateY(5px) skewX(-1.2deg);
    filter: brightness(1.15) contrast(1.18) saturate(0.65);
  }
  76% {
    opacity: 0.97;
    transform: scaleY(1.01) translateY(-2px);
    filter: brightness(1.05) contrast(1.06);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes crt-static {
  0% { opacity: 0.95; background-position: 0 0%, 0 0; }
  35% { opacity: 0.7; background-position: 0 65%, 0 2px; }
  70% { opacity: 0.3; background-position: 0 100%, 0 1px; }
  100% { opacity: 0; background-position: 0 100%, 0 0; }
}

@keyframes crt-static-back {
  0% { opacity: 0.95; background-position: 0 100%, 0 0; }
  35% { opacity: 0.7; background-position: 0 35%, 0 2px; }
  70% { opacity: 0.3; background-position: 0 0%, 0 1px; }
  100% { opacity: 0; background-position: 0 0%, 0 0; }
}

.compare-toggle:not(:checked) + .compare-surface::after {
  animation: crt-static-back 360ms steps(6, end) forwards;
}

.compare-toggle:not(:checked) + .compare-surface .layer-isp {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  animation: crt-switch-back 360ms steps(6, end) both;
}

.compare-toggle:checked + .compare-surface {
  border-color: var(--reality-border);
  background-color: var(--reality-bg);
  box-shadow: var(--shadow-md);
}

.compare-toggle:checked + .compare-surface::after {
  animation: crt-static 360ms steps(6, end) forwards;
}

.compare-toggle:checked + .compare-surface .layer-isp {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: none;
}

.compare-toggle:checked + .compare-surface .layer-reality {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  animation: crt-switch 360ms steps(6, end) both;
}

/* Card CTA hover */
@media (hover: hover) {
  .compare-surface:hover {
    box-shadow: var(--shadow-md);
  }

  .compare-surface:hover .compare-cta {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .compare-surface:hover .compare-cta--reality {
    background-color: var(--reality-accent);
    color: #FFFFFF;
    border-color: var(--reality-accent);
  }

  .compare-surface:hover .compare-cta--isp {
    background-color: var(--isp-accent);
    color: #FFFFFF;
    border-color: var(--isp-accent);
  }
}

.compare-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Card heading hierarchy */
.compare-topic {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.compare-title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink-secondary);
  margin: 0;
}

.compare-copy {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
}

.compare-cta {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.compare-cta--reality {
  background-color: var(--reality-badge-bg);
  color: var(--reality-accent);
  border: 1.5px solid var(--reality-border);
}

.compare-cta--isp {
  background-color: var(--isp-badge-bg);
  color: var(--isp-accent);
  border: 1.5px solid var(--isp-border);
}

/* Who It's For */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
}

.audience-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.audience-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.audience-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.audience-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary-soft);
  color: var(--accent-primary);
  margin-bottom: 0.95rem;
}

.audience-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--accent-primary);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Action CTA */
.action-panel {
  background-color: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background-color: var(--bg-canvas);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-primary);
}

/* Report Components */
.back-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary) !important;
  white-space: nowrap;
}

.report-hero {
  padding: var(--space-lg) 0;
}

.report-hero .hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  margin-bottom: 1.5rem;
}

.report-hero .hero-visual {
  width: 100%;
  max-width: 390px;
  justify-self: end;
}

.media-slot--report {
  aspect-ratio: 624 / 546;
  border-radius: var(--radius-lg);
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  margin: 1.4rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.report-meta b {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.lower-bound-note {
  margin: 1.2rem 0 0;
  padding: 1.15rem 1.4rem;
  background-color: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
}

.lower-bound-note p {
  margin: 0;
  color: var(--ink-primary);
}

.report-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.toc-label {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.35rem;
}

.report-toc a {
  display: inline-block;
  padding: 0.36rem 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.report-toc a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--accent-primary-soft);
}

sup.cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 0;
  white-space: nowrap;
  margin-left: 1px;
}

sup.cite a {
  color: var(--accent-primary);
  text-decoration: none;
  padding: 0 1px;
}

sup.cite a:hover {
  text-decoration: underline;
}

sup.cite.est a {
  color: var(--isp-accent);
}

.flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.08rem 0.36rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  vertical-align: 1px;
}

.f-v {
  background-color: var(--flag-v-bg);
  color: var(--flag-v-fg);
  border: 1px solid var(--flag-v-bd);
}

.f-e {
  background-color: var(--flag-e-bg);
  color: var(--flag-e-fg);
  border: 1px solid var(--flag-e-bd);
}

/* World map */
.map-shell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-ocean,
.map-inset-box {
  fill: var(--map-ocean);
}

.map-graticule line {
  stroke: var(--map-graticule);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.map-bg {
  fill: var(--map-land);
  stroke: var(--map-stroke);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.country {
  stroke: var(--map-stroke);
  stroke-width: 0.7;
  stroke-linejoin: round;
  cursor: help;
  transition: fill var(--transition-fast);
}

.country.level-1 { fill: var(--map-l1); }
.country.level-2 { fill: var(--map-l2); }
.country.level-3 { fill: var(--map-l3); }
.country.level-4 { fill: var(--map-l4); }
.country.level-5 { fill: var(--map-l5); }

.country:hover {
  fill: var(--map-hover);
  stroke-width: 1.1;
}

.map-inset-frame {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.2;
}

.map-inset-pill {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
  stroke-width: 0.8;
}

.map-inset-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--ink-muted);
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.legend-swatch {
  flex: 0 0 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.sw-l5 { background-color: var(--map-l5); }
.sw-l4 { background-color: var(--map-l4); }
.sw-l3 { background-color: var(--map-l3); }
.sw-l2 { background-color: var(--map-l2); }
.sw-l1 { background-color: var(--map-l1); }
.sw-bg { background-color: var(--map-land); }

.legend-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-primary);
}

.global-notes {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.global-notes h3 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.global-notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-secondary);
}

.global-notes li {
  margin-bottom: 0.35rem;
}

/* Country table */
.country-table {
  min-width: 860px;
}

.country-table thead th:nth-child(1) { width: 170px; }
.country-table thead th:nth-child(2) { width: 240px; }
.country-table thead th:nth-child(3) { width: 175px; }
.country-table thead th:nth-child(5) { width: 105px; text-align: center; }

.iso-code {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  background-color: var(--bg-surface-alt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.vendor-cell {
  font-weight: 500;
  color: var(--ink-primary);
  min-width: 155px;
}

.lvl-cell {
  white-space: nowrap;
  text-align: center !important;
}

.lvl-badge {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.lvl-5 { background-color: var(--map-l5); color: #FFFFFF; }
.lvl-4 { background-color: var(--map-l4); color: #FFFFFF; }
.lvl-3 { background-color: var(--map-l3); color: #FFFFFF; }
.lvl-2 { background-color: var(--map-l2); color: #141619; }
.lvl-1 { background-color: var(--map-l1); color: #141619; }

@media (prefers-color-scheme: light) {
  :root:has(#theme-toggle:checked) .lvl-5,
  #theme-toggle:checked ~ .site-wrapper .lvl-5,
  :root:has(#theme-toggle:checked) .lvl-4,
  #theme-toggle:checked ~ .site-wrapper .lvl-4 {
    color: #0F141B;
  }

  :root:has(#theme-toggle:checked) .lvl-2,
  #theme-toggle:checked ~ .site-wrapper .lvl-2,
  :root:has(#theme-toggle:checked) .lvl-1,
  #theme-toggle:checked ~ .site-wrapper .lvl-1 {
    color: #F2F3EE;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-toggle:checked)) .lvl-5,
  #theme-toggle:not(:checked) ~ .site-wrapper .lvl-5,
  :root:not(:has(#theme-toggle:checked)) .lvl-4,
  #theme-toggle:not(:checked) ~ .site-wrapper .lvl-4 {
    color: #0F141B;
  }

  :root:not(:has(#theme-toggle:checked)) .lvl-2,
  #theme-toggle:not(:checked) ~ .site-wrapper .lvl-2,
  :root:not(:has(#theme-toggle:checked)) .lvl-1,
  #theme-toggle:not(:checked) ~ .site-wrapper .lvl-1 {
    color: #F2F3EE;
  }
}

/* Market quadrant */
.plot-shell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem 0.5rem;
  box-shadow: var(--shadow-sm);
}

svg.quad {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.q-grid-line { stroke: var(--border-subtle); stroke-width: 1; }
.q-frame { stroke: var(--border-strong); stroke-width: 1; }
.q-mid { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 5 5; }
.q-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; fill: var(--ink-muted); }
.q-axis { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; fill: var(--accent-primary); font-weight: 500; }
.dot-name { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--ink-primary); }

.q-node {
  text-decoration: none;
}

.q-node circle.core {
  fill: var(--map-l4);
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.q-node.q-lead circle.core { fill: var(--map-l5); }
.q-node.q-chal circle.core { fill: var(--map-l3); }
.q-node.q-niche circle.core { fill: var(--map-l2); }

.q-node circle.halo {
  fill: none;
  stroke: var(--isp-accent);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.q-node:hover circle.core,
.q-node:focus circle.core {
  fill: var(--isp-accent);
  stroke: var(--isp-accent);
}

.q-node:hover .dot-name,
.q-node:focus .dot-name {
  fill: var(--isp-accent);
}

.q-node:hover circle.halo,
.q-node:focus circle.halo {
  opacity: 0.65;
}

.q-leg-bub {
  fill: var(--map-l4);
  stroke: var(--accent-primary);
  stroke-width: 1.5;
}

.q-leg-txt {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink-muted);
}

/* Player cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.card.player-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card.player-card:target {
  border-color: var(--isp-accent);
  box-shadow: 0 0 0 3px var(--isp-badge-bg);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.card-top h3 {
  display: inline;
  font-size: 1.08rem;
  margin: 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.52rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.tag.lead {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary-soft);
  color: var(--accent-primary);
}

.card.player-card p {
  font-size: 0.9rem;
  margin: 0.45rem 0 0;
}

.card.player-card .hq {
  margin-top: auto;
  padding-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* Vendor scale table */
.vendor-table {
  min-width: 980px;
}

.vendor-table thead th:nth-child(1) { width: 155px; }
.vendor-table thead th:nth-child(3) { width: 225px; }
.vendor-table thead th:nth-child(4) { width: 155px; }
.vendor-table thead th:nth-child(5) { width: 150px; }

.vendor-table td.co small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.vendor-table td.num {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--ink-primary);
}

.vendor-table td.num .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--ink-muted);
  white-space: normal;
  margin-top: 0.25rem;
  max-width: 170px;
}

.vendor-table tr.totals td {
  background-color: var(--accent-primary-soft);
  border-top: 2px solid var(--accent-primary);
  font-weight: 600;
  color: var(--ink-primary);
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Method & references */
.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.note {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.note h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.6rem;
}

.note p {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.ref-details {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.ref-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
  background-color: var(--bg-surface-alt);
  cursor: pointer;
}

.ref-details summary::-webkit-details-marker {
  display: none;
}

.ref-details summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.ref-details[open] summary::after {
  content: '−';
}

.ref-body {
  padding: 1.25rem;
}

.ref-cols {
  columns: 2;
  column-gap: 2.5rem;
}

ol.refs {
  margin: 0;
  padding-left: 1.75rem;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

ol.refs li {
  margin: 0 0 0.9rem;
  padding: 0.25rem 0.45rem;
  line-height: 1.5;
  break-inside: avoid;
  border-radius: 4px;
}

ol.refs li:target {
  background-color: var(--isp-badge-bg);
  outline: 1px solid var(--isp-border);
}

ol.refs li.derived {
  background-color: var(--bg-surface-alt);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
}

ol.refs a.backlink {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  margin-right: 0.35rem;
}

ol.refs a.backlink:hover {
  color: var(--accent-primary);
}

ol.refs a.src {
  word-break: break-word;
  color: var(--ink-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ol.refs a.src:hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}

ol.refs .kind {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--isp-accent);
  border: 1px solid var(--isp-border);
  background-color: var(--isp-badge-bg);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  margin-right: 0.35rem;
}

ol.refs .desc {
  display: block;
  font-size: 0.79rem;
  color: var(--ink-muted);
  margin-top: 0.22rem;
}

.report-callout {
  margin-top: 1.5rem;
}

.report-action-panel .lead {
  max-width: 68ch;
  margin-bottom: 0;
}

.footer-note {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Responsive & Reduced Motion */
@media (max-width: 1140px) and (min-width: 1021px) {
  .main-nav {
    gap: 1rem;
  }

  .site-header--scroll-logo .wordmark--nav {
    margin-right: 1.15rem;
  }

  .header-actions .btn--sm {
    padding: 0 0.8rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .report-hero .hero-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .report-hero .hero-visual {
    max-width: 440px;
    justify-self: center;
  }

  .feature-row {
    gap: 1rem;
  }

  .feature-copy {
    display: contents;
  }

  .feature-copy h3 {
    order: 1;
    margin-bottom: 0;
  }

  .feature-art,
  .feature-row--reverse .feature-art {
    order: 2;
  }

  .feature-copy p {
    order: 3;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .threat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-card,
  .audience-card:nth-child(4),
  .audience-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .map-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes {
    grid-template-columns: 1fr;
  }

  .ref-cols {
    columns: 1;
  }
}

@media (max-width: 1020px) {
  .header-inner,
  .site-header--scroll-logo .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0;
    min-height: 56px;
    padding: 0.55rem 1.25rem;
  }

  /* Mobile floating header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    pointer-events: none;
  }

  .site-header .wordmark--nav,
  .site-header--scroll-logo .wordmark--nav {
    display: none;
    animation: none;
  }

  .site-header .header-actions {
    pointer-events: auto;
  }

  /* Mobile open menu */
  .site-header:has(#nav-toggle:checked) {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-subtle);
    pointer-events: auto;
  }

  .site-header .nav-toggle-input:checked ~ .wordmark--nav,
  .site-header--scroll-logo .nav-toggle-input:checked ~ .wordmark--nav {
    display: inline-flex;
    animation: none;
    max-width: none;
    max-height: none;
    opacity: 1;
    margin-right: 0.75rem;
    pointer-events: auto;
    transform: none;
  }

  /* Mobile header actions */
  .header-cta-group,
  .site-header--scroll-logo .header-cta-group {
    display: none;
  }

  .header-actions,
  .site-header--scroll-logo .header-actions {
    margin-left: auto;
    gap: 0.5rem;
  }

  .site-header .theme-toggle-btn,
  .site-header--scroll-logo .theme-toggle-btn {
    position: static;
    box-shadow: var(--shadow-sm);
  }

  .nav-toggle-btn {
    display: inline-flex;
    box-shadow: var(--shadow-sm);
  }

  .nav-toggle-input:checked ~ .header-actions .nav-icon-open {
    display: none;
  }

  .nav-toggle-input:checked ~ .header-actions .nav-icon-close {
    display: block;
  }

  .nav-toggle-input:focus-visible ~ .header-actions .nav-toggle-btn {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
  }

  /* Mobile menu drawer */
  .main-nav,
  .site-header--scroll-logo .main-nav {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow: visible;
    gap: 0.25rem;
    margin-top: 0.65rem;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid var(--border-subtle);
    animation: none;
  }

  .nav-toggle-input:checked ~ .main-nav {
    display: flex;
  }

  .main-nav > a {
    display: block;
    padding: 0.62rem 0.25rem;
    font-size: 0.96rem;
    white-space: normal;
  }

  .mobile-nav-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-nav-ctas .btn {
    flex: 1 1 auto;
    height: 38px;
    padding: 0 1rem;
    font-size: 0.86rem;
    text-align: center;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .hero,
  .report-hero {
    padding: 3.5rem 0 2.75rem;
  }

  .umbrella-lead {
    padding: 1.35rem 1.45rem;
  }

  .action-panel {
    padding: 1.5rem;
  }
}

/* Mobile stacked tables */
@media (max-width: 768px) {
  .table-wrap--responsive {
    overflow: visible;
    border: none;
    background-color: transparent;
    border-radius: 0;
  }

  .responsive-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .responsive-table tbody tr {
    display: block;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-sm);
  }

  .responsive-table tbody tr.totals {
    background-color: var(--accent-primary-soft);
    border-color: var(--accent-primary);
  }

  .responsive-table tbody tr.totals td {
    background-color: transparent;
    border-top: none;
  }

  .responsive-table tbody td {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
    white-space: normal;
    text-align: left !important;
  }

  .responsive-table tbody td.num .sub {
    max-width: none;
  }

  .responsive-table tbody td:first-child {
    font-family: var(--font-heading);
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--ink-primary);
    padding-top: 0;
    padding-bottom: 0.7rem;
    margin-bottom: 0.15rem;
    white-space: normal;
  }

  .responsive-table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .responsive-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-muted);
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 540px) {
  .header-actions .btn--sm {
    height: 30px;
    padding: 0 0.72rem;
    font-size: 0.78rem;
  }

  .theme-toggle-btn {
    width: 30px;
    height: 30px;
  }

  .site-header--scroll-logo .wordmark--nav {
    font-size: 1.35rem;
  }

  .wordmark--hero {
    margin-bottom: 0.75rem;
  }

  .hero-tagline {
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.65rem;
  }

  .hero-actions .btn,
  .action-bar .btn {
    flex: 1 1 135px;
  }

  .hero-visual {
    padding: 0.5rem;
  }

  .metric-grid,
  .threat-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    padding: 1.35rem;
  }

  .quotes-list li {
    width: 280px;
  }

  .map-legend {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .quotes-track {
    animation-duration: 180s;
  }

  .compare-layer,
  .compare-surface,
  .metric-card,
  .btn {
    transition: none;
  }
}
