/* ==========================================================================
   PlayVerify.org — World-Class Editorial Fintech & Consumer Research Design
   Aesthetic: Obsidian Navy, Precision Emerald, Alabaster Paper, Tabular Data
   ========================================================================== */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-tint: #f8fafc;

  --obsidian: #07111f;
  --obsidian-2: #0d1f35;
  --obsidian-3: #132c47;

  --ink: #0b1220;
  --ink-body: #253349;
  --ink-muted: #52627a;
  --ink-subtle: #6e7f98;

  --border: #e3e9f2;
  --border-strong: #cbd5e1;

  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber: #b45309;
  --amber-bright: #f59e0b;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --crimson: #be123c;
  --crimson-soft: #fff1f2;
  --crimson-border: #fecdd3;

  --cobalt: #1d4ed8;
  --cobalt-soft: #eff6ff;
  --cobalt-border: #bfdbfe;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 7px;

  --shadow-xs: 0 1px 2px rgba(7, 17, 31, 0.04);
  --shadow-sm: 0 1px 3px rgba(7, 17, 31, 0.05), 0 4px 12px -4px rgba(7, 17, 31, 0.06);
  --shadow-md: 0 2px 6px rgba(7, 17, 31, 0.05), 0 14px 32px -10px rgba(7, 17, 31, 0.11);
  --shadow-lg: 0 20px 50px -15px rgba(7, 17, 31, 0.28);

  --max-w: 1180px;
  --prose-w: 820px;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.prose-container {
  width: 100%;
  max-width: var(--prose-w);
  margin: 0 auto;
}

/* Reading Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  z-index: 100;
  transition: width 0.08s linear;
}

/* Top Compliance Ribbon */
.top-notice {
  background: #040a12;
  color: #9fb0c7;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.top-notice .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}
.top-notice strong { color: #e2e8f0; }
.top-notice a { color: #34d399; font-weight: 600; }

/* Sticky Glass Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19.5px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-logo:hover { text-decoration: none; }
.brand-logo .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--emerald-border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--surface-subtle); color: var(--ink); text-decoration: none; }
.nav-links a.active { background: var(--obsidian); color: #fff; }

.nav-toggle {
  display: none;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--ink-subtle);
  padding: 11px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumbs a { color: var(--ink-muted); font-weight: 500; }
.breadcrumbs span.sep { color: var(--border-strong); }

/* World-Class Dark Editorial Hero */
.hero-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 12%, rgba(16, 185, 129, 0.17), transparent 60%),
    radial-gradient(700px 380px at 8% 90%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(135deg, #06101c 0%, #0c1e34 55%, #09242c 100%);
  color: #e2e8f0;
  padding: 56px 0 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-dark .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.hero-dark h1 {
  color: #ffffff;
  font-size: clamp(30px, 4.1vw, 44px);
  line-height: 1.14;
  margin: 0 0 16px;
}
.hero-dark p.lead {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 680px;
}
.hero-dark .meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
  color: #94a3b8;
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-dark .meta-bar strong { color: #e2e8f0; }
.hero-dark .meta-bar a { color: #34d399; }

/* Glass Audit Panel Inside Hero */
.hero-panel {
  background: rgba(15, 29, 49, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.hero-panel-sub {
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono);
}
.hero-stat-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
}
.hero-stat-row span.k { color: #94a3b8; }
.hero-stat-row strong.v { color: #f8fafc; font-weight: 600; text-align: right; }

/* Light Hero Variant (Tools / Trust Pages) */
.hero-light {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
}
.hero-light .hero-kicker {
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}
.hero-light h1 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 12px; }
.hero-light p.lead { font-size: 17px; color: var(--ink-muted); max-width: 740px; margin: 0; }

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
}
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item strong { display: block; color: var(--ink); font-size: 13.5px; line-height: 1.25; }
.trust-item span { color: var(--ink-subtle); font-size: 12px; }

/* Sections & Grids */
.section { padding: 52px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-dark);
  margin-bottom: 6px;
}
.section-title { font-size: clamp(23px, 2.8vw, 30px); margin: 0 0 8px; }
.section-sub { color: var(--ink-muted); margin: 0; font-size: 15.5px; max-width: 680px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* Elevated Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0 0 14px; color: var(--ink-muted); font-size: 14.5px; }

/* Brand Platform Card Header */
.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.brand-id { display: flex; align-items: center; gap: 12px; }
.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.emblem-winbox { background: linear-gradient(135deg, #0284c7, #0369a1); }
.emblem-i8 { background: linear-gradient(135deg, #059669, #065f46); }
.emblem-vworld { background: linear-gradient(135deg, #4f46e5, #312e81); }

/* SVG Radial Score Ring */
.score-ring {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.score-ring-lg { width: 84px; height: 84px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle.bg { fill: none; stroke: #e2e8f0; stroke-width: 5; }
.hero-dark .score-ring circle.bg { stroke: rgba(255, 255, 255, 0.14); }
.score-ring circle.fg {
  fill: none;
  stroke: #10b981;
  stroke-width: 5;
  stroke-linecap: round;
}
.score-ring.amber circle.fg { stroke: #f59e0b; }
.score-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
}
.score-ring-lg .score-ring-val { font-size: 22px; }
.hero-dark .score-ring-val { color: #fff; }
.score-ring-val small { font-size: 9.5px; font-weight: 600; opacity: 0.7; margin-top: 2px; }

/* Spec Pills inside Cards */
.spec-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.spec-list li span { color: var(--ink-subtle); }
.spec-list li strong { color: var(--ink); text-align: right; font-weight: 600; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.badge-green { background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid var(--emerald-border); }
.badge-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-red { background: var(--crimson-soft); color: var(--crimson); border: 1px solid var(--crimson-border); }
.badge-cobalt { background: var(--cobalt-soft); color: var(--cobalt); border: 1px solid var(--cobalt-border); }
.badge-slate { background: var(--surface-subtle); color: var(--ink-muted); border: 1px solid var(--border); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #059669 0%, #047857 100%); }
.btn-dark { background: var(--obsidian); color: #fff; }
.btn-dark:hover { background: var(--obsidian-2); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-subtle); }
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.15); }

.disclosure-micro {
  font-size: 11.5px;
  color: var(--ink-subtle);
  margin-top: 9px;
  line-height: 1.45;
}
.hero-dark .disclosure-micro { color: #94a3b8; }

/* Article Layout & Editorial Typography */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 36px 0 64px;
}
.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px 38px;
  box-shadow: var(--shadow-xs);
}
.article-main h2 {
  font-size: 24px;
  margin: 38px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 86px;
}
.article-main h2:first-of-type { margin-top: 20px; border-top: none; padding-top: 0; }
.article-main h3 { font-size: 18px; margin: 24px 0 9px; color: var(--ink); }
.article-main p { margin: 0 0 16px; color: var(--ink-body); }
.article-main ul, .article-main ol { margin: 0 0 18px; padding-left: 22px; }
.article-main li { margin-bottom: 8px; }

/* Callout Boxes */
.callout {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0;
  border: 1px solid var(--border);
  background: var(--surface-tint);
}
.callout-tldr {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-color: var(--cobalt-border);
  border-left: 4px solid var(--obsidian);
}
.callout-warn {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  border-left: 4px solid var(--amber-bright);
}
.callout-danger {
  background: var(--crimson-soft);
  border-color: var(--crimson-border);
  border-left: 4px solid var(--crimson);
}
.callout-info {
  background: var(--cobalt-soft);
  border-color: var(--cobalt-border);
  border-left: 4px solid var(--cobalt);
}
.callout-success {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  border-left: 4px solid var(--emerald);
}
.callout-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

/* Precision Data Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 20px 0 26px;
  box-shadow: var(--shadow-xs);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th, td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: #f1f5f9;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tbody tr:nth-child(even) td { background: #fafcff; }
tbody tr:hover td { background: #f1f7fe; }
tr:last-child td { border-bottom: none; }

/* Visual Comparison Bar Chart */
.bar-chart {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0;
  display: grid;
  gap: 14px;
}
.bar-row { display: grid; gap: 6px; }
.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.bar-meta span.num { font-family: var(--font-mono); font-weight: 800; }
.bar-track {
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 999px; }
.bar-green { background: linear-gradient(90deg, #10b981, #059669); }
.bar-blue { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.bar-amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
.bar-red { background: linear-gradient(90deg, #f43f5e, #be123c); }

/* Pros / Cons & Best-For / Skip-If */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.pros-box, .cons-box {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.pros-box { border-top: 3px solid var(--emerald); background: linear-gradient(180deg, #f0fdf7 0%, #ffffff 34%); }
.cons-box { border-top: 3px solid var(--crimson); background: linear-gradient(180deg, #fff5f6 0%, #ffffff 34%); }
.pros-box h3 { color: var(--emerald-dark); margin: 0 0 12px; font-size: 16px; }
.cons-box h3 { color: var(--crimson); margin: 0 0 12px; font-size: 16px; }
.pros-box ul, .cons-box ul { margin: 0; padding-left: 18px; font-size: 14.5px; }

/* Step-by-Step Testing Protocol Cards */
.protocol-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}
.protocol-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-tint);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--obsidian);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.protocol-step strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 15px; }
.protocol-step p { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* Score Breakdown Bars */
.score-grid { display: grid; gap: 14px; margin: 18px 0 24px; }
.score-row { display: grid; gap: 6px; }
.score-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.score-row-head span:last-child { font-family: var(--font-mono); }
.score-track {
  height: 9px;
  background: var(--surface-subtle);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.score-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 999px; }
.score-fill.warn { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* Sidebar */
.sidebar { position: sticky; top: 86px; display: grid; gap: 18px; }
.sidebar-dark {
  background: linear-gradient(160deg, #07111f 0%, #0f2540 100%);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.sidebar-dark h3, .sidebar-dark strong { color: #fff; }
.sidebar-dark p { color: #cbd5e1; font-size: 13.5px; margin: 0 0 14px; }
.sidebar-dark .disclosure-micro { color: #94a3b8; }

.toc-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 4px; }
.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-muted);
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.toc-list a:hover { background: var(--surface-subtle); color: var(--ink); text-decoration: none; }
.toc-list a.active {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border-left-color: var(--emerald);
  font-weight: 600;
}

/* Interactive Tools */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin: 22px 0 32px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.field small { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-subtle); }

.calc-output {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--obsidian);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.calc-stat {
  background: rgba(255, 255, 255, 0.06);
  padding: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.calc-stat .label { font-size: 11px; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.calc-stat .val { font-family: var(--font-mono); font-size: 21px; font-weight: 800; color: #ffffff; margin-top: 5px; }
.calc-stat.highlight .val { color: #34d399; }

.check-list { display: grid; gap: 10px; margin: 16px 0; }
.check-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check-item:hover { border-color: var(--border-strong); background: #fff; }
.check-item input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--crimson); flex-shrink: 0; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--obsidian); color: var(--ink); }
.filter-btn.active { background: var(--obsidian); color: #fff; border-color: var(--obsidian); }

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-tint);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-dark);
  flex-shrink: 0;
}
.faq-item[open] summary { background: #fff; border-bottom: 1px solid var(--border); }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 15px 18px; font-size: 14.5px; color: var(--ink-body); background: #fff; }
.faq-body p:last-child { margin-bottom: 0; }

/* Author & Changelog Box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 34px;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #07111f, #132c47);
  color: #34d399;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Footer */
.site-footer {
  background: #060e1a;
  color: #9fb0c7;
  padding: 56px 0 34px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 14.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #34d399; }
.footer-bottom {
  padding-top: 24px;
  font-size: 12.5px;
  color: #7b8da6;
  display: grid;
  gap: 10px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .trust-strip-grid, .grid-3, .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-main { padding: 26px 24px; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .hero-dark { padding: 38px 0 36px; }
  .section { padding: 36px 0; }
  .article-main { padding: 22px 18px; border-radius: var(--radius); }
  .trust-strip-grid, .grid-3, .grid-2, .pros-cons, .form-grid, .calc-output, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}
