/* Voice Agents page. "Everything you need from your phones": a call's path. It comes in
   through your phone system (Rufen Infrastructure's, drawn in its graphite-and-lime look,
   opening the Business communications panel), the AI agent takes it (six compact v1 flip
   tiles), and it goes out as what happens next. Dots run along the pipes between. */

/* Two rows: the three labels on top, the three bodies under them. The bodies share one
   height (the tile grid's), so the phone system, the tiles and what happens next line up
   exactly; the pipes sit on their middle. */
.va-path {
  display: grid; grid-template-columns: 230px 56px minmax(0, 1fr) 56px 230px;
  grid-template-areas: "l1 . l2 . l3" "base pin tiles pout out";
  align-items: stretch; row-gap: 0; max-width: 1160px; margin: 44px auto 0;
}
.va-l1 { grid-area: l1; } .va-l2 { grid-area: l2; } .va-l3 { grid-area: l3; }
.va-base { grid-area: base; } .va-pipe-in { grid-area: pin; } .va-tiles { grid-area: tiles; }
.va-pipe-out { grid-area: pout; } .va-out { grid-area: out; }
.va-layer-label {
  margin: 0 0 14px; text-align: center;
  font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-blue);
}

/* the phone system, in the flipped cards' colours */
.va-base {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 18px 18px 16px; border-radius: 12px; box-sizing: border-box;
  background: rgba(7, 10, 19, 0.96); border: 1px solid rgba(0, 98, 255, 0.25); color: #e2e8f0; text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.va-base:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.55); }
.va-base:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.va-base-list { display: flex; flex-direction: column; gap: 9px; }
.va-base-list span { display: flex; align-items: center; gap: 9px; font: 400 0.82rem/1.25 var(--font-body); color: #e2e8f0; }
.va-base-list svg { width: 15px; height: 15px; flex: 0 0 auto; color: #38bdf8; }
.va-base-more { font: 600 0.74rem/1.3 var(--font-display); letter-spacing: 0.02em; color: #38bdf8; }

/* the pipes, with calls running through them */
.va-pipe { position: relative; align-self: center; height: 2px; background: linear-gradient(90deg, rgba(56, 189, 248, 0.55), rgba(0, 98, 255, 0.45)); }
.va-pipe-out { background: linear-gradient(90deg, rgba(0, 98, 255, 0.45), rgba(22, 163, 74, 0.5)); }
.va-pipe i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; animation: vaRun 2.4s linear infinite; }
.va-pipe-in i { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
.va-pipe-out i { background: #16a34a; box-shadow: 0 0 8px rgba(22, 163, 74, 0.6); }
.va-pipe i:nth-child(2) { animation-delay: 0.8s; }
.va-pipe i:nth-child(3) { animation-delay: 1.6s; }
@keyframes vaRun { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* the agent: six compact flip tiles, 3 x 2 */
.va-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.va-tile.feature-card-wrapper { min-height: 112px; }
.va-tile .feature-card-front { padding: 14px 16px; gap: 8px; border-radius: 12px; }
.va-tile .feature-card-front i, .va-tile .feature-card-front svg { width: 20px; height: 20px; }
.va-tile .feature-card-front h4 { font-size: 0.86rem; line-height: 1.25; }
.va-tile .flip-hint { margin-top: auto; font-size: 0.58rem !important; }
.va-tile .feature-card-back { padding: 13px 15px; border-radius: 12px; }
.va-tile .feature-card-back h5 { margin-bottom: 6px; font-size: 0.62rem; }
.va-tile .feature-card-back p { margin: 0; font-size: 0.78rem; line-height: 1.45; }

/* what happens next, lit in turn */
.va-out { display: flex; flex-direction: column; justify-content: center; padding: 14px; box-sizing: border-box; border-radius: 12px; background: #fff; border: 1px solid rgba(15, 23, 42, 0.07); box-shadow: 0 14px 34px -26px rgba(15, 23, 42, 0.3); }
.va-out ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.va-out li {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  font: 500 0.82rem/1.2 var(--font-display); color: var(--text-secondary);
  animation: vaOut 8s ease infinite;
}
.va-out li svg { width: 15px; height: 15px; color: #94a3b8; animation: vaOutIco 8s ease infinite; }
.va-out li:nth-child(2), .va-out li:nth-child(2) svg { animation-delay: 1.4s; }
.va-out li:nth-child(3), .va-out li:nth-child(3) svg { animation-delay: 2.8s; }
.va-out li:nth-child(4), .va-out li:nth-child(4) svg { animation-delay: 4.2s; }
@keyframes vaOut { 0%, 100% { background: transparent; color: var(--text-secondary); } 6%, 30% { background: rgba(22, 163, 74, 0.08); color: #15803d; } 40% { background: transparent; color: var(--text-secondary); } }
@keyframes vaOutIco { 0%, 100% { color: #94a3b8; } 6%, 30% { color: #16a34a; } 40% { color: #94a3b8; } }

@media (max-width: 1100px) {
  .va-path { grid-template-columns: 1fr; grid-template-areas: "l1" "base" "pin" "l2" "tiles" "pout" "l3" "out"; max-width: 640px; gap: 0; }
  .va-pipe { margin: 6px 0 14px; }
  .va-pipe { justify-self: center; width: 2px; height: 40px; background: linear-gradient(180deg, rgba(56, 189, 248, 0.55), rgba(0, 98, 255, 0.45)); }
  .va-pipe-out { background: linear-gradient(180deg, rgba(0, 98, 255, 0.45), rgba(22, 163, 74, 0.5)); }
  .va-pipe i { left: -3px; animation-name: vaRunDown; }
  @keyframes vaRunDown { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .va-base-list { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .va-base { gap: 14px; }
}
@media (max-width: 768px) {
  /* the shared phone rule makes flip cards tall; these tiles stay compact */
  .va-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .va-tile.feature-card-wrapper { min-height: 104px !important; height: 104px !important; }
  .va-tile .feature-card-front, .va-tile .feature-card-back { padding: 12px 13px !important; }
  .va-tile .feature-card-front h4 { font-size: 0.82rem !important; }
  .va-tile .feature-card-back p { font-size: 0.72rem !important; line-height: 1.4 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .va-pipe i, .va-out li, .va-out li svg { animation: none; }
  .va-pipe i { left: 45%; }
}

/* ── Built for businesses where every call counts: each card shows its own call. The phone
   rings, the caller's line comes in, the agent's result lands; on the promise's clock
   (see below). ── */
.va-case { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
#voice-usecases .va-case, #voice-usecases .va-case:hover { background: linear-gradient(180deg, #eef4ff, #e6eeff); border-color: rgba(0, 98, 255, 0.16); }
#voice-usecases .va-case .usecase-icon { background: #fff; }
.va-case-text { display: flex; gap: 16px; align-items: flex-start; }
/* the call: a white call screen on the soft Rufen-blue card; the status on the right
   changes in the tracker's colours */
.va-call {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 96px; box-sizing: border-box;
  padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid rgba(0, 98, 255, 0.16);
  box-shadow: 0 10px 24px -16px rgba(0, 98, 255, 0.4);
}
.va-call-top { display: flex; align-items: center; gap: 9px; font: 600 0.8rem/1 var(--font-display); color: #0f172a; }
.va-ring { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #0062ff; color: #fff; }
.va-ring svg { width: 15px; height: 15px; }
.va-st { position: relative; margin-left: auto; width: 86px; height: 14px; font-style: normal; text-align: right; }
.va-st span { position: absolute; right: 0; top: 0; font: 600 0.6rem/14px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; }
.va-st .s1 { color: #0062ff; animation: vaSt1 6s infinite; }
.va-st .s2 { color: #ea580c; animation: vaSt2 6s infinite; }
.va-st .s3 { color: #16a34a; animation: vaSt3 6s infinite; }
@keyframes vaSt1 { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes vaSt2 { 0%, 32% { opacity: 0; } 36%, 63% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes vaSt3 { 0%, 65% { opacity: 0; } 69%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.va-slot { flex: 1; display: grid; align-items: center; min-height: 0; }
.va-slot > span { grid-area: 1 / 1; }
.va-said { font: 400 0.82rem/1.35 var(--font-body); color: #1e293b; opacity: 0; transform: translateY(4px); }
.va-result {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 8px; background: #16a34a; color: #fff;
  font: 600 0.76rem/1.2 var(--font-display); opacity: 0; transform: scale(0.92); transform-origin: left center;
  box-shadow: 0 6px 16px -6px rgba(22, 163, 74, 0.6);
}
.va-result svg { width: 14px; height: 14px; }
/* One clock for the whole section (the tracker's 6s, from page load, so the cards and the
   promise stay in step): 0-2s the phone rings (answered, blue), 2-4s the caller's line comes
   in (qualified, orange edge), 4-6s the result lands (booked, green). */
.va-case .va-ring { animation: vaRing 6s ease infinite; }
.va-case .va-said { animation: vaSaid 6s ease infinite; border-left: 2px solid transparent; padding-left: 9px; }
.va-case .va-result { animation: vaResult 6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes vaRing {
  0%, 4%, 8%, 12%, 16%, 20%, 24% { box-shadow: 0 0 0 0 rgba(0, 98, 255, 0.45); transform: rotate(0); background: #0062ff; }
  2%, 6%, 10%, 14%, 18%, 22% { box-shadow: 0 0 0 7px rgba(0, 98, 255, 0); transform: rotate(-12deg); }
  30%, 100% { box-shadow: none; transform: none; background: #3b82f6; }
}
@keyframes vaSaid {
  0%, 30% { opacity: 0; transform: translateY(4px); border-left-color: #ff6b00; }
  37%, 62% { opacity: 1; transform: none; border-left-color: #ff6b00; }
  67%, 100% { opacity: 0; transform: translateY(-4px); border-left-color: #ff6b00; }
}
@keyframes vaResult { 0%, 66% { opacity: 0; transform: scale(0.92); } 72%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* the promise heading: the ringing phone and the tracker from the old live-call panel */
/* the tracker and the play/pause button share one row */
.va-track { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; }
.va-promise .cta-steps { margin: 0; flex: 0 1 420px; }
.va-promise .va-play { margin-top: 0; }
.va-promise-cta { margin-top: 30px; }
#voice-usecases .usecase-grid { margin-top: 32px; }
@media (max-width: 600px) { .va-track { flex-direction: column; gap: 14px; } .va-promise .cta-steps { flex-basis: auto; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .va-case .va-ring, .va-case .va-said, .va-case .va-result, .va-st span { animation: none !important; }
  .va-st .s3 { opacity: 1; }
  .va-said, .va-result { opacity: 1; transform: none; }
}

/* ── The demo: each role has its own icon in its own colour; "Simulate Incoming Call"
   pulses until first pressed; on phones the roles are one row you swipe sideways. ── */
.agent-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.agent-name svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ag, var(--accent-blue)); }
.agent-btn[data-agent="receptionist"] { --ag: #10b981; }
.agent-btn[data-agent="sales"] { --ag: #0062ff; }
.agent-btn[data-agent="itdesk"] { --ag: #f59e0b; }
.agent-btn[data-agent="support"] { --ag: #8b5cf6; }
.agent-btn[data-agent="booking"] { --ag: #0ea5e9; }
.agent-btn[data-agent="collections"] { --ag: #ec4899; }
.agent-btn[data-agent="property"] { --ag: #06b6d4; }
.agent-btn[data-agent="construction"] { --ag: #65a30d; }
.agent-btn[data-agent="automotive"] { --ag: #ef4444; }
@media (prefers-reduced-motion: no-preference) {
  #btn-start-simulation:not(.is-used) { animation: vaSim 2.2s ease-out infinite; }
}
@keyframes vaSim { 0% { box-shadow: 0 0 0 0 rgba(0, 98, 255, 0.5); } 70%, 100% { box-shadow: 0 0 0 12px rgba(0, 98, 255, 0); } }
@media (max-width: 768px) {
  #voice-sandbox .agent-selector-list {
    display: flex !important; flex-direction: row; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden;
    padding: 2px 16px 6px !important; margin: 0 -16px !important; scroll-padding-left: 16px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #voice-sandbox .agent-selector-list::-webkit-scrollbar { display: none; }
  #voice-sandbox .agent-btn { scroll-snap-align: start; white-space: nowrap; }
  #voice-sandbox .agent-name { gap: 7px; }
  #voice-sandbox .agent-name svg { width: 15px; height: 15px; }
}
@media (max-width: 768px) {
  /* the shared phone rule leaves room above each use-case card for the old background
     drawing; these cards carry their own call instead */
  #voice-usecases .va-case { padding: 18px !important; min-height: 0 !important; }
}

/* play / pause for the promise section: the same small round button as the Marketing pages,
   in Rufen blue */
.va-play {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(0, 98, 255, 0.14);
  background: rgba(255, 255, 255, 0.72); color: var(--accent-blue);
  transition: border-color 0.2s ease;
}
.va-play:hover { border-color: rgba(0, 98, 255, 0.35); }
.va-play:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.va-play svg { width: 13px; height: 13px; }
.va-play span { display: grid; place-items: center; }
.va-ico-play { display: none !important; }
#voice-usecases.is-paused .va-ico-pause { display: none !important; }
#voice-usecases.is-paused .va-ico-play { display: grid !important; }
#voice-usecases.is-paused *, #voice-usecases.is-paused *::before, #voice-usecases.is-paused *::after { animation-play-state: paused !important; }
#voice-usecases.is-paused .va-play, #voice-usecases.is-paused .va-play * { animation-play-state: running !important; }

/* the promise words get the hand-drawn scribble from Who we are, drawn on as each word lights */
#voice-usecases .cta-w::after { display: none; }
.va-scribe { position: absolute; left: -3%; bottom: -0.3em; width: 106%; height: 0.42em; overflow: visible; pointer-events: none; }
.va-scribe path {
  fill: none; stroke: rgb(var(--c)); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: vaScribe 6s ease infinite; animation-delay: var(--d);
}
@keyframes vaScribe {
  0%, 2%   { stroke-dashoffset: 400; opacity: 1; }
  12%, 30% { stroke-dashoffset: 0; opacity: 1; }
  36%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .va-scribe path { animation: none; stroke-dashoffset: 0; } }

/* the industries: every card the same soft Rufen blue; each industry shows only in its
   icon, in its own colour, on the white icon tile. One quiet touch of colour per card. */
#voice-usecases .va-case:nth-child(1) { --ind: 217, 119, 6; }    /* trades: amber */
#voice-usecases .va-case:nth-child(2) { --ind: 225, 29, 72; }    /* healthcare: rose */
#voice-usecases .va-case:nth-child(3) { --ind: 5, 150, 105; }    /* real estate: emerald */
#voice-usecases .va-case:nth-child(4) { --ind: 124, 58, 237; }   /* retail: violet */
#voice-usecases .va-case:nth-child(5) { --ind: 0, 98, 255; }     /* professional: Rufen blue */
#voice-usecases .va-case:nth-child(6) { --ind: 8, 145, 178; }    /* multilingual: cyan */
#voice-usecases .va-case .usecase-icon, #voice-usecases .va-case .usecase-icon svg { color: rgb(var(--ind, 0, 98, 255)); }

/* compact: tighter cards, a shorter call screen, smaller text and icon tile */
#voice-usecases .usecase-grid { gap: 16px; }
#voice-usecases .va-case { padding: 14px; gap: 11px; }
#voice-usecases .va-call { height: 86px; padding: 9px 12px; gap: 6px; }
#voice-usecases .va-ring { width: 24px; height: 24px; }
#voice-usecases .va-ring svg { width: 13px; height: 13px; }
#voice-usecases .va-said { font-size: 0.78rem; }
#voice-usecases .va-result { padding: 5px 9px; font-size: 0.72rem; }
#voice-usecases .va-case-text { gap: 12px; }
#voice-usecases .va-case .usecase-icon { width: 32px; height: 32px; min-width: 32px; border-radius: 9px; }
#voice-usecases .va-case .usecase-icon svg { width: 16px; height: 16px; }
#voice-usecases .va-case strong { font-size: 0.92rem; margin-bottom: 2px; }
#voice-usecases .va-case p { font-size: 0.8rem; line-height: 1.5; }

/* the play/pause button sits at the right-hand end of the tracker row, lined up with the
   right edge of the cards; the tracker stays centred */
#voice-usecases .va-track { position: relative; }
#voice-usecases .va-track .va-play { position: absolute; right: 0; top: 19px; transform: translateY(-50%); }   /* level with the tracker's icons */
@media (max-width: 600px) {
  #voice-usecases .va-track .va-play { position: static; transform: none; align-self: flex-end; }
}

/* final card look: white cards with a soft Rufen-blue glow behind them; the call screen
   inside takes the light blue, so it still stands out */
#voice-usecases .va-case, #voice-usecases .va-case:hover {
  background: #fff; border-color: rgba(0, 98, 255, 0.12);
  box-shadow: 0 18px 44px -22px rgba(0, 98, 255, 0.42), 0 0 0 1px rgba(0, 98, 255, 0.04);
}
#voice-usecases .va-case:hover { box-shadow: 0 22px 52px -22px rgba(0, 98, 255, 0.55), 0 0 0 1px rgba(0, 98, 255, 0.06); }
#voice-usecases .va-case .va-call { background: #fff; border: 1px solid rgba(0, 98, 255, 0.45); box-shadow: none; }
#voice-usecases .va-case .usecase-icon { background: rgba(0, 98, 255, 0.07); }
/* white on white was too flat: the card takes a faint Rufen-blue tint (with its glow), the
   call screen stays white with its blue line */
#voice-usecases .va-case, #voice-usecases .va-case:hover { background: linear-gradient(180deg, #f5f8ff, #eef3ff); }
#voice-usecases .va-case .usecase-icon { background: #fff; }
/* inverted (Mars): white card with its blue glow, the call screen in the faint Rufen-blue
   tint with its blue line */
#voice-usecases .va-case, #voice-usecases .va-case:hover { background: #fff; }
#voice-usecases .va-case .va-call { background: linear-gradient(180deg, #f5f8ff, #eef3ff); }
#voice-usecases .va-case .usecase-icon { background: rgba(0, 98, 255, 0.07); }
/* the call screen: off-white, no tint, with a soft blue glow round its edge */
#voice-usecases .va-case .va-call {
  background: #f8f9fb; border: 1px solid rgba(0, 98, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.06), 0 0 16px rgba(0, 98, 255, 0.18);
}
/* main cards: no blue glow, just a light neutral edge and shadow */
#voice-usecases .va-case, #voice-usecases .va-case:hover {
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: 0 10px 28px -20px rgba(15, 23, 42, 0.22);
}
/* main cards: a muted orange edge (the same muted orange as the selected sandbox preset) */
#voice-usecases .va-case, #voice-usecases .va-case:hover { border: 1px solid rgba(212, 128, 76, 0.45); }
/* no orange border; the section's own background is a step deeper so the white cards stand out */
#voice-usecases .va-case, #voice-usecases .va-case:hover { border: 1px solid rgba(15, 23, 42, 0.06); }
#voice-usecases.service-alt { background: #edf1f8; }

/* ===== Dark mode (html[data-theme="dark"]) =====
   Design: docs/plans/dark-mode-design-system.md. Tokens, cards, stage and window hooks are in styles.css (its section 12 carries a safety net for this page:
   the rules here are the page's own, loaded after it, and win on equal specificity). No glows: every dot is a flat ring. */

/* ---- "Everything you need from your phones" (#what-it-does, a canvas section) ---- */
/* the phone-system slab is a lit stage object */
:root[data-theme="dark"] .va-base{
  background-color:var(--stage-bot); background-image:linear-gradient(180deg,var(--stage-top) 0%,var(--stage-bot) 100%);
  border-color:var(--stage-edge); box-shadow:inset 0 1px 0 var(--stage-edge-hi); color:var(--text-primary);
}
:root[data-theme="dark"] .va-base:hover{ border-color:var(--dk-edge-hi); }
:root[data-theme="dark"] .va-base:focus-visible{ outline-color:var(--dk-focus); }
:root[data-theme="dark"] .va-base-list span{ color:var(--text-primary); }
:root[data-theme="dark"] :is(.va-base-list svg,.va-base-more){ color:var(--blue-text); }
:root[data-theme="dark"] .va-layer-label{ color:var(--blue-text); }
/* the six flip tiles: the front is a card (styles.css); the back is the same lit slab as the phone system (light mode paints it near-black) */
:root[data-theme="dark"] .va-tile .feature-card-back{
  background-color:var(--stage-bot); background-image:linear-gradient(180deg,var(--stage-top) 0%,var(--stage-bot) 100%);
  border-color:var(--stage-edge); box-shadow:inset 0 1px 0 var(--stage-edge-hi);
}
:root[data-theme="dark"] .va-tile .feature-card-back h5{ color:var(--blue-text-hi); }
:root[data-theme="dark"] .va-tile .feature-card-back p{ color:var(--text-secondary); }
/* the pipes: dots are flat rings, the lines are tints */
:root[data-theme="dark"] .va-pipe{ background:linear-gradient(90deg,rgba(129,170,247,.55),rgba(129,170,247,.32)); }
:root[data-theme="dark"] .va-pipe-out{ background:linear-gradient(90deg,rgba(129,170,247,.32),rgba(107,207,157,.55)); }
:root[data-theme="dark"] .va-pipe-in i{ background:var(--blue-text); box-shadow:0 0 0 2px rgba(129,170,247,.30); }
:root[data-theme="dark"] .va-pipe-out i{ background:var(--green-text); box-shadow:0 0 0 2px rgba(107,207,157,.30); }
@media (max-width:1100px){   /* the pipes turn vertical: the gradient direction follows */
  :root[data-theme="dark"] .va-pipe{ background:linear-gradient(180deg,rgba(129,170,247,.55),rgba(129,170,247,.32)); }
  :root[data-theme="dark"] .va-pipe-out{ background:linear-gradient(180deg,rgba(129,170,247,.32),rgba(107,207,157,.55)); }
}
/* "what happens next": a card on the canvas (s1); its rows light up in turn, so the keyframes get dark twins */
:root[data-theme="dark"] .va-out{ background:var(--dk-s1); border-color:var(--dk-line-1); box-shadow:inset 0 1px 0 var(--dk-light-top); }
:root[data-theme="dark"] .va-out li{ animation-name:vaOutDark; }
:root[data-theme="dark"] .va-out li svg{ color:var(--text-muted); animation-name:vaOutIcoDark; }
@keyframes vaOutDark{ 0%,100%{ background:transparent; color:var(--text-secondary); } 6%,30%{ background:rgba(107,207,157,.12); color:var(--green-text); } 40%{ background:transparent; color:var(--text-secondary); } }
@keyframes vaOutIcoDark{ 0%,100%{ color:var(--text-muted); } 6%,30%{ color:var(--green-text); } 40%{ color:var(--text-muted); } }

/* ---- "Never miss another call" (#voice-usecases, a band = s1): the cards are s2, the call screen inside is a window panel (s3) ---- */
/* the promise heading and tracker read --c (an RGB triple set inline). The HTML now sets it through these tokens, so the dark tints flow into the word colours,
   the scribble and the tracker keyframes in service-page.css without touching the animations */
:root[data-theme="dark"] #voice-usecases{ --cv-blue:129,170,247; --cv-orange:243,157,94; --cv-green:107,207,157; }
/* tracker discs: solid neutral fill + tint ring + tint ink (no alpha tint over navy = no mud, and the connector line no longer shows through) */
:root[data-theme="dark"] body #voice-usecases .cta-steps li svg{ background:var(--dk-s2); border-color:var(--dk-line-3); color:var(--text-muted); box-shadow:none; animation-name:vaStepIconD; }
:root[data-theme="dark"] body #voice-usecases .cta-steps li:nth-child(1) svg{ animation-name:vaStepIcon1D; }
:root[data-theme="dark"] body #voice-usecases .cta-steps li:nth-child(2) svg{ animation-name:vaStepIcon2D; }
:root[data-theme="dark"] body #voice-usecases .cta-steps li:nth-child(3) svg{ animation-name:vaStepIcon3D; }
@keyframes vaStepIconD  { 0%,100%{ background:#121c2d; border-color:#364560; color:var(--text-muted); box-shadow:none; } 6%,80%{ background:#263044; border-color:rgb(var(--c)); color:rgb(var(--c)); box-shadow:inset 0 0 0 1px rgba(var(--c),.35); } }
@keyframes vaStepIcon1D { 0%,92%,100%{ background:#121c2d; border-color:#364560; color:var(--text-muted); box-shadow:none; } 5%,88%{ background:#263044; border-color:rgb(var(--c)); color:rgb(var(--c)); box-shadow:inset 0 0 0 1px rgba(var(--c),.35); } }
@keyframes vaStepIcon2D { 0%,33%,92%,100%{ background:#121c2d; border-color:#364560; color:var(--text-muted); box-shadow:none; } 38%,88%{ background:#263044; border-color:rgb(var(--c)); color:rgb(var(--c)); box-shadow:inset 0 0 0 1px rgba(var(--c),.35); } }
@keyframes vaStepIcon3D { 0%,66%,92%,100%{ background:#121c2d; border-color:#364560; color:var(--text-muted); box-shadow:none; } 71%,88%{ background:#263044; border-color:rgb(var(--c)); color:rgb(var(--c)); box-shadow:inset 0 0 0 1px rgba(var(--c),.35); } }
:root[data-theme="dark"] #voice-usecases .va-case{ background:var(--dk-s2); border:1px solid var(--dk-line-2); box-shadow:inset 0 1px 0 var(--dk-light-top); }
:root[data-theme="dark"] #voice-usecases .va-case:hover{ background:var(--dk-s2); border-color:var(--dk-edge); box-shadow:inset 0 1px 0 var(--dk-light-top); }
:root[data-theme="dark"] body #voice-usecases .va-case .va-call{ background:var(--dk-s3); border:1px solid var(--dk-line-3); box-shadow:none; }
:root[data-theme="dark"] .va-call-top{ color:var(--text-primary); }
:root[data-theme="dark"] .va-said{ color:var(--text-primary); }
:root[data-theme="dark"] .va-st .s1{ color:var(--blue-text); }
:root[data-theme="dark"] .va-st .s2{ color:var(--orange-text); }
:root[data-theme="dark"] .va-st .s3{ color:var(--green-text); }
/* the ringing phone: same shake and pulse ring, in the button blue and a tint ring (light keyframes carry brand rgba) */
:root[data-theme="dark"] .va-ring{ background:var(--btn-blue); color:#fff; }
:root[data-theme="dark"] .va-case .va-ring{ animation-name:vaRingD; }
@keyframes vaRingD{
  0%,4%,8%,12%,16%,20%,24%{ box-shadow:0 0 0 0 rgba(129,170,247,.45); transform:rotate(0); background:var(--btn-blue); }
  2%,6%,10%,14%,18%,22%{ box-shadow:0 0 0 7px rgba(129,170,247,0); transform:rotate(-12deg); }
  30%,100%{ box-shadow:none; transform:none; background:var(--btn-blue-hi); }
}
:root[data-theme="dark"] .va-case .va-said{ animation-name:vaSaidD; }
@keyframes vaSaidD{
  0%,30%{ opacity:0; transform:translateY(4px); border-left-color:var(--orange-text); }
  37%,62%{ opacity:1; transform:none; border-left-color:var(--orange-text); }
  67%,100%{ opacity:0; transform:translateY(-4px); border-left-color:var(--orange-text); }
}
:root[data-theme="dark"] .va-result{ background:#01764c; color:#fff; box-shadow:none; }   /* badge fill: white ink 5.68:1 */
/* industry icons: each card's own tint (an RGB triple), on a 14% tile with an inset ring */
:root[data-theme="dark"] #voice-usecases .va-case:nth-child(1){ --ind:248,198,85; }    /* trades: amber */
:root[data-theme="dark"] #voice-usecases .va-case:nth-child(2){ --ind:234,136,133; }   /* healthcare: red tint */
:root[data-theme="dark"] #voice-usecases .va-case:nth-child(3){ --ind:107,207,157; }   /* real estate: green */
:root[data-theme="dark"] #voice-usecases .va-case:nth-child(4){ --ind:176,155,238; }   /* retail: violet */
:root[data-theme="dark"] #voice-usecases .va-case:nth-child(5){ --ind:129,170,247; }   /* professional: blue */
:root[data-theme="dark"] #voice-usecases .va-case:nth-child(6){ --ind:101,210,210; }   /* multilingual: cyan */
:root[data-theme="dark"] #voice-usecases .va-case .usecase-icon{ background:rgba(var(--ind,129,170,247),.14); box-shadow:inset 0 0 0 1px rgba(var(--ind,129,170,247),.28); }
/* play / pause */
:root[data-theme="dark"] .va-play{ background:var(--dk-s3); border-color:var(--dk-line-3); box-shadow:none; color:var(--blue-text); }
:root[data-theme="dark"] .va-play:hover{ border-color:var(--dk-edge); }
:root[data-theme="dark"] .va-play:focus-visible{ outline-color:var(--dk-focus); }

/* ---- The demo (#voice-sandbox; the console itself is the stage in styles.css / service-page.css) ---- */
/* each role's icon colour: brand hues become tints (pink and cyan are new tints at L 76-80%, 5.2+:1 on a plate) */
:root[data-theme="dark"] .agent-btn[data-agent="receptionist"]{ --ag:var(--green-text); }
:root[data-theme="dark"] .agent-btn[data-agent="sales"]{ --ag:var(--blue-text); }
:root[data-theme="dark"] .agent-btn[data-agent="itdesk"]{ --ag:var(--amber-text); }
:root[data-theme="dark"] .agent-btn[data-agent="support"]{ --ag:var(--violet-text); }
:root[data-theme="dark"] .agent-btn[data-agent="booking"]{ --ag:#71c1e0; }        /* oklch 77% 0.09 225 */
:root[data-theme="dark"] .agent-btn[data-agent="collections"]{ --ag:#eb92b5; }    /* oklch 76% 0.115 355 */
:root[data-theme="dark"] .agent-btn[data-agent="property"]{ --ag:#65d2d2; }       /* oklch 80% 0.10 195 */
:root[data-theme="dark"] .agent-btn[data-agent="construction"]{ --ag:var(--lime-text); }
:root[data-theme="dark"] .agent-btn[data-agent="automotive"]{ --ag:var(--red-text); }
/* the status dots and the row of nine lights carry inline brand colours (and inline glows from voice-demo.js); inline wins over any normal rule, so colour + ring carry !important.
   The dot takes its role's --ag (it is a child of .agent-btn); a light has no --ag, so it gets its own --pl. Opacity and scale stay as the script sets them. */
:root[data-theme="dark"] .agent-btn .agent-dot{ background-color:var(--ag,var(--blue-text)) !important; box-shadow:0 0 0 1px rgba(150,175,230,.35) !important; }
:root[data-theme="dark"] .panel-light{ background-color:var(--pl,var(--blue-text)) !important; box-shadow:0 0 0 1px rgba(150,175,230,.35) !important; }
:root[data-theme="dark"] .panel-light[data-light-agent="receptionist"]{ --pl:var(--green-text); }
:root[data-theme="dark"] .panel-light[data-light-agent="sales"]{ --pl:var(--blue-text); }
:root[data-theme="dark"] .panel-light[data-light-agent="itdesk"]{ --pl:var(--amber-text); }
:root[data-theme="dark"] .panel-light[data-light-agent="support"]{ --pl:var(--violet-text); }
:root[data-theme="dark"] .panel-light[data-light-agent="booking"]{ --pl:#71c1e0; }
:root[data-theme="dark"] .panel-light[data-light-agent="collections"]{ --pl:#eb92b5; }
:root[data-theme="dark"] .panel-light[data-light-agent="property"]{ --pl:#65d2d2; }
:root[data-theme="dark"] .panel-light[data-light-agent="construction"]{ --pl:var(--lime-text); }
:root[data-theme="dark"] .panel-light[data-light-agent="automotive"]{ --pl:var(--red-text); }
/* "Simulate Incoming Call" pulses until first pressed: the same expanding ring, in the blue tint */
@media (prefers-reduced-motion: no-preference){
  :root[data-theme="dark"] #btn-start-simulation:not(.is-used){ animation-name:vaSimD; }
}
@keyframes vaSimD{ 0%{ box-shadow:0 0 0 0 rgba(129,170,247,.45); } 70%,100%{ box-shadow:0 0 0 12px rgba(129,170,247,0); } }
/* console system lines: calm slate on the display, not an orange wash (brown on navy). !important matches service-page.css; the ID wins on specificity */
:root[data-theme="dark"] #voice-sandbox .transcript-msg.system-msg{ background:rgba(150,175,230,.08) !important; border-color:rgba(150,175,230,.28) !important; color:var(--text-secondary) !important; }
