/* ============================================================
   Landing page — "dawn" edition.
   A pinned cinematic hero, three product chapters with big live
   visuals (call, calendar, chatbot), scroll-scrubbed storytelling.
   Companion to public.css (tokens, shell, reveal engine).
   Everything animated is transform/opacity only.
   ============================================================ */

.page-landing {
  --dawn-warm: #ffcf97;
  --dawn-rose: #ff9d86;
  --slot-h: 44px;
  --chapter-radius: 48px;
}

/* ---------- hero: pinned stage ----------
   The section is ~2 viewports tall; the sticky stage inside plays the
   scene as --p (from public.js, data-scrub="pin") moves 0 → 1: the
   headline lifts and fades, the device rises into the centre, the side
   cards fan out and the dawn glow climbs the horizon. */

.hero {
  --p: 0;
  position: relative;
  min-height: 175vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -0.4rem;
}

.hero-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5.6rem 4vw 0;
  overflow: hidden;
}

/* the copy is centred in the space above the peeking device */
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  min-height: calc(100vh - 5.6rem - 150px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(calc(var(--p) * -90px)) scale(calc(1 - var(--p) * 0.08));
  opacity: calc(1 - var(--p) * 2.2);
  will-change: transform, opacity;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.8;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 1.4rem + 7.4vw, 7.4rem);
  font-weight: 720;
  letter-spacing: -0.046em;
  line-height: 0.97;
}

/* line-mask reveal: each line rises out of its own clip container */
.hero-line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
  margin-block: -0.08em;
}

.line-inner {
  display: block;
}

.reveal-enabled .hero .line-inner {
  transform: translateY(118%);
  transition: transform 1250ms var(--ease-out-expo);
  transition-delay: 140ms;
  will-change: transform;
}

.reveal-enabled .hero .hero-line-2 .line-inner {
  transition-delay: 280ms;
}

.reveal-enabled .hero .hero-line-3 .line-inner {
  transition-delay: 420ms;
}

.reveal-enabled .hero.is-visible .line-inner {
  transform: none;
}

.hero-title .grad {
  background: linear-gradient(100deg,
      var(--primary) 0%,
      var(--grad-b) 38%,
      var(--dawn-warm) 68%,
      var(--dawn-rose) 84%,
      var(--primary) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-pan 12s ease-in-out infinite alternate;
}

@keyframes grad-pan {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  max-width: 680px;
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

.cta-row.centered {
  justify-content: center;
}

.hero .cta-row {
  margin-top: 2rem;
}

.hero .button {
  padding: 0.9rem 1.7rem;
  font-size: 1.04rem;
}

/* magnetic buttons: landing.js feeds --tx/--ty on fine pointers */
.button.magnetic {
  transform: translate(var(--tx, 0px), var(--ty, 0px));
}

.button.magnetic:hover {
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.03);
}

/* ---------- hero stage: device + fanning cards ---------- */

/* At rest the device peeks ~150px above the fold; by --p = 1 it has
   risen to sit centred in the viewport (never above the header). */
.hero-stage {
  --rest-top: calc(100vh - 150px);
  --final-top: max(92px, calc(50vh - 330px));
  position: absolute;
  left: 0;
  right: 0;
  top: var(--rest-top);
  z-index: 1;
  width: min(1000px, 100%);
  height: 660px;
  margin: 0 auto;
  perspective: 1800px;
  will-change: transform;
}

/* The stage is also a .reveal element: the reveal engine's transform
   rules outrank a bare class, so the scroll transform is declared for
   every reveal state — and the transform never transitions, so the
   device tracks the scroll directly instead of easing after it. */
.hero .hero-stage,
.reveal-enabled .hero .hero-stage.reveal,
.reveal-enabled .hero.is-visible .hero-stage.reveal {
  transform: translateY(calc(var(--p) * (var(--final-top) - var(--rest-top))));
  transition: opacity 900ms var(--ease-out-expo), filter 900ms var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}

.stage-tilt {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transform-style: preserve-3d;
}

.stage-phone {
  position: relative;
  z-index: 3;
  transform: translateY(calc(30px - var(--p) * 30px)) scale(calc(0.96 + var(--p) * 0.06));
  will-change: transform;
}

.stage-card {
  position: absolute;
  top: 12%;
  width: min(270px, 40vw);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-pop);
  font-size: 0.86rem;
  display: grid;
  gap: 0.55rem;
  will-change: transform;
}

.stage-cal {
  left: 50%;
  margin-left: calc(-150px - 180px);
  transform: translate3d(calc(60px - var(--p) * 150px), calc(40px - var(--p) * 50px), -60px)
    rotateY(calc(10deg + var(--p) * 12deg)) rotateZ(calc(-2deg - var(--p) * 3deg));
}

.stage-chat {
  left: 50%;
  margin-left: calc(150px - 60px);
  top: 20%;
  transform: translate3d(calc(-60px + var(--p) * 150px), calc(60px - var(--p) * 60px), -60px)
    rotateY(calc(-10deg - var(--p) * 12deg)) rotateZ(calc(2deg + var(--p) * 3deg));
}

.mini-cal-head,
.mini-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 660;
  font-size: 0.9rem;
}

.mini-chat-head {
  justify-content: flex-start;
  gap: 0.5rem;
}

.mini-cal-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 560;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 65%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.mini-slot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 560;
}

.mini-time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-slot.is-booked {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary-strong);
}

.mini-slot.is-free .mini-label {
  color: var(--muted);
  font-weight: 500;
}

.mini-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.stage-chat .bubble {
  font-size: 0.84rem;
  padding: 0.55rem 0.8rem;
  max-width: 92%;
}

/* ---------- the dawn ----------
   A horizon glow parked below the fold at rest; scroll lifts it.
   Softness comes from the gradient falloff — no filter layers. */

.dawn {
  position: absolute;
  inset: auto 0 -12vh;
  height: 78vh;
  z-index: 0;
  pointer-events: none;
}

/* The hot core of the glow sits on the horizon line: parked well below
   it at rest, it climbs to the line as the scene plays. */
.dawn-glow {
  position: absolute;
  left: 50%;
  bottom: 36%;
  width: 150vw;
  max-width: 2200px;
  aspect-ratio: 2.2 / 1;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 100%,
      color-mix(in srgb, var(--dawn-warm) 78%, transparent) 0%,
      color-mix(in srgb, var(--dawn-rose) 46%, transparent) 9%,
      color-mix(in srgb, var(--primary) 30%, transparent) 22%,
      color-mix(in srgb, var(--grad-b) 16%, transparent) 42%,
      transparent 66%);
  transform: translateX(-50%) translateY(calc(46% - var(--p) * 46%)) scale(calc(0.9 + var(--p) * 0.2));
  transform-origin: 50% 100%;
  opacity: calc(0.55 + var(--p) * 0.45);
  will-change: transform, opacity;
}

:root[data-theme="dark"] .dawn-glow {
  opacity: calc(0.65 + var(--p) * 0.35);
}

.dawn-line {
  position: absolute;
  left: 50%;
  bottom: 36%;
  height: 2px;
  width: min(74vw, 980px);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--dawn-warm) 30%, #fff 50%, var(--dawn-warm) 70%, transparent);
  transform: translateX(-50%) scaleX(calc(0.15 + var(--p) * 0.85));
  opacity: calc(0.5 + var(--p) * 0.5);
  box-shadow: 0 0 24px color-mix(in srgb, var(--dawn-warm) 70%, transparent);
  will-change: transform, opacity;
}

/* short laptops: keep the whole headline above the device */
@media (max-height: 780px) and (min-width: 761px) {
  .hero-title {
    font-size: clamp(2.6rem, 1.2rem + 5.6vw, 5.6rem);
  }

  .hero-copy {
    min-height: 0;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
  opacity: calc(1 - var(--p) * 4);
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  animation: cue-drop 2s var(--ease-standard) infinite;
}

@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- device (shared by hero + chapter 01) ---------- */

.device {
  width: min(300px, 82vw);
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3a40, #17171b 60%, #2a2a30);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4),
    0 40px 90px rgba(10, 14, 24, 0.42);
  position: relative;
}

.device-lg {
  width: min(360px, 88vw);
  border-radius: 54px;
  padding: 11px;
}

:root[data-theme="dark"] .device {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(0, 0, 0, 0.6),
    0 40px 100px rgba(0, 0, 0, 0.7);
}

.device-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #0a0a0c;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-lg .device-island {
  top: 24px;
  width: 92px;
  height: 25px;
}

.device-screen {
  border-radius: 40px;
  background: linear-gradient(200deg,
      color-mix(in srgb, var(--primary) 14%, var(--bg)) 0%,
      var(--bg) 46%);
  border: 1px solid var(--hairline);
  padding: 3.2rem 1.05rem 1.1rem;
  overflow: hidden;
  position: relative;
  color: var(--text);
}

.device-lg .device-screen {
  border-radius: 45px;
  padding: 3.6rem 1.2rem 1.3rem;
  min-height: 560px;
}

/* the dark chapter keeps the phone screen light: it reads as a real device */
.chapter-dark .device-screen {
  --text: #1d1d1f;
  --muted: #66666e;
  --hairline: rgba(29, 29, 31, 0.1);
  --surface: rgba(255, 255, 255, 0.7);
  --primary-strong: color-mix(in srgb, var(--primary) 80%, #07301f 20%);
  --bg: #fbfbfd;
  background: linear-gradient(200deg,
      color-mix(in srgb, var(--primary) 16%, #fbfbfd) 0%,
      #fbfbfd 48%);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 640;
  font-size: 0.78rem;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 65%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.caller-ring {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0.2rem auto 0.8rem;
  display: grid;
  place-items: center;
}

.caller-ring .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--primary) 55%, transparent);
  animation: ring-expand 3s var(--ease-standard) infinite;
  opacity: 0;
}

.caller-ring .ring-2 { animation-delay: 1s; }
.caller-ring .ring-3 { animation-delay: 2s; }

@keyframes ring-expand {
  0% { transform: scale(0.66); opacity: 0; }
  18% { opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

.caller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg,
      color-mix(in srgb, var(--primary) 88%, #ffffff 12%), var(--primary));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 45%, transparent);
}

.caller-avatar svg {
  width: 23px;
  height: 23px;
}

.waveform {
  display: flex;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.waveform svg {
  width: 150px;
  height: 36px;
}

.wave-bar {
  fill: var(--primary);
  transform-origin: center bottom;
  animation: wave 1.8s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }

.call-transcript {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--hairline);
}

.call-line {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.call-transcript .call-line.caller {
  color: var(--muted);
  padding-left: 0.75rem;
  border-left: 2px solid color-mix(in srgb, var(--muted) 45%, transparent);
}

.call-transcript .call-line.assistant {
  color: var(--text);
  padding-left: 0.75rem;
  border-left: 2px solid var(--primary);
}

.booking-confirmation {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.35;
}

/* hero: springs in a beat after the headline settles */
.reveal-enabled .hero .booking-confirmation {
  opacity: 0;
}

.reveal-enabled .hero.is-visible .booking-confirmation {
  animation: confirm-pop 700ms var(--ease-spring) 1700ms both;
}

@keyframes confirm-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.confirmation-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}

.confirmation-icon svg {
  width: 14px;
  height: 14px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.phone-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.routing-chip {
  margin: 0;
  width: fit-content;
  font-size: 0.76rem;
  font-weight: 620;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  background: var(--surface);
}

/* ---------- proof strip: numbers that count up ---------- */

.proof-strip {
  padding: 2.5rem 0 1.5rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.proof-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-strong) 60%, transparent);
  text-align: center;
}

.proof-value {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem);
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--text), color-mix(in srgb, var(--primary) 70%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-unit {
  font-size: 0.55em;
  font-weight: 640;
}

.proof-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 540;
  text-wrap: balance;
}

/* ---------- chapter rail ----------
   Sticky beneath the floating header while the three chapters scroll.
   .chapters is the containing block, so it lets go after chapter 03. */

.chapters {
  position: relative;
}

.chapter-rail {
  position: sticky;
  top: 4.9rem;
  z-index: 40;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto 0;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 12px 34px rgba(10, 14, 24, 0.14);
  overflow-x: auto;
  scrollbar-width: none;
  /* the chapters below are dark bands; keep the rail's own palette */
  --text: #1d1d1f;
  --muted: #66666e;
}

:root[data-theme="dark"] .chapter-rail {
  --text: #f5f5f7;
  --muted: #9d9da6;
  box-shadow: var(--glass-highlight), 0 12px 34px rgba(0, 0, 0, 0.5);
}

.chapter-rail::-webkit-scrollbar {
  display: none;
}

.chapter-rail a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 620;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 260ms var(--ease-standard), color 260ms var(--ease-standard),
    transform 300ms var(--ease-spring);
}

.chapter-rail a:hover {
  color: var(--text);
  background: var(--primary-soft);
}

.chapter-rail a:active {
  transform: scale(0.96);
}

.chapter-rail a.is-active {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}

.chapter-rail a:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 2px;
}

.rail-num {
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  opacity: 0.7;
}

/* ---------- chapters ---------- */

.chapter {
  position: relative;
  padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
  margin-top: 2rem;
  scroll-margin-top: 4.5rem;
  overflow: hidden;
}

/* Full-bleed near-black bands in both themes. Local token overrides
   flip every glass component inside to its dark variant. */
.chapter-dark {
  --text: #f5f5f7;
  --muted: #a4a4ad;
  --hairline: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(38, 38, 44, 0.92);
  --surface-input: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --bubble-assistant-bg: rgba(255, 255, 255, 0.09);
  --bubble-assistant-text: #eceef2;
  --primary-strong: color-mix(in srgb, var(--primary) 70%, #ffffff 30%);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35), 0 16px 44px rgba(0, 0, 0, 0.42);
  --shadow-pop: 0 12px 30px rgba(0, 0, 0, 0.5), 0 34px 80px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 30px 90px rgba(0, 0, 0, 0.55);
  color: var(--text);
  background:
    radial-gradient(110% 70% at 50% -10%,
      color-mix(in srgb, var(--primary) 26%, transparent), transparent 55%),
    radial-gradient(70% 50% at 90% 105%,
      color-mix(in srgb, var(--grad-b) 16%, transparent), transparent 60%),
    #09090c;
  border-radius: var(--chapter-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 110px rgba(5, 8, 18, 0.32);
}

:root[data-theme="dark"] .chapter-dark {
  background:
    radial-gradient(110% 70% at 50% -10%,
      color-mix(in srgb, var(--primary) 24%, transparent), transparent 55%),
    radial-gradient(70% 50% at 90% 105%,
      color-mix(in srgb, var(--grad-b) 14%, transparent), transparent 60%),
    #0e0e13;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}

.chapter-inner {
  position: relative;
  z-index: 1;
}

/* colossal outlined numeral, drifting slowly against the scroll */
.chapter-numeral {
  --p: 0.5;
  position: absolute;
  top: 1rem;
  right: 2vw;
  z-index: 0;
  font-size: clamp(9rem, 26vw, 24rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 14%, transparent);
  transform: translateY(calc((var(--p) - 0.5) * -160px));
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.chapter-light .chapter-numeral {
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--primary) 26%, transparent);
}

.chapter-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.chapter-head.centered {
  margin-inline: auto;
  text-align: center;
}

.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.kicker-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.chapter-title {
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.chapter-head .lead {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.22rem);
  max-width: 640px;
}

.chapter-head.centered .lead {
  margin-inline: auto;
}

/* word-rise reveal: landing.js wraps each word of .split-words */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.split-words .w-in {
  display: inline-block;
}

.reveal-enabled .split-words.reveal,
.reveal-enabled .split-words.is-split {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-enabled .split-words.is-split .w-in {
  transform: translateY(112%);
  transition: transform 1000ms var(--ease-out-expo);
  transition-delay: calc(var(--wi, 0) * 60ms + 80ms);
}

.reveal-enabled .is-visible .split-words.is-split .w-in,
.reveal-enabled .split-words.is-split.is-visible .w-in {
  transform: none;
}

/* ---------- 01 · receptionist ---------- */

.receptionist-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.call-stage {
  --p: 0;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.call-glow {
  position: absolute;
  inset: 6% -14% -4%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
      color-mix(in srgb, var(--primary) 32%, transparent),
      color-mix(in srgb, var(--primary) 12%, transparent) 48%,
      transparent 74%);
  opacity: calc(0.35 + min(1, var(--p) * 2) * 0.65);
  pointer-events: none;
}

.call-stage .device {
  position: relative;
  transform: rotateX(calc((1 - min(1, var(--p) * 2.2)) * 18deg))
    translateY(calc((1 - min(1, var(--p) * 2.2)) * 30px));
  transform-origin: center bottom;
  will-change: transform;
}

.call-stage .device::before {
  /* perspective for the arriving tilt */
  content: "";
}

.call-lines {
  display: grid;
  gap: 0.55rem;
  min-height: 236px;
  align-content: start;
}

/* transcript lines are written by the scroll: line i appears once
   --p passes 0.2 + i × 0.062 */
.call-lines .call-line {
  --at: calc(0.2 + var(--i, 0) * 0.062);
  --k: clamp(0, calc((var(--p) - var(--at)) * 9), 1);
  margin: 0;
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 12px)) scale(calc(0.94 + var(--k) * 0.06));
}

.call-lines .call-line.caller {
  justify-self: start;
  background: rgba(14, 17, 22, 0.06);
  color: var(--text);
  border-bottom-left-radius: 5px;
  transform-origin: bottom left;
}

.call-lines .call-line.assistant {
  justify-self: end;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 25%, transparent);
  transform-origin: bottom right;
}

.call-stage .scrub-pop {
  --at: calc(0.2 + var(--i, 0) * 0.062);
  --k: clamp(0, calc((var(--p) - var(--at)) * 9), 1);
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 10px)) scale(calc(0.92 + var(--k) * 0.08));
}

.feature-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.ladder-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.15rem 0.4rem;
  border-top: 1px solid var(--hairline);
  transition: transform 400ms var(--ease-spring);
}

.ladder-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.ladder-item:hover {
  transform: translateX(6px);
}

.ladder-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  transition: transform 420ms var(--ease-spring), background-color 260ms var(--ease-standard);
}

.ladder-item:hover .ladder-icon {
  transform: scale(1.1) rotate(-5deg);
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}

.ladder-icon svg {
  width: 22px;
  height: 22px;
}

.ladder-item h3 {
  font-size: 1.08rem;
  margin: 0.15rem 0 0.3rem;
}

.ladder-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* demo block: tone switcher + chat that plays in */
.demo-block {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 5.5rem;
}

.demo-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.6rem;
}

.demo-head h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.demo-head p {
  margin: 0;
}

.demo-grid {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
}

/* iOS-style segmented control with a sliding thumb (landing.js) */
.tone-switcher {
  position: relative;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-wrap: wrap;
  justify-content: center;
}

.tone-thumb {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 45%, transparent);
  z-index: 0;
  opacity: 0;
}

.tone-switcher.thumb-ready .tone-thumb {
  opacity: 1;
  transition: transform 480ms var(--ease-spring), width 480ms var(--ease-spring),
    height 480ms var(--ease-spring);
}

.tone-button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #cfcfd6;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 260ms var(--ease-standard), transform 300ms var(--ease-spring);
}

.tone-button:hover:not(.is-active) {
  color: #fff;
}

.tone-button:active {
  transform: scale(0.94);
}

.tone-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tone-button.is-active {
  color: #fff;
}

/* until the thumb is measured, the active button paints its own pill */
.tone-switcher:not(.thumb-ready) .tone-button.is-active {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 40%, transparent);
}

.chat {
  border-radius: 26px;
  padding: 1.5rem;
  display: grid;
  gap: 0.7rem;
  width: min(640px, 100%);
}

.bubble {
  padding: 0.74rem 1.05rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 85%;
}

.bubble.assistant {
  background: var(--bubble-assistant-bg);
  color: var(--bubble-assistant-text);
  justify-self: start;
  border-bottom-left-radius: 6px;
  position: relative;
  transform-origin: bottom left;
}

.bubble.user {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 25%, transparent);
  transform-origin: bottom right;
}

/* conversations play in, message by message, when scrolled into view */
.reveal-enabled [data-chat-play] .bubble {
  opacity: 0;
  transform: translateY(14px) scale(0.86);
  filter: blur(5px);
}

.reveal-enabled [data-chat-play].is-playing .bubble {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 620ms var(--ease-spring), transform 620ms var(--ease-spring),
    filter 620ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 340ms);
}

.tone-bubble {
  min-height: 82px;
}

.tone-text {
  position: absolute;
  inset: 0.74rem 1.05rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  filter: blur(3px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out),
    filter 320ms var(--ease-out), visibility 0s linear 320ms;
}

.tone-text.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  position: relative;
  inset: auto;
  transition-delay: 60ms;
}

.bubble.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 0.85rem 1rem;
}

.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: typing 1.3s ease-in-out infinite;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.18s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.36s; }

/* ---------- 02 · calendar ---------- */

.chapter-light {
  padding-inline: 0;
}

.calendar-stage {
  --p: 0;
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  perspective: 2000px;
}

.calendar-board {
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-soft);
  overflow: hidden;
  transform: rotateX(calc((1 - min(1, var(--p) * 2.4)) * 16deg))
    translateY(calc((1 - min(1, var(--p) * 2.4)) * 40px));
  transform-origin: center top;
  will-change: transform;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--hairline);
}

.cal-title {
  font-weight: 680;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.cal-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 640;
}

.cal-grid {
  display: grid;
  grid-template-columns: 62px repeat(5, minmax(0, 1fr));
  min-width: 640px;
}

.cal-times {
  display: grid;
  grid-template-rows: 40px repeat(8, var(--slot-h));
  font-size: 0.74rem;
  color: var(--muted);
  text-align: right;
  padding-right: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.cal-times span:not(.cal-day-name) {
  transform: translateY(-0.55em);
}

.cal-day {
  position: relative;
  border-left: 1px solid var(--hairline);
  height: calc(40px + 8 * var(--slot-h));
  background-image: repeating-linear-gradient(to bottom,
      transparent 0 calc(var(--slot-h) - 1px),
      var(--hairline) calc(var(--slot-h) - 1px) var(--slot-h));
  background-position: 0 40px;
  background-repeat: repeat-y;
}

.cal-day-name {
  display: block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-weight: 660;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
}

.cal-day.is-today {
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.cal-day.is-today .cal-day-name {
  color: var(--primary-strong);
}

.cal-event {
  position: absolute;
  left: 5px;
  right: 5px;
  top: calc(40px + var(--row) * var(--slot-h) + 3px);
  height: calc(var(--span) * var(--slot-h) - 6px);
  border-radius: 10px;
  padding: 0.42rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 640;
  line-height: 1.2;
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-strong));
  border-left: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(20, 30, 40, 0.06);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cal-event em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1px;
}

.cal-event.is-external {
  background: repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--muted) 22%, transparent) 0 4px,
      transparent 4px 10px);
  border-left-color: var(--muted);
  color: var(--muted);
  box-shadow: none;
}

/* choreography: events drop in, a conflicting request shakes and is
   refused, the assistant's booking slides into the free slot */
.reveal-enabled .chapter-calendar .cal-event:not(.is-live):not(.is-conflict) {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
}

.reveal-enabled .chapter-calendar.is-visible .cal-event:not(.is-live):not(.is-conflict) {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 70ms + 380ms);
}

.cal-event.is-conflict {
  opacity: 0;
  background: color-mix(in srgb, #e5484d 16%, var(--surface-strong));
  border-left-color: #e5484d;
  color: #c62a30;
  z-index: 2;
}

.reveal-enabled .chapter-calendar.is-visible .cal-event.is-conflict {
  animation: conflict-refused 2.2s var(--ease-standard) 1500ms both;
}

@keyframes conflict-refused {
  0% { opacity: 0; transform: translateY(-14px) scale(0.9); }
  18% { opacity: 1; transform: none; }
  40% { transform: translateX(0); }
  46% { transform: translateX(-5px); }
  52% { transform: translateX(5px); }
  58% { transform: translateX(-4px); }
  64% { transform: translateX(3px); }
  70% { transform: translateX(0); opacity: 1; }
  100% { opacity: 0; transform: translateY(6px) scale(0.94); }
}

.cal-event.is-live {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
  border-left-color: #fff;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 45%, transparent);
  z-index: 3;
}

.cal-event.is-live em {
  color: rgba(255, 255, 255, 0.8);
}

.reveal-enabled .chapter-calendar .cal-event.is-live {
  opacity: 0;
}

.reveal-enabled .chapter-calendar.is-visible .cal-event.is-live {
  animation: live-land 900ms var(--ease-spring) 4000ms both;
}

@keyframes live-land {
  0% { opacity: 0; transform: translate(-140px, -40px) scale(0.7); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.cal-toast {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(420px, calc(100% - 2.4rem));
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-pop);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
}

.toast-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
  background: var(--primary);
}

.toast-icon.toast-warn {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='6' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='18' r='1.2' fill='%23000'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='6' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='18' r='1.2' fill='%23000'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
  background: #e5484d;
}

.reveal-enabled .chapter-calendar.is-visible .cal-toast-conflict {
  animation: toast-visit 2.4s var(--ease-spring) 1900ms both;
}

.reveal-enabled .chapter-calendar.is-visible .cal-toast-booked {
  animation: toast-stay 800ms var(--ease-spring) 4300ms both;
}

/* no-JS / reduced motion: the booked toast is the resting state */
.cal-toast-booked {
  opacity: 1;
}

.reveal-enabled .cal-toast-booked {
  opacity: 0;
}

@keyframes toast-visit {
  0% { opacity: 0; transform: translateY(16px) scale(0.92); }
  14% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(10px) scale(0.96); }
}

@keyframes toast-stay {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.pillar-facts {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 0;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.fact {
  padding: 1.4rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-strong) 65%, transparent);
  transition: transform 420ms var(--ease-spring), border-color 260ms var(--ease-standard),
    box-shadow 420ms var(--ease-out);
}

.fact:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--hairline));
  box-shadow: var(--shadow-card);
}

.fact h3 {
  font-size: 1.06rem;
  margin: 0 0 0.4rem;
}

.fact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- 03 · chatbot ---------- */

.chatbot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.bullet-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 0.6rem;
}

.bullet-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.5;
}

.bullet-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transform: translateY(2px);
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.chatbot-live-hint {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary-strong);
  font-weight: 560;
  font-size: 0.95rem;
}

.browser-stage {
  perspective: 1600px;
}

.browser-mock {
  position: relative;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transform-style: preserve-3d;
  color: #1d1d1f;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #f1f1f4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5d5da;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  margin-left: 0.6rem;
  flex: 1;
  padding: 0.28rem 0.7rem;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.74rem;
  color: #6b6b73;
  text-align: center;
  font-weight: 540;
}

.browser-body {
  position: relative;
  height: 460px;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, #ffffff, #f7f7fa);
}

.site-skeleton {
  display: grid;
  gap: 0.7rem;
  width: 58%;
}

.site-skeleton span {
  display: block;
  border-radius: 6px;
  background: #e6e6eb;
}

.sk-nav { height: 10px; width: 46%; }
.sk-title { height: 26px; width: 88%; margin-top: 0.9rem; background: #d9dae0; }
.sk-line { height: 10px; width: 100%; }
.sk-line.short { width: 64%; }
.sk-image {
  height: 110px;
  border-radius: 14px;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 30%, #e6e6eb),
      color-mix(in srgb, var(--grad-b) 26%, #e6e6eb));
}

.train-panel {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 36%;
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(20, 30, 40, 0.1);
  font-size: 0.74rem;
  color: #55555d;
}

.train-title {
  font-weight: 700;
  color: #1d1d1f;
  font-size: 0.78rem;
}

.train-row {
  display: grid;
  gap: 0.3rem;
}

.train-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #ececf1;
  overflow: hidden;
}

.train-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w, 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--grad-b));
  transform-origin: left center;
}

.reveal-enabled .chapter-chatbot .train-bar::after {
  transform: scaleX(0);
}

.reveal-enabled .chapter-chatbot.is-visible .train-bar::after {
  transform: scaleX(1);
  transition: transform 1200ms var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 220ms + 600ms);
}

.widget-mock {
  position: absolute;
  right: 1.6rem;
  bottom: 1.4rem;
  width: min(300px, 62%);
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 24px 60px rgba(20, 30, 40, 0.22);
  overflow: hidden;
  --bubble-assistant-bg: rgba(14, 17, 22, 0.06);
  --bubble-assistant-text: #1c232e;
  --muted: #66666e;
}

.widget-mock-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  font-weight: 640;
  font-size: 0.9rem;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  color: #fff;
}

.widget-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex: 0 0 auto;
}

.stage-chat .widget-avatar {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.widget-mock-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.widget-mock-body .bubble {
  font-size: 0.84rem;
  padding: 0.55rem 0.8rem;
}

/* ---------- better together ---------- */

.together {
  padding: clamp(5rem, 9vw, 8rem) 0 2rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.orbit {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 600 / 260;
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
}

.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orbit-path {
  stroke: color-mix(in srgb, var(--primary) 55%, transparent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  animation: dash-flow 1.4s linear infinite;
}

.orbit-path-mid {
  stroke: color-mix(in srgb, var(--grad-b) 55%, transparent);
  animation-direction: reverse;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -18; }
}

/* every node is a 104px box so the three labels sit on one baseline */
.orbit-node {
  position: absolute;
  top: 50%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.orbit-node .orbit-label {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.orbit-calls { left: 15%; }
.orbit-center { left: 50%; }
.orbit-web { left: 85%; }

.orbit-icon,
.orbit-logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  color: var(--primary-strong);
}

.orbit-icon svg {
  width: 30px;
  height: 30px;
}

.orbit-logo {
  width: 104px;
  height: 104px;
  padding: 24px;
  object-fit: contain;
  box-sizing: border-box;
  position: relative;
  box-shadow: var(--glass-highlight), var(--shadow-pop),
    0 0 0 14px color-mix(in srgb, var(--primary) 8%, transparent),
    0 0 0 30px color-mix(in srgb, var(--primary) 4%, transparent);
  animation: orbit-breathe 4s ease-in-out infinite;
}

@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.orbit-label {
  font-size: 0.9rem;
  font-weight: 640;
  color: var(--text);
}

.bundle-teaser {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 1.05rem 1.4rem;
  border-radius: 999px;
  text-align: center;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--primary) 9%, transparent),
      color-mix(in srgb, var(--grad-b) 7%, transparent)), var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--glass-border));
  box-shadow: var(--glass-highlight), var(--shadow-card);
  color: var(--muted);
}

.bundle-teaser strong {
  color: var(--text);
}

.bundle-teaser a {
  margin-left: 0.35rem;
  color: var(--primary-strong);
  font-weight: 650;
  white-space: nowrap;
}

.bundle-teaser a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- how it works ---------- */

.how-it-works {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.steps {
  --p: 0;
  list-style: none;
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 1.4rem;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  border-radius: 2px;
}

.steps::before {
  background: var(--hairline);
}

.steps::after {
  background: linear-gradient(to bottom, var(--primary), var(--grad-b));
  transform: scaleY(clamp(0, calc((var(--p) - 0.16) * 1.9), 1));
  transform-origin: center top;
  will-change: transform;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.step-numeral {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 34%, transparent);
  position: relative;
  z-index: 1;
  transition: transform 420ms var(--ease-spring);
}

.step:hover .step-numeral {
  transform: scale(1.06) rotate(-4deg);
}

.step-body {
  padding: 0.55rem 0 0.3rem;
}

.step h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  margin-bottom: 0.35rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- verticals marquee ---------- */

.verticals {
  padding: clamp(4rem, 8vw, 7rem) 0 1rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.verticals-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.4rem 0.2rem 0.8rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  scrollbar-width: none;
}

.verticals-scroll::-webkit-scrollbar {
  display: none;
}

.verticals-scroll.is-cloned {
  overflow-x: hidden;
  scroll-snap-type: none;
}

/* Marquee cards sit on the plain page background: a solid translucent
   fill reads identically to backdrop blur at a fraction of the GPU cost
   (16 blurred surfaces once cloned). */
.vertical-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 0.95rem 1.5rem 0.95rem 1.05rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  scroll-snap-align: start;
  flex: 0 0 auto;
  font-weight: 620;
  font-size: 1.05rem;
  transition: transform 340ms var(--ease-spring), border-color 220ms var(--ease-standard);
}

.vertical-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--glass-border));
}

.vertical-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  flex: 0 0 auto;
}

.vertical-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- final CTA ---------- */

.final-cta {
  padding: clamp(3rem, 6vw, 5rem) 0 1rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.final-card {
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 14%, transparent),
      color-mix(in srgb, var(--grad-b) 8%, transparent) 55%,
      transparent 75%), var(--surface);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 36px;
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.4rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--glass-border));
  text-align: center;
  box-shadow: var(--glass-highlight), var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* slow conic shimmer tracing the panel border */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle),
      transparent 0turn 0.28turn,
      color-mix(in srgb, var(--primary) 80%, transparent) 0.4turn,
      color-mix(in srgb, var(--dawn-warm) 85%, transparent) 0.5turn,
      transparent 0.62turn 1turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-spin 8s linear infinite;
  pointer-events: none;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.final-dawn {
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 120%;
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%,
      color-mix(in srgb, var(--dawn-warm) 32%, transparent),
      color-mix(in srgb, var(--primary) 14%, transparent) 40%,
      transparent 70%);
  pointer-events: none;
}

.final-card > * {
  position: relative;
  z-index: 1;
}

.final-heading {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.9rem);
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin-inline: auto;
}

/* ---------- keyframes ---------- */

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 0.9; }
}

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

@media (max-width: 1024px) {
  .receptionist-grid,
  .chatbot-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-grid .chapter-head {
    max-width: 640px;
  }

  .pillar-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-numeral {
    font-size: clamp(7rem, 22vw, 14rem);
    right: 1vw;
  }
}

@media (max-width: 900px) {
  .chapter-rail {
    top: 4.6rem;
  }
}

@media (max-width: 760px) {
  /* the pinned scene needs height to breathe: below this width the hero
     is a normal, static composition */
  .hero {
    min-height: auto;
  }

  .hero-sticky {
    position: static;
    min-height: auto;
    padding-top: 3.4rem;
    padding-bottom: 2.4rem;
  }

  .hero-copy,
  .hero-stage,
  .stage-phone,
  .stage-cal,
  .stage-chat,
  .dawn-glow,
  .dawn-line {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-stage {
    position: static;
    height: auto;
    min-height: 0;
    margin-top: 2rem;
    perspective: none;
  }

  .stage-tilt {
    position: static;
    display: grid;
    justify-items: center;
    gap: 1rem;
  }

  .stage-card {
    position: static;
    width: min(300px, 88vw);
    margin: 0;
  }

  .stage-chat {
    order: 3;
  }

  .stage-cal {
    order: 1;
  }

  .stage-phone {
    order: 2;
  }

  .dawn {
    inset: auto 0 0;
    height: 50vh;
  }

  .dawn-glow {
    bottom: 0;
    transform: translateX(-50%) translateY(30%) scale(1.1) !important;
  }

  .dawn-line {
    display: none;
  }

  .hero-eyebrow {
    font-size: 0.74rem;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
  }

  .scroll-cue {
    display: none;
  }

  .hero .cta-row {
    width: 100%;
  }

  .hero .cta-row .button {
    flex: 1 1 calc(50% - 0.4rem);
    padding-inline: 0.8rem;
    min-width: 0;
  }

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

  .proof-tile {
    padding: 1.1rem 0.8rem;
  }

  .page-landing {
    --chapter-radius: 28px;
  }

  .chapter {
    margin-top: 1.2rem;
  }

  .chapter-rail {
    top: 4.4rem;
    max-width: 94vw;
    justify-content: flex-start;
  }

  .chapter-rail a {
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
  }

  .chapter-numeral {
    top: 0.4rem;
    right: 0;
    font-size: clamp(6rem, 30vw, 9rem);
  }

  .device-lg {
    width: min(320px, 88vw);
  }

  .device-lg .device-screen {
    min-height: 520px;
    padding: 3.2rem 1rem 1.1rem;
  }

  .call-stage .device {
    transform: none !important;
  }

  .calendar-stage {
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }

  .calendar-stage::-webkit-scrollbar {
    display: none;
  }

  .calendar-board {
    transform: none !important;
    min-width: 640px;
  }

  .cal-toast {
    position: sticky;
    left: 0.8rem;
    right: auto;
    bottom: auto;
    margin-top: 0.8rem;
  }

  .pillar-facts {
    grid-template-columns: 1fr;
  }

  .browser-body {
    height: 400px;
    padding: 1rem 1.1rem;
  }

  .train-panel {
    top: 1rem;
    right: 1.1rem;
    width: 40%;
  }

  .widget-mock {
    right: 1rem;
    bottom: 1rem;
    width: min(260px, 70%);
  }

  .orbit {
    aspect-ratio: 600 / 300;
  }

  .orbit-node {
    width: 84px;
    height: 84px;
  }

  .orbit-icon {
    width: 58px;
    height: 58px;
  }

  .orbit-icon svg {
    width: 24px;
    height: 24px;
  }

  .orbit-logo {
    width: 84px;
    height: 84px;
    padding: 18px;
  }

  .orbit-label {
    font-size: 0.8rem;
  }

  .bundle-teaser {
    border-radius: 22px;
  }

  .steps::before,
  .steps::after {
    left: 27px;
  }

  .step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
  }

  .step-numeral {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.35rem;
  }

  .chat {
    padding: 1.1rem;
  }

  .final-card {
    border-radius: 26px;
  }
}

/* «Κάθε επισκέπτης.» must stay on one line on phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 0.9rem + 6.6vw, 3rem);
  }
}

@media (max-width: 360px) {
  .hero .cta-row .button {
    flex-basis: 100%;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-stage,
  .stage-phone,
  .stage-card,
  .dawn-glow,
  .dawn-line,
  .line-inner,
  .hero-title .grad,
  .booking-confirmation,
  .scroll-cue span,
  .status-dot,
  .sync-dot,
  .caller-ring .ring,
  .wave-bar,
  .call-stage .device,
  .call-lines .call-line,
  .call-stage .scrub-pop,
  .ladder-item,
  .ladder-icon,
  .tone-text,
  .tone-button,
  .tone-thumb,
  .bubble,
  .bubble.typing span,
  .calendar-board,
  .cal-event,
  .cal-toast,
  .train-bar::after,
  .orbit-path,
  .orbit-logo,
  .steps::after,
  .step-numeral,
  .vertical-card,
  .fact,
  .final-card::before,
  .split-words .w-in,
  .chapter-numeral,
  .button.magnetic {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .hero-copy,
  .hero-stage,
  .booking-confirmation,
  .call-lines .call-line,
  .call-stage .scrub-pop,
  .cal-event:not(.is-conflict),
  .cal-toast-booked,
  .scroll-cue {
    opacity: 1 !important;
  }

  .cal-event.is-conflict,
  .cal-toast-conflict {
    opacity: 0 !important;
  }

  .reveal-enabled [data-chat-play] .bubble {
    opacity: 1;
    filter: none;
  }

  .caller-ring .ring {
    opacity: 0.35;
  }

  .steps::after {
    transform: scaleY(1) !important;
  }

  .train-bar::after {
    transform: scaleX(1) !important;
  }

  .dawn-glow {
    transform: translateX(-50%) translateY(30%) scale(1.1) !important;
  }
}
