/* ============================================================
   Komplex Logopédia × ClientsFlow — Pitch Deck Engine
   Shared by all scenario decks (S1–S4). No build step, no deps.
   Brand: blue #008AE6 · pink #DB2777 · Nunito Sans
   ============================================================ */

:root {
  /* Brand */
  --blue: #008ae6;
  --blue-600: #0072c0;
  --blue-700: #015e9e;
  --blue-800: #0b3a5c;
  --blue-50: #ecf7ff;
  --blue-100: #d6ecfd;
  --pink: #db2777;
  --pink-600: #be185d;
  --pink-50: #fff0f5;
  --gold: #fbbf24;
  --green: #16a34a;
  --green-50: #ecfdf3;
  --red: #dc2626;

  /* Neutrals */
  --ink: #0f1b2d;
  --ink-2: #1f2937;
  --body: #475569;
  --muted: #6b7280;
  --line: #e5e7eb;
  --slate: #f8fafc;
  --slate-2: #f1f5f9;
  --white: #ffffff;

  /* Type */
  --font-head: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius & shadow */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 8px 28px rgba(16, 24, 40, .10);
  --shadow-lg: 0 28px 70px rgba(16, 24, 40, .16);
  --shadow-blue: 0 18px 44px rgba(0, 138, 230, .30);

  /* Layout */
  --slide-max: 1080px;
  --aside-w: 380px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: #0a1622;
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
strong { color: var(--ink); font-weight: 800; }
em { font-style: normal; color: var(--pink); font-weight: 700; }

/* ============================================================
   DECK STAGE — one section visible at a time
   ============================================================ */
.deck {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,138,230,.18), transparent 60%),
    radial-gradient(1000px 500px at 0% 110%, rgba(219,39,119,.14), transparent 55%),
    #0a1622;
  padding: 0;
  transition: padding .28s ease;
}
/* When presenter overlay open on desktop, shrink the stage to the left */
body.notes-open .deck { padding-right: var(--aside-w); }

.slide {
  display: none;
  width: min(96vw, var(--slide-max));
  max-height: 94vh;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
}
.slide.is-active {
  display: block;
  animation: slideIn .34s cubic-bezier(.2,.7,.3,1);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px) scale(.992); }
  to   { opacity: 1; transform: none; }
}
.slide::-webkit-scrollbar { width: 8px; }
.slide::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* Inner padding wrapper */
.slide__inner {
  padding: clamp(34px, 5vw, 64px);
  min-height: min(94vh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}
/* Flex children must be allowed to shrink below their content's intrinsic width,
   otherwise a wide table forces the whole slide to overflow horizontally on phones. */
.slide__inner > * { min-width: 0; max-width: 100%; }
.slide--tight .slide__inner { justify-content: flex-start; padding-top: clamp(40px, 5vw, 56px); }

/* ============================================================
   SLIDE TYPOGRAPHY & COMPONENTS
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
}
.eyebrow--pink { color: var(--pink); }

/* Allow long headings/paragraphs to wrap on narrow screens, but NOT mid-word on list items
   (the offer-list <strong> phrases must stay on the word boundary). */
.slide h1, .slide h2, .slide h3, .slide p { overflow-wrap: break-word; }
.slide h1 {
  font-family: var(--font-head); color: var(--ink); font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.slide h2 {
  font-family: var(--font-head); color: var(--ink); font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.12;
  letter-spacing: -.018em; margin-bottom: 16px;
}
.slide h3 {
  font-family: var(--font-head); color: var(--ink); font-weight: 800;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem); margin-bottom: 8px;
}
.slide p { color: var(--body); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.slide p + p { margin-top: 12px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.34rem) !important; color: var(--ink-2) !important; }
/* On dark slides the lead must stay legible — beat the !important above */
.slide--title .lead, .slide--dark .lead { color: #d7e8f7 !important; }
.muted { color: var(--muted); }
.hl-blue { color: var(--blue); }
.hl-pink { color: var(--pink); }
.nowrap { white-space: nowrap; }

/* Gradient title accent */
.grad {
  background: linear-gradient(100deg, var(--blue), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 800; font-size: .82rem;
  padding: 7px 14px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
}
.chip--pink { background: var(--pink-50); color: var(--pink-600); }
.chip--green { background: var(--green-50); color: var(--green); }
.chip--gold { background: #fff7e6; color: #b45309; }
.chip--star::before { content: "★"; }

/* Lists
   NB: list items hold mixed inline content (text + <strong> + text). A CSS grid here
   auto-places each inline run as its own grid item, dumping <strong> into the 26px marker
   column and breaking it per-letter. So we position the ✓ marker absolutely and let the
   text flow normally in a left-padded box — robust for any inline content. */
.checks { list-style: none; display: grid; gap: 13px; margin-top: 6px; }
.checks li {
  position: relative; padding-left: 38px; min-height: 26px;
  font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--ink-2);
}
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--green-50); color: var(--green); font-weight: 900; font-size: .9rem;
}
.checks--blue li::before { background: var(--blue-50); color: var(--blue); }
.checks--arrow li::before { content: "→"; background: var(--pink-50); color: var(--pink); }
.checks--dot li::before { content: ""; width: 11px; height: 11px; margin: 8px 0 0 7px; border-radius: 50%; background: var(--blue); }

/* Cards grid */
.grid { display: grid; gap: 18px; margin-top: 8px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm);
}
.card--blue { background: linear-gradient(165deg, #f4fbff, #ffffff); border-color: var(--blue-100); }
.card--pink { background: linear-gradient(165deg, #fff5f9, #ffffff); border-color: #fbcfe8; }
.card--ink { background: linear-gradient(160deg, #0b2236, #123a57); border: none; color: #cfe3f2; }
.card--ink h3, .card--ink .stat__num { color: #fff; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px;
  background: var(--blue-50); color: var(--blue);
}
.card--pink .ico { background: var(--pink-50); color: var(--pink); }

/* Stat blocks */
.stats { display: grid; gap: 18px; margin-top: 10px; }
.stat {
  background: linear-gradient(165deg, #f4fbff, #ffffff);
  border: 1px solid var(--blue-100); border-radius: var(--r);
  padding: 22px 24px; text-align: center;
}
.stat--pink { background: linear-gradient(165deg, #fff5f9, #ffffff); border-color: #fbcfe8; }
.stat { display: flex; flex-direction: column; justify-content: center; }
.stat__num {
  font-family: var(--font-head); font-weight: 900; color: var(--blue);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
}
.stat--pink .stat__num { color: var(--pink); }
.stat__label { font-size: .98rem; color: var(--body); margin-top: 8px; font-weight: 600; }

/* Money / comparison table */
.tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: clamp(.92rem, 1.2vw, 1.04rem); }
.tbl th, .tbl td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th {
  font-family: var(--font-head); font-weight: 800; color: var(--ink);
  border-bottom: 2px solid var(--ink); font-size: .95rem;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .row-emph td { background: var(--blue-50); font-weight: 800; color: var(--ink); }
.tbl .row-emph td:first-child { border-radius: 8px 0 0 8px; }
.tbl .row-emph td:last-child { border-radius: 0 8px 8px 0; }
.tbl .row-best td { background: var(--green-50); font-weight: 800; color: var(--green); }
.tbl .num { font-variant-numeric: tabular-nums; font-family: var(--font-head); font-weight: 700; }
.tbl .win { color: var(--green); font-weight: 900; }
.tbl .dim { color: var(--muted); }
/* Last (largest-spend) data column gets a faint tint so the eye lands on the punchline scenario */
.tbl thead th:last-child, .tbl tbody td:last-child { background: rgba(0,138,230,.035); }
.tbl .row-best td:last-child { background: var(--green-50); }
/* Money tables must never clip on narrow screens — let the table scroll inside its own card */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; border-radius: var(--r-sm); max-width: 100%; }
.tbl-scroll .tbl { margin-top: 0; }

/* Callout / banner */
.callout {
  border-radius: var(--r); padding: 20px 24px; margin-top: 14px;
  background: linear-gradient(165deg, #f4fbff, #ffffff); border: 1px solid var(--blue-100);
  display: flex; gap: 16px; align-items: center;
}
.callout--pink { background: linear-gradient(165deg, #fff5f9, #ffffff); border-color: #fbcfe8; }
.callout--green { background: var(--green-50); border-color: #bbf7d0; }
.callout--gold { background: #fff7e6; border-color: #fde68a; }
.callout .big { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; color: var(--ink); }

/* Quote */
.quote {
  border-left: 4px solid var(--pink); padding: 6px 0 6px 22px; margin-top: 6px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-style: italic; color: var(--ink-2); font-weight: 600;
}
.quote cite { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); font-style: normal; font-weight: 700; }

/* Mockup placeholder / embed frame */
.mockup-frame {
  border: 2px dashed var(--blue); border-radius: var(--r); background: var(--blue-50);
  min-height: 230px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 26px; color: var(--blue-700);
  position: relative; overflow: hidden;
}
.mockup-frame .tag {
  position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; background: var(--blue); color: #fff;
  padding: 4px 9px; border-radius: 6px;
}
.mockup-frame .ico-lg { font-size: 2.4rem; margin-bottom: 10px; }
.mockup-frame p { color: var(--blue-700); font-size: .95rem; }
.mockup-frame iframe, .mockup-frame img { width: 100%; height: 100%; border: 0; border-radius: var(--r-sm); }
.mockup-frame.has-embed { padding: 0; border-style: solid; border-color: var(--line); background: var(--white); }

/* ---- Device frames (pure CSS — laptop + phone) for "proposed system" mockups ----
   Mirrors A2's docs/mockups/device-frames.html so the deck + mockups stay visually identical.
   Each frame holds: (1) a real product screenshot <img class="shot"> that the orchestrator
   drops into ../mockups/shots/*.png AFTER deploy; (2) a live <iframe> of A2's proposed mockup
   as the buildable-now preview; (3) a labelled placeholder behind both as the last fallback. */
.device-stage { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; margin-top: 18px; }

.laptop { width: 100%; max-width: 720px; flex: 1 1 480px; position: relative; }
/* Soft elliptical contact shadow grounding the device on the white card */
.laptop::after, .phone::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  width: 78%; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11,24,38,.22), rgba(11,24,38,0)); z-index: -1;
}
.laptop__screen { background: #0b0f17; border-radius: 16px 16px 0 0; padding: 13px 13px 0; box-shadow: 0 22px 46px rgba(0,0,0,.26); }
.laptop__cam { width: 6px; height: 6px; border-radius: 50%; background: #2a3340; margin: 0 auto 7px; }
.laptop__view { aspect-ratio: 1280/800; border-radius: 6px; overflow: hidden; background: var(--slate); position: relative; }
/* Faux browser chrome inside the laptop screen → reads as a real site in a real browser */
.laptop__chrome { position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 4;
  background: linear-gradient(#f4f6f9, #e9edf2); border-bottom: 1px solid #dbe1e8;
  display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.laptop__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d6dbe2; flex: 0 0 auto; }
.laptop__chrome i:nth-child(1){ background:#ff5f57 } .laptop__chrome i:nth-child(2){ background:#febc2e } .laptop__chrome i:nth-child(3){ background:#28c840 }
.laptop__chrome .url { margin-left: 8px; flex: 1; height: 14px; border-radius: 7px; background: #fff; border: 1px solid #dde3ea;
  display: flex; align-items: center; padding: 0 9px; font-family: var(--font-head); font-weight: 700; font-size: .56rem; color: #8a94a3; letter-spacing: .01em; overflow: hidden; white-space: nowrap; }
.laptop__chrome .url::before { content: "🔒"; font-size: .5rem; margin-right: 5px; opacity: .8; }
.laptop__view.device-view .embed, .laptop__view.device-view .shot { top: 26px; height: calc(100% - 26px); } /* sit below the chrome bar */
.laptop__base { height: 15px; background: linear-gradient(#c7ced8, #9aa3b0); border-radius: 0 0 12px 12px; position: relative; box-shadow: 0 12px 18px rgba(0,0,0,.20); }
.laptop__base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 86px; height: 6px; background: #7d8794; border-radius: 0 0 8px 8px; }

.phone { width: clamp(180px, 22vw, 248px); flex: 0 0 auto; background: #0b0f17; border-radius: 38px; padding: 10px; box-shadow: 0 26px 52px rgba(0,0,0,.30); position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #0b0f17; border-radius: 0 0 15px 15px; z-index: 3; }
.phone__view { aspect-ratio: 390/844; border-radius: 28px; overflow: hidden; background: var(--slate); position: relative; }
/* Modern home-indicator bar at the bottom of the phone screen */
.phone__view::after { content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 4px; border-radius: 4px; background: rgba(11,15,23,.55); z-index: 4; }

.device-view .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 2; }
.device-view .shot[src=""], .device-view .shot:not([src]) { display: none; }
.device-view .embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: #fff; }
.device-view .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 16px; z-index: 0;
  background: repeating-linear-gradient(45deg, #eef4fb, #eef4fb 14px, #e6eef8 14px, #e6eef8 28px); color: var(--blue-700); }
.device-view .ph .ic { font-size: 1.5rem; }
.device-view .ph b { font-family: var(--font-head); font-weight: 800; color: var(--ink-2); font-size: .9rem; }
.device-view .ph code { font-size: .74rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--blue-700); }
.device-label { text-align: center; font-family: var(--font-head); font-weight: 800; color: var(--ink-2); font-size: .92rem; margin-top: 10px; }
.device-label span { display: block; font-weight: 700; color: var(--muted); font-size: .8rem; margin-top: 2px; }
/* Keep the whole device composition inside a 1280×800 stage on the vision slides:
   cap the laptop width on the dual-laptop slide so both fit without forcing scroll. */
.device-stage--dual .laptop { max-width: 430px; flex-basis: 340px; }

/* Step / process flow */
.flow { display: grid; grid-auto-flow: column; gap: 10px; align-items: stretch; margin-top: 10px; }
.flow .step {
  flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 12px; text-align: center; position: relative; box-shadow: var(--shadow-sm);
}
.flow .step .n {
  font-family: var(--font-head); font-weight: 900; color: var(--blue); font-size: 1.1rem;
}
.flow .step .t { font-size: .82rem; color: var(--ink-2); font-weight: 700; margin-top: 4px; line-height: 1.3; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
/* .split--40 is used standalone in the offer slides (no .split alongside it),
   so it must declare display/gap/align itself — otherwise it stacks as a block. */
.split--40 { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; align-items: center; }

/* Footer note inside slide */
.fineprint { margin-top: 18px; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Title slide special */
.slide--title .slide__inner { justify-content: center; }
.slide--title { background: linear-gradient(160deg, #0b2236 0%, #123a57 60%, #0e3050 100%); }
.slide--title h1, .slide--title h2 { color: #fff; }
.slide--title p { color: #cfe3f2; }
.slide--title .eyebrow { color: #7cc6ff; }
.slide--title .eyebrow::before { background: linear-gradient(90deg, #7cc6ff, #f9a8d4); }
.slide--title .brandline { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.slide--title .brandline .logo {
  font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; color: #fff;
  letter-spacing: -.01em;
}
.slide--title .brandline .x { color: #7cc6ff; font-weight: 700; }
.slide--title .meta-row { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; }
.slide--title .meta-row .item .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #6f97b8; font-weight: 800; }
.slide--title .meta-row .item .v { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; margin-top: 3px; }

/* Closing/ask slide special */
.slide--dark { background: linear-gradient(160deg, #0b2236, #123a57); }
.slide--dark h1, .slide--dark h2, .slide--dark h3 { color: #fff; }
.slide--dark p, .slide--dark li { color: #cfe3f2; }
.slide--dark .checks li { color: #e6f1fb; }
.slide--dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.slide--dark .card h3, .slide--dark .card p { color: #fff; }

/* Big price card */
.price-card {
  border-radius: var(--r-lg); padding: 30px; text-align: center;
  background: linear-gradient(160deg, #0b2236, #123a57); color: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
}
.price-card .amt { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem,5vw,3.4rem); line-height: 1; color: #fff; }
.price-card .per { color: #9fc3e0; font-weight: 700; }
.price-card.is-free .amt { color: #7ee2a8; }
.price-card .sub { margin-top: 12px; color: #cfe3f2; font-size: 1rem; }
.price-card.ribbon { position: relative; }
.price-card.ribbon::after {
  content: "AJÁNLOTT"; position: absolute; top: 16px; right: -34px; transform: rotate(45deg);
  background: var(--pink); color: #fff; font-family: var(--font-head); font-weight: 900;
  font-size: .68rem; letter-spacing: .1em; padding: 5px 40px; box-shadow: var(--shadow-sm);
}

/* ============================================================
   HUD — counter, nav buttons, progress
   ============================================================ */
.hud {
  position: fixed; z-index: 80; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(11, 34, 54, .82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  padding: 7px 9px; box-shadow: var(--shadow-lg);
  transition: left .28s ease, transform .28s ease;
}
body.notes-open .hud { left: calc((100vw - var(--aside-w)) / 2); }
.hud button {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.10); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.hud button:hover { background: var(--blue); }
.hud button:disabled { opacity: .35; cursor: default; }
.hud .count {
  font-family: var(--font-head); font-weight: 800; color: #fff; font-size: .92rem;
  min-width: 58px; text-align: center; font-variant-numeric: tabular-nums;
}
.hud .notes-btn { width: auto; padding: 0 14px; gap: 7px; font-family: var(--font-head); font-weight: 800; font-size: .82rem; }
.hud .notes-btn.is-on { background: var(--pink); }
.hud .notes-btn .kbd { font-size: .66rem; opacity: .8; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 1px 5px; }

/* Top progress bar + per-slide tick rail */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; z-index: 90;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  width: 0; transition: width .3s cubic-bezier(.2,.7,.3,1);
}
.progress-ticks {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 89;
  display: flex; pointer-events: none;
}
.progress-ticks span { flex: 1; border-right: 1px solid rgba(255,255,255,.14); }
.progress-ticks span:last-child { border-right: none; }

/* Help hint top-right */
.help-hint {
  position: fixed; top: 14px; right: 16px; z-index: 80;
  font-size: .76rem; color: rgba(255,255,255,.65); font-weight: 600;
  display: flex; gap: 12px; align-items: center;
}
.help-hint .kbd {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px; padding: 2px 7px; font-size: .72rem;
}
body.notes-open .help-hint { right: calc(var(--aside-w) + 16px); }

/* ============================================================
   PRESENTER OVERLAY (aside) — spacebar toggles
   Desktop: right sidebar. Mobile: top sheet.
   ============================================================ */
.presenter {
  position: fixed; z-index: 85; top: 0; right: 0; height: 100vh; width: var(--aside-w);
  background: #0e1f30; color: #d7e6f2; border-left: 1px solid rgba(255,255,255,.1);
  box-shadow: -20px 0 60px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column; overflow: hidden;
}
body.notes-open .presenter { transform: none; }
.presenter__head {
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.presenter__head .ttl {
  font-family: var(--font-head); font-weight: 900; color: #fff; font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
}
.presenter__head .ttl::before { content: "🎤"; font-size: 1rem; }
.presenter__head .right { display: flex; align-items: center; gap: 10px; }
.presenter__head .timer {
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; color: #9fc3e0;
  font-variant-numeric: tabular-nums; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 4px 9px; cursor: pointer;
  user-select: none;
}
.presenter__head .timer::before { content: "⏱ "; opacity: .8; }
.presenter__head .timer.is-paused { color: #6f8aa3; }
.presenter__head .close {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1rem;
}
.presenter__head .close:hover { background: var(--pink); }
.presenter__body { padding: 20px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.presenter__body::-webkit-scrollbar { width: 7px; }
.presenter__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 7px; }

.pn-block { margin-bottom: 22px; }
.pn-block:last-child { margin-bottom: 0; }
.pn-block h4 {
  font-family: var(--font-head); font-weight: 900; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.pn-block.say h4 { color: #7cc6ff; }
.pn-block.ask h4 { color: #fbbf24; }
.pn-block.obj h4 { color: #f9a8d4; }
.pn-block h4 .badge {
  width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center;
  justify-content: center; font-size: .7rem; background: rgba(255,255,255,.1);
}
.pn-block p { font-size: .92rem; color: #c4d6e6; line-height: 1.6; }
.pn-block ul { list-style: none; display: grid; gap: 10px; }
.pn-block li { font-size: .9rem; color: #c4d6e6; line-height: 1.5; padding-left: 16px; position: relative; }
.pn-block li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.pn-block.ask li { color: #ecd9a8; }
.pn-block.obj .qa { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.pn-block.obj .qa .q { color: #f9a8d4; font-weight: 800; font-size: .88rem; margin-bottom: 5px; }
.pn-block.obj .qa .a { color: #c4d6e6; font-size: .88rem; line-height: 1.55; }
.pn-empty { color: #6f8aa3; font-size: .9rem; font-style: italic; }
.pn-slidetag { font-size: .72rem; color: #6f8aa3; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body { font-size: 16px; }
  body.notes-open .deck { padding-right: 0; }
  body.notes-open .hud { left: 50%; transform: translateX(-50%); }
  body.notes-open .help-hint { right: 16px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split--40 { grid-template-columns: 1fr; gap: 20px; }
  .flow { grid-auto-flow: row; }

  /* Presenter becomes a top sheet on mobile/tablet */
  .presenter {
    top: 0; left: 0; right: 0; width: 100%; height: auto; max-height: 72vh;
    border-left: none; border-bottom: 1px solid rgba(255,255,255,.12);
    transform: translateY(-100%); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }
  body.notes-open .presenter { transform: none; }
}

@media (max-width: 560px) {
  .slide { width: 96vw; max-height: 90vh; }
  .slide__inner { padding: 26px 18px; min-height: auto; }
  .tbl { font-size: .78rem; }
  .tbl th, .tbl td { padding: 8px 7px; }
  /* On phones the money table scrolls horizontally inside its card instead of clipping */
  .tbl-scroll { overflow-x: auto; }
  .tbl-scroll .tbl { min-width: 460px; }
  .help-hint { display: none; }
  .grid-3, .grid-4 { gap: 12px; }
  .hud .notes-btn .kbd { display: none; }
  /* Devices stack and shrink so the laptop base + label never run off-screen */
  .device-stage { gap: 22px; }
  .laptop, .phone { max-width: 100%; }
}

/* On touch devices the keyboard hints are meaningless → hide them */
@media (pointer: coarse) {
  .hud .notes-btn .kbd { display: none; }
  .help-hint { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; }
  .presenter, .deck, .hud, .progress { transition: none; }
}

/* ============================================================
   PRINT — one slide per page, no chrome, notes hidden
   ============================================================ */
@media print {
  body { background: #fff; overflow: visible; }
  .deck { position: static; display: block; padding: 0 !important; background: #fff; }
  .hud, .progress, .help-hint, .presenter { display: none !important; }
  .slide {
    display: block !important; width: 100%; max-height: none; box-shadow: none;
    border-radius: 0; page-break-after: always; border-bottom: 1px solid #ddd;
  }
  .slide__inner { min-height: auto; padding: 30px; }
  .slide--title, .slide--dark { background: #0b2236 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Print: never clip tables; let device frames size to content within the page */
  .tbl-scroll { overflow: visible !important; }
  .tbl-scroll .tbl { min-width: 0 !important; }
  .device-stage { gap: 20px; }
  .laptop, .phone { break-inside: avoid; }
  /* iframes may not paint reliably in PDF; the real .shot screenshots carry the slide */
  .device-view .embed { display: none !important; }
  .device-view .shot { display: block !important; }
  .progress-ticks { display: none !important; }
}
