:root {
  --bg: #09090d;
  --surface: #111116;
  --surface2: #16161d;
  --line: #272733;
  --text: #f4f4f7;
  --muted: #a4a4b1;
  --accent: #9a3cff;
  --accent2: #b968ff;
  --max: 1180px;
  --narrow: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Segoe UI,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.shell {
  width: min(calc(100% - 40px),var(--max));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(9,9,13,.91);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 9px;
  color: #b7b7c2;
  font-size: 14px;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.is-active {
  color: #fff;
  background: #15151b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #15151b;
  color: #fff;
  font-weight: 760;
  font-size: 15px;
  cursor: pointer;
}

.btn-play {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(154,60,255,.18);
}

.btn-play:hover {
  background: #a64cff;
}

.btn.ghost {
  background: transparent;
}

.header-play {
  margin-left: 4px;
  min-height: 40px;
  padding: 0 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
}

.mobile-links {
  display: grid;
  padding: 12px 0 18px;
}

.breadcrumbs {
  width: min(calc(100% - 40px),var(--max));
  margin: 22px auto 0;
  color: #72727d;
  font-size: 13px;
  display: flex;
  gap: 8px;
}

.breadcrumbs a {
  color: #a7a7b2;
}

.page-hero {
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 330px at 15% -20%,rgba(154,60,255,.13),transparent 62%);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow, .section-head>span {
  display: block;
  color: #b66cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(38px,6vw,72px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 980px;
}

.lead {
  max-width: 760px;
  font-size: 19px;
  color: #b9b9c4;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.text-link {
  font-weight: 720;
  color: #d8d8df;
}

.text-link span {
  color: #b66cff;
}

.quick-section, .content-section, .faq-section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.quick-grid a {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.quick-grid a:nth-child(odd) {
  padding-right: 32px;
}

.quick-grid a:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.quick-grid b {
  min-width: 165px;
  font-size: 17px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0,760px) 280px;
  gap: 80px;
  align-items: start;
}

.prose h2 {
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -.03em;
  margin: 46px 0 15px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.prose p {
  color: #c6c6cf;
  margin: 0 0 18px;
}

.clean-list {
  padding: 0;
  margin: 20px 0 26px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.clean-list li {
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: #d3d3da;
}

.clean-list li:before {
  content: '—';
  position: absolute;
  left: 0;
  color: #9a3cff;
}

.steps {
  padding: 0;
  margin: 24px 0;
  list-style: none;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:before {
  content: counter(s,decimal-leading-zero);
  grid-row: 1/3;
  color: #8d8d98;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.steps b {
  font-size: 17px;
}

.steps span {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
}

.side-note {
  position: sticky;
  top: 96px;
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.side-note>span {
  font-size: 12px;
  color: #8f8f9c;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.side-note strong {
  display: block;
  font-size: 25px;
  margin: 6px 0 10px;
  letter-spacing: -.03em;
}

.side-note p, .side-note li {
  color: var(--muted);
  font-size: 14px;
}

.side-note ol {
  padding-left: 20px;
}

.full {
  width: 100%;
  margin-top: 14px;
}

.callout {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.callout b {
  display: block;
  margin-bottom: 5px;
}

.callout span {
  color: var(--muted);
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 34px 19px 0;
  font-weight: 740;
  position: relative;
}

.faq-list summary:after {
  content: '+';
  position: absolute;
  right: 2px;
  color: #a65aff;
  font-size: 20px;
}

.faq-list details[open] summary:after {
  content: '–';
}

.faq-list p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 700px;
}

.final-cta {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d0d12;
}

.final-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.final-inner h2 {
  font-size: 34px;
  margin: 0 0 6px;
  letter-spacing: -.04em;
}

.final-inner p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 36px 0 48px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 26px;
  height: auto;
}

.site-footer p {
  max-width: 510px;
  color: #777783;
  font-size: 13px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #9d9da8;
}

@media(max-width:980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-play {
    order: 3;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .header-play {
    order: 3;
  }

  .mobile-menu.open {
    display: block;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .side-note {
    position: static;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }

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

  .quick-grid a:nth-child(odd),.quick-grid a:nth-child(even) {
    padding: 20px 0;
    border-left: 0;
  }

  .quick-grid b {
    min-width: 145px;
  }

  .page-hero {
    padding-top: 50px;
  }

  .footer-grid {
    display: grid;
  }

  .final-inner {
    align-items: flex-start;
  }

}

@media(max-width:640px) {
  .shell {
    width: min(calc(100% - 28px),var(--max));
  }

  .header-inner {
    height: 62px;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 34px;
  }

  .header-play {
    min-height: 38px;
    padding: 0 15px;
    font-size: 14px;
  }

  .menu-toggle {
    width: 36px;
  }

  .page-hero {
    padding: 42px 0 36px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

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

  .quick-section,.content-section,.faq-section {
    padding: 48px 0;
  }

  .quick-grid a {
    display: grid;
    gap: 3px;
  }

  .quick-grid b {
    min-width: 0;
  }

  .section-head h2,.final-inner h2 {
    font-size: 29px;
  }

  .prose h2 {
    font-size: 26px;
    margin-top: 36px;
  }

  .final-inner {
    display: grid;
  }

  .footer-links {
    flex-wrap: wrap;
  }

}

/* V3 refinements */
html {
  scroll-padding-top: 84px;
}

body {
  overflow-x: clip;
  font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: #fff;
  color: #111;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.disclosure {
  max-width: 760px;
  margin: 14px 0 0;
  color: #888894;
  font-size: 13px;
}

.cta-title {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.04em;
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: #15151b;
}

.btn:focus-visible, .nav-link:focus-visible, .text-link:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible, summary:focus-visible {
  outline: 2px solid #c682ff;
  outline-offset: 3px;
}

.quick-grid a:focus-visible {
  outline: 2px solid #c682ff;
  outline-offset: -2px;
}

.prose h2, .prose h3 {
  scroll-margin-top: 96px;
}

.menu-toggle {
  cursor: pointer;
}

.mobile-menu.open {
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}

@media(max-width:1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .header-play {
    order: 3;
  }

  .mobile-menu.open {
    display: block;
  }

}

@media(max-width:640px) {
  .cta-title {
    font-size: 29px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .text-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .page-hero h1 {
    font-size: clamp(36px,11vw,44px);
  }

  .lead {
    line-height: 1.55;
  }

  .disclosure {
    font-size: 12px;
  }

  .mobile-links .nav-link {
    padding: 11px 9px;
  }

}

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

  *,*:before,*:after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }

}

/* V5: current-data tables and fact-check blocks */
.data-section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0));
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 36px;
  align-items: end;
}

.checked-note {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat-card {
  min-width: 0;
  padding: 22px;
  background: #101015;
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.table-wrap {
  width: 100%;
  margin: 28px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f0f14;
  -webkit-overflow-scrolling: touch;
}

.secondary-table {
  margin-top: 18px;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.data-table caption {
  padding: 16px 18px 10px;
  color: #dcdce4;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  color: #9d9daa;
  background: #131319;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.data-table tbody th {
  width: 220px;
  color: #f1f1f5;
  font-size: 14px;
}

.data-table td {
  color: #c8c8d0;
  font-size: 14px;
  line-height: 1.55;
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: rgba(154,60,255,.035);
}

.highlight-table tbody tr:first-child td {
  background: rgba(154,60,255,.045);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.compare-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101015;
}

.compare-card span {
  display: block;
  margin-bottom: 8px;
  color: #a6a6b1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.compare-card strong {
  display: block;
  font-size: 19px;
  letter-spacing: -.02em;
}

.compare-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.compare-card.good {
  border-top-color: #3ca878;
}

.compare-card.warn {
  border-top-color: #d7a94b;
}

.compare-card.bad {
  border-top-color: #d76666;
}

.source-note {
  margin: 18px 0 0;
  color: #8f8f9a;
  font-size: 13px;
  line-height: 1.55;
}

.source-note strong {
  color: #b8b8c2;
}

.compact-callout {
  margin-bottom: 0;
}

.confidence {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.confidence.high {
  background: rgba(60,168,120,.12);
  color: #79d5aa;
}

.confidence.medium {
  background: rgba(215,169,75,.12);
  color: #e5bf70;
}

.confidence.low {
  background: rgba(215,102,102,.12);
  color: #e58a8a;
}

@media (max-width: 900px) {
  .split-head {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

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

}

@media (max-width: 640px) {
  .data-section {
    padding: 48px 0;
  }

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

  .stat-card {
    padding: 18px;
  }

  .data-table {
    min-width: 640px;
  }

  .data-table th,
  .data-table td {
    padding: 13px 14px;
  }

}
