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

:root {
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --mute-line: #a8a29e;
  --bg: #fff;
  --accent: #1c1917;
  --max: 800px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

main {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* ---------- slide layout ---------- */

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.slide.active {
  display: flex;
  opacity: 1;
}

.slide-inner {
  width: 100%;
  max-width: var(--max);
  text-align: center;
}

/* ---------- typography ---------- */

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.big-quote {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.insight {
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.small-note {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--muted);
}

/* ---------- slide 1 (title) ---------- */

.logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 32px;
  margin: 0 auto 2rem;
  display: block;
}

@media (min-width: 768px) {
  .logo {
    width: 200px;
  }
}

.tagline {
  color: var(--muted);
  font-size: clamp(1rem, 1.75vw, 1.15rem);
  margin-bottom: 2rem;
}

.byline {
  color: var(--mute-line);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ---------- slide 4 (symptoms list) ---------- */

.symptoms {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.symptoms p {
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  color: var(--muted);
}

/* ---------- slide 5 (pivot) ---------- */

.pivot-line {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pivot-conclusion {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

/* ---------- slide 6 / 13 (stat) ---------- */

.big-number {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 1rem;
}

.big-number-sub {
  font-size: clamp(1rem, 1.75vw, 1.15rem);
  color: var(--muted);
}

/* ---------- slide 7 (two stats) ---------- */

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.stat .big-number {
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 0.95rem;
  color: var(--muted);
}

.summary {
  font-size: clamp(1.1rem, 2.25vw, 1.35rem);
  color: var(--ink);
  font-weight: 500;
  margin-top: 1rem;
}

.competitor-note {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--muted);
  margin-top: 1.25rem;
  line-height: 1.5;
}

.competitor-note strong {
  color: var(--ink);
}

.market-header {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  text-align: center;
}

.market-mirror {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}

.market-col {
  text-align: center;
}

.market-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.market-hero {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.market-hero-label {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.market-subs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.market-sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.market-sub-num {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.market-sub-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.source {
  font-size: 0.75rem;
  color: var(--mute-line);
  margin-top: 3rem;
  line-height: 1.5;
}

.source em {
  font-style: italic;
}

/* ---------- slide 9 (3 steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ---------- slide 10 (theme map) ---------- */

.theme-growth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.phase svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  color: var(--ink);
}

.phase p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.caption {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink);
  font-weight: 500;
}

/* ---------- slide 11 (channels) ---------- */

.traction-header {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2rem;
}

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.channels.channels-quad {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.channel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.channel h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.channel p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.plus {
  font-size: 0.9rem;
  color: var(--mute-line);
}

/* ---------- slide 12 (pricing) ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pricing-note {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pricing-note.pricing-subnote {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.tier {
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.tier.featured {
  border-color: var(--ink);
}

.price {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tier p {
  font-size: 0.9rem;
  color: var(--muted);
}

.tier .tier-margin {
  font-size: 0.75rem;
  color: var(--mute-line);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

.unit-econ {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.unit-econ p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.unit-econ strong {
  color: var(--ink);
}

/* ---------- slide 13 (why now forces) ---------- */

.forces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.force {
  text-align: center;
}

.force-metric {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.force p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.canada-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.canada-note strong {
  color: var(--ink);
}

/* ---------- slide 14 (team + ask) ---------- */

.team {
  margin-bottom: 2rem;
}

.team h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.bio-placeholder {
  color: var(--mute-line);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.ask {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.ask h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.ask .stack {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.ask .milestones {
  font-size: 0.85rem;
  color: var(--mute-line);
  line-height: 1.6;
}

.ask-tagline {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- slide 15 (close) ---------- */

.closing-line {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2rem;
}

.contact {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--muted);
}

/* ---------- chrome (progress, counter, help) ---------- */

.chrome {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--mute-line);
  z-index: 10;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ink);
  width: 0;
  transition: width 200ms ease-out;
}

.counter {
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
}

.help {
  display: none;
}

.help-touch {
  display: block;
}

@media (min-width: 768px) {
  .help {
    display: block;
  }
  .help-touch {
    display: none;
  }
}

/* ---------- overview mode ---------- */

body.overview-mode {
  overflow: auto;
}

body.overview-mode main {
  height: auto;
  min-height: 100vh;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100vw;
}

body.overview-mode .slide {
  position: relative;
  inset: auto;
  display: flex;
  opacity: 1;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 50%;
  overflow: hidden;
  transition: transform 150ms ease, border-color 150ms ease;
}

body.overview-mode .slide:hover {
  border-color: var(--mute-line);
  transform: translateY(-2px);
}

body.overview-mode .slide.active {
  border-color: var(--ink);
  border-width: 2px;
}

body.overview-mode .slide-inner {
  transform: scale(0.8);
  transform-origin: center;
}

body.overview-mode .chrome {
  display: none;
}

body.overview-mode .notes {
  display: none;
}

/* ---------- speaker notes panel ---------- */

.notes {
  display: none;
}

.notes-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 3.5rem;
  left: auto;
  width: 320px;
  max-width: calc(100vw - 2.5rem);
  max-height: 40vh;
  padding: 1rem 1.25rem;
  background: #1c1917;
  color: #e7e5e4;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow: auto;
  z-index: 20;
  transform: translateY(150%);
  transition: transform 200ms ease-out;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .notes-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    bottom: 3.25rem;
  }
}

body.notes-mode .notes-panel {
  transform: translateY(0);
}

.notes-panel strong {
  display: block;
  color: var(--mute-line);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .channels,
  .channels.channels-quad,
  .pricing,
  .forces {
    grid-template-columns: 1fr;
  }

  /* Center vertically; fall back to start if content overflows. */
  .slide {
    align-items: safe center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 2.5rem 1.25rem 5rem;
  }

  /* Source/citation text is unreadably small at 0.75rem on phones. */
  .source {
    font-size: 0.8rem;
    margin-top: 4rem;
  }

  /* Tighter paddings in cards so content doesn't overflow on narrow screens. */
  .step,
  .channel,
  .ask {
    padding: 1.25rem;
  }

  .tier {
    padding: 1.25rem 0.75rem;
  }

  .forces {
    gap: 1.25rem;
  }

  /* Slide 7 — keep two columns, smaller type so both stats fit one screen. */
  .market-mirror {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .market-label {
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
  }
  .market-hero {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    margin-bottom: 0.5rem;
  }
  .market-hero-label {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  .market-subs {
    gap: 0.6rem;
    padding-top: 0.85rem;
  }
  .market-sub-num {
    font-size: 1rem;
  }
  .market-sub-label {
    font-size: 0.75rem;
  }
  .market-header {
    margin-bottom: 1.5rem;
  }

  /* Slide 8 — keep two columns so both big numbers stay side-by-side. */
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .stat .big-number {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }
  .stat p {
    font-size: 0.8rem;
  }

  /* Slide 10 — keep the bordered card, tighten title and description together. */
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      ".   desc";
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: center;
  }
  .step-num {
    grid-area: num;
    margin-bottom: 0;
  }
  .step h3 {
    grid-area: title;
    margin-bottom: 0;
  }
  .step p {
    grid-area: desc;
  }

  /* Slide 11 — keep the three graphs in one row, smaller. */
  .theme-growth {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .phase {
    gap: 0.5rem;
  }
  .phase svg {
    max-width: 90px;
  }
  .phase p {
    font-size: 0.75rem;
  }
}

/* ---------- print ---------- */

@media print {
  html, body { height: auto; overflow: visible; }
  main { height: auto; }
  .slide {
    position: relative;
    inset: auto;
    display: flex;
    opacity: 1;
    page-break-after: always;
    height: 100vh;
    padding: 2rem;
  }
  .chrome,
  .notes-panel {
    display: none !important;
  }
}
