:root {
  --bg: #070a10;
  --bg-alt: #0c121e;
  --bg-card: #111929;
  --bg-elev: #162136;
  --ink: #f4f7ff;
  --ink-muted: #9aa9c7;
  --emerald: #10f5a0;
  --emerald-ink: #04130d;
  --cyan: #22d3ee;
  --gold: #ffd400;
  --danger: #ff4d6d;
  --border: #22304c;
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(16, 245, 160, 0.13), transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(34, 211, 238, 0.12), transparent 38%),
    var(--bg);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--emerald);
  color: var(--emerald-ink);
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  pointer-events: none;
}

.skip-link:focus {
  top: 14px;
  pointer-events: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 16, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: var(--emerald-ink);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nav-chip:hover,
.nav-chip:focus-visible {
  background: var(--bg-card);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--emerald);
  color: var(--emerald-ink);
  border-color: var(--emerald);
  box-shadow: 0 6px 22px rgba(16, 245, 160, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(16, 245, 160, 0.36);
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: rgba(16, 245, 160, 0.65);
}

.btn-outline:hover {
  background: rgba(16, 245, 160, 0.1);
}

.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
}

.btn-lg {
  min-height: 52px;
  padding: 13px 22px;
  font-size: 0.98rem;
}

.btn-sm {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero-cockpit {
  padding: 52px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.kicker-chip,
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--emerald);
}

.kicker-chip {
  padding: 6px 12px;
  background: rgba(16, 245, 160, 0.11);
  border: 1px solid rgba(16, 245, 160, 0.45);
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.95rem, 5.4vw, 3.85rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.text-emerald {
  color: var(--emerald);
}

.hero-lead {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: clamp(0.98rem, 2vw, 1.14rem);
  max-width: 62ch;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.kpi-box {
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kpi-emerald {
  border-color: var(--emerald);
  background: linear-gradient(155deg, rgba(16, 245, 160, 0.15), var(--bg-card));
}

.kpi-cyan {
  border-color: var(--cyan);
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.14), var(--bg-card));
}

.kpi-gold {
  border-color: rgba(255, 212, 0, 0.65);
  background: linear-gradient(155deg, rgba(255, 212, 0, 0.13), var(--bg-card));
}

.kpi-num {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
}

.kpi-emerald .kpi-num { color: var(--emerald); }
.kpi-cyan .kpi-num { color: var(--cyan); }
.kpi-gold .kpi-num { color: var(--gold); }

.kpi-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.kpi-box small {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Sections */
.section-band {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 3.8vw, 2.45rem);
  font-weight: 900;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* Calculator */
.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.calc-controls-card,
.calc-results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.calc-results-card {
  border: 2px solid var(--emerald);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.control-group label,
.field-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.control-group input:not([type="range"]),
.control-group select,
#chapter-email,
#reservation-email {
  min-height: 46px;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

input[type="range"] {
  min-height: 44px;
  width: 100%;
  accent-color: var(--emerald);
  cursor: pointer;
}

.control-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.result-big {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  font-weight: 900;
  color: var(--emerald);
  line-height: 1.05;
  margin: 8px 0 6px;
}

.result-big.is-negative {
  color: var(--danger);
}

.result-sub {
  margin: 0;
  color: var(--ink-muted);
}

.result-metrics-grid,
.dossier-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat {
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-stat span {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.mini-stat strong {
  font-size: 1.15rem;
  color: var(--ink);
}

.mini-stat small {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* Comparator */
.compare-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.compare-picker {
  flex: 1 1 280px;
  margin-bottom: 0;
}

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

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.compare-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.compare-rows {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.compare-rows div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Chapter Capture */
.chapter-capture-card {
  background: linear-gradient(145deg, rgba(16, 245, 160, 0.1), var(--bg-card));
  border: 2px solid var(--emerald);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
}

.chapter-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
}

.chapter-copy p {
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.field-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.field-row input {
  flex: 1 1 220px;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.form-status[data-state="success"] { color: var(--emerald); }
.form-status[data-state="error"] { color: var(--danger); }

/* Finder Grid */
.finder-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.finder-controls .control-group {
  margin-bottom: 0;
}

.finder-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.count-pill {
  padding: 8px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
}

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

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.model-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.model-card-head,
.dossier-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vol-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 9px;
  background: var(--emerald);
  color: var(--emerald-ink);
  border-radius: 6px;
}

.cat-badge {
  font-size: 0.75rem;
  color: var(--ink-muted);
  flex: 1;
}

.score-badge {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.05rem;
}

.model-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.24;
}

.model-title a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  padding-top: 6px;
}

.model-title a:hover {
  color: var(--emerald);
}

.model-summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.subscore-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.subscore-row span {
  padding: 3px 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-muted);
}

.subscore-row b {
  color: var(--cyan);
}

.model-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: var(--bg-elev);
  border-radius: 10px;
}

.model-facts div {
  display: flex;
  flex-direction: column;
}

.model-facts strong { font-size: 0.88rem; }
.model-facts span { font-size: 0.72rem; color: var(--ink-muted); }

.model-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-actions > * {
  flex: 1 1 auto;
}

/* Volume Dossier & Reader */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.breadcrumb-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--emerald);
  text-decoration: none;
  font-weight: 700;
}

.dossier-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.dossier-title {
  margin: 10px 0 14px;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.08;
}

.scorecard-panel {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 24px;
}

.scorecard-giant {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin: 6px 0 18px;
}

.scorecard-giant small {
  font-size: 1.2rem;
  color: var(--ink-muted);
}

.dim-list {
  display: grid;
  gap: 12px;
}

.dim-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.dim-track {
  height: 9px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.dossier-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dossier-ch-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.dossier-ch-item {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 10px;
}

.ch-num {
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--emerald);
}

.yt-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.yt-link-card {
  min-height: 50px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.yt-link-card:hover {
  border-color: var(--cyan);
}

.yt-play {
  color: var(--emerald);
  font-weight: 900;
}

.yt-link-card small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.teaser-quote {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--bg);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  color: var(--ink);
  font-style: italic;
}

.reader-shell {
  max-width: 920px;
}

.exec-summary-box {
  padding: 18px;
  background: var(--bg-card);
  border-left: 4px solid var(--emerald);
  border-radius: 10px;
  margin: 16px 0 22px;
}

.reader-body {
  margin: 24px 0;
  display: grid;
  gap: 18px;
}

.reader-para {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
}

.reader-checklist ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.reader-checklist li {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.reader-upsell-card {
  margin-top: 34px;
  padding: 26px;
  background: var(--bg-card);
  border: 2px solid var(--emerald);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer & Modal */
.site-footer {
  padding: 36px 0;
  background: var(--bg-alt);
}

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

.footer-sub {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  max-width: 60ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.modal-dialog {
  max-width: 520px;
  width: calc(100% - 24px);
  padding: 0;
  border: 2px solid var(--emerald);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--ink);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.modal-surface { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 6px 0 0; font-size: 1.35rem; }
.icon-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.modal-lead { color: var(--ink-muted); margin: 12px 0 18px; }
.modal-foot { margin-top: 16px; display: flex; justify-content: flex-end; }

@media (max-width: 1060px) {
  .hero-grid,
  .calc-layout,
  .chapter-capture-card,
  .dossier-hero,
  .dossier-two-col {
    grid-template-columns: 1fr;
  }
  .models-grid,
  .compare-grid,
  .finder-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell { padding: 0 14px; }
  .kpi-grid,
  .control-grid-2,
  .result-metrics-grid,
  .dossier-kpis,
  .models-grid,
  .compare-grid,
  .finder-controls {
    grid-template-columns: 1fr;
  }
  .chapter-capture-card { padding: 18px; }
  .header-cta { width: 100%; }
  .header-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
