:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #edf1f5;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #526071;
  --line: #d4dce6;
  --line-strong: #b8c4d4;
  --accent: #0d5c4d;
  --accent-hover: #09453a;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ef;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
[hidden] { display: none !important; }
h2[id], section[id] { scroll-margin-top: 5.2rem; }
.num { font-variant-numeric: tabular-nums; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Header & Responsive Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 64px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 7px 10px; border-radius: 7px; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent); background: var(--surface-2);
}
.site-nav a.nav-cta {
  background: var(--accent); color: #fff; margin-left: 4px; padding: 7px 13px;
}
.site-nav a.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none; cursor: pointer; padding: 7px 12px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.88rem;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, 90vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 60;
}
.mobile-menu-panel a {
  padding: 9px 12px; border-radius: 7px; text-decoration: none; font-weight: 600; color: var(--ink);
}
.mobile-menu-panel a:hover { background: var(--surface-2); color: var(--accent); }
@media (max-width: 960px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; }
}

.ftc-top-notice {
  margin: 14px 0 0; padding: 8px 14px; font-size: 0.82rem;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.ftc-top-notice a { font-weight: 600; }

.breadcrumb {
  margin: 16px 0 8px; font-size: 0.84rem; color: var(--muted);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.page-header { padding: 16px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.38rem; font-weight: 700; }
.lead { font-size: 1.03rem; color: var(--ink-2); max-width: 72ch; margin: 0 0 14px; }

/* Hero & Telemetry Tiles */
.hero-panel {
  margin-top: 16px; padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: center;
}
@media (max-width: 860px) { .hero-panel { grid-template-columns: 1fr; padding: 20px; } }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-tile {
  padding: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.stat-tile strong { display: block; font-size: 1.5rem; font-family: var(--font-display); color: var(--ink); }
.stat-tile span { font-size: 0.82rem; color: var(--muted); }

/* Live Video Proof Strip */
.proof-strip {
  margin-top: 18px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.proof-strip-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
}
.proof-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.proof-example-card {
  padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.proof-example-model { font-weight: 700; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.proof-example-model:hover { color: var(--accent); text-decoration: underline; }
.proof-example-val { font-size: 0.84rem; color: var(--muted); }
.proof-example-val strong { color: var(--ink); }

.versus-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-ink, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all 0.14s ease;
}
.btn-ink { background: var(--accent); color: var(--accent-ink); }
.btn-ink:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.page-section { margin: 30px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.section-sub { color: var(--muted); margin: 0 0 14px; max-width: 74ch; }

/* Cards & Grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 15px; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.leader-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.podium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }

.unit-card, .kit-card, .guide-card, .matchup-row, .safety-card, .scenario-card, .leader-card, .podium-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-sm);
  transition: border-color 0.14s ease, transform 0.14s ease;
}
.unit-card:hover, .guide-card:hover, .matchup-row:hover, .scenario-card:hover {
  border-color: var(--accent);
}
.podium-card--first { border-color: var(--accent); box-shadow: var(--shadow-md); }

.unit-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.unit-card-price { text-align: right; white-space: nowrap; }
.unit-card-price strong { display: block; font-size: 1.08rem; }
.unit-card-price span { font-size: 0.76rem; color: var(--muted); }
.unit-card h3, .kit-title { font-size: 1.06rem; margin: 0; }
.unit-card h3 a, .guide-card h3 a, .matchup-row h3 a { color: var(--ink); text-decoration: none; }
.unit-card h3 a:hover, .guide-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.unit-card-summary { font-size: 0.88rem; color: var(--ink-2); margin: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 5px; }
.cap-pill {
  font-size: 0.71rem; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.cap-pill--accent { background: var(--accent-soft); color: var(--accent); border-color: #b2dfd5; }
.cap-pill--warn { background: var(--warn-bg); color: #92400e; border-color: #fcd34d; }

.unit-specs-mini {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  font-size: 0.83rem; margin: 0; padding: 10px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.unit-specs-mini dt { color: var(--muted); font-size: 0.74rem; }
.unit-specs-mini dd { margin: 0; font-weight: 600; color: var(--ink); }

.jump-nav {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 10px 14px; margin: 18px 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
}
.jump-nav a {
  font-size: 0.84rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 5px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
}
.jump-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* SKU & Compare Heroes */
.sku-hero { display: grid; grid-template-columns: 1.75fr 1fr; gap: 20px; margin-top: 12px; align-items: start; }
@media (max-width: 880px) { .sku-hero { grid-template-columns: 1fr; } }
.sku-hero-main, .buy-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.quick-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin: 16px 0 0; }
.quick-spec-tile { padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.qs-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.qs-val { margin: 4px 0 0; font-weight: 700; font-size: 0.98rem; }

.buy-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.buy-price { font-size: 1.85rem; font-weight: 800; font-family: var(--font-display); }
.buy-merchant-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.buy-merchant-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem;
}
.buy-merchant-row:hover { border-color: var(--accent); color: var(--accent); }
.buy-merchant-row--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.buy-merchant-row--primary:hover { background: var(--accent-hover); color: #fff; }
.other-stockists { margin-top: 10px; font-size: 0.84rem; }
.other-stockists summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.disclosure-mini { font-size: 0.78rem; color: var(--muted); margin: 12px 0 0; }

/* Compare Duel Stage */
.versus-hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; box-shadow: var(--shadow-sm); margin-top: 12px;
}
.versus-duel {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 18px 0;
}
@media (max-width: 780px) { .versus-duel { grid-template-columns: 1fr; } .versus-sep { display: none; } }
.versus-fighter {
  padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.versus-sep {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--muted); padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
}
.versus-name { font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.versus-name:hover { color: var(--accent); text-decoration: underline; }
.tradeoff-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tradeoff-cell { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; }

.share-md-box { margin-top: 14px; font-size: 0.86rem; }
.share-md-box summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.share-md-textarea {
  width: 100%; margin-top: 8px; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}

/* Spec & Runtime Tables */
.table-scroll {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
.spec-table th, .spec-table td {
  padding: 10px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.spec-table thead th {
  background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2);
}
.spec-table tbody th { font-weight: 600; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.winner-cell { background: var(--accent-soft); font-weight: 700; color: #064e3b; }

.trust-chip {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; background: var(--surface-2);
  color: var(--accent); text-decoration: none; margin: 2px 3px 2px 0; border: 1px solid var(--line);
}
.trust-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.alert-banner, .finder-alert {
  padding: 11px 14px; border-radius: 8px; font-size: 0.87rem; margin: 12px 0; border: 1px solid;
}
.alert-banner--warn, .finder-alert--warn { background: var(--warn-bg); border-color: #f59e0b; color: #78350f; }
.alert-banner--danger, .finder-alert--fail { background: var(--danger-bg); border-color: #ef4444; color: #7f1d1d; }
.alert-banner--info { background: var(--accent-soft); border-color: var(--accent); color: #064e3b; }

/* Interactive Finder & Workbench */
.finder-shell, .workbench-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.finder-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; margin-bottom: 14px; }
.finder-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.finder-field input, .finder-field select, .wb-controls input, .wb-controls select, .matchup-filter-bar input, .matchup-filter-bar select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 0.92rem; background: var(--surface); color: var(--ink);
}
.finder-field input, .finder-field select { width: 100%; }
.finder-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.preset-btn, .wb-tab {
  padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 0.83rem; font-weight: 600; cursor: pointer;
}
.preset-btn:hover, .wb-tab:hover { border-color: var(--accent); color: var(--accent); }
.wb-tab[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.finder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.finder-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.finder-card--fail { border-color: #fca5a5; background: #fff8f8; }
.finder-card--warn { border-color: #fcd34d; }
.finder-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.finder-badge, .kit-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; margin-bottom: 4px;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.kit-badge { background: var(--accent-soft); color: var(--accent); }
.finder-metrics { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; font-size: 0.85rem; }
.finder-metrics div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 5px; }
.finder-metrics dt { color: var(--muted); }
.finder-metrics dd { margin: 0; text-align: right; }

.wb-controls, .matchup-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.wb-remove { border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.matchup-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.matchup-row { text-decoration: none; color: inherit; }
.matchup-head { display: flex; justify-content: space-between; font-size: 0.79rem; color: var(--muted); }

/* Prose, Brand Telemetry, FAQs */
.prose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.prose-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.prose-card ul { margin: 8px 0 0; padding-left: 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); }
.faq-item p { margin: 10px 0 0; color: var(--ink-2); }

/* 4-Column Semantic Footer */
.site-footer {
  margin-top: 52px; padding: 36px 0 28px; background: #0f172a; color: #e2e8f0; border-top: 1px solid #1e293b;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 { font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.87rem; }
.footer-col a { color: #e2e8f0; text-decoration: none; }
.footer-col a:hover { color: #5eead4; text-decoration: underline; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.08rem; color: #fff; text-decoration: none; margin-bottom: 8px; }
.footer-tagline { font-size: 0.86rem; color: #94a3b8; margin: 0; max-width: 34ch; }
.footer-disclosure { font-size: 0.8rem; color: #94a3b8; margin: 0; padding-top: 18px; border-top: 1px solid #1e293b; }
.footer-disclosure a { color: #5eead4; }
