/* ==========================================================================
   PRISM — AI Voice Agent Development service page (page-specific).
   Signature moment: the hero "live call" orb (waveform + sonar rings +
   looping transcript). Shared lead-funnel sections (stats/problem/process/
   capabilities/demo-band/marquee/pricing/addons) live in
   service-shared.css so the other 2 service pages can reuse the same design.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.voice-hero {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--space-section);
  position: relative;
  overflow: clip;
}
.voice-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}
.voice-hero__badge { margin-bottom: var(--space-5); }
.voice-hero__title { margin-bottom: var(--space-5); }
.voice-hero__title em {
  font-style: normal;
  font-weight: inherit;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.voice-hero__sub { font-size: var(--fs-lead); color: var(--ink-500); max-width: 46ch; margin-bottom: var(--space-6); }

.voice-hero .bg-mesh__blob--1 { width: 480px; height: 480px; top: -140px; right: -100px; background: var(--brand-violet); }
.voice-hero .bg-mesh__blob--2 { width: 420px; height: 420px; bottom: -160px; left: -120px; background: var(--brand-aqua); animation-delay: 4s; }

/* ---- Signature visual: the "live call" orb ---- */
.voice-hero__visual { position: relative; height: clamp(420px, 42vw, 540px); perspective: 1400px; }
.voice-orb {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-orb__rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.voice-orb__ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid var(--brand-indigo);
  opacity: 0;
  animation: sonarPing 3.6s var(--ease-smooth) infinite;
}
.voice-orb__ring:nth-child(2) { border-color: var(--brand-violet); animation-delay: 1.2s; }
.voice-orb__ring:nth-child(3) { border-color: var(--brand-aqua); animation-delay: 2.4s; }
@keyframes sonarPing {
  0%   { transform: scale(0.5); opacity: 0.65; }
  60%  { opacity: 0.18; }
  100% { transform: scale(2.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .voice-orb__ring { animation: none; opacity: 0; } }

.voice-call-card {
  position: relative;
  z-index: 1;
  width: min(360px, 88%);
  padding: var(--space-6);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform var(--dur-slow) var(--ease-out);
}
.voice-call-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: var(--space-5);
}
.voice-call-card__header .dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,0.25); flex-shrink: 0; }
.voice-call-card__header time { font-variant-numeric: tabular-nums; margin-left: auto; color: var(--ink-300); }

.voice-call-card__waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; margin-bottom: var(--space-5); }
.voice-call-card__bar {
  flex: 1;
  max-width: 6px;
  min-width: 3px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  animation: wavePulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .voice-call-card__bar { animation: none; height: 40%; } }

.voice-transcript { min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3); }
.voice-transcript-line {
  max-width: 90%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.8125rem;
  line-height: 1.4;
  animation: fadeIn var(--dur-slow) var(--ease-out);
}
.voice-transcript-line--in { background: var(--bg-alt); border: 1px solid var(--border); color: var(--ink-700); border-bottom-left-radius: 4px; }
.voice-transcript-line--out { background: var(--brand-gradient); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }

@media (max-width: 1024px) {
  .voice-hero__grid { grid-template-columns: 1fr; }
  .voice-hero__visual { height: clamp(360px, 70vw, 460px); margin-top: var(--space-6); }
}
