/* ── MessageLabs Pitch Page Styles ── */

/* Inherit global vars from parent, re-declare for standalone use */
:root {
  --navy: #0f1e3d;
  --navy-mid: #1a2f5a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --green: #16a34a;
  --green-dark: #14532d;
  --green-pale: #f0fdf4;
  --amber: #d97706;
  --amber-pale: #fffbeb;
  --red: #dc2626;
  --red-pale: #fef2f2;
  --purple: #7c3aed;
  --purple-pale: #f5f3ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow-card: 0 8px 24px rgba(15,30,61,0.10), 0 2px 6px rgba(15,30,61,0.06);
  --radius: 12px;
  --radius-sm: 6px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  /* vendor colours */
  --c-ml: #dc2626;
  --c-ms: #7c3aed;
  --c-mc: #16a34a;
  --c-pp: #2563eb;
}

/* ── Hero ── */
.pitch-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0f1e3d 50%, #162d55 100%);
  color: var(--white);
  padding: 5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.pitch-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pitch-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pitch-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pitch-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue-light);
  display: inline-block;
}
.pitch-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.pitch-hero h1 span { color: #60a5fa; }
.pitch-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.pitch-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pitch-meta-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── Section band helpers ── */
.section-band { padding: 4rem 2rem; }
.section-band--white { background: var(--white); }
.section-band--light { background: var(--bg); }
.section-band--navy { background: var(--navy); color: var(--white); }
.section-band--blue-pale { background: #f0f5ff; }

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner--narrow { max-width: 860px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-band--navy .section-eyebrow { color: #60a5fa; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-band--navy .section-title { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 760px;
}
.section-band--navy .section-lead { color: rgba(255,255,255,0.72); }

/* ── Stat cards / KPI cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
}
.kpi-card.danger { border-top-color: var(--red); }
.kpi-card.success { border-top-color: var(--green); }
.kpi-card.warning { border-top-color: var(--amber); }
.kpi-card.info { border-top-color: var(--purple); }
.kpi-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.kpi-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.kpi-card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ── Chart containers ── */
.chart-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.chart-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.chart-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.chart-container { position: relative; }

.chart-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1.5rem;
}

/* ── Vendor legend pills ── */
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.legend-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Risk/Pain point cards ── */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.risk-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.risk-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.risk-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.risk-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Alternatives overview cards ── */
.alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.alt-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.alt-card-header {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.alt-card-header.ms { background: var(--purple); }
.alt-card-header.mc { background: var(--green); }
.alt-card-header.pp { background: var(--blue); }
.alt-card-body { padding: 1.25rem 1.5rem; }
.alt-card-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.alt-card-body li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.alt-card-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}
.alt-card-strength {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}
.alt-card-strength.ms { background: var(--purple-pale); color: var(--purple); }
.alt-card-strength.mc { background: var(--green-pale); color: var(--green-dark); }
.alt-card-strength.pp { background: var(--blue-pale); color: #1d4ed8; }

/* ── Divider between exec and tech sections ── */
.tech-divider {
  background: linear-gradient(135deg, #0a1628 0%, #1e1b4b 100%);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.tech-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tech-divider-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.tech-divider-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}
.tech-divider h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.tech-divider p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ── Feature comparison table ── */
.feature-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
}
.feature-table th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: left;
}
.feature-table th:first-child { background: var(--bg); color: var(--text-secondary); }
.feature-table th.ml-col { background: #fef2f2; color: var(--red); }
.feature-table th.ms-col { background: var(--purple-pale); color: var(--purple); }
.feature-table th.mc-col { background: var(--green-pale); color: var(--green-dark); }
.feature-table th.pp-col { background: var(--blue-pale); color: #1d4ed8; }
.feature-table td {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
  color: var(--text-secondary);
}
.feature-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg);
  font-size: 0.825rem;
  white-space: nowrap;
}
.feature-table tr:hover td { background: #fafbfc; }
.feature-table tr:hover td:first-child { background: #f1f5f9; }

.cell-good { color: var(--green-dark) !important; font-weight: 600; }
.cell-ok { color: var(--amber) !important; }
.cell-weak { color: var(--red) !important; }

.check-yes { color: var(--green); font-size: 1.1rem; }
.check-partial { color: var(--amber); font-size: 1.1rem; }
.check-no { color: var(--red); font-size: 1.1rem; }

/* ── Info blocks ── */
.info-block {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #1e40af;
  line-height: 1.6;
}
.info-block strong { font-weight: 700; display: block; margin-bottom: 0.3rem; }
.warning-block {
  background: var(--amber-pale);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.6;
}
.warning-block strong { font-weight: 700; display: block; margin-bottom: 0.3rem; }

/* ── Tech prose ── */
.tech-section {
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.tech-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tech-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}
.tech-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.tech-section ul {
  margin: 0.5rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tech-section li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Tag grid for limitations ── */
.limitation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.limitation-tag {
  background: var(--red-pale);
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Migration steps ── */
.migration-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
}
.mig-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.mig-step:last-child { border-bottom: none; }
.mig-step-num {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.mig-step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.mig-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.mig-step-duration {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.4rem;
  display: inline-block;
}

/* ── Recommendation banner ── */
.rec-banner {
  background: linear-gradient(135deg, #052e16, #14532d);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  margin-top: 2rem;
}
.rec-banner h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.rec-banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 820px;
  margin-bottom: 1rem;
}
.rec-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ── Table of contents nav ── */
.toc-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 50;
  overflow-x: auto;
  white-space: nowrap;
}
.toc-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
}
.toc-bar a {
  display: inline-block;
  padding: 0.875rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.toc-bar a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Scrollspy active class ── */
.toc-bar a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Savings callout ── */
.savings-callout {
  background: var(--green-pale);
  border: 2px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.savings-callout-icon { font-size: 2.5rem; flex-shrink: 0; }
.savings-callout h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.savings-callout p {
  font-size: 0.875rem;
  color: #166534;
  margin: 0;
}

/* ── Availability bar chart ── */
.avail-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}
.avail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  padding-right: 0.5rem;
}
.avail-bar-bg {
  background: var(--border);
  border-radius: 999px;
  height: 24px;
  overflow: hidden;
}
.avail-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.avail-sla {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.back-link:hover { color: rgba(255,255,255,0.95); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section-band { padding: 2.5rem 1.25rem; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid-2 { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: 1fr; }
  .avail-grid { grid-template-columns: 120px 1fr auto; }
  .tech-section { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .savings-callout { flex-direction: column; text-align: center; }
  .avail-grid { grid-template-columns: 1fr; }
  .avail-label { text-align: left; }
}

/* ══════════════════════════════════════════
   DARK MODE — PITCH PAGE OVERRIDES
══════════════════════════════════════════ */

/* Hero */
[data-theme="dark"] .pitch-hero {
  background: linear-gradient(135deg, #020812 0%, #050e22 50%, #0a1635 100%);
}

/* TOC bar */
[data-theme="dark"] .toc-bar {
  background: var(--white);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .toc-bar a { color: var(--text-muted); }
[data-theme="dark"] .toc-bar a:hover,
[data-theme="dark"] .toc-bar a.active { color: #60a5fa; border-bottom-color: #60a5fa; }

/* Section bands with hardcoded backgrounds */
[data-theme="dark"] .section-band--blue-pale { background: #131e35; }

/* KPI cards */
[data-theme="dark"] .kpi-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .kpi-card-value { color: var(--text-primary); }

/* Chart wrappers */
[data-theme="dark"] .chart-wrap {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .chart-wrap h3 { color: var(--text-primary); }

/* Savings callout */
[data-theme="dark"] .savings-callout {
  background: rgba(22,163,74,0.12);
  border-color: rgba(22,163,74,0.3);
}
[data-theme="dark"] .savings-callout h4 { color: #4ade80; }
[data-theme="dark"] .savings-callout p { color: #86efac; }

/* Info / warning blocks */
[data-theme="dark"] .info-block {
  background: rgba(37,99,235,0.15);
  border-left-color: #3b82f6;
  color: #93c5fd;
}
[data-theme="dark"] .info-block strong { color: #bfdbfe; }
[data-theme="dark"] .warning-block {
  background: rgba(217,119,6,0.15);
  border-left-color: #f59e0b;
  color: #fcd34d;
}
[data-theme="dark"] .warning-block strong { color: #fde68a; }

/* Risk cards */
[data-theme="dark"] .risk-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .risk-card h4 { color: var(--text-primary); }

/* Alternatives cards */
[data-theme="dark"] .alt-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .alt-card-body li { color: var(--text-secondary); }
[data-theme="dark"] .alt-card-strength.ms { background: rgba(124,58,237,0.2); color: #c4b5fd; }
[data-theme="dark"] .alt-card-strength.mc { background: rgba(22,163,74,0.18); color: #86efac; }
[data-theme="dark"] .alt-card-strength.pp { background: rgba(37,99,235,0.2); color: #93c5fd; }

/* Availability bar tracks */
[data-theme="dark"] .avail-track-red   { background: rgba(220,38,38,0.2) !important; }
[data-theme="dark"] .avail-track-purple { background: rgba(124,58,237,0.2) !important; }
[data-theme="dark"] .avail-track-green { background: rgba(22,163,74,0.2) !important; }
[data-theme="dark"] .avail-track-blue  { background: rgba(37,99,235,0.2) !important; }

/* Feature table */
[data-theme="dark"] .feature-table-wrap { border-color: var(--border); }
[data-theme="dark"] .feature-table { background: var(--white); }
[data-theme="dark"] .feature-table th:first-child { background: #111827; color: var(--text-secondary); }
[data-theme="dark"] .feature-table th.ml-col { background: rgba(220,38,38,0.2); color: #fca5a5; }
[data-theme="dark"] .feature-table th.ms-col { background: rgba(124,58,237,0.2); color: #c4b5fd; }
[data-theme="dark"] .feature-table th.mc-col { background: rgba(22,163,74,0.2); color: #86efac; }
[data-theme="dark"] .feature-table th.pp-col { background: rgba(37,99,235,0.2); color: #93c5fd; }
[data-theme="dark"] .feature-table td { color: var(--text-secondary); border-top-color: var(--border); }
[data-theme="dark"] .feature-table td:first-child { background: #111827; color: var(--text-primary); }
[data-theme="dark"] .feature-table tr:hover td { background: #263450; }
[data-theme="dark"] .feature-table tr:hover td:first-child { background: #1e2d47; }
[data-theme="dark"] .cell-good { color: #4ade80 !important; }
[data-theme="dark"] .cell-ok { color: #fbbf24 !important; }
[data-theme="dark"] .cell-weak { color: #f87171 !important; }

/* Tech sections */
[data-theme="dark"] .tech-section { background: #161f30; border-color: var(--border); }
[data-theme="dark"] .tech-section h3 { color: var(--text-primary); border-bottom-color: var(--border); }
[data-theme="dark"] .tech-section h4 { color: var(--text-primary); }
[data-theme="dark"] .tech-section p { color: var(--text-secondary); }
[data-theme="dark"] .tech-section li { color: var(--text-secondary); }

/* Limitation tags */
[data-theme="dark"] .limitation-tag {
  background: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.3);
  color: #fca5a5;
}

/* Migration steps */
[data-theme="dark"] .mig-step { border-bottom-color: var(--border); }
[data-theme="dark"] .mig-step-content h4 { color: var(--text-primary); }
[data-theme="dark"] .mig-step-content p { color: var(--text-secondary); }

/* Recommendation suitability cards */
[data-theme="dark"] .rec-suitability-ms {
  background: rgba(124,58,237,0.15) !important;
  border-color: rgba(124,58,237,0.3) !important;
}
[data-theme="dark"] .rec-suitability-ms p { color: #c4b5fd !important; }
[data-theme="dark"] .rec-suitability-mc {
  background: rgba(22,163,74,0.12) !important;
  border-color: rgba(22,163,74,0.25) !important;
}
[data-theme="dark"] .rec-suitability-mc p { color: #86efac !important; }
[data-theme="dark"] .rec-suitability-pp {
  background: rgba(37,99,235,0.15) !important;
  border-color: rgba(37,99,235,0.3) !important;
}
[data-theme="dark"] .rec-suitability-pp p { color: #93c5fd !important; }

/* Section leads, eyebrows in light sections */
[data-theme="dark"] .section-title { color: var(--text-primary); }
[data-theme="dark"] .section-lead { color: var(--text-secondary); }
[data-theme="dark"] .section-eyebrow { color: #60a5fa; }

/* ══════════════════════════════════════════
   DARK MODE — BASE VARIABLE OVERRIDES
   (must come after :root re-declarations above)
══════════════════════════════════════════ */
[data-theme="dark"] {
  --navy: #070d1a;
  --navy-mid: #0d1730;
  --bg: #111827;
  --white: #1f2937;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --blue-pale: rgba(37,99,235,0.2);
  --green-pale: rgba(22,163,74,0.18);
  --amber-pale: rgba(217,119,6,0.18);
  --red-pale: rgba(220,38,38,0.18);
  --purple-pale: rgba(124,58,237,0.2);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.4);
}
