/* ============================================================
   1st-verse — Crisp-DNA light theme, deluxe edition
   Tokens from crisp.chat: blue #1972F5, navy #030D26,
   slate #5D6B98, ring #EAECF5, near-white #FCFCFD.
   Depth: preserve-3d hero scene, aurora field, CSS coin,
   scroll-choreographed showcases, micro-interactions.
   ============================================================ */

/* Figtree — self-hosted variable font (weights 400–900).
   Two woff2 subsets from Google Fonts v9, no external request.
   One face per subset spans the full weight axis. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #1972f5;
  --blue-deep: #1258d6;
  --blue-tint: #e8f1fe;
  --blue-marker: #cbdbf4;
  --navy: #030d26;
  --slate: #5d6b98;
  --slate-2: #404968;
  --bg: #fcfcfd;
  --bg-2: #f8f8fc;
  --ring: #eaecf5;
  --ring-2: #dcdfea;
  --card: #ffffff;
  --orange: #ff6f3e;
  --orange-tint: #ffefe8;
  --purple: #955cf4;
  --purple-tint: #f1eafe;
  --green: #2dc862;
  --green-tint: #e7f8ee;
  --yellow: #ffc53d;

  --show-blue: #eff5fe;
  --show-purple: #f5f0fe;
  --topbar-bg: rgba(252, 252, 253, 0.85);
  --track: #d6e2f7;
  --sheen: rgba(255, 255, 255, 0.7);

  --font: "Figtree", system-ui, sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ring-shadow: 0 0 0 1px rgba(3, 13, 38, 0.05);
  --soft-shadow: 0 20px 40px -15px rgba(3, 13, 38, 0.05);
  --lift-shadow: 0 0 0 1px rgba(3, 13, 38, 0.06), 0 24px 48px -16px rgba(3, 13, 38, 0.12);
  --big-shadow: 0 0 0 1px rgba(3, 13, 38, 0.05), 0 30px 60px -22px rgba(3, 13, 38, 0.14);

  --wrap: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* static film grain for blue surfaces — SVG fractal noise, tiles at 160px,
     layered via background-blend-mode so it never covers text */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
}

html { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* pre-hide for JS choreography */
.js [data-reveal] { opacity: 0; }
.js [data-stagger] { opacity: 0; }
.js .line__inner { display: inline-block; opacity: 0; transform: translateY(105%); }
.js [data-show-bubble], .js [data-show-toast] { opacity: 0; }
.js [data-convo-item], .js [data-convo-typing] { opacity: 0; visibility: hidden; }
.js [data-v-pop] { opacity: 0; visibility: hidden; }
.js [data-feat-pop] { opacity: 0; visibility: hidden; }
.js [data-cmp-pop] { opacity: 0; visibility: hidden; }

/* ============ SHARED ============ */
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--purple { color: var(--purple); }

/* Crisp-style marker highlight */
.hl { position: relative; display: inline-block; padding: 0 0.18em; }
.hl::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.06em 0.02em;
  background: var(--blue-marker);
  border-radius: 0.28em;
  transform: rotate(-1.2deg);
  z-index: 0;
}
.hl__ink { position: relative; z-index: 1; }
.hl--sm::before { inset: 0.1em -0.04em 0.04em; }

/* avatars */
.ava {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  flex: none;
}
.ava--sk { background: linear-gradient(135deg, #1972f5, #7777dc); }
.ava--dm { background: linear-gradient(135deg, #2dc862, #1e7c4e); }
.ava--an { background: linear-gradient(135deg, #955cf4, #5b34b8); }
.ava--lg { width: 42px; height: 42px; position: relative; }

.stars { color: var(--yellow); letter-spacing: 1px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.78em 1.4em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.btn__arr { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arr { transform: translateX(3px); }

.btn--blue {
  background-color: var(--blue);
  background-image: var(--grain), radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 62%);
  background-blend-mode: soft-light, normal;
  color: #fff;
  box-shadow: 0 1px 2px rgba(25, 114, 245, 0.4), 0 8px 20px -8px rgba(25, 114, 245, 0.55);
}
.btn--blue:hover { background-color: var(--blue-deep); }
.btn--blue:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(25, 114, 245, 0.25), 0 0 0 1px var(--bg); }

/* ---- Global keyboard focus ring ---------------------------------------
   focus-visible only, so mouse clicks never show it. Modern browsers make
   `outline` follow each element's border-radius, so one rule fits buttons,
   links, the slider, FAQ summaries and chat controls. */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* On blue surfaces a blue ring disappears — switch to a white ring. */
.btn--white:focus-visible,
.btn--outline-light:focus-visible,
.chat__launcher:focus-visible { outline-color: #fff; }

/* shine sweep on primary CTAs */
.btn--shine::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.45) 48%, transparent 62%);
  transform: translateX(-110%);
  transition: transform 0.75s var(--ease-out);
  pointer-events: none;
}
.btn--shine:hover::after { transform: translateX(110%); }

.btn--ghost {
  background: var(--card);
  color: var(--navy);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
}
.btn--ghost:hover { box-shadow: 0 0 0 1px var(--ring-2), var(--soft-shadow); }

.btn--white { background: #fff; color: var(--blue-deep); box-shadow: 0 8px 24px -8px rgba(3, 13, 38, 0.35); }
.btn--outline-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.btn--lg { font-size: 1rem; padding: 0.95em 1.7em; border-radius: 14px; }

/* ============ TOPBAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ring);
}
.topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__word { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }

.topbar__nav { display: flex; gap: 6px; margin: 0 auto; }
.topbar__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-2);
  padding: 8px 13px;
  border-radius: 10px;
  transition: color 0.2s, background-color 0.2s;
}
.topbar__nav a:hover { color: var(--navy); background: var(--bg-2); }

.topbar__cta { display: flex; align-items: center; gap: 14px; }
.topbar__signin { font-size: 0.9rem; font-weight: 600; color: var(--slate-2); transition: color 0.2s; }
.topbar__signin:hover { color: var(--blue); }

.topbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--card);
  border: none;
  box-shadow: var(--ring-shadow);
  border-radius: 10px;
  padding: 12px 11px;
}
.topbar__burger span {
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.topbar__sheet { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) 24px 0;
  text-align: center;
}
.hero__bg { position: absolute; inset: -80px 0 0; pointer-events: none; }

.aurora {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.aurora--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(25, 114, 245, 0.14), transparent 65%);
  top: -60px; left: 8%;
}
.aurora--2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(149, 92, 244, 0.11), transparent 65%);
  top: 60px; right: 4%;
}
.aurora--3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 111, 62, 0.07), transparent 65%);
  bottom: -40px; left: 34%;
}

.hero__dots {
  position: absolute;
  width: 240px;
  height: 190px;
  background-image: radial-gradient(var(--ring-2) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(closest-side, black, transparent);
  -webkit-mask-image: radial-gradient(closest-side, black, transparent);
}
.hero__dots--l { left: -40px; top: 330px; }
.hero__dots--r { right: 0; top: 170px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-2);
  background: var(--card);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  border-radius: 999px;
  padding: 8px 18px;
  margin: 0 0 30px;
  position: relative;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 200, 98, 0.45); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(45, 200, 98, 0); }
}

.hero__title {
  position: relative;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.line { display: block; overflow: hidden; padding: 0.04em 0; }
.line__inner { display: inline-block; }

.hero__sub {
  position: relative;
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 1.05rem;
  color: var(--slate);
}
.hero__sub strong { color: var(--navy); font-weight: 700; }

.hero__actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero__micro {
  position: relative;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

/* ---- 3D floating conversation scene ---- */
.scene {
  position: relative;
  max-width: 880px;
  margin: 70px auto 0;
  padding-bottom: 46px;
  perspective: 1200px;
}
.scene3d {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.scene-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: var(--big-shadow);
  text-align: left;
  will-change: transform;
}
/* soft top-light sheen */
.scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, var(--sheen), transparent 38%);
  pointer-events: none;
}
.scene-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ring);
}
.scene-card__who { display: flex; flex-direction: column; line-height: 1.35; }
.scene-card__who b { font-size: 0.95rem; }
.scene-card__who small { font-size: 0.78rem; color: var(--slate); }
.scene-card__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 5px 12px;
}
.scene-card__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-out infinite; }

.scene-card__thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 500;
  will-change: transform;
}
.bubble--cust {
  align-self: flex-start;
  background: var(--bg-2);
  box-shadow: var(--ring-shadow);
  border-bottom-left-radius: 6px;
  color: var(--slate-2);
  transform-origin: bottom left;
}
.bubble--agent {
  align-self: flex-end;
  background-color: var(--blue);
  background-image: var(--grain), radial-gradient(150% 130% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
  background-blend-mode: soft-light, normal;
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 16px -6px rgba(25, 114, 245, 0.5);
  transform-origin: bottom right;
}
.slot { position: relative; display: flex; justify-content: flex-end; }
.slot .bubble--agent { max-width: 84%; }
.bubble--typing {
  position: absolute;
  bottom: 0; right: 0;
  display: flex;
  gap: 4px;
  background-color: var(--blue);
  background-image: var(--grain);
  background-blend-mode: soft-light;
  border-bottom-right-radius: 6px;
  padding: 14px 15px;
  transform-origin: bottom right;
}
.bubble--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: tybounce 1.1s ease-in-out infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
.bubble__meta {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate);
}

/* floating chips */
.f-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--lift-shadow);
  padding: 12px 16px;
  will-change: transform;
  text-align: left;
}
.f-chip__txt { display: flex; flex-direction: column; line-height: 1.3; }
.f-chip__txt b { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.f-chip__txt small { font-size: 0.72rem; font-weight: 600; color: var(--slate); }
.f-chip__ic {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  flex: none;
}
.f-chip__ic--blue { background: var(--blue-tint); color: var(--blue); }
.f-chip__ic--orange { background: var(--orange-tint); color: var(--orange); }

.ava-stack { display: flex; }
.ava-stack .ava { width: 30px; height: 30px; font-size: 0.6rem; border: 2.5px solid #fff; }
.ava-stack .ava + .ava { margin-left: -9px; }

.f-chip--team { top: -44px; left: 3%; }
.f-chip--csat { top: 40%; right: -3%; }
.f-chip--save { bottom: 8%; left: -2%; }
.f-chip--speed { top: 6%; right: 6%; }
.f-chip--csat .stars { font-size: 0.8em; }

.doodle { position: absolute; will-change: transform; }
.doodle--squiggle { left: 6%; top: 34%; }
.doodle--spark { right: 1%; bottom: 16%; }
.doodle--spark2 { left: 16%; top: -10px; }

/* glossy 3D orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.orb--1 {
  width: 46px; height: 46px;
  background: radial-gradient(circle at 32% 28%, #9cc1fb, var(--blue) 58%, #0d47b5);
  box-shadow: inset 0 -5px 9px rgba(3, 13, 38, 0.25), inset 0 5px 9px rgba(255, 255, 255, 0.5), 0 14px 26px -10px rgba(25, 114, 245, 0.6);
  right: 14%; bottom: -6px;
}
.orb--2 {
  width: 22px; height: 22px;
  background: radial-gradient(circle at 32% 28%, #ffd9a8, var(--yellow) 58%, #d98a00);
  box-shadow: inset 0 -3px 5px rgba(3, 13, 38, 0.2), inset 0 3px 5px rgba(255, 255, 255, 0.6), 0 10px 18px -8px rgba(217, 138, 0, 0.5);
  left: 8%; bottom: 24%;
}

/* ============ CX STACK ============ */
.stack { padding: 64px 0 8px; }
.stack__label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 24px;
  padding: 0 24px;
}
.stack__mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stack__row {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding: 6px 0;
  animation: stackmove 44s linear infinite;
  will-change: transform;
}
.stack__mask:hover .stack__row { animation-play-state: paused; }
@keyframes stackmove { to { transform: translateX(-50%); } }

.tool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-2);
  white-space: nowrap;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s ease;
}
.tool:hover { filter: grayscale(0) opacity(1); }
.tool__wordmark { display: block; height: 22px; width: auto; }
.tool__glyph { display: block; height: 24px; width: auto; }

/* ============ SECTIONS ============ */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) 24px 0;
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 76px);
}
.section__head--tight { margin-bottom: 38px; }
.section__title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section__sub { margin-top: 16px; color: var(--slate); font-size: 0.98rem; }

/* ============ FEATURE GRID ============ */
/* ambient glow spheres behind the cards — static, painted once */
#services { position: relative; }
/* subtle dot-grid texture (same motif as hero/finale) — replaces the old glow blobs */
#services::before {
  content: "";
  position: absolute;
  inset: 20px -3vw auto;
  height: 74%;
  background-image: radial-gradient(var(--ring-2) 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(115% 78% at 50% 32%, #000, transparent 72%);
  mask-image: radial-gradient(115% 78% at 50% 32%, #000, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.grid6 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feat--hero { grid-column: span 2; order: -1; }
.feat--wide { grid-column: span 2; }
.feat {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  padding: 26px 24px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s;
}
.feat:hover { box-shadow: var(--lift-shadow); }
.feat h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 7px; transform: translateZ(20px); }
.feat p { font-size: 0.9rem; color: var(--slate); transform: translateZ(10px); }

/* ---- feature micro-demos (living visuals in each card) ---- */
.feat__demo {
  min-height: 74px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateZ(28px);
}
.fdemo-ic {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  flex: none;
}
.fdemo-ic--green { background: var(--green-tint); color: var(--green); }
.fdemo-ic--blue { background: var(--blue-tint); color: var(--blue); }

/* shopify — rescued-cart toast */
.fdemo-toast {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  border-radius: 12px;
  padding: 9px 13px;
}
.fdemo-toast__tx { display: flex; flex-direction: column; line-height: 1.25; }
.fdemo-toast__tx b { font-size: 0.82rem; font-weight: 800; letter-spacing: -0.01em; }
.fdemo-toast__tx small { font-size: 0.7rem; font-weight: 600; color: var(--slate); }

/* saas — self-drawing sparkline */
.fdemo-spark { position: relative; width: 100%; max-width: 150px; }
.fdemo-spark svg { width: 100%; height: 46px; display: block; }
.fdemo-spark__curtain {
  position: absolute; inset: -1px;
  background: var(--card);
  transform-origin: right center;
  will-change: transform;
}
.fdemo-pct {
  position: absolute; top: -2px; left: 0;
  font-size: 0.8rem; font-weight: 800;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}

/* 24/7 — follow-the-sun team */
.fdemo-team { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fdemo-city { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fdemo-city .ava { width: 30px; height: 30px; font-size: 0.6rem; }
.fdemo-city small { font-size: 0.64rem; font-weight: 700; color: var(--slate); }
.fdemo-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--green); background: var(--green-tint);
  border-radius: 999px; padding: 5px 10px;
}
.fdemo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-out infinite; }

/* every channel — channel tiles */
.fdemo-chs { display: flex; gap: 8px; }
.fdemo-ch {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
}

/* qa — score ring */
.feat__demo--center { gap: 13px; }
.fdemo-ring {
  --score: 0;
  position: relative; flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--score) * 1%), var(--ring) 0);
  display: grid; place-items: center;
}
.fdemo-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.fdemo-ring b { position: relative; font-size: 1.1rem; font-weight: 900; color: var(--blue-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fdemo-note { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; color: var(--slate-2); }

/* 38s — timer + response bar */
.feat__demo--speed { flex-direction: column; align-items: flex-start; gap: 8px; }
.fdemo-timer { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1; }
.fdemo-track { width: 100%; max-width: 160px; height: 5px; border-radius: 99px; background: var(--bg-2); box-shadow: var(--ring-shadow); overflow: hidden; }
.fdemo-track__fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--orange); transform: scaleX(0); transform-origin: left; will-change: transform; }
.fdemo-cap { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); }
.fdemo-city em { font-size: 0.62rem; font-weight: 800; font-style: normal; color: var(--slate-2); font-variant-numeric: tabular-nums; margin-top: 1px; }

/* wide bento cards get room to spread their demos */
@media (min-width: 768px) {
  .feat--hero .fdemo-team { gap: 22px; }
  .feat--wide .feat__demo--speed { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
  .feat--wide .fdemo-track { flex: 1 1 160px; max-width: 260px; }
  .feat--wide .fdemo-cap { flex-basis: 100%; }
}

/* cursor glare layer (injected by JS on desktop) */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateZ(1px);
}
.card-glare i {
  position: absolute;
  top: -90px; left: -90px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  display: block;
  will-change: transform;
}

/* ============ SHOWCASES ============ */
.show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
}
.show--blue { background: var(--show-blue); }
.show--purple { background: var(--show-purple); }
.show--flip .show__copy { order: 2; }
.show--flip .show__visual { order: 1; }

.show__title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.15; }
.show__sub { margin-top: 14px; color: var(--slate); font-size: 0.95rem; }

.ticks { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-tint);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.ticks--purple li::before { background: var(--purple-tint); }
.ticks--purple li::after { border-color: var(--purple); }

.show__visual { position: relative; }

.mini-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--big-shadow);
  padding: 24px;
  will-change: transform;
}
.mini-thread .bubble { max-width: 88%; }

.toast {
  position: absolute;
  right: -14px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--lift-shadow);
  padding: 12px 16px;
  will-change: transform;
}
.toast__ic {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--green-tint);
  flex: none;
}
.toast--purple .toast__ic { background: var(--purple-tint); }
.toast span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.toast b { font-size: 0.86rem; font-weight: 800; letter-spacing: -0.01em; }
.toast small { font-size: 0.72rem; font-weight: 600; color: var(--slate); }

.nrr-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--big-shadow);
  padding: 24px 24px 16px;
  will-change: transform;
}
.nrr-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.nrr-card__head span { font-size: 0.82rem; font-weight: 700; color: var(--slate); }
.nrr-card__head b { font-size: 1.3rem; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nrr-card__chart { position: relative; overflow: hidden; }
.nrr-card svg { width: 100%; height: 110px; display: block; }
.curtain {
  position: absolute;
  inset: -2px;
  background: var(--card);
  transform-origin: right center;
  will-change: transform;
}
.nrr-card__x { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.72rem; font-weight: 600; color: var(--slate); }

/* ============ PROCESS THEATRE ============ */
.theatre { position: relative; }

.theatre__list { display: flex; flex-direction: column; gap: 0; }
.t-step__txt { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; }
.t-step__n {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--ic);
  font-size: 1.02rem;
  font-weight: 800;
  flex: none;
}
.t-step__txt h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 5px; }
.t-step__txt p { font-size: 0.9rem; color: var(--slate); max-width: 40ch; }

/* vignettes */
.vig { display: flex; align-items: center; justify-content: center; }
.vig__scene { position: relative; min-height: 224px; }
.vig__card--connect { padding: 18px 20px; }

.vig__card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--big-shadow);
  padding: 22px 24px;
  width: min(94%, 390px);
  margin: 0 auto;
}

/* step 1 — tiles dock into the hub */
.vig__tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--lift-shadow);
  will-change: transform;
}
.vig__tile img { height: 26px; width: auto; display: block; }
.vig__tile--1 { top: 6%; left: 8%; }
.vig__tile--2 { top: 10%; right: 10%; }
.vig__tile--3 { bottom: 16%; left: 12%; }
.vig__tile--4 { bottom: 10%; right: 8%; }
.vig__hub {
  position: absolute;
  left: 50%; top: 50%;
  margin: -38px 0 0 -38px;
  width: 76px; height: 76px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--big-shadow);
  display: grid;
  place-items: center;
  will-change: transform;
}
.vig__chip {
  position: absolute;
  left: 50%; bottom: 3%;
  white-space: nowrap;
  background: var(--card);
  box-shadow: var(--lift-shadow);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-2);
  will-change: transform;
}
.vig__chip::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
}

/* step 2 — training checklist */
.vig__card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.vig__card-head b { font-size: 0.95rem; }
.vig__pct { font-size: 0.85rem; font-weight: 800; color: var(--purple); font-variant-numeric: tabular-nums; }
.vig__checks li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-2);
}
.vig__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--purple-tint);
}
.vig__tick-mark { display: block; transform: scale(0); will-change: transform; }
.vig__bar {
  height: 6px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--bg-2);
  box-shadow: var(--ring-shadow);
  overflow: hidden;
}
.vig__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* step 3 — Slack launch */
.vig__card--slack { padding: 0; overflow: hidden; }
.vig__slack-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ring);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-2);
}
.vig__slack-head b { color: var(--blue); margin-right: 2px; }
.vig__thread { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 118px; }
.vig__msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--slate-2);
  will-change: transform;
}
.vig__msg .ava { width: 26px; height: 26px; font-size: 0.54rem; }
.vig__msg b { color: var(--navy); margin-right: 4px; }
.vig__msg--you {
  align-self: flex-end;
  background-color: var(--blue);
  background-image: var(--grain);
  background-blend-mode: soft-light;
  color: #fff;
  padding: 8px 13px;
  border-radius: 14px 14px 4px 14px;
  font-weight: 600;
}
.vig__compose {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: var(--ring-shadow);
  min-height: 42px;
  font-size: 0.84rem;
}
.vig__typed { font-weight: 600; color: var(--navy); white-space: nowrap; }
.vig__caret { flex: none; width: 2px; height: 15px; background: var(--blue); animation: caretblink 1.1s steps(2) infinite; }
@keyframes caretblink { 50% { opacity: 0; } }
.vig__send {
  margin-left: auto;
  flex: none;
  border: none;
  border-radius: 9px;
  background-color: var(--blue);
  background-image: var(--grain);
  background-blend-mode: soft-light;
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 7px 13px;
}

/* step 4 — cost odometer */
.vig__card--cost { position: relative; text-align: center; padding: 30px 30px 26px; }
.vig__cost-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.vig__cost {
  display: block;
  margin: 6px 0 2px;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.vig__cost-sub { font-size: 0.78rem; font-weight: 600; color: var(--slate); }
.vig__stamp {
  position: absolute;
  top: -15px; right: -13px;
  transform: rotate(-8deg);
  border: 2px solid var(--green);
  color: var(--green);
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--soft-shadow);
  will-change: transform;
}

/* fake cursor */
.t-cursor {
  position: absolute;
  left: 0; top: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.t-cursor svg { display: block; filter: drop-shadow(0 2px 4px rgba(3, 13, 38, 0.3)); }
.t-cursor__ripple {
  position: absolute;
  left: -10px; top: -10px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(25, 114, 245, 0.3);
  opacity: 0;
  will-change: transform;
}

/* desktop: steps left, pinned stage right */
@media (min-width: 768px) {
  .theatre { min-height: 480px; }
  .theatre__list { width: 50%; }
  .js .theatre .vig {
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
  }
  .t-step { display: flex; align-items: stretch; gap: 14px; }
  .t-step__txt { flex: 1; align-self: center; }
  .t-step__wire { flex: none; position: relative; align-self: stretch; width: clamp(52px, 7vw, 92px); }
  .t-wire-h, .t-wire-v { position: absolute; background: var(--ring-2); }
  .t-wire-h { top: 50%; left: 0; right: 3px; height: 3px; border-radius: 3px; transform: translateY(-50%); }
  .t-wire-v { top: 0; bottom: 0; right: 0; width: 3px; }
  .t-wire-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--blue); will-change: transform; }
  .t-wire-h .t-wire-fill { transform: scaleX(0); transform-origin: left; }
  .t-wire-v .t-wire-fill { transform: scaleY(0); transform-origin: top; }
}

/* ============ COMPARISON ============ */
.cmp {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  padding: 10px;
  overflow-x: auto;
}
.cmp__table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.cmp__table th,
.cmp__table td {
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
}
.cmp__corner { width: 22%; }

/* first column — the criteria */
.cmp__table tbody th[scope="row"],
.cmp__table tfoot th[scope="row"] {
  width: 33%;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  padding-left: 18px;
}

/* column headers */
.cmp__col {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -0.01em;
  vertical-align: bottom;
}

/* highlighted 1st-verse lane */
.cmp__col--fv {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding-top: 28px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cmp__brand { font-size: 16px; font-weight: 900; letter-spacing: -0.02em; }
.cmp__badge {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.cmp__cell--fv { background: var(--show-blue); }
.cmp__foot .cmp__cell--fv {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* row dividers */
.cmp__table tbody tr th,
.cmp__table tbody tr td,
.cmp__table tfoot tr th,
.cmp__table tfoot tr td { border-top: 1px solid var(--ring-2); }

/* cell values */
.cmp-val {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex: none;
}
.cmp-mark--yes { background: var(--blue); color: #fff; }
.cmp-mark--no { background: rgba(3, 13, 38, 0.05); color: #a9b0c6; }
.cmp-mark--part { background: rgba(3, 13, 38, 0.06); color: var(--slate); }
.cmp-note {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.2;
}

/* cost footer row */
.cmp__foot th[scope="row"],
.cmp__foot .cmp__cell { padding-top: 18px; padding-bottom: 18px; }
.cmp-val--price { display: inline-block; text-align: center; }
.cmp-val--price b {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.cmp-val--price small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0;
}
.cmp__cell--fv .cmp-val--price b { color: var(--blue); }

@media (max-width: 600px) {
  .cmp { padding: 6px; }
  .cmp__table th,
  .cmp__table td { padding: 13px 8px; }
  .cmp__table tbody th[scope="row"],
  .cmp__table tfoot th[scope="row"] { font-size: 13px; padding-left: 12px; }
  .cmp__brand { font-size: 14px; }
  .cmp__col { font-size: 12px; }
}

/* ============ PRICING ============ */
.pricing {
  position: relative;
  background: var(--show-blue);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 60px);
}

/* CSS 3D coin */
.coin-wrap {
  position: absolute;
  top: -34px;
  right: clamp(24px, 7vw, 90px);
  perspective: 700px;
  z-index: 2;
}
.coin {
  position: relative;
  width: 88px; height: 88px;
  transform-style: preserve-3d;
  animation: coin-bob 5.2s ease-in-out infinite;
  will-change: transform;
}
.coin__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #6da4f9, var(--blue) 55%, #0d47b5);
  box-shadow:
    inset 0 -7px 13px rgba(3, 13, 38, 0.3),
    inset 0 7px 13px rgba(255, 255, 255, 0.35),
    0 20px 38px -12px rgba(25, 114, 245, 0.65);
}
.coin__face::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
}
@keyframes coin-bob {
  0%, 100% { transform: translateY(0) rotateY(-22deg) rotateX(6deg); }
  50% { transform: translateY(-12px) rotateY(22deg) rotateX(-4deg); }
}
.twinkle { position: absolute; animation: twinkle 2.6s ease-in-out infinite; }
.twinkle--1 { top: -12px; left: -18px; }
.twinkle--2 { bottom: -4px; right: -14px; animation-delay: 1.2s; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.4); opacity: 0.25; }
  50% { transform: scale(1); opacity: 1; }
}

.calc {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.calc__rate { display: flex; align-items: baseline; gap: 14px; margin-bottom: 34px; }
.calc__rate-num {
  font-size: clamp(3.6rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--navy);
}
.calc__rate-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.calc__rate { margin-bottom: 14px; }
.calc__rate-tier {
  display: inline-block;
  width: fit-content;
  margin: 0 0 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* volume-rate legend (published tiers) */
.calc__tiers {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(3, 13, 38, 0.08);
}
.calc__tiers-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.calc__tiers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.calc__tiers li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc__tiers li span { font-size: 0.9rem; font-weight: 600; color: var(--slate); }
.calc__tiers li b { font-size: 1rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__tiers li b small { font-size: 0.7rem; font-weight: 700; color: var(--slate); }
.calc__tiers-custom { padding-top: 12px; margin-top: 2px; border-top: 1px dashed rgba(3, 13, 38, 0.1); }
.calc__tiers-book {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: -0.01em;
}
.calc__tiers-book:hover { color: var(--blue-deep); }

.calc__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 8px;
}
.calc__readout { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.calc__readout output {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.calc__readout span { font-size: 0.8rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--blue) var(--fill, 20%), var(--track) var(--fill, 20%));
  border-radius: 99px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--blue);
  margin-top: -9px;
  box-shadow: 0 2px 8px rgba(3, 13, 38, 0.25);
  transition: transform 0.2s var(--ease-out);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type="range"]::-moz-range-track { height: 6px; background: var(--track); border-radius: 99px; }
input[type="range"]::-moz-range-progress { height: 6px; background: var(--blue); border-radius: 99px; }
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--blue);
  box-shadow: 0 2px 8px rgba(3, 13, 38, 0.25);
}

.calc__presets { display: flex; gap: 8px; margin-top: 10px; }
.calc__presets button {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-2);
  background: var(--card);
  border: none;
  box-shadow: var(--ring-shadow);
  border-radius: 999px;
  padding: 8px 18px;
  transition: box-shadow 0.2s, color 0.2s, background-color 0.2s;
}
.calc__presets button:hover { box-shadow: 0 0 0 1px var(--ring-2); }
.calc__presets button.is-on { background: var(--blue); color: #fff; box-shadow: none; }

.calc__ticks { margin-top: 34px; }

/* ledger */
.ledger {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px 30px 26px;
  box-shadow: var(--big-shadow);
}
.ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ring);
}
.ledger__stamp { box-shadow: var(--ring-shadow); border-radius: 6px; padding: 2px 9px; }

.ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--ring-2);
}
.ledger__row > span { font-size: 0.94rem; font-weight: 600; display: flex; flex-direction: column; }
.ledger__row small { font-size: 0.74rem; font-weight: 600; color: var(--slate); margin-top: 1px; }
.ledger__row b {
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.ledger__row--muted > span, .ledger__row--muted b, .ledger__row--muted small { color: var(--slate); }
.ledger__row--fv > span, .ledger__row--fv b { color: var(--blue-deep); }
.ledger__row--fv small { color: var(--blue-deep); opacity: 0.7; }

.ledger__divider {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 12px;
}

.ledger__total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.ledger__total div {
  background: var(--blue-tint);
  border-radius: var(--r);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ledger__total small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.ledger__total b {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}

/* three-bar comparison: agency / in-house / 1st-verse */
.ledger__compare {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(3, 13, 38, 0.08);
}
.lc__head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.lc__row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}
.lc__meta { display: flex; flex-direction: column; line-height: 1.15; }
.lc__meta span { font-size: 0.8rem; font-weight: 700; color: var(--slate); }
.lc__meta small { font-size: 0.65rem; font-weight: 600; color: var(--slate); opacity: 0.7; }
.lc__track {
  height: 9px;
  border-radius: 99px;
  background: var(--blue-tint);
  overflow: hidden;
}
.lc__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: rgba(93, 107, 152, 0.45);
  transform-origin: left center;
  will-change: transform;
}
.lc__amt {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.lc__row--fv .lc__meta span,
.lc__row--fv .lc__amt { color: var(--blue-deep); }
.lc__row--fv .lc__fill { background: var(--blue); }

.ledger__cta { width: 100%; margin-top: 20px; }
.ledger__note {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
}

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  padding: 0 22px;
  transition: box-shadow 0.3s;
}
.faq__item:hover { box-shadow: var(--lift-shadow); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__x {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-tint);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.faq__x::before, .faq__x::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s;
}
.faq__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__x { transform: rotate(135deg); background: var(--blue); }
.faq__item.is-open .faq__x::before, .faq__item.is-open .faq__x::after { background: #fff; }

/* smooth grid-rows expand */
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__inner { min-height: 0; overflow: hidden; }
.faq__inner p {
  padding: 0 34px 20px 0;
  color: var(--slate);
  font-size: 0.94rem;
}

/* ============ FINALE ============ */
.finale {
  position: relative;
  background-color: var(--blue);
  background-image: var(--grain), radial-gradient(90% 75% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
  background-blend-mode: soft-light, normal;
  color: #fff;
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(110px, 13vw, 180px) 24px;
  overflow: hidden;
}
.finale__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, black, transparent);
}
.finale__orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.finale__orb--1 {
  width: 120px; height: 120px;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 60%, transparent 70%);
  left: 7%; bottom: 12%;
  animation: orbfloat 7s ease-in-out infinite;
}
.finale__orb--2 {
  width: 64px; height: 64px;
  background: radial-gradient(circle at 32% 26%, #ffd9a8, var(--yellow) 58%, #d98a00);
  box-shadow: inset 0 -5px 9px rgba(3, 13, 38, 0.25), inset 0 5px 9px rgba(255, 255, 255, 0.5), 0 18px 34px -12px rgba(0, 0, 0, 0.4);
  right: 9%; top: 18%;
  animation: orbfloat 5.6s ease-in-out infinite reverse;
}
@keyframes orbfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.finale__inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.finale__title {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.finale__sub {
  margin: 20px auto 32px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}
.finale__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.finale__micro {
  margin-top: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ FOOTER ============ */
.footer { background: var(--bg); border-top: 1px solid var(--ring); }
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font-size: 0.88rem; font-weight: 600; color: var(--slate-2); transition: color 0.2s; }
.footer__nav a:hover { color: var(--blue); }
.footer__legal { font-size: 0.8rem; font-weight: 600; color: var(--slate); }

/* ============ CHAT WIDGET ============ */
.chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat__launcher {
  position: relative;
  width: 60px; height: 60px;
  border: none;
  border-radius: 50%;
  background-color: var(--blue);
  background-image: var(--grain), radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.2), transparent 62%);
  background-blend-mode: soft-light, normal;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(25, 114, 245, 0.4), 0 16px 36px -10px rgba(25, 114, 245, 0.55);
  will-change: transform;
  transition: background-color 0.25s;
}
.chat__launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(25, 114, 245, 0.4);
  animation: launcher-ping 2.8s ease-out infinite;
}
@keyframes launcher-ping {
  0% { box-shadow: 0 0 0 0 rgba(25, 114, 245, 0.4); }
  60%, 100% { box-shadow: 0 0 0 14px rgba(25, 114, 245, 0); }
}
.chat.is-open .chat__launcher::before { animation: none; }
.chat__launcher:hover { background-color: var(--blue-deep); }
.chat__ic { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.35s var(--ease-out); }
.chat__ic--close { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.chat.is-open .chat__ic--open { opacity: 0; transform: rotate(90deg) scale(0.4); }
.chat.is-open .chat__ic--close { opacity: 1; transform: none; }
.chat__badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--bg);
  will-change: transform;
}
.chat.is-open .chat__badge { display: none; }

.chat__panel {
  width: min(350px, calc(100vw - 44px));
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--big-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
  will-change: transform;
}
.chat.is-open .chat__panel { display: flex; }

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background-image: var(--grain), linear-gradient(120deg, var(--blue), #4a90f7);
  background-blend-mode: soft-light, normal;
  color: #fff;
}
.chat__head .ava--lg { box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.55); background: #0d47b5; }
.chat__dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}
.chat__id { display: flex; flex-direction: column; line-height: 1.35; }
.chat__id b { font-size: 0.92rem; }
.chat__id small { font-size: 0.74rem; color: rgba(255, 255, 255, 0.8); }
.chat__close {
  margin-left: auto;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  border-radius: 9px;
  transition: background-color 0.2s;
}
.chat__close:hover { background: rgba(255, 255, 255, 0.32); }

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  min-height: 220px;
  max-height: min(44vh, 400px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-2);
}
.chat__msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  will-change: transform;
}
.chat__msg--agent {
  align-self: flex-start;
  background: var(--card);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  border-bottom-left-radius: 5px;
  transform-origin: bottom left;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 5px;
  transform-origin: bottom right;
}
.chat__typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: var(--card);
  box-shadow: var(--ring-shadow), var(--soft-shadow);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  padding: 13px 15px;
  transform-origin: bottom left;
  will-change: transform;
}
.chat__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--slate);
  animation: tybounce 1.1s ease-in-out infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tybounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat__chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 3px; }
.chat__chip {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue-deep);
  background: var(--card);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 7px 14px;
  will-change: transform;
  transition: background-color 0.2s, color 0.2s;
}
.chat__chip:hover { background: var(--blue); color: #fff; }
.chat__foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--ring);
  background: var(--card);
}
.chat__input {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--bg-2);
  box-shadow: var(--ring-shadow);
  border-radius: 999px;
  padding: 10px 16px;
}
.chat__send {
  flex: none;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  will-change: transform;
  transition: background-color 0.2s;
}
.chat__send:hover { background: var(--blue-deep); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
  .grid6 { grid-template-columns: repeat(2, 1fr); }
  .feat--hero, .feat--wide { grid-column: span 2; }
  .show { grid-template-columns: 1fr; }
  .show--flip .show__copy { order: 1; }
  .show--flip .show__visual { order: 2; }
  .show__visual { max-width: 540px; }
  .calc { grid-template-columns: 1fr; }
  .f-chip--csat { right: 0; }
  .f-chip--save { left: 0; }
}

@media (max-width: 860px) {
  .topbar__nav, .topbar__cta { display: none; }
  .topbar__burger { display: flex; margin-left: auto; }
  .nav-open .topbar__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .topbar__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .topbar__sheet {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--ring);
  }
  .nav-open .topbar__sheet { display: flex; }
  .topbar__sheet a {
    padding: 13px 4px;
    font-weight: 700;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--ring);
  }
  .topbar__sheet .btn { margin-top: 14px; }
}

@media (max-width: 767px) {
  .hero { text-align: left; }
  .hero__sub, .hero__actions { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { width: 100%; }
  .hero__dots--l, .hero__dots--r { display: none; }
  .aurora--3 { display: none; }

  .scene { margin-top: 46px; padding-bottom: 14px; perspective: none; }
  .f-chip--team { position: static; margin-bottom: 14px; display: inline-flex; }
  .f-chip--speed, .f-chip--csat { display: none; }
  .f-chip--save { position: static; margin-top: 14px; display: inline-flex; }
  .doodle--squiggle, .doodle--spark2 { display: none; }
  .doodle--spark { right: 4px; top: -14px; bottom: auto; }
  .orb--1, .orb--2 { display: none; }

  .grid6 { grid-template-columns: 1fr; }
  .feat--hero, .feat--wide { grid-column: auto; order: 0; }
  #services::before { display: none; }

  /* theatre → stacked cards, vignettes play once on scroll */
  .t-cursor { display: none; }
  .theatre__list { gap: 14px; }
  .t-step {
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow: var(--ring-shadow), var(--soft-shadow);
    padding: 22px 20px;
  }
  .t-step__txt { padding: 0 0 14px; }
  .t-step__wire { display: none; }
  .vig__scene { min-height: 240px; }
  .toast { right: 0; bottom: -18px; }

  .coin-wrap { top: -28px; right: 18px; }
  .coin { width: 66px; height: 66px; }
  .coin__face { font-size: 1.15rem; }

  .ledger { padding: 22px 18px; }
  .ledger__total { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .chat { right: 14px; bottom: 14px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack__row { animation-duration: 100s; }
  .hero__eyebrow-dot, .scene-card__live i, .chat__typing span,
  .bubble--typing span, .coin, .twinkle, .finale__orb,
  .chat__launcher::before { animation: none; }
  .btn--shine::after { display: none; }
  .js [data-reveal], .js [data-stagger],
  .js [data-show-bubble], .js [data-show-toast] { opacity: 1; }
  .js [data-convo-item] { opacity: 1; visibility: visible; }
  .js .line__inner { opacity: 1; transform: none; }
  .curtain { display: none; }

  /* theatre: static, all vignettes shown in place */
  .js [data-v-pop] { opacity: 1; visibility: visible; }
  .js [data-cmp-pop] { opacity: 1; visibility: visible; }
  .js .theatre .vig { position: static; opacity: 1; visibility: visible; }
  .js .theatre .t-step__txt { opacity: 1; }
  .theatre { min-height: 0; }
  .vig__bar-fill { transform: scaleX(1); }
  .vig__tick-mark { transform: scale(1); }
  .vig__caret { animation: none; }
  .t-cursor { display: none; }
}
