* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --panel: #fffdfa;
  --ink: #201a16;
  --muted: #655f58;
  --line: rgba(32, 26, 22, 0.14);
  --accent: #1f7a55;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.deck-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.deck-topbar,
.deck-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
}

.brand-lockup,
.counter {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}

.exit-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-button,
.icon-button {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(32, 26, 22, 0.08);
  text-decoration: none;
  cursor: pointer;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  padding: 0.56rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 750;
}

.icon-button {
  width: 2.35rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.pill-button:hover,
.icon-button:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  color: var(--accent);
}

.slide-stage {
  position: relative;
  min-height: 0;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.slide {
  min-height: calc(100dvh - 10.5rem);
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 93%, transparent);
  box-shadow: 0 28px 80px rgba(32, 26, 22, 0.12);
}

.slide.is-active {
  display: grid;
  animation: slide-in 220ms ease-out;
}

.slide.is-cover {
  grid-template-columns: 1fr;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 900px;
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 9vw, 7rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.75rem);
}

.lede,
.body {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.slide-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bullets {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.5;
}

.bullets li {
  display: grid;
  grid-template-columns: 0.65rem 1fr;
  gap: 0.75rem;
}

.bullets li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.visual-card {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
    repeating-linear-gradient(0deg, rgba(32, 26, 22, 0.055) 0 1px, transparent 1px 3.1rem),
    var(--panel);
  padding: clamp(1rem, 3vw, 2rem);
}

.visual-title {
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  font-weight: 850;
  line-height: 1.05;
}

.visual-grid {
  display: grid;
  gap: 0.75rem;
}

.module {
  min-height: 3.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: rgba(255, 255, 255, 0.62);
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 780px;
}

.metric,
.comparison {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
}

.metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.45rem;
}

.metric span,
.comparison p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.progress-track {
  height: 0.32rem;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 26, 22, 0.12);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease-out;
}

.footer-actions {
  display: flex;
  gap: 0.5rem;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .deck-topbar {
    align-items: flex-start;
  }

  .brand-lockup {
    max-width: 12rem;
    line-height: 1.35;
  }

  .slide {
    min-height: calc(100dvh - 11rem);
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
  }

  .visual-card {
    min-height: 260px;
  }

  .metric-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}
