/* ============================================================
   Vivid — landing page
   Style system: DESIGN.md (Framer-design-analysis)
   Dark-only canvas · white pill CTAs · scarce gradient spotlights
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* colors */
  --primary: #ffffff;
  --on-primary: #000000;
  --accent-blue: #0099ff;
  --ink: #ffffff;
  --ink-muted: #999999;
  --canvas: #090909;
  --surface-1: #141414;
  --surface-2: #1c1c1c;
  --hairline: #262626;
  --hairline-soft: #1a1a1a;
  --inverse-canvas: #ffffff;
  --inverse-ink: #000000;

  --grad-magenta: #d44df0;
  --grad-violet: #6a4cf5;
  --grad-orange: #ff7a3d;
  --grad-coral: #ff5577;
  --success: #22c55e;

  /* radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 15px;
  --r-xl: 20px;
  --r-xxl: 30px;
  --r-pill: 100px;
  --r-full: 9999px;

  /* spacing — 5px base (5/10/15/20/30/40) */
  --s-hair: 1px;
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 15px;
  --s-lg: 20px;
  --s-xl: 30px;
  --s-xxl: 40px;
  --s-section: 96px;

  /* type stacks */
  --font-display: "Geist", "Mona Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --inter-features: "cv01" 1, "cv05" 1, "cv09" 1, "cv11" 1, "ss03" 1, "ss07" 1, "dlig" 1;

  /* layout */
  --shell: 1199px;
  --gutter: var(--s-xl);
  --nav-h: 56px;

  /* elevation */
  --lift-2: inset 0 0.5px 0 rgba(255, 255, 255, 0.10), 0 10px 30px rgba(0, 0, 0, 0.25);
  --ring-focus: 0 0 0 1px rgba(0, 153, 255, 0.15);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-lg));
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-feature-settings: var(--inter-features);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

a {
  color: inherit;
  text-decoration: none;
}

::selection { background: rgba(0, 153, 255, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: var(--s-lg);
  z-index: 200;
  padding: 10px 15px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--s-sm); }

/* ---------- type scale (tracking preserved as % of size) ---------- */
.display-xxl {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.4vw, 110px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 85px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.031em;
}
.headline {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.036em;
}
.subhead {
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}
.body-lg { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.3; letter-spacing: -0.01em; }
.body    { font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }
.body-sm { font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.caption { font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.micro   { font-size: 12px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }

.muted { color: var(--ink-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  padding: 7px 14px 7px 11px;
  background: var(--surface-1);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-lg);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 860px; }

.section { padding-block: var(--s-section); }
.section--tight { padding-block: 64px; }

.section__head { max-width: 780px; margin-bottom: var(--s-xxl); }
.section__lede { margin-top: var(--s-lg); max-width: 52ch; }

.section__head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-xl);
  max-width: none;
}
.section__head--split .section__lede { margin-top: 0; max-width: 38ch; text-align: right; }

.section__head--center {
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  padding: 13px 18px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: #e8e8e8; }

.btn--secondary { background: var(--surface-1); color: var(--ink); }
.btn--secondary:hover { background: var(--surface-2); }

.btn--onlight { background: var(--inverse-canvas); color: var(--inverse-ink); }
.btn--onlight:hover { background: #f0f0f0; }

.btn--lg { padding: 15px 24px; min-height: 48px; }
.btn--block { display: flex; width: 100%; }

.ico { width: 14px; height: 14px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.chip--live { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--hairline-soft);
  background: rgba(9, 9, 9, 0.9);
}

.nav__inner {
  height: var(--nav-h);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  flex: none;
}
.wordmark__text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.wordmark__glyph {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}
.wordmark__glyph i {
  display: block;
  width: 2.5px;
  border-radius: var(--r-full);
  background: var(--ink);
}
.wordmark__glyph i:nth-child(1) { height: 7px; }
.wordmark__glyph i:nth-child(2) { height: 14px; }
.wordmark__glyph i:nth-child(3) { height: 18px; }
.wordmark__glyph i:nth-child(4) { height: 9px; }
.wordmark:hover .wordmark__glyph i { animation: glyph 1.1s ease-in-out infinite alternate; }
.wordmark:hover .wordmark__glyph i:nth-child(2) { animation-delay: 0.12s; }
.wordmark:hover .wordmark__glyph i:nth-child(3) { animation-delay: 0.24s; }
.wordmark:hover .wordmark__glyph i:nth-child(4) { animation-delay: 0.36s; }
@keyframes glyph { from { transform: scaleY(0.55); } to { transform: scaleY(1.15); } }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  margin-inline: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  flex: none;
}
.nav__actions .btn { padding: 10px 15px; min-height: 38px; }

.nav__burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--surface-1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav__burger span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  border-radius: var(--r-full);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

.nav__sheet {
  display: flex;
  flex-direction: column;
  padding: var(--s-xs) var(--gutter) var(--s-lg);
  border-top: 1px solid var(--hairline-soft);
  background: var(--canvas);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a {
  padding: 14px 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav__sheet a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: 64px;
  position: relative;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero__inner h1 { max-width: 15ch; }

.hero__sub { margin-top: var(--s-lg); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xl); }
.hero__note { margin-top: var(--s-md); }

/* ---------- product mockup tile ---------- */
.mockup {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: var(--s-md);
  box-shadow: var(--lift-2);
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 0 var(--s-xxs) var(--s-md);
  border-bottom: 1px solid var(--hairline);
}
.mockup__dots { display: inline-flex; gap: 5px; flex: none; }
.mockup__dots i {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--hairline);
  display: block;
}
.mockup__title { color: var(--ink-muted); margin-right: auto; }

.mockup--call { padding: var(--s-lg); }

.callgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--s-lg);
  align-items: start;
}
.callgrid__main { min-width: 0; }

/* live signals rail */
.signals {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  align-self: stretch;
}
.signals__h { margin-bottom: var(--s-xxs); }
.signal { display: flex; flex-direction: column; gap: 6px; }
.signal__v {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.signal__v b { font-weight: 500; font-variant-numeric: tabular-nums; }

.meter {
  display: block;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--hairline);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: var(--r-full);
  background: var(--ink);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.callhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
  padding: var(--s-xs) 0 var(--s-sm);
}
.callhead__id { display: flex; align-items: center; gap: var(--s-sm); }
.callhead__id > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: linear-gradient(140deg, var(--grad-violet), var(--grad-magenta));
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex: none;
}
.callhead__name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.callhead__timer {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  padding: 5px 10px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
}

/* ---------- waveform ---------- */
.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 34px;
  /* bars have a min-width and cannot shrink further — clip rather than push
     the container wider than its column */
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.wave i {
  display: block;
  flex: 1 1 auto;
  min-width: 2px;
  max-width: 4px;
  border-radius: var(--r-full);
  background: currentColor;
  opacity: 0.35;
  height: var(--h, 30%);
  transform-origin: center;
  transition: opacity 0.2s ease;
}
.wave.is-active i {
  animation: bar 1.05s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  opacity: 0.9;
}
@keyframes bar {
  from { transform: scaleY(0.32); }
  to   { transform: scaleY(1); }
}

.wave--panel {
  margin: var(--s-xs) 0 var(--s-md);
  height: 44px;
  color: var(--ink);
  padding-bottom: var(--s-md);
  border-bottom: 1px solid var(--hairline-soft);
}
.wave--spot { margin-top: var(--s-lg); height: 30px; color: #fff; gap: 4px; }
.wave--row { height: 26px; color: var(--ink); gap: 2.5px; min-width: 0; }
.wave--finale {
  height: 56px;
  color: var(--ink);
  gap: 4px;
  margin-bottom: var(--s-xl);
  max-width: min(520px, 100%);
  margin-inline: auto;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

/* ---------- transcript ---------- */
.transcript {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  min-height: 200px;
}
.transcript li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 88%;
  opacity: 0;
  transform: translateY(6px);
  animation: line-in 0.4s ease forwards;
}
@keyframes line-in { to { opacity: 1; transform: none; } }

.transcript li .who {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}
.transcript li .said {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
}
.transcript li.is-caller { align-self: flex-end; align-items: flex-end; }
.transcript li.is-caller .said {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}
.transcript li.is-tool .said {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  background: transparent;
  border: 1px dashed var(--hairline);
  color: var(--accent-blue);
  font-size: 13px;
}

/* ---------- trust strip ---------- */
.trust {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  flex-wrap: wrap;
}
.trust__label { flex: none; }
.trust__row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 48px);
  flex-wrap: wrap;
}
.trust__row span {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink-muted);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.trust__row span:hover { opacity: 1; color: var(--ink); }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
}

.card {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--surface-2); }
.card--flat { gap: var(--s-md); }

.card--wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: var(--s-lg);
}
.card--wide .card__ico { margin-bottom: 0; flex: none; }
.card__wideText { display: flex; flex-direction: column; gap: var(--s-xs); }
.card--wide .btn { flex: none; margin-left: auto; }

.card__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-xs);
}
.card:hover .card__ico { background: #262626; }
.card__ico svg { width: 19px; height: 19px; color: var(--ink); }

/* ---------- gradient spotlight cards (signature — used twice) ---------- */
.spotlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xxl);
  padding: clamp(28px, 3vw, 40px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  isolation: isolate;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, 0.34), transparent 55%),
    radial-gradient(90% 80% at 88% 96%, rgba(0, 0, 0, 0.32), transparent 60%);
}
.spotlight--violet {
  grid-column: span 2;
  background: linear-gradient(120deg, var(--grad-violet) 0%, #8b3df2 48%, var(--grad-magenta) 100%);
  justify-content: center;
}
.spotlight--violet .display-lg { max-width: 12ch; }
.spotlight--sunset {
  background: linear-gradient(150deg, var(--grad-orange) 0%, var(--grad-coral) 58%, var(--grad-magenta) 100%);
  justify-content: center;
  min-height: 100%;
}
.spotlight__eyebrow { color: rgba(255, 255, 255, 0.72); }
.spotlight .subhead { color: rgba(255, 255, 255, 0.9); max-width: 34ch; }
.spotlight .btn { align-self: flex-start; margin-top: var(--s-xs); font-variant-numeric: tabular-nums; }

/* ---------- voices ---------- */
.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-sm);
}
.voice {
  display: grid;
  grid-template-columns: 40px minmax(120px, 1fr) minmax(60px, 1.1fr) auto;
  align-items: center;
  gap: var(--s-md);
  text-align: left;
  padding: var(--s-sm) var(--s-md) var(--s-sm) var(--s-sm);
  background: var(--surface-1);
  border-radius: var(--r-lg);
  transition: background-color 0.2s ease;
}
.voice:hover { background: var(--surface-2); }
.voice[aria-pressed="true"] { background: var(--surface-2); box-shadow: var(--ring-focus); }

.voice__play {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.voice:hover .voice__play,
.voice[aria-pressed="true"] .voice__play { background: var(--primary); color: var(--on-primary); }
.voice__play svg { width: 14px; height: 14px; }
.voice__play .ico-pause { display: none; }
.voice[aria-pressed="true"] .voice__play .ico-play { display: none; }
.voice[aria-pressed="true"] .voice__play .ico-pause { display: block; }

.voice__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.voice__name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-bottom: var(--s-xxl);
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
}
.step__n { color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---------- code tile ---------- */
.mockup--code { padding: var(--s-md) var(--s-md) var(--s-lg); }
.code {
  margin: 0;
  padding: var(--s-lg) var(--s-xxs) 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  tab-size: 2;
}
.code code { white-space: pre; }
.c-k { color: #c792ea; }
.c-s { color: #9ccc65; }
.c-f { color: var(--accent-blue); }
.c-c { color: #4d4d4d; }

/* ---------- metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-lg);
  padding-block: var(--s-xl);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.metric { display: flex; flex-direction: column; gap: var(--s-sm); }
.metric__v { font-variant-numeric: tabular-nums; }

/* ---------- duo (spotlight + stack) ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
  align-items: stretch;
}
.stack { display: grid; grid-template-rows: auto 1fr; gap: var(--s-lg); }

.ticks { display: flex; flex-direction: column; gap: var(--s-xs); margin-top: var(--s-xs); }
.ticks li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-muted);
  font-weight: 400;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 7px;
  border-left: 1.6px solid var(--success);
  border-bottom: 1.6px solid var(--success);
  transform: rotate(-45deg);
}

/* ---------- integrations ---------- */
.integrations {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-sm);
}
.int {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-lg) var(--s-sm);
  background: var(--surface-1);
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.int:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- pricing ---------- */
.tabs {
  display: inline-flex;
  gap: var(--s-xxs);
  padding: 4px;
  margin-top: var(--s-xl);
  background: var(--surface-1);
  border-radius: var(--r-pill);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.tab.is-selected { background: var(--surface-2); color: var(--ink); }
.tab__save { color: var(--success); font-size: 12px; }

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-md);
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.tier--featured { background: var(--surface-2); }
.tier__flag {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--ink-muted);
}
.tier__price { display: flex; align-items: baseline; gap: 4px; margin-top: var(--s-xs); }
.tier__meta { margin-bottom: var(--s-sm); }
.tier .btn { margin-bottom: var(--s-xs); }
.tier .ticks { margin-top: var(--s-sm); padding-top: var(--s-md); border-top: 1px solid var(--hairline); }

.pricing__note { margin-top: var(--s-lg); text-align: center; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; }
.faq__row { border-bottom: 1px solid var(--hairline-soft); }
.faq__row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  padding: 24px var(--s-xxs);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}
.faq__row summary::-webkit-details-marker { display: none; }
.faq__row summary .headline { font-size: clamp(17px, 1.8vw, 22px); }
.faq__row summary:hover .headline { color: var(--ink); }

.faq__mark {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--ink-muted);
  border-radius: var(--r-full);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__row[open] .faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq__body {
  padding: 0 var(--s-xxs) 24px;
  max-width: 62ch;
}
.faq__row[open] .faq__body { animation: line-in 0.28s ease forwards; }

/* ---------- finale ---------- */
.finale {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) var(--s-lg);
  background: var(--surface-1);
  border-radius: var(--r-xxl);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* the finale sits on surface-1, so its secondary pill lifts one step further */
.finale .btn--secondary { background: var(--surface-2); }
.finale .btn--secondary:hover { background: #262626; }
.finale__sub { margin-top: var(--s-lg); max-width: 44ch; }
.finale .hero__cta { justify-content: center; margin-top: var(--s-xl); }

/* ---------- footer ---------- */
.footer {
  padding: 64px 0 var(--s-xxl);
  border-top: 1px solid var(--hairline-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--s-xl);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--s-sm); }
.footer__col { display: flex; flex-direction: column; gap: var(--s-sm); }
.footer__h { color: var(--ink); margin-bottom: var(--s-xxs); }
.footer__col a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}
.footer__col a:hover { color: var(--ink); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: var(--s-md);
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline-soft);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .integrations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: span 3; margin-bottom: var(--s-lg); }
}

@media (max-width: 900px) {
  :root { --gutter: var(--s-lg); --s-section: 72px; }

  .callgrid { grid-template-columns: minmax(0, 1fr); }

  .nav__links { display: none; }
  .nav__signin { display: none; }
  .nav__burger { display: flex; }
  .nav__actions { margin-left: auto; }

  .section__head--split { flex-direction: column; align-items: flex-start; }
  .section__head--split .section__lede { text-align: left; margin-top: var(--s-md); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-md); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .voices { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-xl) var(--s-lg); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .spotlight--violet, .card--wide { grid-column: auto; }
  .card--wide { flex-direction: column; align-items: flex-start; }
  .card--wide .card__ico { margin-bottom: var(--s-xs); }
  .card--wide .btn { margin-left: 0; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: span 2; }

  .trust { flex-direction: column; align-items: flex-start; gap: var(--s-md); }
  .voice { grid-template-columns: 40px 1fr auto; }
  .voice .wave--row { display: none; }
  .btn--lg { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .finale .hero__cta { align-items: stretch; }
  .transcript li { max-width: 100%; }
  .mockup__foot { gap: var(--s-xs) var(--s-sm); }
}

/* touch targets */
@media (pointer: coarse) {
  .voice__play { width: 44px; height: 44px; }
  .tab { min-height: 44px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .transcript li { opacity: 1; transform: none; }
}
