/* ============================================================
   Landing page — cinematic hero, immersive demo band,
   scroll-scrubbed storytelling. Companion to public.css.
   ============================================================ */

/* ---------- hero ---------- */

.hero {
  padding: 4.6rem 0 1.6rem;
}

.hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  margin: 0 0 1.2rem;
}

.hero-promise {
  display: block;
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.3rem);
  font-weight: 760;
  letter-spacing: var(--track-display);
  line-height: 1.02;
}

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

.line-inner {
  display: block;
}

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

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

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

.hero-title .grad {
  background: linear-gradient(100deg,
      var(--primary) 10%,
      var(--grad-b) 45%,
      var(--grad-c) 70%,
      var(--primary) 95%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-pan 11s ease-in-out infinite alternate;
}

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

.hero .lead {
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem);
  max-width: 640px;
}

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

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

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

/* hero fact chips */
.bullet-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}

.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;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
}

.hero-chips li {
  align-items: center;
  font-size: 0.88rem;
  font-weight: 560;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface-strong);
  line-height: 1.3;
}

.hero-chips li::before {
  transform: none;
}

/* ---------- hero device ---------- */

.hero-visual {
  margin-top: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.device-stage {
  --p: 0.5;
  position: relative;
  perspective: 1400px;
  animation: float 10s ease-in-out infinite;
}

.device-glow {
  position: absolute;
  inset: 8% -18% -8%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
      color-mix(in srgb, var(--primary) 26%, transparent),
      color-mix(in srgb, var(--primary) 10%, transparent) 48%,
      transparent 74%);
  opacity: calc(0.4 + min(1, var(--p) * 2.2) * 0.6);
  pointer-events: none;
}

.device-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* scroll scrub: arrives tilted back and small, settles flat at centre */
.device {
  --t: min(1, var(--p) * 2.3);
  width: min(340px, 86vw);
  border-radius: 52px;
  padding: 11px;
  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 30px 80px rgba(10, 14, 24, 0.4);
  position: relative;
  transform: rotateX(calc((1 - var(--t)) * 26deg)) translateY(calc((1 - var(--t)) * 26px)) scale(calc(0.93 + var(--t) * 0.07));
  will-change: transform;
}

: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 30px 90px rgba(0, 0, 0, 0.65);
}

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

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

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

.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.8rem;
}

.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;
}

/* expanding call rings around the caller avatar */
.caller-ring {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0.4rem auto 0.9rem;
  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: 58px;
  height: 58px;
  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: 24px;
  height: 24px;
}

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

.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; }

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

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

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

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

.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;
}

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

.reveal-enabled .hero.is-visible .booking-confirmation {
  animation: confirm-pop 700ms var(--ease-spring) 1500ms 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: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.scroll-cue {
  margin-top: 2.6rem;
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.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; }
}

/* ---------- proof strip ---------- */

.proof-strip {
  padding: 2.2rem 0 2.6rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.proof-chip {
  padding: 1.35rem 0.8rem;
  border-left: 1px solid var(--hairline);
  font-size: 1.02rem;
  font-weight: 660;
  letter-spacing: var(--track-title);
  color: var(--text);
  text-align: center;
}

.proof-chip:first-child {
  border-left: 0;
}

/* ---------- sections ---------- */

.how-it-works,
.verticals,
.final-cta,
.features-section,
.chatbot-spotlight {
  padding: 4.2rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.demo-section {
  padding: 3rem 0;
}

.services-section {
  padding: 3rem 0 4rem;
}

.services-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.service-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  overflow: hidden;
  transition: transform 420ms var(--ease-spring), box-shadow 420ms var(--ease-out),
    border-color 260ms var(--ease-standard);
}

.service-card:hover {
  transform: translateY(-5px) scale(1.006);
  box-shadow: var(--glass-highlight), var(--shadow-pop);
  border-color: color-mix(in srgb, var(--primary) 24%, var(--glass-border));
}

.service-icon,
.feature-icon {
  width: 48px;
  height: 48px;
  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);
}

.service-icon svg,
.feature-icon svg {
  width: 23px;
  height: 23px;
}

.service-card .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.service-card:hover .service-icon,
.feature-tile:hover .feature-icon {
  transform: translateY(-3px) scale(1.1) rotate(-4deg);
  background: color-mix(in srgb, var(--primary) 17%, transparent);
}

.bundle-teaser {
  margin-top: 1.2rem;
  padding: 1.05rem 1.3rem;
  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;
}

/* ---------- demo band ----------
   A full-bleed near-black stage in both themes. Local token overrides
   flip every glass component inside to its dark variant. */

.demo-shell {
  --text: #f5f5f7;
  --muted: #a7a7b0;
  --hairline: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(40, 40, 46, 0.9);
  --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%);
  color: var(--text);
  background:
    radial-gradient(120% 90% at 50% -10%,
      color-mix(in srgb, var(--primary) 26%, transparent), transparent 52%),
    radial-gradient(80% 60% at 88% 110%,
      color-mix(in srgb, var(--grad-b) 18%, transparent), transparent 60%),
    #0a0a0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 40px;
  padding: clamp(2.4rem, 5vw, 4.2rem) clamp(1.2rem, 4vw, 3.6rem) clamp(2.6rem, 5vw, 4.4rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(5, 8, 18, 0.35);
}

:root[data-theme="dark"] .demo-shell {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}

.demo-shell .section-header h2 {
  color: #fff;
}

.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(620px, 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;
}

/* conversation plays 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;
}

/* typing indicator */

.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; }

/* ---------- features ---------- */

.features-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-tile {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  border-radius: 22px;
  padding: 1.55rem;
  overflow: hidden;
  transition: transform 420ms var(--ease-spring), box-shadow 420ms var(--ease-out),
    border-color 260ms var(--ease-standard);
}

.feature-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-highlight), var(--shadow-pop);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--glass-border));
}

.feature-tile h3 {
  font-size: 1.08rem;
  margin: 0.95rem 0 0.4rem;
}

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

/* ---------- chatbot spotlight ---------- */

.spotlight-card {
  border-radius: 30px;
  padding: clamp(1.6rem, 3.6vw, 3rem);
  display: grid;
  gap: 2.2rem;
  box-shadow: var(--glass-highlight), var(--shadow-soft);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--glass-border));
  overflow: hidden;
  position: relative;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--grad-b));
  pointer-events: none;
}

.spotlight-copy {
  position: relative;
}

.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;
}

.spotlight-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-mock {
  width: min(330px, 100%);
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: float 9s ease-in-out infinite;
}

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

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

.widget-mock-body {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.widget-mock-body .bubble {
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
}

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

.how-cards-wrap {
  --p: 0;
  position: relative;
  margin-top: 2rem;
}

.how-line {
  position: absolute;
  top: 44px;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: var(--hairline);
  overflow: hidden;
  display: none;
}

.how-line-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--grad-b));
  transform: scaleX(clamp(0, calc((var(--p) - 0.18) * 2.4), 1));
  transform-origin: left center;
  will-change: transform;
}

.how-cards {
  display: grid;
  gap: 1.1rem;
  position: relative;
}

.how-card {
  border-radius: 22px;
  padding: 1.55rem;
  position: relative;
  overflow: hidden;
  transition: transform 420ms var(--ease-spring), border-color 260ms var(--ease-standard),
    box-shadow 420ms var(--ease-out);
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--glass-border));
  box-shadow: var(--glass-highlight), var(--shadow-pop);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 740;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 92%, #ffffff 8%), var(--primary));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 32%, transparent);
  margin-bottom: 0.95rem;
}

.how-card h3 {
  font-size: 1.08rem;
}

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

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

.verticals-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.4rem 0.2rem 0.8rem;
  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.65rem;
  min-width: max-content;
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 0.85rem 1.35rem 0.85rem 0.95rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  scroll-snap-align: start;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.97rem;
  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: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  flex: 0 0 auto;
}

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

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

.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: 32px;
  padding: clamp(2.2rem, 5vw, 4rem);
  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(--grad-b) 80%, 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-heading {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem);
  max-width: 20ch;
  margin-inline: auto;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@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 (min-width: 880px) {
  .demo-grid {
    gap: 2rem;
  }

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

  .how-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-line {
    display: block;
  }

  .spotlight-card {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

@media (max-width: 879px) {
  .hero {
    padding-top: 3.2rem;
  }

  .hero-visual {
    margin-top: 2.6rem;
  }

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

  .proof-chip:nth-child(3) {
    border-left: 0;
  }

  .proof-chip:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.4rem 0 1rem;
  }

  .hero .lead {
    line-height: 1.55;
  }

  .hero-chips {
    display: none;
  }

  .hero .cta-row {
    margin-top: 1.35rem;
    width: 100%;
  }

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

  .hero-visual {
    margin-top: 2rem;
  }

  .device-stage {
    animation: none;
  }

  .device {
    width: min(300px, 86vw);
  }

  .device-screen {
    padding: 3rem 0.95rem 1rem;
  }

  .caller-ring {
    width: 74px;
    height: 74px;
    margin-bottom: 0.6rem;
  }

  .caller-avatar {
    width: 50px;
    height: 50px;
  }

  .waveform {
    margin-bottom: 0.4rem;
  }

  .scroll-cue {
    display: none;
  }

  .proof-strip {
    padding-top: 1.2rem;
  }

  .demo-shell {
    border-radius: 26px;
  }

  .chat {
    padding: 1.1rem;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .line-inner,
  .tone-text,
  .tone-button,
  .tone-thumb,
  .device-stage,
  .device,
  .device-tilt,
  .widget-mock,
  .service-card,
  .service-icon,
  .feature-tile,
  .feature-icon,
  .how-card,
  .how-line-fill,
  .vertical-card,
  .wave-bar,
  .status-dot,
  .caller-ring .ring,
  .booking-confirmation,
  .scroll-cue span,
  .final-card::before,
  .hero-title .grad,
  .bubble,
  .bubble.typing span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .reveal,
  .booking-confirmation {
    opacity: 1 !important;
  }

  .reveal-enabled .hero .line-inner {
    transform: none !important;
  }

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

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

  .how-line-fill {
    transform: scaleX(1);
  }

  .device {
    transform: none;
  }

  .service-card:hover,
  .service-card:hover .service-icon,
  .feature-tile:hover,
  .feature-tile:hover .feature-icon,
  .how-card:hover,
  .vertical-card:hover {
    transform: none !important;
  }
}
