:root {
  color-scheme: light;
  --bg: #f7f3ed;
  --ink: #17201c;
  --muted: #667168;
  --line: #d9d0c3;
  --paper: #fffaf2;
  --green: #2f7d5c;
  --teal: #2d7f89;
  --blue: #385ca8;
  --gold: #c9962f;
  --rose: #c55e6b;
  --shadow: 0 22px 60px rgba(27, 31, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(135deg, rgba(47, 125, 92, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(56, 92, 168, 0.12), transparent 34%),
    var(--bg);
  color: var(--ink);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 20px 92px;
}

.deck-stage {
  width: 1180px;
  height: 664px;
  transform-origin: center center;
}

.deck {
  width: 1180px;
  height: 664px;
  container-type: inline-size;
  position: relative;
}

.slide {
  display: none;
  height: 100%;
  padding: clamp(22px, 4.7cqw, 60px);
  border: 1px solid rgba(88, 74, 57, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 242, 0.96)),
    var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.slide::after {
  content: attr(data-title);
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: rgba(23, 32, 28, 0.28);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-slide.active,
.title-slide.active,
.closing-slide.active {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.86fr);
  gap: clamp(26px, 5.4cqw, 64px);
  align-items: center;
}

.hero-grid {
  display: contents;
}

.brand-row {
  position: absolute;
  top: clamp(18px, 2.4cqw, 28px);
  left: clamp(20px, 2.7cqw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.app-icon {
  width: clamp(28px, 3.1cqw, 36px);
  height: clamp(28px, 3.1cqw, 36px);
  border-radius: 9px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  max-width: 780px;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  margin-bottom: clamp(14px, 2cqw, 24px);
  font-size: clamp(34px, 6.7cqw, 86px);
}

.title-slide h1 {
  font-size: clamp(32px, 5.85cqw, 76px);
}

.title-slide .lead {
  max-width: 54cqw;
}

.title-slide .cta-line {
  max-width: 48cqw;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4.75cqw, 56px);
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

p,
li {
  color: var(--muted);
  font-size: clamp(15px, 1.7cqw, 20px);
  line-height: 1.48;
}

.lead {
  max-width: 710px;
  color: #425048;
  font-size: clamp(14px, 1.75cqw, 23px);
}

.wide-copy {
  max-width: 940px;
}

.cta-line,
.callout,
.source-note {
  display: inline-flex;
  margin-top: clamp(6px, 1cqw, 12px);
  padding: clamp(9px, 1.1cqw, 13px) clamp(11px, 1.35cqw, 16px);
  border-radius: 8px;
  background: rgba(47, 125, 92, 0.1);
  color: #245f49;
  font-size: clamp(12px, 1.25cqw, 15px);
  font-weight: 800;
  line-height: 1.35;
}

.source-note {
  background: rgba(56, 92, 168, 0.1);
  color: #334f90;
}

.phone-stack {
  position: relative;
  min-height: clamp(270px, 38cqw, 500px);
}

.phone-stack.single-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mock,
.screenshot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(47, 125, 92, 0.32);
  border-radius: 32px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(47, 125, 92, 0.04),
      rgba(47, 125, 92, 0.04) 10px,
      rgba(255, 255, 255, 0.5) 10px,
      rgba(255, 255, 255, 0.5) 20px
    );
  color: rgba(23, 32, 28, 0.48);
  text-align: center;
}

.phone-mock {
  width: clamp(150px, 20.2cqw, 250px);
  height: clamp(300px, 39.8cqw, 500px);
  padding: clamp(18px, 2cqw, 24px);
  box-shadow: 0 22px 54px rgba(47, 78, 62, 0.16);
}

.phone-mock.has-shot,
.screenshot-slot.has-shot {
  overflow: hidden;
  justify-content: stretch;
  padding: 0;
  border: 1px solid rgba(23, 32, 28, 0.1);
  background: white;
  box-shadow: 0 22px 54px rgba(47, 78, 62, 0.16);
}

.phone-mock.has-shot img,
.screenshot-slot.has-shot img,
.screenshot-slot.has-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-mock.tall {
  position: absolute;
  right: 80px;
  top: 0;
}

.phone-mock.short {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: clamp(126px, 17.1cqw, 214px);
  height: clamp(230px, 30.5cqw, 390px);
  background-color: #fbf8f0;
}

.phone-mock.tall.has-shot {
  width: clamp(144px, 18.5cqw, 230px);
  height: auto;
  aspect-ratio: 1284 / 2778;
}

.phone-mock.hero-phone.has-shot {
  width: clamp(180px, 22cqw, 270px);
  height: auto;
  aspect-ratio: 1284 / 2778;
}

.phone-mock.short.has-shot {
  height: auto;
  aspect-ratio: 1284 / 2778;
}

.phone-mock.insight-crop img {
  object-fit: cover;
  object-position: 50% 54%;
}

.phone-bar {
  position: absolute;
  top: 18px;
  width: 70px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.2);
}

.shot-label,
.screenshot-slot span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screenshot-slot strong {
  display: block;
  max-width: 280px;
  margin-top: 10px;
  color: rgba(23, 32, 28, 0.64);
  font-size: 24px;
  line-height: 1.15;
}

.screenshot-slot.large {
  min-height: 440px;
  border-radius: 16px;
}

.screenshot-slot.phone {
  min-height: clamp(300px, 38cqw, 470px);
  width: clamp(170px, 22cqw, 260px);
  justify-self: center;
  aspect-ratio: 1284 / 2778;
}

.visual-panel {
  display: grid;
  gap: 20px;
}

.market-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.market-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.market-step span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-step strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.04;
}

.market-step small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.market-step.now {
  border-color: rgba(56, 92, 168, 0.26);
  background: rgba(56, 92, 168, 0.08);
}

.market-step.next {
  border-color: rgba(47, 125, 92, 0.28);
  background: rgba(47, 125, 92, 0.1);
}

.market-arrow {
  width: 2px;
  height: 22px;
  justify-self: center;
  background: linear-gradient(180deg, var(--gold), var(--green));
}

.context-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.context-cloud div {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #354139;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.fit-diagram {
  display: grid;
  gap: 10px;
  align-content: center;
}

.diagram-node {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 900;
  line-height: 1.2;
}

.diagram-node small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.diagram-node.shepherd {
  border-color: rgba(47, 125, 92, 0.28);
  background: rgba(47, 125, 92, 0.1);
}

.diagram-node.hark {
  border-color: rgba(56, 92, 168, 0.26);
  background: rgba(56, 92, 168, 0.08);
}

.diagram-line {
  width: 2px;
  height: 20px;
  justify-self: center;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.signal-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.signal-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
}

.mini-grid,
.goal-stack,
.proof-grid,
.three-col {
  display: grid;
  gap: 14px;
}

.mini-grid {
  grid-template-columns: repeat(2, 1fr);
}

.mini-grid div,
.goal-stack div {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #354139;
  font-weight: 800;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.three-col article,
.proof-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.three-col p,
.proof-grid span,
.credentials-card p {
  font-size: 16px;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.pipeline div {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #354139;
  font-size: 18px;
  font-weight: 900;
}

.pipeline img {
  max-width: 82px;
  max-height: 44px;
}

.pipeline span {
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.feature-list {
  padding-left: 1.2em;
  margin: 0;
}

.feature-list li {
  margin: 8px 0;
}

.feature-list.compact li {
  font-size: 18px;
}

.chat-sample {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 18px;
}

.bubble {
  width: fit-content;
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.35;
}

.bubble.user {
  justify-self: end;
  background: var(--green);
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble.ai {
  background: white;
  border: 1px solid var(--line);
  color: #405047;
  border-bottom-left-radius: 4px;
}

.projection-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.chart-card {
  position: relative;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.screenshot-crop-card {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 1000;
  min-height: 0;
  padding: 0;
  background: #f8faf8;
}

.screenshot-crop-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.projection-layout .goal-stack div {
  min-height: 0;
  padding: 14px 16px;
}

.projection-layout .goal-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  height: 100%;
}

.chart-card svg {
  width: 100%;
  height: 230px;
  overflow: visible;
}

.chart-card path {
  fill: none;
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
}

.chart-card rect {
  fill: rgba(201, 150, 47, 0.24);
}

.chart-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.proof-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

.proof-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.proof-grid span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.credentials-card {
  padding: 28px;
  border: 1px solid rgba(47, 125, 92, 0.28);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(47, 78, 62, 0.12);
}

.credentials-card > span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

dl div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f0;
}

dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

dd a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

dd a:focus-visible {
  outline: 3px solid rgba(56, 92, 168, 0.32);
  outline-offset: 4px;
  border-radius: 4px;
}

.deck-nav {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 40px));
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(88, 74, 57, 0.18);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(27, 31, 28, 0.12);
}

button {
  min-width: 76px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 28, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

#slideCounter {
  min-width: 58px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 880px) {
  body {
    padding: 16px 16px 92px;
    align-items: center;
  }

  .slide {
    border-radius: 14px;
  }

  .deck-nav {
    grid-template-columns: auto auto auto;
  }

  .progress {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media print {
  body {
    display: block;
    padding: 0;
    background: white;
  }

  .deck {
    width: 100%;
  }

  .slide,
  .slide.active,
  .split-slide.active,
  .title-slide.active,
  .closing-slide.active {
    display: grid;
    min-height: 100vh;
    page-break-after: always;
    box-shadow: none;
    border-radius: 0;
  }

  .deck-nav {
    display: none;
  }
}
