/* ═══════════════════════════════════════════════
   SPOT PITCH DECK — SHARED STYLES
   ═══════════════════════════════════════════════ */

* { font-family: 'Google Sans', 'Google Sans Display', 'Product Sans', system-ui, sans-serif; margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #fff; }


/* ── Slide sections ─────────────────────────── */
.deck-slide {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100vh;
}
.deck-slide.active { display: block; }

/* Shared chrome (logo, header nav, top nav, mobile menu, login modal,
   footer, burger) is styled by /chrome.css — single source of truth.
   Deck-specific overrides only below if absolutely needed. */

/* ── Story progress bars ─────────────────────── */
.story-progress {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  display: flex;
  gap: 5px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.story-progress.show { opacity: 1; }

.story-bar {
  flex: 1;
  height: 5px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.story-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: #c8c8c8;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-bar.done::after { width: 100%; background: #1a1a1a; }
.story-bar.active::after {
  width: 100%;
  background: #1a1a1a;
}

/* ── Fade overlay ────────────────────────────── */
.fade-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #fff;
  z-index: 250; pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease;
}
.fade-overlay.active { opacity: 1; }

/* ── Shared heading ──────────────────────────── */
.heading-wrap {
  position: fixed; top: 120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; max-width: calc(100% - 48px);
  padding: 0 12px; z-index: 10;
}
.heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.03em;
  text-align: left; color: #000; min-height: 2.3em;
  position: relative;
}
.heading .word { display: inline-block; white-space: nowrap; }
.heading .char { display: inline-block; opacity: 0; will-change: opacity; }
.heading .space { display: inline; width: auto; opacity: 0; }

/* ── Typewriter cursor ───────────────────────── */
.tw-cursor {
  position: fixed; width: 3px; background: #1a1a1a;
  pointer-events: none; transition: none;
  animation: blink 1s step-end infinite;
  z-index: 50;
}
.tw-cursor.hidden { opacity: 0; animation: none; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Avatar field ────────────────────────────── */
.avatar-field {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 0;
}
.avatar-field .af-face {
  position: absolute; border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}
.avatar-field .af-face.show { opacity: 1; }
.avatar-field .af-face.faded { opacity: 0.08; }

/* ── Text shield ─────────────────────────────── */
.text-shield {
  position: fixed; z-index: 1;
  background: rgba(255,255,255,0.9); pointer-events: none;
  border-radius: 16px;
  box-shadow: 0 0 40px 24px rgba(255,255,255,0.9);
}

/* ── Next button ─────────────────────────────── */
/* ── Deck navigation — horizontal back + next ── */
.deck-nav {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 200;
  pointer-events: none; /* container is transparent to clicks; children opt in */
}
.deck-nav-back {
  display: none; /* hidden until .show */
  flex: 0 0 auto;
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f2f2f4;
  color: #1d1d1f;
  transition: background 0.15s, transform 0.1s;
}
.deck-nav-back.show { display: inline-flex; pointer-events: auto; }
.deck-nav-back:hover { background: #e8e8ed; }
.deck-nav-back:active { transform: scale(0.98); }
.deck-nav-back i { font-size: 0.8em; }
.deck-nav-next {
  flex: 1;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  border: none;
  background: #2383e2;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.2s ease, transform 0.1s;
}
.deck-nav-next.show { opacity: 1; pointer-events: auto; cursor: pointer; }
.deck-nav-next:hover { background: #1b6ec2; }
.deck-nav-next:active { transform: scale(0.98); }

/* Loading state — hides the button label/arrow + shows a centred white
   spinner. Set by per-slide submit handlers (e.g. entry-share.js) on
   click, cleared on error so users get a chance to retry. */
.deck-nav-next.loading {
  pointer-events: none;
  color: transparent;
  position: relative;
}
.deck-nav-next.loading > * { visibility: hidden; }
.deck-nav-next.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: deckNavSpin 0.7s linear infinite;
}
@keyframes deckNavSpin { to { transform: rotate(360deg); } }

/* ── Logo slide picker (mobile) ──────────────── */
.logo-picker {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 600;
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
}
.logo-picker.open { display: block; }
.logo-picker-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: #525252;
  text-align: left;
  cursor: pointer;
}
.logo-picker-item:hover { background: #f5f5f7; }
.logo-picker-item.active { font-weight: 600; color: #1a1a1a; }

/* ── Dev slide picker — tiny grey "?" round button ──
   Native <select> overlays a styled wrapper. The wrapper renders the "?"
   glyph; the select sits invisibly on top so the OS-native dropdown still
   opens on click. Desktop only — the existing @media rule below hides it
   on mobile. */
.slide-picker-wrap {
  /* Hidden by default — dev tool. Trust-deck.js adds body.dev-mode on
     localhost / preview deploys / ?dev=1 URLs which flips this to
     display:flex. Prevents the "?" button leaking to real users on
     checkin.helpspot.it. */
  display: none;
  position: fixed;
  bottom: 16px; left: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ececef;
  color: #b8b8bd;
  font-family: inherit; font-size: 0.7rem; font-weight: 600;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 600;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
  user-select: none;
}
body.dev-mode .slide-picker-wrap { display: flex; }
.slide-picker-wrap::before { content: '?'; line-height: 1; }
.slide-picker-wrap:hover { opacity: 1; color: #515154; background: #e0e0e5; }
.slide-picker {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  border: none;
  background: transparent;
  color: transparent;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}
.slide-picker:focus { outline: none; }

/* ═══════════════════════════════════════════════
   SLIDE 1 — Hero
   ═══════════════════════════════════════════════ */
#slide-1 .hero-inner {
  position: relative; width: 100%; height: 100vh;
  display: flex; align-items: flex-start;
  padding: 120px 60px;
}
#slide-1 .hero-heading {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -0.03em; text-align: left;
}
#slide-1 .hero-heading .primary { color: #000; }
#slide-1 .hero-heading .fade-1 { color: rgba(0,0,0,0.50); }
#slide-1 .hero-heading .fade-2 { color: rgba(0,0,0,0.38); }
#slide-1 .hero-heading .fade-3 { color: rgba(0,0,0,0.28); }
#slide-1 .hero-heading .fade-4 { color: rgba(0,0,0,0.20); }
#slide-1 .hero-heading .fade-5 { color: rgba(0,0,0,0.14); }

#slide-1 .hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px; padding: 18px 36px;
  background: #2383e2; color: #fff;
  border: none; border-radius: 12px;
  font-size: 1.1rem; font-weight: 500; font-family: inherit;
  letter-spacing: 0.01em; cursor: pointer; transition: all 0.2s ease;
  text-decoration: none;
}
#slide-1 .hero-cta:hover { background: #1b6ec2; transform: scale(1.03); }
#slide-1 .hero-cta:active { transform: scale(0.98); }

/* Floating faces — slide 1 */
#slide-1 .hero-float-face {
  position: absolute; width: 80px; pointer-events: none;
}
#slide-1 .face-1 { bottom: 22%; left: 5%;  animation: floatA 18s ease-in-out infinite; }
#slide-1 .face-2 { bottom: 16%; left: 18%; animation: floatB 22s ease-in-out infinite; }
#slide-1 .face-3 { bottom: 26%; left: 42%; animation: floatC 20s ease-in-out infinite; }
#slide-1 .face-4 { bottom: 13%; left: 58%; animation: floatD 24s ease-in-out infinite; }
#slide-1 .face-5 { bottom: 20%; left: 82%; animation: floatE 19s ease-in-out infinite; }

@keyframes floatA {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(8px, -14px) rotate(1deg); }
  50%  { transform: translate(-5px, -22px) rotate(-0.8deg); }
  75%  { transform: translate(10px, -8px) rotate(0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes floatB {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-10px, 12px) rotate(-1.2deg); }
  50%  { transform: translate(7px, 18px) rotate(0.6deg); }
  75%  { transform: translate(-6px, 6px) rotate(-0.4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes floatC {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(12px, -8px) rotate(0.8deg); }
  50%  { transform: translate(6px, -18px) rotate(-1deg); }
  75%  { transform: translate(-8px, -10px) rotate(0.6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes floatD {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-6px, 14px) rotate(-0.6deg); }
  50%  { transform: translate(10px, 8px) rotate(1deg); }
  75%  { transform: translate(4px, 16px) rotate(-0.8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes floatE {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-8px, -10px) rotate(0.7deg); }
  50%  { transform: translate(4px, -16px) rotate(-0.5deg); }
  75%  { transform: translate(12px, -6px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Notifications — slide 1 */
#slide-1 .hero-notifs {
  position: absolute; top: 90px; right: 60px;
  display: flex; flex-direction: column; gap: 10px; z-index: 10;
}
#slide-1 .hero-notif {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.06);
  transform: translateX(calc(100% + 60px)); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
  pointer-events: none;
}
#slide-1 .hero-notif.show { transform: translateX(0); opacity: 1; }
#slide-1 .hero-notif .notif-icon { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
#slide-1 .hero-notif .notif-icon svg { width: 100%; height: 100%; }
#slide-1 .hero-notif .notif-sender { font-size: 1rem; font-weight: 600; color: #1d1d1f; }
#slide-1 .hero-notif .notif-time { font-size: 0.875rem; color: #86868b; }
#slide-1 .hero-notif .notif-subject { font-size: 0.925rem; color: #515154; margin-top: 2px; }
#slide-1 .hero-notif .notif-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#slide-1 .hero-notif .notif-content { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════
   SLIDE 4 — team scaling overrides
   ═══════════════════════════════════════════════ */
#slide-4 .heading { max-width: 470px; }
#slide-4 .text-shield {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 60px 36px rgba(255,255,255,0.95);
}
#slide-4 .heading-wrap { z-index: 12; }

/* ═══════════════════════════════════════════════
   SLIDE 5 — faded avatar backdrop
   ═══════════════════════════════════════════════ */
#slide-5 .text-shield {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 60px 36px rgba(255,255,255,0.95);
}
#slide-5 .heading-wrap { z-index: 12; }

/* ═══════════════════════════════════════════════
   SLIDE 14 — Pricing calculator
   ═══════════════════════════════════════════════ */
.pricing-area {
  position: fixed;
  /* Top must clear the heading-wrap (top: 120 + ~83px for 2-line H1
     at max font + breathing). Bottom reserves the deck-nav chrome.
     Both vh-clamped so they tighten on shorter viewports. */
  top: clamp(220px, 28vh, 260px);
  bottom: clamp(60px, 10vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vh, 28px);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 5;
}
.pricing-area.show { opacity: 1; }

.input-wrap { text-align: center; }
.people-input {
  width: auto;
  min-width: 100px;
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  font-family: inherit;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.04em;
  text-align: center;
  outline: none;
  background: #fff;
  -moz-appearance: textfield;
  transition: border-color 0.2s ease;
}
.people-input::-webkit-outer-spin-button,
.people-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.people-input:focus { border-color: #1a1a1a; }
.people-input.highlight { border-color: #34d058; border-width: 3px; }

.input-label {
  font-size: 1rem;
  color: #86868b;
  margin-top: 8px;
  text-align: center;
}

.slider-wrap {
  width: 100%; padding: 0 12px;
}

.slider-active.hide { display: none; }
.slider-maxed { display: none; text-align: center; padding: 8px 0; }
.slider-maxed.show { display: block; }
.slider-maxed-text {
  font-size: 0.95rem;
  color: #86868b;
  margin-bottom: 8px;
}
.slider-show-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px;
  background: #1a1a1a; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-moz-range-thumb {
  width: 28px; height: 28px;
  background: #1a1a1a; border-radius: 50%; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.breakdown {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.breakdown-price {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: #1a1a1a;
}
.breakdown-total {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}
.breakdown-daily {
  font-size: 0.9rem;
  color: #86868b;
}

.get-spot-btn {
  width: 100%;
  padding: 18px 40px;
  background: #34d058;
  color: #1a1a1a;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}
.get-spot-btn:hover { background: #2bc44d; transform: scale(1.02); }

.setup-hint {
  font-size: 0.85rem;
  color: #a3a3a3;
  text-align: center;
  margin-top: -8px;
}

/* Slide-14 size clamps — heading and people-input shrink on short
   viewports (vh-based) so the calculator fits more cases without
   needing the compact layout. Scoped to #slide-14. */
#slide-14 .heading {
  font-size: clamp(22px, 4vh, 36px);
}
#slide-14 .people-input {
  font-size: clamp(2rem, 6vh, 4rem);
  padding: clamp(4px, 0.8vh, 8px) clamp(10px, 2vw, 16px);
  border-radius: clamp(10px, 2vh, 16px);
}
#slide-14 .input-label {
  font-size: clamp(0.8rem, 1.6vh, 1rem);
  margin-top: clamp(4px, 0.8vh, 8px);
}
#slide-14 .breakdown-total {
  font-size: clamp(1.2rem, 3vh, 2rem);
}
#slide-14 .get-spot-btn {
  padding: clamp(12px, 2.5vh, 18px) clamp(24px, 5vw, 40px);
  font-size: clamp(0.95rem, 2vh, 1.1rem);
}

/* Slide 14 footer — Back + Get Spot side by side, matching the
   deck-nav back+next proportions: Back is fixed-width grey, Get Spot
   takes the rest. Replaces the global .deck-nav-back on this slide. */
.s14-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
.s14-actions .get-spot-btn {
  flex: 1;
  width: auto;
}
.s14-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: clamp(12px, 2.5vh, 18px) clamp(16px, 3vw, 22px);
  background: #f2f2f4;
  color: #1d1d1f;
  border: none;
  border-radius: 12px;
  font-size: clamp(0.95rem, 2vh, 1rem);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.s14-back-btn:hover { background: #e8e8ed; }
.s14-back-btn:active { transform: scale(0.98); }
.s14-back-btn i { font-size: 0.8em; }

body.s14-active .deck-nav-back { display: none !important; }

/* Slider-max modal — opens when the calc slider hits 2000 so the user
   can enter a larger exact team size. Replaces the older "use input
   above" message + Show slider button (now removed). Modal can also
   be cancelled to keep the value at 2000. */
.s14-modal-overlay {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 700;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.s14-modal-overlay.show { display: flex; opacity: 1; }
.s14-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.s14-modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #1a1a1a;
}
.s14-modal-body {
  font-size: 0.95rem;
  color: #525252;
  margin-bottom: 18px;
  line-height: 1.4;
}
.s14-modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  margin-bottom: 18px;
  -moz-appearance: textfield;
}
.s14-modal-input::-webkit-outer-spin-button,
.s14-modal-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s14-modal-input:focus { border-color: #1a1a1a; }
.s14-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.s14-modal-cancel,
.s14-modal-ok {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.s14-modal-cancel { background: #f2f2f4; color: #1d1d1f; }
.s14-modal-cancel:hover { background: #e8e8ed; }
.s14-modal-ok { background: #2383e2; color: #fff; }
.s14-modal-ok:hover { background: #1b6ec2; }
.s14-modal-cancel:active,
.s14-modal-ok:active { transform: scale(0.97); }

/* Phase 2: compact 3-column breakdown — when even the clamped sizes
   can't fit, hide the big people-input + verbose breakdown and show
   three side-by-side cells (count, monthly, per-person). The slider
   remains the active input affordance in this mode. Toggled by JS
   (#slide-14.s14-compact). */
.breakdown-compact { display: none; }
#slide-14.s14-compact .input-wrap { display: none; }
#slide-14.s14-compact .breakdown { display: none; }
#slide-14.s14-compact .breakdown-compact {
  display: flex;
  width: 100%;
  gap: clamp(8px, 2vw, 24px);
  align-items: stretch;
}
.bc-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 4px;
  min-width: 0;
}
.bc-num {
  font-size: clamp(1.4rem, 4vh, 2.4rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.bc-label {
  font-size: clamp(0.7rem, 1.4vh, 0.9rem);
  color: #86868b;
  margin-top: 6px;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   SLIDE EAP
   ═══════════════════════════════════════════════ */
.scribble-underline {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
  opacity: 0;
}
.scribble-underline.show { opacity: 1; }
.scribble-underline path {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
}
.scribble-underline.show path {
  animation: scribbleDraw 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#slide-eap .text-shield {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 60px 36px rgba(255,255,255,0.95);
}
#slide-eap .heading-wrap { z-index: 12; }
.eap-supporting {
  position: fixed;
  top: 280px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  padding: 0 12px;
  font-size: 1.05rem;
  font-weight: 400;
  color: #86868b;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.eap-supporting.show { opacity: 1; }

/* ═══════════════════════════════════════════════
   SLIDE 13 — Escalation costs / tabs
   ═══════════════════════════════════════════════ */
#slide-13 .heading-wrap { width: 700px; position: relative; }

.scribble-circle {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
  opacity: 0;
}
.scribble-circle.show { opacity: 1; }
.scribble-circle path {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
}
.scribble-circle.show path {
  animation: scribbleDraw 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes scribbleDraw {
  0% { stroke-dashoffset: 350; }
  100% { stroke-dashoffset: 0; }
}

.tabs-wrap {
  position: fixed;
  top: 250px;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  max-width: calc(100% - 48px);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
}
.tabs-wrap.show { opacity: 1; }

.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0 12px;
}
.tab-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #737373;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { background: #e8e8e8; color: #525252; }
.tab-btn.active { background: #1a1a1a; color: #fff; }

.tab-content {
  position: relative;
  flex: 1;
  min-height: 0;
}
.tab-panel { display: none; height: 100%; }
.tab-panel.active { display: block; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  padding: 0 12px;
  height: 100%;
}
.stat-card {
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
}
.stat-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-business .stat-card:nth-child(1),
.tab-org .stat-card:nth-child(1) { background: #f5c842; color: #1a1a1a; }
.tab-business .stat-card:nth-child(2),
.tab-org .stat-card:nth-child(2) { background: #e8864a; }
.tab-business .stat-card:nth-child(3),
.tab-org .stat-card:nth-child(3) { background: #4285f4; }
.tab-business .stat-card:nth-child(4),
.tab-org .stat-card:nth-child(4) { background: #3a8a4f; }

.stat-figure {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.stat-figure .stat-arrow {
  display: inline-block;
  font-size: 0.9em;
  vertical-align: middle;
  margin-right: 2px;
}
.stat-label {
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  opacity: 0.9;
}

/* Slide 13 horizontal-slider mode — applied via .s13-slider class on
   #slide-13 by JS when the actual measured space for the 2x2 grid
   would force cards below a comfortable height. Class-based (not
   @media) so the trigger captures OS-level larger-text scenarios that
   grow content without changing the viewport. The partial 0.2 card
   cues the swipe affordance. */
#slide-13.s13-slider .stats-grid {
  display: flex;
  flex-direction: row;
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 12px 4px;
}
#slide-13.s13-slider .stats-grid::-webkit-scrollbar { display: none; }
#slide-13.s13-slider .stats-grid { cursor: grab; }
#slide-13.s13-slider .stats-grid.dragging { cursor: grabbing; scroll-snap-type: none; }
#slide-13.s13-slider .stats-grid.dragging .stat-card { pointer-events: none; }
#slide-13.s13-slider .stat-card {
  flex: 0 0 calc((100% - 12px) / 2.2);
  scroll-snap-align: start;
  min-height: 0;
}

/* Slider arrow buttons — only shown in slider mode. Overlay the cards
   on left/right edges, vertically centred. */
.slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1a1a1a;
  transition: background 0.15s, transform 0.1s;
}
.slider-arrow:hover { background: #fff; }
.slider-arrow:active { transform: translateY(-50%) scale(0.94); }
/* Half-overlap the card edge: arrow centre sits on the edge so 20px
   is outside the card area and 20px overlays the first/last card. */
.slider-arrow.slider-prev { left: -20px; }
.slider-arrow.slider-next { right: -20px; }
#slide-13.s13-slider .slider-arrow { display: flex; }

/* ═══════════════════════════════════════════════
   SLIDE 12 — Managers never see / email morph
   ═══════════════════════════════════════════════ */
.popup-area {
  position: fixed;
  top: 380px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  z-index: 5;
}

.email-notif {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.05),
    0 4px 16px rgba(0,0,0,0.1),
    0 12px 32px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.email-notif.show { opacity: 1; transform: translateY(0) scale(1); }
.email-notif.fade-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.email-notif .notif-icon { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.email-notif .notif-icon svg { width: 100%; height: 100%; }
.email-notif .notif-sender { font-size: 1rem; font-weight: 600; color: #1d1d1f; }
.email-notif .notif-time { font-size: 0.875rem; color: #86868b; }
.email-notif .notif-subject { font-size: 0.925rem; color: #515154; margin-top: 2px; }
.email-notif .notif-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.email-notif .notif-content { flex: 1; min-width: 0; }

.email-card {
  width: 100%;
  max-height: calc(100vh - 380px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
}
.email-card.show { opacity: 1; transform: scale(1); }

.ec-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; background: #f5f5f7; border-bottom: 1px solid #e5e7eb;
}
.ec-dot { width: 12px; height: 12px; border-radius: 50%; }
.ec-dot.red { background: #ff5f57; }
.ec-dot.amber { background: #febc2e; }
.ec-dot.green { background: #28c840; }

.ec-body { padding: 28px 32px 32px; overflow-y: auto; }
.ec-from {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0;
}
.ec-from .from-avatar { width: 40px; height: 40px; border-radius: 50%; background: url('spot-logo-canva-2.png') center/cover no-repeat; flex-shrink: 0; }
.ec-from .from-info { flex: 1; }
.ec-from .from-name { font-size: 0.95rem; font-weight: 600; color: #18181b; }
.ec-from .from-meta { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

.ec-subject {
  font-size: 1.35rem; font-weight: 600; color: #18181b;
  letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 18px;
}
.ec-content { font-size: 0.95rem; line-height: 1.65; color: #3f3f46; margin-bottom: 24px; }
.ec-note {
  font-size: 0.8rem; color: #52525b; font-style: italic;
  padding-top: 16px; border-top: 1px solid #f0f0f0;
}

/* ═══════════════════════════════════════════════
   SLIDE 11 — Redaction demo
   ═══════════════════════════════════════════════ */
#slide-11.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 130px;
  gap: 40px;
}
#slide-11 .heading-wrap {
  position: static;
  transform: none;
  width: 600px;
  max-width: calc(100% - 80px);
  padding: 0 12px;
  left: auto;
  top: auto;
}

.redact-card {
  width: 600px;
  max-width: calc(100vw - 80px);
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - 500px);
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  border: 1px solid #e8e8e8;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.redact-card.show { opacity: 1; transform: translateY(0); }

.redact-text {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.5;
  color: #171717;
  letter-spacing: -0.01em;
  padding: 0 4px;
}

.form-tabs-fake {
  display: flex;
  gap: 8px;
  padding: 12px 4px;
  opacity: 0.4;
  margin-top: auto;
}
.form-tab-fake {
  padding: 10px 18px;
  border-radius: 12px;
  background: #f0f0f0;
  font-size: 16px;
  font-weight: 400;
  color: #737373;
}
.form-tab-fake.selected { background: #171717; color: #fff; }

.form-bottom-fake {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 0;
  border-top: 1px solid #f0f0f0;
  opacity: 0.35;
}
.helper-fake { font-size: 14px; color: #a3a3a3; }
.submit-fake {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #171717;
  color: #fff;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
}
.submit-fake .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 0.65rem;
}

.sensitive {
  display: inline;
  border-radius: 4px;
  padding: 1px 4px;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.sensitive.highlight {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.sensitive.redacted {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   SLIDE 10 — "Only mental health signals"
   ═══════════════════════════════════════════════ */
.s10-content-card {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  z-index: 10;
  padding: 0 12px;
}
#slide-10 .heading {
  margin-bottom: 40px;
  min-height: 60px;
}

.no-lines { display: flex; flex-direction: column; gap: 8px; }
.no-line {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  visibility: hidden;
  background: linear-gradient(90deg, #e8553a 0%, #d44527 12%, #9e9e9e 22%, #1a1a1a 30%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust bar */
.trust-bar {
  margin-top: 48px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.trust-bar.show {
  opacity: 1;
  transform: translateY(0);
}
.trust-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: #86868b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.trust-badge {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #525252;
  background: #fafafa;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════
   SLIDE 9 — Heartbeat graph
   ═══════════════════════════════════════════════ */
#slide-9.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 40px 60px;
  gap: 36px;
}
#slide-9 .heading-wrap {
  position: static;
  transform: none;
  width: 600px;
  max-width: calc(100% - 80px);
  padding: 0 12px;
  left: auto;
  top: auto;
}
#slide-9 .heading { min-height: 3.45em; }

#slide-9 .device-frame {
  width: 600px;
  max-width: calc(100vw - 80px);
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 360px);
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transition: opacity 2s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
#slide-9 .device-frame.show { opacity: 1; }

#slide-9 .graph-container {
  position: relative;
  flex: 1;
  margin: 24px 24px 0 24px;
  overflow: visible;
}
#slide-9 .graph-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 15%;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  z-index: 5;
  pointer-events: none;
}
#slide-9 canvas { width: 100%; height: 100%; display: block; }

.graph-avatar {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  opacity: 0;
}
.graph-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: #fff;
  border: 3px solid #22c55e;
  transition: border-color 0.4s ease;
  overflow: hidden;
  position: relative;
}
.graph-avatar-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.s9-notif {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.06);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.s9-notif.show { transform: translateY(0); opacity: 1; }
.s9-notif .notif-icon { width: 44px; height: 44px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.s9-notif .notif-icon svg { width: 100%; height: 100%; }
.s9-notif .notif-content { flex: 1; min-width: 0; }
.s9-notif .notif-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.s9-notif .notif-sender { font-size: 0.875rem; font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em; }
.s9-notif .notif-time { font-size: 0.8rem; color: #86868b; flex-shrink: 0; font-weight: 400; }
.s9-notif .notif-subject { font-size: 0.825rem; color: #515154; margin-top: 1px; }

/* ═══════════════════════════════════════════════
   SLIDE 8 — Interactive check-in form
   ═══════════════════════════════════════════════ */

/* Branded loader */
.loader-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #fff; z-index: 500;
  transition: opacity 0.4s ease;
}
.loader-overlay.fade-out { opacity: 0; pointer-events: none; }
.loader-overlay.hidden { display: none; }

.loader-circle-wrapper {
  position: relative; width: 190px; height: 190px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 36px;
}
.loader-black-circle {
  width: 160px; height: 160px; border-radius: 50%; background: #171717;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.1);
  position: relative; z-index: 1;
}
.loader-spot-logo {
  display: flex; align-items: center; font-size: 2.2rem; font-weight: 500;
  letter-spacing: -0.02em; color: #f5f5f7; user-select: none;
}
.loader-ring-svg {
  position: absolute; top: 0; left: 0;
  width: 190px; height: 190px; z-index: 0; transform: rotate(-90deg);
}
.loader-ring-path {
  fill: none; stroke: #171717; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 553; stroke-dashoffset: 553;
}
.loader-ring-animate {
  animation: loaderRingReveal 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loaderRingReveal {
  0% { stroke-dashoffset: 553; }
  100% { stroke-dashoffset: 0; }
}
.loader-squish { animation: loaderSquish 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes loaderSquish {
  0% { transform: scale(1); }
  40% { transform: scale(0.93); }
  100% { transform: scale(1.06); }
}
.loader-text {
  font-size: 15px; font-weight: 400; color: #a3a3a3;
  text-align: center; max-width: 260px; line-height: 1.5;
}

/* Small loader variant */
.loader-overlay.small .loader-circle-wrapper { width: 140px; height: 140px; margin-bottom: 28px; }
.loader-overlay.small .loader-black-circle { width: 116px; height: 116px; }
.loader-overlay.small .loader-spot-logo { font-size: 1.6rem; }
.loader-overlay.small .loader-ring-svg { width: 140px; height: 140px; }
.loader-overlay.small .loader-ring-path { stroke-width: 3.5; stroke-dasharray: 408; stroke-dashoffset: 408; }
.loader-overlay.small .loader-ring-animate { animation: loaderSmallRingReveal 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes loaderSmallRingReveal {
  0% { stroke-dashoffset: 408; }
  100% { stroke-dashoffset: 0; }
}

/* Form stage */
.stage-form {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stage-form.show { opacity: 1; }
.stage-form.hidden { display: none; }

.form-layout {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.form-main {
  flex: 1; display: flex; flex-direction: column;
  max-width: 600px; width: 100%; margin: 0 auto;
  padding: 0 24px; padding-top: 18vh; overflow: hidden;
}
.form-textarea-wrap { flex: 1; overflow-y: auto; min-height: 44px; }
.form-textarea {
  display: block; width: 100%; padding: 0 4px; border: none; outline: none;
  background: transparent; font-family: inherit; font-size: 30px; font-weight: 300;
  color: #171717; letter-spacing: -0.01em; line-height: 44px;
  resize: none; overflow: hidden; min-height: 44px; caret-color: #171717;
}
.form-textarea::placeholder { color: #c8c8c8; font-weight: 300; }

.form-tabs {
  display: flex; gap: 8px; padding: 12px 4px;
  justify-content: flex-start; flex-shrink: 0;
}
.form-tab {
  padding: 10px 18px; border: none; border-radius: 12px; background: #f0f0f0;
  font-size: 16px; font-weight: 400; color: #737373;
  font-family: inherit; cursor: pointer; transition: all 0.2s ease;
}
.form-tab:hover { background: #e8e8e8; color: #525252; }
.form-tab.selected { background: #171717; color: #ffffff; }

.form-bottom {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  max-width: 600px; width: 100%; margin: 0 auto;
  padding: 12px 24px 60px;
}
.helper-text {
  font-size: 16px; font-weight: 400; color: #a3a3a3;
  max-width: 280px; line-height: 1.4;
}
#slide-8 .helper-text { color: #ffffff; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: #b0b0b0; color: #f5f5f5; border: none;
  border-radius: 100px; font-size: 1rem; font-weight: 500; font-family: inherit;
  letter-spacing: -0.01em; cursor: default;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.submit-btn .btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15); font-size: 0.75rem;
  transition: transform 0.3s ease;
}
.submit-btn.active { background: #1a1a1a; color: #fff; cursor: pointer; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.submit-btn.active:hover { transform: scale(1.04); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.submit-btn.active .btn-arrow { background: rgba(255,255,255,0.12); }
.submit-btn.active:hover .btn-arrow { transform: translateX(3px); }

/* Keyboard toolbar (shown when mobile keyboard opens) */
.keyboard-toolbar {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #fff;
}
.kb-spacer { flex: 1; }
.keyboard-toolbar .kb-tab {
  padding: 10px 18px; border: none; border-radius: 12px; background: #f0f0f0;
  font-size: 16px; font-weight: 400; color: #737373; text-align: center;
  font-family: inherit; cursor: pointer; transition: all 0.2s ease;
}
.keyboard-toolbar .kb-tab:hover { background: #e8e8e8; color: #525252; }
.keyboard-toolbar .kb-tab.selected { background: #171717; color: #ffffff; }
.kb-submit {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #b0b0b0; color: #f5f5f5; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; cursor: default;
  transition: background 0.3s ease, color 0.3s ease; font-size: 14px;
}
.kb-submit.active { background: #1a1a1a; color: #fff; cursor: pointer; }

/* Thank-you screen — sizes and gaps clamped against vh so the whole
   unit shrinks together as the viewport shrinks (Rule 1 + Rule 5 from
   LAYOUT_DECISIONS.md). Top + bottom padding hold a min floor that
   keeps content clear of the progress bar (top) and "It's that simple"
   hint + Next button (bottom). When even the floor can't hold the
   content, body.s8-done-overflow flips crisis-lines into a horizontal
   scroller (Phase 2 rules below). */
.stage-done {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: none; flex-direction: column; align-items: center;
  justify-content: flex-start;
  /* Top floor 120 keeps logo ≥30px below progress bar (which sits at
     top 76 + 5px tall = 81px). Bottom is small (8px) — crisis-support's
     own padding-bottom reserves the chrome buffer below. */
  padding: clamp(120px, 16vh, 180px) 24px 8px;
  background: #fff; z-index: 400;
  opacity: 0; transition: opacity 0.5s ease;
}
.stage-done.hidden { display: none; }
.stage-done.show { display: flex; opacity: 1; }
.done-logo {
  font-size: clamp(1.4rem, 4.5vh, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  user-select: none;
  margin-bottom: clamp(8px, 2vh, 24px);
}
.done-heading {
  font-size: clamp(22px, 5vh, 44px);
  font-weight: 500;
  color: #171717;
  text-align: center;
  margin-bottom: clamp(6px, 1.2vh, 12px);
  letter-spacing: -0.03em;
  font-family: inherit;
}
/* Check-in thanks heading specifically — "Thanks for checking in." is
   longer copy than the post-consent terminals ("Thanks.") so the shared
   clamp() looks oversized at the same viewport heights. Tighter cap. */
#slide-8 .done-heading {
  font-size: clamp(20px, 3.5vh, 30px);
}
.done-body {
  font-size: clamp(14px, 2.6vh, 22px);
  font-weight: 300;
  color: #525252;
  text-align: center;
  line-height: 1.5;
  max-width: 480px;
  /* Tight gap between "We've noted…" and the crisis intro below.
     ~1 line height of padding even on tall viewports. */
  margin-bottom: clamp(8px, 1.5vh, 24px);
}
.done-next { display: none; }

/* "It's that simple" hint above next button */
.done-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 410;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.done-hint.show { opacity: 1; }
.done-hint-text {
  font-family: 'Caveat', 'Bradley Hand', cursive !important;
  font-size: 1.8rem;
  font-weight: 600;
  color: #2383e2;
  white-space: nowrap;
}
.done-hint-text .char {
  display: inline-block;
  opacity: 0;
  font-family: inherit !important;
}
.done-hint-arrow {
  font-size: 1.4rem;
  color: #2383e2;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.done-hint-arrow.show { opacity: 1; }

/* Crisis support — sits directly below the body text with a small
   gap (no auto-bottom-push that creates huge whitespace). The
   padding-bottom is the chrome buffer: floor 180 reserves enough
   space for "It's that simple" hint (top edge ~154px from viewport
   bottom) plus 24px breathing room above the hint. */
.crisis-support {
  display: none;
  width: 100%;
  max-width: 400px;
  margin-top: clamp(8px, 2vh, 32px);
  padding-bottom: clamp(180px, 18vh, 220px);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.crisis-support.show {
  display: block;
  opacity: 1;
}
.crisis-intro {
  font-size: clamp(0.85rem, 2vh, 0.95rem);
  font-weight: 400;
  color: #525252;
  text-align: center;
  margin-bottom: clamp(8px, 1.5vh, 16px);
  line-height: 1.5;
}
.crisis-lines {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 12px);
}
.crisis-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(8px, 1.5vh, 14px) clamp(12px, 2vw, 18px);
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.crisis-icon {
  font-size: 0.85rem;
  color: #86868b;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.crisis-name {
  font-size: clamp(0.8rem, 1.8vh, 0.9rem);
  font-weight: 600;
  color: #1a1a1a;
  min-width: 100px;
}
.crisis-number {
  font-size: clamp(0.85rem, 2vh, 0.95rem);
  font-weight: 600;
  color: #2383e2;
  flex-shrink: 0;
}
.crisis-detail {
  font-size: clamp(0.75rem, 1.6vh, 0.8rem);
  color: #86868b;
  margin-left: auto;
}

/* Wrap exists so .slider-arrow can position absolutely against the
   cards row only (not the whole crisis-support which includes the
   intro paragraph). Always relative; arrows shown only in overflow. */
.crisis-lines-wrap { position: relative; }
body.s8-done-overflow #s8-stage-done .slider-arrow { display: flex; }
body.s8-done-overflow .crisis-lines { cursor: grab; }
body.s8-done-overflow .crisis-lines.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
body.s8-done-overflow .crisis-lines.dragging .crisis-line { pointer-events: none; }

/* Phase 2: when stage-done content can't fit even at minimum clamps,
   body.s8-done-overflow flips crisis-lines to a horizontal slider.
   Toggled by JS measurement (see slide-8 IIFE in deck.html). */
body.s8-done-overflow .crisis-lines {
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 4px 4px;
}
body.s8-done-overflow .crisis-lines::-webkit-scrollbar { display: none; }
body.s8-done-overflow .crisis-line {
  flex: 0 0 calc((100% - 12px) / 1.8);
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  scroll-snap-align: start;
  gap: 4px;
  min-width: 0;
}
body.s8-done-overflow .crisis-icon {
  margin-bottom: 2px;
}
body.s8-done-overflow .crisis-name {
  min-width: 0;
}
body.s8-done-overflow .crisis-detail {
  margin-left: 0;
}

/* Hint arrows */
.hint {
  position: fixed;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Caveat', 'Bradley Hand', cursive !important;
  font-size: 1.8rem; font-weight: 600;
  color: #2383e2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 120;
}
.hint *:not([class*="fa-"]) { font-family: inherit !important; }
.hint.show { opacity: 1; }
/* Skip the 0.5s fade-out when submit is pressed so the hint doesn't linger over the done screen */
.hint.dismissed, .kb-hint.dismissed { opacity: 0 !important; transition: none !important; }
.hint .hint-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  color: #2383e2; font-size: 1.6rem; flex-shrink: 0;
}
.hint-input {
  top: calc(18vh + 60px);
  left: 50%;
  transform: translateX(-50%);
}
.hint-submit {
  bottom: 130px;
  right: calc(50% - 280px);
  flex-direction: column;
  align-items: flex-end;
}
/* Hint label above kb submit button */
.kb-submit-wrap {
  position: relative;
  flex-shrink: 0;
}
.kb-hint {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Caveat', 'Bradley Hand', cursive !important;
  font-size: 1.4rem; font-weight: 600;
  color: #2383e2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.kb-hint *:not([class*="fa-"]) { font-family: inherit !important; }
.kb-hint .hint-arrow { font-size: 1.2rem; color: #2383e2; }
.kb-hint.show { opacity: 1; }

/* ═══════════════════════════════════════════════
   SLIDE 7 — Email template
   ═══════════════════════════════════════════════ */
#slide-7.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 40px 60px;
  gap: 40px;
}
#slide-7 .heading-wrap {
  position: static;
  transform: none;
  width: 600px;
  max-width: calc(100% - 80px);
  padding: 0 12px;
  left: auto;
  top: auto;
}
#slide-7 .heading {
  min-height: 50px;
}

/* ═══════════════════════════════════════════════
   SLIDE TRUST-8 — Leave Spot email template
   Same flex centering as slide-7 so the mail-window + deck-nav don't
   overlap. Extra bottom padding (140px vs slide-7's 60px) — this slide
   has the persistent footer block (arrow + leave link) at the bottom
   of the mail body, so it tends to be taller.
   ═══════════════════════════════════════════════ */
#slide-trust-8.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 40px 140px;
  gap: 32px;
}
#slide-trust-8 .heading-wrap {
  position: static;
  transform: none;
  width: 600px;
  max-width: calc(100% - 80px);
  padding: 0 12px;
  left: auto;
  top: auto;
}
#slide-trust-8 .heading {
  min-height: 50px;
}
/* Tighter max-height for the mail-window on this slide (deck-nav clearance) */
#slide-trust-8 .mail-window {
  max-height: calc(100vh - 340px);
}

.mail-window {
  position: relative;
  width: 560px;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 280px);
  transform: scale(0.94);
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
}
.mail-window.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.mw-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #f5f5f7;
  border-bottom: 1px solid #e5e7eb;
}
.mw-dot { width: 12px; height: 12px; border-radius: 50%; }
.mw-dot.red { background: #ff5f57; }
.mw-dot.amber { background: #febc2e; }
.mw-dot.green { background: #28c840; }

.mw-body {
  padding: 32px 36px 36px;
  overflow-y: auto;
}
.mw-from {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.mw-from .from-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: url('spot-logo-canva-2.png') center/cover no-repeat;
  flex-shrink: 0;
}
.mw-from .from-info { flex: 1; }
.mw-from .from-name { font-size: 0.95rem; font-weight: 600; color: #18181b; }
.mw-from .from-meta { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

.mw-subject {
  font-size: 1.5rem;
  font-weight: 600;
  color: #18181b;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 22px;
}
.mw-greeting { font-size: 1rem; color: #27272a; margin-bottom: 14px; }
.mw-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #3f3f46;
  margin-bottom: 28px;
}

.mw-cta-wrap { position: relative; display: inline-block; }
.mw-cta {
  display: inline-block;
  padding: 14px 32px;
  background: #2383e2;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mw-cta:hover { background: #1b6ec2; transform: scale(1.02); }

.mw-cta.pulse {
  animation: ctaPulse 1.6s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(35, 131, 226, 0.5), 0 4px 14px rgba(35, 131, 226, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(35, 131, 226, 0), 0 6px 20px rgba(35, 131, 226, 0.35);
    transform: scale(1.03);
  }
}

.try-it {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Caveat', 'Bradley Hand', cursive !important;
  font-size: 2rem;
  font-weight: 600;
  color: #2383e2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
  pointer-events: none;
  letter-spacing: 0.01em;
}
.try-it *:not([class*="fa-"]) { font-family: inherit !important; }
.try-it.show { opacity: 1; }
.try-it .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2383e2;
  font-size: 2.2rem;
}

.mw-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Back button inside the email mockup — replaces the global deck-nav-back
   on slide 7. Matches the deck-nav-back style (grey, rounded) so it
   reads as the same kind of action, just relocated. Stacked directly
   below the blue "Open check-in" CTA. */
.mw-back {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 32px;
  background: #f2f2f4;
  color: #1d1d1f;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.mw-back:hover { background: #e8e8ed; }
.mw-back:active { transform: scale(0.98); }
.mw-back i { font-size: 0.8em; }

/* Hide the global deck-nav Back when slide 7 is active — its replacement
   lives inside the email mockup. Class is toggled by slide-7 init/destroy. */
body.s7-active .deck-nav-back { display: none !important; }

/* Scroll cue — handwritten two-line "scroll down ↓" pinned to the
   bottom-centre of the mail-window. Shown ONLY when the "Open check-in"
   CTA is not fully visible inside the scrollable email body. Pulses
   gently. Caveat font + blue to match the "Try it" annotation style. */
.mw-scroll-cue {
  display: none;
  position: absolute;
  bottom: 8px;
  left: 50%;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  z-index: 5;
  font-family: 'Caveat', 'Bradley Hand', cursive !important;
  color: #2383e2;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  animation: mwScrollPulse 1.6s ease-in-out infinite;
}
.mw-scroll-cue *:not([class*="fa-"]) { font-family: inherit !important; }
.mw-scroll-cue.show { display: flex; }
.mw-scroll-cue .cue-arrow { font-size: 1.1rem; }
/* Tight white halo behind just the text + arrow so the email content
   is muted only directly underneath the cue, not across the full
   email width. Radial gradient fades to transparent — no hard edges. */
.mw-scroll-cue::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 70px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 45%,
    rgba(255, 255, 255, 0) 80%
  );
  z-index: -1;
  pointer-events: none;
}
@keyframes mwScrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.85; }
  50%      { transform: translate(-50%, 4px); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   SLIDE 6 — red beacon + notification
   ═══════════════════════════════════════════════ */
#slide-6 .text-shield {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 60px 36px rgba(255,255,255,0.95);
}
#slide-6 .heading-wrap { z-index: 12; }

/* ═══════════════════════════════════════════════
   PERSISTENT AVATAR CONTAINER
   ═══════════════════════════════════════════════ */
#persistent-avatars {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 0;
}
#persistent-avatars::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 100%);
  z-index: 1;
  pointer-events: none;
}
#persistent-avatars .af-face {
  transition: none; /* opacity changes are instant unless growAvatars adds its own */
}

/* Red beacon highlight wrap */
.highlight-wrap {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  animation: redBeacon 1.6s ease-in-out infinite;
}
.highlight-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

@keyframes redBeacon {
  0%, 100% {
    background: radial-gradient(circle, rgba(239, 68, 68, 1) 0%, rgba(239, 68, 68, 0.95) 50%, rgba(239, 68, 68, 0) 75%);
    box-shadow:
      0 0 40px 16px rgba(239, 68, 68, 0.55),
      0 0 80px 30px rgba(239, 68, 68, 0.3);
  }
  50% {
    background: radial-gradient(circle, rgba(239, 68, 68, 1) 0%, rgba(239, 68, 68, 1) 55%, rgba(239, 68, 68, 0) 80%);
    box-shadow:
      0 0 60px 24px rgba(239, 68, 68, 0.7),
      0 0 110px 50px rgba(239, 68, 68, 0.4);
  }
}

/* Spot notification (slide 6) — anchored to .highlight-wrap as a DOM child.
   Vertically stacked under the beacon with a fixed gap, so the unit
   (beacon + gap + notif) stays a constant shape regardless of viewport.
   Width clamps for mobile so the notif never overflows narrow screens. */
.spot-notif {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px);
  width: min(340px, calc(100vw - 48px));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 20px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.06);
  z-index: 50; opacity: 0;
  transform: translate(-50%, 12px);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.6s ease;
  pointer-events: none;
}
.spot-notif.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Slide-6 scroll fallback — when the beacon+notif unit can't fit
   between the heading and chrome at the minimum padding floor, switch
   the slide into scrollable flow. Heading-wrap and deck-nav stay fixed
   (they're outside #slide-6). The beacon, reparented into #slide-6 with
   .s6-flow, becomes a flow element that scrolls with content. */
body.s6-overflow,
html.s6-overflow {
  overflow: auto;
  height: auto;
}
body.s6-overflow #slide-6 {
  position: relative;
  top: auto; right: auto; bottom: auto; left: auto;
  height: auto;
  min-height: 100vh;
  padding-bottom: 140px; /* clear .deck-nav fixed zone */
}
body.s6-overflow .highlight-wrap.s6-flow {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  margin: 24px auto !important;
}
.spot-notif .notif-icon { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.spot-notif .notif-icon svg { width: 100%; height: 100%; }
.spot-notif .notif-sender { font-size: 1rem; font-weight: 600; color: #1d1d1f; white-space: nowrap; }
.spot-notif .notif-time { font-size: 0.875rem; color: #86868b; }
.spot-notif .notif-subject { font-size: 0.925rem; color: #515154; margin-top: 2px; }
.spot-notif .notif-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.spot-notif .notif-content { flex: 1; min-width: 0; }

/* Burger menu, mobile menu, login modal are all styled by /chrome.css. */

/* ═══════════════════════════════════════════════
   WELCOME BACK SLIDE — full-screen slide-style takeover
   Reuses .heading-wrap / .heading / .tw-cursor / .text-shield from the
   normal slide engine so the typewriter intro looks identical to other
   slides. The image + buttons sit below the heading, fading in once the
   typewriter finishes.
   ═══════════════════════════════════════════════ */
.welcome-back-slide {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 199; /* below header (200), above slide content & nav buttons */
  background: #fff;
}
.welcome-back-slide[hidden] { display: none; }

/* Content block: image sits between heading and bottom-fixed buttons */
.welcome-back-content {
  position: fixed;
  top: 240px;
  bottom: 130px; /* space above the fixed buttons */
  left: 50%;
  width: 600px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.welcome-back-slide.content-in .welcome-back-content {
  opacity: 1;
  transform: translate(-50%, 0);
}
.welcome-back-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: block;
}
/* Buttons: fixed to bottom on all viewports */
.welcome-back-actions {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: row;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}
.welcome-back-slide.content-in .welcome-back-actions {
  opacity: 1;
}
.wb-btn {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  transition: background 0.15s, transform 0.1s;
}
.wb-btn:active { transform: scale(0.98); }
.wb-btn i { font-size: 0.85em; flex-shrink: 0; }
.wb-btn-primary { background: #2383e2; color: #fff; }
.wb-btn-primary:hover { background: #1b6ec2; }
.wb-btn-secondary { background: #f2f2f4; color: #1d1d1f; }
.wb-btn-secondary:hover { background: #e8e8ed; }

/* ═══════════════════════════════════════════════
   CRAMPED FIT — desktop-width but centre tabs would
   collide with logo or top-nav. Toggled by deck.html
   measureChromeFit(); mirrors chrome.css behaviour
   without shrinking the desktop logo.
   ═══════════════════════════════════════════════ */
body.chrome-cramped .header-nav,
body.chrome-cramped .top-nav { display: none; }
body.chrome-cramped .mobile-cta,
body.chrome-cramped .burger-btn { display: flex; }
body.chrome-cramped .login-dropdown { top: 70px; right: 16px; left: 16px; width: auto; padding: 24px 20px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Chrome (logo, nav, mobile menu, burger, login modal) handled by /chrome.css. */
  .slide-picker-wrap { display: none; }
  .logo-picker.open { display: block; }

  /* ── Welcome back slide — mobile ───────────── */
  .welcome-back-slide .heading-wrap { top: 100px; }
  .welcome-back-content {
    top: 180px;
    bottom: 110px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
    transform: translateY(8px);
  }
  .welcome-back-slide.content-in .welcome-back-content {
    transform: translateY(0);
  }
  .welcome-back-actions {
    bottom: 40px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
    transform: none;
  }
  .wb-btn { padding: 14px 12px; font-size: 0.95rem; }

  /* ── Get Spot CTA in mobile header ──────────── */
  .mobile-cta { display: inline-block; }

  /* ── Fix 2: Progress bar spacing ───────────── */
  .story-progress { top: 76px; width: calc(100% - 40px); left: 50%; }

  /* ── Fix 3: H1 — full width, left aligned, more top padding ── */
  .heading-wrap {
    top: 96px;
    width: 100% !important;
    max-width: 100% !important;
    left: 0;
    transform: none;
    padding: 0 20px;
  }
  .heading {
    font-size: clamp(24px, 7vw, 34px);
    text-align: left;
  }

  /* ── Deck nav — mobile ──────────────────────── */
  .deck-nav { bottom: 36px; width: calc(100% - 40px); }
  .deck-nav-back { padding: 14px 16px; }
  .deck-nav-next { padding: 14px 20px; font-size: 1rem; }

  /* ── Fix 5: Avatars — centred, softer fade ── */
  #persistent-avatars::before {
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  }

  /* ── Slide 1 mobile ────────────────────────── */
  #slide-1 .hero-inner { padding: 80px 20px 48px; flex-direction: column; }
  #slide-1 .hero-float-face { width: 50px; }
  #slide-1 .face-1 { bottom: 18%; left: 3%; }
  #slide-1 .face-2 { bottom: 12%; left: 16%; }
  #slide-1 .face-3 { bottom: 22%; left: 40%; }
  #slide-1 .face-4 { bottom: 10%; left: 56%; }
  #slide-1 .face-5 { bottom: 16%; left: 78%; }
  #slide-1 .hero-notifs { position: relative; top: auto; right: auto; width: 100%; margin-top: 32px; }
  #slide-1 .hero-notif { transform: translateX(100%); }
  #slide-1 .hero-notif.show { transform: translateX(0); }

  /* ── Slide 4: force "of" onto line 2 so number swap doesn't reflow ── */
  #slide-4 .heading { max-width: 72vw; }

  /* ── Fix 7: Slide 7 — email template wider ── */
  #slide-7.active { padding: 96px 16px 100px; gap: 20px; }
  #slide-7 .heading-wrap { width: 100% !important; max-width: 100% !important; padding: 0; }
  .mail-window { width: calc(100% - 16px); max-width: 100%; }
  .mw-body { padding: 20px 18px 24px; }
  .mw-subject { font-size: 1.15rem; }
  .mw-footer { display: none; }
  .try-it { font-size: 1.4rem; left: calc(100% + 8px); }
  .try-it .arrow-icon { font-size: 1.4rem; }

  /* ── Fix 8: Slide 8 check-in — keyboard + hint ── */
  .form-main { padding: 18vh 20px 0; }
  .form-textarea { font-size: 24px; line-height: 36px; }
  .form-bottom { padding: 10px 20px 28px; }
  .helper-text { color: #fff; }
  .hint-input { top: calc(18vh + 50px); }
  .hint-submit { right: 24px; bottom: 110px; }
  .hint { font-size: 1.4rem; }
  .hint .hint-arrow { font-size: 1.2rem; }

  /* ── Fix 9: Slide 9 heartbeat — taller graph, fill screen ── */
  #slide-9.active { padding: 96px 16px 100px; gap: 16px; }
  #slide-9 .heading-wrap { width: 100% !important; max-width: 100% !important; }
  #slide-9 .heading { text-align: left; min-height: auto; }
  #slide-9 .device-frame { width: 100%; max-width: 100%; max-height: calc(100vh - 340px); aspect-ratio: auto; }
  .s9-notif { left: 8px; right: 8px; padding: 12px 16px; gap: 12px; }
  .graph-avatar { width: 36px; height: 36px; }

  /* ── Fix 10: Slide 10 — h1 top margin consistent ── */
  #slide-10 .heading { margin-bottom: 24px; }
  .s10-content-card { top: 96px; width: calc(100% - 40px); max-width: calc(100% - 40px); padding: 0; }
  .no-line { font-size: clamp(18px, 5.5vw, 28px); }
  .trust-bar { margin-top: 32px; }
  .trust-badges { gap: 8px; }
  .trust-badge { padding: 8px 16px; font-size: 0.85rem; }

  /* ── Fix 11: Slide 11 redaction — h1 top, card constrained above nav ── */
  #slide-11.active { padding: 96px 16px 100px; gap: 20px; justify-content: flex-start; }
  #slide-11 .heading-wrap { width: 100% !important; max-width: 100% !important; }
  .redact-card {
    width: 100%;
    max-width: calc(100% - 16px);
    padding: 20px 20px 16px;
    aspect-ratio: auto;
    max-height: calc(100vh - 300px);
    justify-content: space-between;
  }
  .redact-text { font-size: clamp(18px, 5vw, 24px); }
  .form-tabs-fake { padding: 12px 4px; margin-top: auto; }
  .helper-fake { display: none; }
  .form-bottom-fake { padding: 10px 4px 4px; }

  /* ── Fix 12: Slide 12 managers — fit below h1, above nav ── */
  .popup-area {
    top: 250px;
    width: calc(100% - 40px);
  }
  .email-notif { padding: 12px 16px; }
  .email-card { max-height: calc(100vh - 360px); overflow: hidden; }
  .ec-body { padding: 16px 18px 20px; }
  .ec-subject { font-size: 1.25rem; margin-bottom: 12px; }
  .ec-content { font-size: 0.8rem; line-height: 1.5; margin-bottom: 16px; }
  .ec-note { display: none; }

  /* ── Fix 13/14: EAP slide — mobile avatars, h2 fits ── */
  #slide-eap .heading-wrap { width: 100% !important; max-width: 100% !important; top: 96px; padding: 0 20px; }
  .eap-supporting { display: none !important; }

  /* ── Fix 15: Slide 13 escalation — tabs fit ── */
  #slide-13 .heading-wrap { width: 100% !important; max-width: 100% !important; padding: 0 20px; }
  .tabs-wrap { top: 200px; bottom: 90px; width: calc(100% - 40px); }
  .tab-buttons { margin-bottom: 16px; padding: 0 4px; }
  .tab-btn { padding: 8px 16px; font-size: 0.85rem; }
  .stats-grid { gap: 10px; padding: 0 4px; }
  .stat-card { padding: 18px 16px 16px; }
  .stat-figure { font-size: clamp(1.4rem, 5vw, 2rem); }
  .stat-label { font-size: clamp(0.7rem, 2.5vw, 0.85rem); }

  /* ── Slide 14 pricing mobile ───────────────── */
  .pricing-area { top: 180px; bottom: 50px; gap: 20px; width: calc(100% - 40px); }
  .people-input { font-size: clamp(2.5rem, 10vw, 4rem); }
}

/* ───────────────────────────────────────────────
   LOADER FULL-SCREEN STATE
   When spotLoader.run() is active, body gets .spot-loader-visible. Hide
   the chrome logo (top-left) + the 10-dot progress bar so the brand
   moment is uncluttered. They re-appear after spotLoader.fadeOut().
   Same treatment also applies to the terminal post-submit thanks slide
   (slide-checkin-thanks) — it's a final, clean screen, no chrome.
   ─────────────────────────────────────────────── */
body.spot-loader-visible .spot-logo,
body.spot-loader-visible .story-progress,
body.spot-checkin-done .spot-logo,
body.spot-checkin-done .story-progress {
  display: none !important;
}

/* ───────────────────────────────────────────────
   ENTRY LOADER (legacy minimal — kept for back-compat; current entry
   slides use the slide-8-style ring loader via .loader-overlay).
   ─────────────────────────────────────────────── */
.entry-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; height: 100%;
}
.entry-loader-logo {
  font-size: 2.4rem; color: #171717;
  animation: entryLoaderPulse 1.4s ease-in-out infinite;
}
.entry-loader-text {
  font-size: 15px; color: #737373; margin: 0;
}
@keyframes entryLoaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ───────────────────────────────────────────────
   POST-CONSENT TERMINAL SLIDES
   (slide-held-future / -pending / -checkin-prompt / -checkin-declined /
    -joiner-pending)
   Reuses .done-logo / .done-heading / .done-body inner styles.
   ─────────────────────────────────────────────── */
.post-consent-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 0 24px; text-align: center;
}
.post-consent-actions {
  display: flex; flex-direction: column; gap: 14px; margin-top: 28px;
  align-items: center; width: 100%; max-width: 320px;
}
.post-consent-btn {
  font-family: inherit; cursor: pointer;
  font-size: 16px; padding: 14px 28px; border-radius: 999px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.post-consent-btn.primary {
  background: #171717; color: #f5f5f7; border: none;
  width: 100%; font-weight: 500;
}
.post-consent-btn.primary:hover { background: #2c2c2c; }
.post-consent-btn.link {
  background: transparent; color: #525252; border: none;
  text-decoration: underline; padding: 8px 16px; font-size: 14px;
}
.post-consent-btn.link:hover { color: #171717; }
.post-consent-btn:disabled { opacity: 0.5; cursor: default; }
