:root {
  /* Brand */
  --brand-primary: #1d4ed8;
  --brand-primary-hover: #2563eb;
  --brand-primary-deep: #1e40af;
  --brand-primary-light: #60a5fa;
  --brand-primary-tint-1: #93c5fd;
  --brand-primary-tint-2: #bfdbfe;

  /* Ink */
  --ink: #212932;
  --ink-body: #475569;
  --ink-muted: #64748b;
  --ink-tertiary: #94a3b8;

  /* Lines */
  --line: #cbd5e1;
  --line-soft: #e2e8f0;

  /* Surfaces */
  --surface-card: #f1f5f9;
  --surface-page: #f8fafc;
  --surface-tint: #eff6ff;
  --surface-white: #ffffff;

  /* Status */
  --success: #10b981;
  --warning-bg: #fef9d7;
  --warning-border: #fcd34d;
  --warning-ink: #b45309;

  /* Type */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 100px;

  /* Elevation */
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-cta: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* Dark theme — toggled by the moon/sun button in the nav pill (persisted in
   localStorage as clv-deck-theme). Pure token swap: components inherit through
   the custom properties. The class lives on <html> because charts.js reads
   token colors from documentElement at chart init. */
html.theme-dark {
  color-scheme: dark;

  --ink: #f1f5f9;
  --ink-body: #cbd5e1;
  --ink-muted: #94a3b8;
  --ink-tertiary: #64748b;

  --line: #334155;
  --line-soft: #1e293b;

  --surface-card: #131f36;
  --surface-page: #070d1a;
  --surface-tint: #152238;
  --surface-white: #0b1220;

  --warning-bg: #271d06;
  --warning-border: #a16207;
  --warning-ink: #fbbf24;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--ink);
  overflow: hidden;
  line-height: 1.6;
  font-weight: 400;
  height: 100vh;
}

.presentation-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px 120px 40px;
  position: relative;
  overflow-y: auto;
}

.slide {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-2xl);
  padding: 56px 64px;
  box-shadow: var(--shadow-card);
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: calc(100vh - 200px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide.active { opacity: 1; transform: translateY(0); }

.slide-number {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--brand-primary);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
}

/* Typography */
.slide__eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.slide h1 {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}

.slide h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.slide h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.slide h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.slide__deck,
.deck {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 65ch;
  margin-bottom: 32px;
}

.tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--ink-body);
  font-weight: 400;
  max-width: 60ch;
  margin-bottom: 32px;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--brand-primary-hover); text-decoration: underline; }

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.4;
  margin-bottom: 8px;
}

.stat-source {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.stat-source a { color: var(--ink-muted); text-decoration: underline; }
.stat-source a:hover { color: var(--brand-primary); }

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.feature-card--accent { border-top: 3px solid var(--brand-primary); }
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line);
}

.icon-chip {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.icon-chip svg { width: 20px; height: 20px; stroke-width: 2; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.feature-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-body);
}

/* How-it-works horizontal flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  margin-bottom: 24px;
}
.flow__step {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}
.flow__step::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--line);
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 2;
}
.flow__step:last-child::after { content: none; }
.flow__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* AI operator diagram */
.ai-diagram {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}
.ai-diagram__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ai-diagram__row:last-child { margin-bottom: 0; }
.ai-diagram__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--ink-muted);
  min-width: 90px;
}
.ai-diagram__bar {
  flex: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-pill {
  background: var(--surface-tint);
  color: var(--brand-primary);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.ai-pill--solid { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.ai-pill--gate { background: var(--warning-bg); color: var(--warning-ink); border-color: var(--warning-border); }

/* Solution layer-stack */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.layer-stack__band {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}
.layer-stack__band:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: var(--surface-tint);
  z-index: 1;
}
.layer-stack__band-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.layer-stack__band-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.layer-stack__band-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Traction app grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.app-tile {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-tile__badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}
.app-tile__category {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric-chip {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.metric-chip__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-chip__label {
  font-size: 0.8rem;
  color: var(--ink-body);
  line-height: 1.3;
}

/* Pull-quote */
.pull-quote-slide {
  text-align: center;
  padding: 0 4vw;
}
.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 auto 32px;
  max-width: 24ch;
}
.pull-quote__mark {
  color: var(--brand-primary);
  font-size: 1.2em;
  line-height: 0;
  margin-right: 0.05em;
}
.pull-quote__attrib {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-body);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  display: inline-block;
}

/* Stat-trio */
.stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 32px;
  align-items: start;
}
.stat-trio__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-trio__lab {
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.4;
  max-width: 18ch;
}

/* CTA button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta-button:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.32);
  color: white;
  text-decoration: none;
}
.cta-button svg { width: 16px; height: 16px; stroke-width: 2; }

/* Funding allocation: Chart.js wrapper */
.fund-chart {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  height: 90px;
  position: relative;
}
.fund-chart canvas { max-height: 56px; }
.fund-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-body);
}
.fund-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fund-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Closing slide layout */
.ask-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.ask-grid__col h3 { margin-bottom: 14px; }

/* Team / founder cards */
.team-member { margin-bottom: 16px; }
.team-member:last-child { margin-bottom: 0; }
.founder-card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.founder-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.founder-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.founder-card__role {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.founder-card__contact {
  font-size: 0.85rem;
  color: var(--ink-body);
  line-height: 1.5;
}
.founder-card__bio {
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.5;
  margin: 0 0 4px 4px;
}

/* Advisor card (compact) */
.advisor-card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.advisor-card:last-child { margin-bottom: 0; }
.advisor-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.advisor-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}
.advisor-card__role {
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 6px;
}
.advisor-card__bio {
  font-size: 0.8rem;
  color: var(--ink-body);
  line-height: 1.45;
}

/* Title slide hero */
.hero-section {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 280px);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-wordmark {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero-subtagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink-body);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: 36px;
}
.hero-footer {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-family: var(--font-body);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-footer a { color: var(--ink-body); }

/* Matrix / competition table */
.competitive-matrix {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-white);
  font-family: var(--font-body);
}
.matrix-table th, .matrix-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
}
.matrix-table th {
  background: var(--surface-card);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
}
.matrix-table th:first-child, .matrix-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink-body);
  background: var(--surface-page);
  min-width: 280px;
}
.matrix-table .us {
  background: var(--surface-tint);
  font-weight: 700;
}
.matrix-table tr:last-child td { border-bottom: none; }
.check-mark { color: var(--success); font-size: 1.1rem; font-weight: 700; }
.x-mark { color: #dc2626; font-size: 1rem; font-weight: 700; }

/* Chart container (generic wrapper for Chart.js canvases) */
.chart-container {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  max-width: 100%;
  height: 280px;
  position: relative;
}

/* Navigation */
.navigation-controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-white);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  z-index: 1000;
}
.nav-button {
  background: var(--brand-primary);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-button:hover { background: var(--brand-primary-hover); transform: scale(1.05); }
.nav-button:disabled { background: var(--ink-tertiary); cursor: not-allowed; transform: none; }

.slide-indicators { display: flex; gap: 6px; }
.indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.indicator.active { background: var(--brand-primary); transform: scale(1.3); }

.slide-counter {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}

.arrow-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-body);
  font-size: 14px;
  z-index: 1000;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  opacity: 0.85;
}
.arrow-nav:hover { background: var(--brand-primary); color: white; opacity: 1; }
.arrow-nav.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.arrow-prev { left: 24px; }
.arrow-next { right: 24px; }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--line-soft);
  z-index: 1000;
}
.progress-fill {
  height: 100%;
  background: var(--brand-primary);
  transition: width 0.3s ease;
  width: 0%;
}

.help-text {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--surface-white);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--ink-muted);
  border: 1px solid var(--line-soft);
  font-family: var(--font-body);
  z-index: 1000;
}

.download-pdf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-white);
  color: var(--ink-body);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  z-index: 1000;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.download-pdf:hover { background: var(--brand-primary); color: white; border-color: var(--brand-primary); transform: translateY(-1px); }
.download-pdf i { width: 14px; height: 14px; }

/* Theme toggle (inside the nav pill) */
.theme-toggle {
  background: var(--surface-tint);
  color: var(--brand-primary);
  border: 1px solid var(--line);
}
.theme-toggle:hover { background: var(--brand-primary); color: white; }
.theme-toggle svg { width: 16px; height: 16px; stroke-width: 2; }

/* Dark theme: brand-blue foregrounds need the lighter blue on dark surfaces.
   Solid fills (buttons, badges, avatars, gate/solid pills) keep the deep blue. */
html.theme-dark .eyebrow,
html.theme-dark a,
html.theme-dark .stat-number,
html.theme-dark .icon-chip,
html.theme-dark .metric-chip__num,
html.theme-dark .ai-pill:not(.ai-pill--solid):not(.ai-pill--gate),
html.theme-dark .app-tile__badge,
html.theme-dark .advisor-card__avatar,
html.theme-dark .founder-card__role,
html.theme-dark .advisor-card__role,
html.theme-dark .theme-toggle,
html.theme-dark .stat-trio__big,
html.theme-dark .pull-quote__mark,
html.theme-dark .hero-tagline {
  color: var(--brand-primary-light);
}
html.theme-dark .theme-toggle:hover,
html.theme-dark a.cta-button { color: white; }
html.theme-dark .stat-source a { color: var(--ink-muted); }
html.theme-dark .x-mark { color: #f87171; }

@media (max-width: 768px) {
  .slide-container { padding: 16px; padding-bottom: 100px; }
  .slide { padding: 32px 22px; min-height: calc(100vh - 160px); border-radius: var(--radius-lg); }
  .slide h1 { font-size: 2.4rem; }
  .slide h2 { font-size: 1.9rem; }
  .slide h3 { font-size: 1.2rem; }
  .hero-wordmark { font-size: 3.4rem; }
  .hero-tagline { font-size: 1.4rem; }
  .pull-quote { font-size: 1.8rem; }
  .stat-trio { grid-template-columns: 1fr; gap: 24px; }
  .stat-trio__big { font-size: 3.2rem; }
  .stats-grid, .feature-grid, .feature-grid-2x2, .feature-grid-3, .flow, .app-grid, .metric-row, .ask-grid { grid-template-columns: 1fr; }
  .flow__step::after { content: none; }
  .ai-diagram__row { flex-direction: column; align-items: stretch; }
  .ai-diagram__tag { min-width: 0; }
  .navigation-controls { bottom: 14px; padding: 8px 14px; gap: 10px; }
  .arrow-prev { left: 12px; }
  .arrow-next { right: 12px; }
  .arrow-nav { width: 38px; height: 38px; }
  .help-text { display: none; }
  .download-pdf { bottom: 64px; right: 12px; padding: 8px 10px; }
  .download-pdf__label { display: none; }
}
