/* ============================================================
   Hopper pitch deck — visual system
   Cohesive design language: tokens, type scale, shared elevation/label
   treatments, and per-slide styling (slides 1–12).
   Calm + trustworthy for a healthcare/India audience.
   deck.js relies on: .slide{display:none} / .slide.active{display:flex}
   ============================================================ */

:root {
  /* surface — a warm, teal-leaning ink so the deck reads calm, not cold-grey */
  --bg: #0d1117;
  --bg-2: #131a23;
  --panel: #18212c;
  --panel-2: #1d2733;
  --line: #2a3542;
  --line-soft: #222c38;
  --fg: #f3f6f9;
  --muted: #93a0ae;
  --faint: #66727f;

  /* accents */
  --teal: #2dd4bf; /* trust / Hopper */
  --teal-bright: #5fe6d4;
  --teal-dim: #1f8e80;
  --amber: #f6b552; /* friction / leaks / alert */
  --amber-dim: #b9823a;
  --wa: #25d366; /* WhatsApp — used sparingly */

  /* tinted accent washes — one source of truth so every surface agrees */
  --teal-wash: rgba(45, 212, 191, 0.07);
  --teal-wash-2: rgba(45, 212, 191, 0.12);
  --teal-edge: rgba(45, 212, 191, 0.34);
  --amber-wash: rgba(246, 181, 82, 0.07);
  --amber-wash-2: rgba(246, 181, 82, 0.14);

  /* type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Spline Sans', system-ui, sans-serif;

  /* spacing rhythm — a single scale keeps slides on one grid */
  --s-1: 0.5rem;
  --s-2: 0.85rem;
  --s-3: 1.1rem;
  --s-4: 1.6rem;
  --s-5: 1.8rem;
  --s-6: 2.4rem;

  /* depth language — shared elevation so cards/panels read as one product */
  --shadow-card: 0 16px 40px -28px rgba(0, 0, 0, 0.7);
  --shadow-float: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
  --radius: 12px;
  --radius-lg: 16px;

  /* shared label treatment (eyebrows, kickers, panel labels) */
  --kicker: 600 0.74rem/1 var(--body);
  --kicker-spacing: 0.16em;

  /* one canonical centered content column — ~1088px (68rem), the upper end of
     the agreed 62–68rem band so the deck reads as a generous ~57–80% of the
     screen (80% at 1366, ~57% at 1920). Every slide body shares this width and
     is centred on the x-axis, so no slide looks anaemically narrow. */
  --content: 68rem;
  --max: var(--content);
  --pad-y: 7vh;
  --pad-x: 9vw;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* atmospheric backdrop: faint dual glow + hairline grid + grain.
   Anchored on the cover/trust accents so the whole deck shares one light. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 84% 4%, rgba(45, 212, 191, 0.1), transparent 58%),
    radial-gradient(48vw 48vw at 4% 98%, rgba(246, 181, 82, 0.055), transparent 60%),
    linear-gradient(180deg, #0e1219 0%, #0b0e14 100%);
}
/* faint hairline grid — structure without noise, fades behind content */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120vw 120vh at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120vw 120vh at 50% 40%, #000 30%, transparent 78%);
}

#deck {
  position: relative;
  z-index: 1;
  height: 100vh;
}

/* ---- slide shell (mechanics preserved) -------------------- */
.slide {
  display: none;
  min-height: 100vh;
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + 2.5rem);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slide.active {
  display: flex;
}

/* one shared, horizontally-centred content column for every slide */
.slide__body {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

/* Centre the composition on the x-axis. The default single-column content
   (headline + intro + footnotes) reads centred; long body paragraphs keep a
   readable measure and centre as a block via margin-inline:auto. Multi-column
   layouts (bucket / chat / scope / dash / calc) opt back into left-aligned
   internals below while the whole block stays centred in the shared column. */
.slide__body > * {
  margin-inline: auto;
}
.lede,
.note {
  margin-inline: auto;
}

/* Multi-column / mock layouts keep their internal left alignment, but the
   whole block is still centred in the shared column (width:100% + margin
   auto from the slide body rules above). The head/intro inside each is
   re-centred individually so headlines stay balanced on the x-axis. */
.bucket-layout,
.chat-layout,
.scope-layout,
.control-layout,
.calc-layout {
  text-align: left;
}
/* card/row lists carry left-aligned content — keep their internals left
   while the list itself remains centred as a block */
.timeline,
.gaps,
.safety,
.leaks,
.derisk,
.questions,
.scope__list {
  text-align: left;
}
/* re-centre the headline/intro blocks that live inside the left-aligned
   layout wrappers, so every slide's title sits centred on the x-axis */
.bucket-layout__head,
.chat-layout__head,
.scope-layout__head,
.control-layout__head,
.calc-layout__head {
  text-align: center;
}

/* headlines: characterful display serif, optically sized via Fraunces opsz */
.slide h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 auto;
  /* a generous headline measure so each slide fills the shared column;
     text-wrap:balance keeps line breaks even, text-align:center centres it */
  max-width: 30ch;
  text-wrap: balance;
}

/* Shared accent rule before a real slide heading.
   Scoped to .slide__body headings and excludes the cover, so it can never
   paint a stray bar onto an unstyled <h1> elsewhere. The bar carries a soft
   teal glow + tip so the trust accent feels intentional, not a divider. */
.slide__body:not(.cover) h1::before {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  /* centre the accent rule under the centred headline */
  margin: 0 auto 1.25rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dim));
  box-shadow: 0 0 18px -2px rgba(45, 212, 191, 0.5);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto var(--s-4);
  max-width: 58ch;
}

/* footnotes — one citation treatment shared across every slide */
.note {
  margin-top: var(--s-6);
  margin-inline: auto;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-2);
  max-width: 62ch;
}

/* staggered entrance for active slide — gentle rise + settle, one rhythm deck-wide */
.slide.active .slide__body > * {
  animation: rise 0.62s cubic-bezier(0.21, 1, 0.32, 1) both;
}
.slide.active .slide__body > *:nth-child(1) {
  animation-delay: 0.04s;
}
.slide.active .slide__body > *:nth-child(2) {
  animation-delay: 0.12s;
}
.slide.active .slide__body > *:nth-child(3) {
  animation-delay: 0.2s;
}
.slide.active .slide__body > *:nth-child(4) {
  animation-delay: 0.28s;
}
.slide.active .slide__body > *:nth-child(5) {
  animation-delay: 0.36s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slide.active .slide__body > *,
  .drip,
  .convo__pulse,
  .cover__eyebrow .dot,
  .chat__status::before {
    animation: none !important;
  }
}

/* ============================================================
   Slide 1 — cover
   ============================================================ */
.slide[data-variant='cover'] {
  align-items: center;
}
.cover {
  position: relative;
  /* fill the shared content column and centre the cover composition */
  max-width: var(--content);
  text-align: center;
}
.cover__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto 1.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: var(--teal-wash);
  border: 1px solid var(--teal-edge);
  border-radius: 999px;
}
.cover__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
  animation: coverPulse 3.4s ease-in-out infinite;
}
@keyframes coverPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.06);
  }
}
.slide[data-variant='cover'] h1 {
  font-weight: 600;
  font-size: clamp(2.5rem, 6.1vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 auto 0.55em;
  /* a fuller centred measure so the cover headline fills the column */
  max-width: 20ch;
}
.cover__sub {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--muted);
  /* readable measure, centred under the headline */
  max-width: 46ch;
  margin: 0 auto;
}
.cover__sub em {
  font-style: normal;
  font-weight: 500;
  color: var(--teal-bright);
  border-bottom: 1px dashed var(--teal-dim);
  padding-bottom: 1px;
}
.cover__foot {
  /* a short, centred rule rather than a column-wide hairline */
  width: fit-content;
  margin: 2.8rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ============================================================
   Slide 2 — "normal Tuesday" timeline
   ============================================================ */
.timeline {
  list-style: none;
  margin-inline: auto;
  padding: 0;
  position: relative;
  max-width: 52ch;
  width: 100%;
  text-align: left;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5.1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--line) 0%, var(--line) 62%, var(--amber-dim) 100%);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 0.55rem 0;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(5.1rem - 4px);
  top: 1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--faint);
}
.timeline__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  font-size: 0.95rem;
  padding-top: 0.05rem;
}
.timeline__beat {
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.45;
  color: var(--fg);
}
.timeline__beat q {
  font-style: italic;
  color: var(--teal);
  quotes: '“' '”';
}
.timeline__item--alert .timeline__time,
.timeline__item--alert .timeline__beat {
  color: var(--amber);
}
.timeline__item--alert::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(246, 181, 82, 0.16);
}

.callout {
  margin: var(--s-5) auto 0;
  padding: 1.1rem 1.4rem;
  max-width: 64ch;
  border: 1px solid var(--teal-edge);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, var(--teal-wash-2), var(--teal-wash));
  color: var(--fg);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  /* left-aligned text reads naturally against the left accent bar */
  text-align: left;
}

/* ============================================================
   Slide 3 — leaky bucket
   ============================================================ */
.bucket-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-areas:
    'head head'
    'pail leaks'
    'note note';
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 1.5rem;
  align-items: center;
}
.bucket-layout__head {
  grid-area: head;
}
.bucket {
  grid-area: pail;
  margin: 0;
  justify-self: center;
}
.bucket__svg {
  width: 220px;
  height: auto;
  overflow: visible;
}
.bucket__pail {
  fill: none;
  stroke: var(--muted);
  stroke-width: 3;
  stroke-linejoin: round;
}
.bucket__rim {
  fill: none;
  stroke: var(--muted);
  stroke-width: 3;
}
.bucket__water {
  fill: rgba(45, 212, 191, 0.2);
  stroke: var(--teal);
  stroke-width: 1.5;
}
.bucket__hole {
  fill: var(--bg);
  stroke: var(--amber);
  stroke-width: 2;
}
.drip {
  fill: var(--amber);
}
.drip--1 {
  animation: drip 2.1s ease-in 0s infinite;
}
.drip--2 {
  animation: drip 2.1s ease-in 0.7s infinite;
}
.drip--3 {
  animation: drip 2.1s ease-in 1.4s infinite;
}
@keyframes drip {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  12% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(46px);
  }
}

.leaks {
  grid-area: leaks;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.leak {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(90deg, var(--amber-wash), transparent 80%), var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.leak:hover {
  transform: translateX(3px);
}
.leak__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--amber);
  line-height: 1;
}
.leak__label {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
}
.bucket-layout__note {
  grid-area: note;
  margin-top: 0.5rem;
}

/* ============================================================
   Slide 4 — unmanaged WhatsApp / three gaps
   ============================================================ */
.gaps {
  list-style: none;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  max-width: var(--content);
  width: 100%;
}
.gap {
  padding: 1.5rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--wa);
  box-shadow: var(--shadow-card);
}
.gap__k {
  display: block;
  font: var(--kicker);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--wa);
  margin-bottom: 0.55rem;
}
.gap__v {
  display: block;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.4;
  color: var(--fg);
}

/* ============================================================
   Slide 5 — the promise + safety band (carries the belief-load)
   ============================================================ */
.promise__line {
  color: var(--fg);
  max-width: 58ch;
  margin-bottom: var(--s-5);
}
.safety {
  list-style: none;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  max-width: var(--content);
  width: 100%;
}
.safety__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  background: linear-gradient(165deg, rgba(45, 212, 191, 0.11), rgba(45, 212, 191, 0.025));
  border: 1px solid var(--teal-edge);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 38px -26px rgba(45, 212, 191, 0.45);
}
/* a hairline crown of light along the top edge — premium, reassuring */
.safety__card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(95, 230, 212, 0.55), transparent);
}
.safety__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 11px;
  color: var(--teal-bright);
  background: var(--teal-wash-2);
  border: 1px solid var(--teal-edge);
}
.safety__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.safety__text {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.42;
  color: var(--fg);
}
.safety__text strong {
  font-weight: 600;
  color: var(--teal);
}

/* ============================================================
   Slide 6 — WhatsApp-style chat thread + peer-proof placeholder
   ============================================================ */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'head'
    'chat'
    'note';
  row-gap: 1.4rem;
  justify-items: center;
  align-items: start;
}
.chat-layout__head {
  grid-area: head;
  width: 100%;
}
.chat-layout__head h1 {
  margin-bottom: 0;
  max-width: 28ch;
  margin-inline: auto;
  text-wrap: balance;
}
.chat {
  grid-area: chat;
  width: 100%;
  justify-self: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b141a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  max-width: 38rem;
}
.chat__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #202c33;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.chat__avatar {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 600;
  color: #0b141a;
  background: linear-gradient(150deg, #2dd4bf, var(--wa));
}
.chat__title {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.chat__name {
  font-size: 0.94rem;
  font-weight: 600;
  color: #e9edef;
}
.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.72rem;
  color: var(--wa);
}
/* live "online" dot — authentic touch, gated by the reduced-motion guard */
.chat__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa);
  animation: convoPulse 2.4s ease-out infinite;
}
.chat__thread {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 0.95rem;
  background-color: #0b141a;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px);
  background-size:
    19px 19px,
    19px 19px;
  background-position:
    0 0,
    9px 9px;
}
.msg {
  position: relative;
  max-width: 82%;
  padding: 0.46rem 0.72rem 1.05rem;
  border-radius: 9px;
  font-size: 0.92rem;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.msg__text {
  display: block;
  color: #e9edef;
}
.msg__time {
  position: absolute;
  right: 0.62rem;
  bottom: 0.32rem;
  font-size: 0.62rem;
  color: rgba(233, 237, 239, 0.5);
  font-variant-numeric: tabular-nums;
}
.msg--in {
  align-self: flex-start;
  background: #202c33;
  border-top-left-radius: 2px;
}
.msg--out {
  align-self: flex-end;
  background: #005c4b;
  border-top-right-radius: 2px;
}
.msg--out .msg__text {
  color: #e9f3ef;
}
.msg--out .msg__time {
  color: rgba(233, 237, 239, 0.62);
}
.proof {
  grid-area: proof;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-self: center;
  padding: 1.6rem 1.5rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.012),
      rgba(255, 255, 255, 0.012) 10px,
      transparent 10px,
      transparent 20px
    ),
    rgba(255, 255, 255, 0.012);
  text-align: center;
}
.proof__tag {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
  color: var(--muted);
}
.proof__hint {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--faint);
}
.chat-layout__note {
  grid-area: note;
  width: 100%;
  margin-top: 0.4rem;
}

/* Short-viewport guard (e.g. 1366x768): tighten the chat so the final
   "Done ✅ … confirmed" bubble stays within the fold. Tall viewports
   (1920x1080) keep the roomier defaults above. */
@media (max-height: 820px) {
  /* trim this content-dense slide's vertical padding so the box fits the
     768px fold with no scrollbar, and lift content clear of the fixed nav.
     Tall viewports keep the roomier defaults above. */
  .slide[data-variant='chat'],
  .slide[data-variant='timeline'] {
    padding-top: calc(var(--pad-y) - 1.5rem);
    padding-bottom: var(--pad-y);
  }
  .chat-layout {
    row-gap: 0.7rem;
  }
  .chat-layout__head h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  }
  .chat-layout__head h1::before {
    margin-bottom: 0.7rem;
  }
  .chat__bar {
    padding: 0.5rem 1rem;
  }
  .chat__thread {
    gap: 0.28rem;
    padding: 0.7rem 0.85rem;
  }
  .msg {
    padding: 0.34rem 0.65rem 0.72rem;
    font-size: 0.84rem;
    line-height: 1.3;
  }
  .msg__time {
    bottom: 0.24rem;
  }
  .chat-layout__note {
    margin-top: 0.2rem;
  }
  .chat-layout .note {
    margin-top: 1.2rem;
  }
}

/* ============================================================
   Slide 7 — what it handles / where it stops (two columns)
   ============================================================ */
.scope-layout__head h1 {
  margin-bottom: 1.6rem;
}
.scope {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  max-width: 74ch;
  margin-inline: auto;
}
.scope__col {
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.scope__col--wont {
  border-top: 3px solid var(--amber);
  background: linear-gradient(180deg, var(--amber-wash), transparent 30%), var(--panel);
}
.scope__col--handles {
  border-top: 3px solid var(--teal);
  background: linear-gradient(180deg, var(--teal-wash), transparent 30%), var(--panel);
}
.scope__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  font: var(--kicker);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
}
.scope__col--wont .scope__title {
  color: var(--amber);
}
.scope__col--handles .scope__title {
  color: var(--teal);
}
.scope__mark {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.8rem;
}
.scope__mark--wont {
  color: var(--amber);
  background: rgba(246, 181, 82, 0.14);
}
.scope__mark--handles {
  color: var(--teal);
  background: rgba(45, 212, 191, 0.14);
}
.scope__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.scope__list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.38;
  color: var(--fg);
}
.scope__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.scope__col--wont .scope__list li::before {
  background: var(--amber-dim);
}
.scope__col--handles .scope__list li::before {
  background: var(--teal-dim);
}
.scope__own {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   Slide 8 — dashboard mock (control / visibility)
   ============================================================ */
.control-layout__head h1 {
  margin-bottom: 0.5rem;
}
.control__sub {
  margin-bottom: 1.8rem;
}
.dash {
  /* fills the shared column and centres as a block */
  max-width: var(--content);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--line);
}
.dash__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--faint);
}
.dash__dot:nth-child(1) {
  background: #e06c5e;
}
.dash__dot:nth-child(2) {
  background: var(--amber);
}
.dash__dot:nth-child(3) {
  background: var(--wa);
}
.dash__brand {
  margin-left: 0.65rem;
  font: var(--kicker);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--muted);
}
.dash__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  background: var(--line);
}
.dash__panel {
  padding: 1.2rem 1.3rem 1.4rem;
  background: var(--bg-2);
}
.dash__label {
  display: block;
  margin-bottom: 0.95rem;
  font: var(--kicker);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--faint);
}
.convo {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.convo__row {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.convo__row--live {
  border-color: var(--teal-dim);
  background: rgba(45, 212, 191, 0.07);
}
.convo__who {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
}
.convo__snip {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.convo__time {
  font-size: 0.75rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.convo__pulse {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: convoPulse 2s ease-out infinite;
}
@keyframes convoPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}
.dash__takeover {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #06231f;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  border: none;
  border-radius: 9px;
  cursor: default;
  box-shadow: 0 8px 20px -10px rgba(45, 212, 191, 0.6);
}
.dash__takeover-icon {
  font-size: 1.05rem;
}
.sched {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sched__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  border-left: 2px solid var(--line);
}
.sched__row--next {
  border-left-color: var(--teal);
  background: rgba(45, 212, 191, 0.06);
}
.sched__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.sched__name {
  font-size: 0.92rem;
  color: var(--fg);
}
.sched__tag {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.control__free {
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--teal);
  max-width: 50ch;
  text-align: center;
}

/* ============================================================
   Slide 9 — the doctor's own numbers (live calculator)
   ============================================================ */
.calc-layout__head h1 {
  margin-bottom: 1rem;
}
/* the trust line carries the slide — make it prominent, not a footnote */
.calc__trust {
  max-width: 56ch;
  margin: 0 auto 1.8rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--teal);
}
.calc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  /* the form is the centrepiece — let it fill the shared column, centred */
  max-width: var(--content);
  margin-inline: auto;
}
.calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font: var(--kicker);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--muted);
}
.calc__field input {
  font-family: var(--body);
  font-size: 1.35rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg);
  padding: 0.72rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.calc__field input:hover {
  border-color: var(--teal-dim);
}
.calc__field input::placeholder {
  color: var(--faint);
  font-weight: 400;
}
.calc__field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
/* strip native number spinners so the field reads as a clean figure box */
.calc__field input::-webkit-outer-spin-button,
.calc__field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc__field input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
/* the output is the doctor's own number — quiet panel, not a sales banner.
   Empty until all three inputs are valid; collapses to nothing when blank. */
.calc-out {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}
.calc-out:not(:empty) {
  padding: 1.05rem 1.3rem;
  background: linear-gradient(90deg, var(--teal-wash-2), var(--teal-wash));
  border: 1px solid var(--teal-edge);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.calc-out strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--teal-bright);
}
.calc__coverage {
  max-width: 60ch;
  margin: 1.8rem auto 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.45;
  color: var(--fg);
}
.calc__coverage strong {
  font-weight: 600;
  color: var(--amber);
}
.calc__aside {
  margin: 1rem auto 0;
  padding: 0.75rem 1.05rem;
  max-width: 60ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  background: var(--amber-wash);
  border-left: 3px solid var(--amber-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.calc-layout__note {
  margin-top: 1.8rem;
}

/* ============================================================
   Slide 10 — closed-beta invite / de-risk checklist
   ============================================================ */
.invite__lead {
  color: var(--fg);
  max-width: 56ch;
  margin-bottom: 1.8rem;
}
.derisk {
  list-style: none;
  margin-inline: auto;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 54rem;
  width: 100%;
}
.derisk__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.derisk__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  color: var(--teal-bright);
  background: var(--teal-wash-2);
  border: 1px solid var(--teal-edge);
}
.derisk__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.derisk__text {
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.42;
  color: var(--fg);
  padding-top: 0.15rem;
}
.derisk__text strong {
  font-weight: 600;
  color: var(--teal);
}
/* the ask sits apart from the reassurances — amber, the friction accent */
.derisk__item--ask {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, var(--amber-wash-2), var(--amber-wash));
}
.derisk__item--ask .derisk__icon {
  color: var(--amber);
  background: var(--amber-wash-2);
  border-color: rgba(246, 181, 82, 0.32);
}

/* ============================================================
   Slide 11 — roadmap (deliberately quiet)
   ============================================================ */
/* roadmap stays deliberately quiet, but fills the shared centred column
   instead of hugging a thin 40ch block */
.roadmap-layout {
  max-width: var(--content);
}
.roadmap__line {
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}
.roadmap__tag {
  display: inline-block;
  margin-top: var(--s-4);
  padding: 0.4rem 0.95rem;
  font: var(--kicker);
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ============================================================
   Slide 12 — open questions
   ============================================================ */
.questions {
  list-style: none;
  margin-inline: auto;
  padding: 0;
  counter-reset: q;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 54rem;
  width: 100%;
  text-align: left;
}
.question {
  counter-increment: q;
  position: relative;
  padding-left: 3rem;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  color: var(--fg);
}
.question::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-bright);
  background: var(--teal-wash-2);
  border: 1px solid var(--teal-edge);
  border-radius: 50%;
}
.question em {
  font-style: normal;
  color: var(--teal);
  border-bottom: 1px dashed var(--teal-dim);
  padding-bottom: 1px;
}

/* short-viewport guard (e.g. 1366x768): tighten slide 9 so the calculator,
   coverage line, aside and footnote all stay within the fold. */
@media (max-height: 820px) {
  .calc-layout__head h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin-bottom: 0.7rem;
  }
  .calc-layout__head h1::before {
    margin-bottom: 0.7rem;
  }
  .calc__trust {
    margin-bottom: 1.1rem;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  }
  .calc__field input {
    padding: 0.55rem 0.75rem;
    font-size: 1.15rem;
  }
  .calc-out:not(:empty) {
    padding: 0.75rem 1rem;
  }
  .calc__coverage {
    margin-top: 1.1rem;
  }
  .calc__aside {
    margin-top: 0.7rem;
  }
  .calc-layout__note {
    margin-top: 1.1rem;
  }

  /* Slide 10 (invite): content already fits at 1366x768 — trim the slide's
     bottom padding and list rhythm so the box never grazes the fold and we
     keep a clean no-scrollbar guarantee. */
  .slide[data-variant='invite'] {
    padding-bottom: var(--pad-y);
  }
  .invite__lead {
    margin-bottom: 1.2rem;
  }
  .derisk {
    gap: 0.7rem;
  }
  .derisk__item {
    padding: 0.95rem 1.2rem;
  }
}

/* ============================================================
   Navigation footer
   ============================================================ */
/* The Muse Media — subtle creator watermark, every slide, bottom-left */
#watermark {
  position: fixed;
  left: 1.4rem;
  bottom: 1.05rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.62rem 0.32rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s;
}
#watermark:hover {
  opacity: 0.9;
}
.wm__mark {
  flex: none;
  display: block;
}
.wm__text {
  font-family: var(--body, system-ui, sans-serif);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 250, 0.78);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .wm__text {
    display: none;
  }
  #watermark {
    padding: 0.32rem;
  }
}

#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  background: linear-gradient(transparent, rgba(11, 14, 19, 0.9) 55%);
}
#nav button {
  font-size: 1.1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s,
    transform 0.18s;
}
#nav button:hover {
  color: var(--teal-bright);
  border-color: var(--teal-dim);
  background: var(--teal-wash);
  transform: translateY(-1px);
}
#nav button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
#counter {
  min-width: 4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================================
   Responsive — stack bucket + gaps on narrow / short screens
   ============================================================ */
@media (max-width: 860px) {
  .bucket-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'head'
      'pail'
      'leaks'
      'note';
    justify-items: center;
    text-align: center;
  }
  .leaks {
    width: 100%;
    max-width: 28rem;
  }
  .gaps {
    grid-template-columns: 1fr;
  }
  .timeline__item {
    grid-template-columns: 3.6rem 1fr;
    gap: 1rem;
  }
  .timeline::before,
  .timeline__item::before {
    left: 4.3rem;
  }
  .timeline__item::before {
    left: calc(4.3rem - 4px);
  }

  /* slide 5 */
  .safety {
    grid-template-columns: 1fr;
    max-width: 32rem;
  }
  .safety__card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  /* slide 6 */
  .chat-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'head'
      'chat'
      'proof'
      'note';
    justify-items: stretch;
  }
  .chat {
    max-width: 100%;
    justify-self: center;
    width: 100%;
  }

  /* slide 7 */
  .scope {
    grid-template-columns: 1fr;
  }

  /* slide 8 */
  .dash__grid {
    grid-template-columns: 1fr;
  }

  /* slide 9 */
  .calc {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}
