/* ==========================================================================
   MSP Process — AI Voice Verification page
   Reuses tokens, base, components, home.css, scheduleassist.css, euv.css.
   Brand accent: cyan (voice in motion) → green (verified ticket).
   Non-boxy: flat dark gradient hero panel, hairline dividers, left-rail
   timeline, gradient numerals. No surface boxes, no nested chrome.
   ========================================================================== */

/* --- Gradient text shared across hero/section heads/final ---------------- */
.avv-hero .sa-hero__title-grad,
.avv-final .sa-final__title .grad,
.sa-head__title .avv-grad {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-green) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Hero glow tuned cyan */
.avv-hero .sa-hero__glow { background: rgba(0, 186, 251, 0.28); }
.avv-hero .sa-hero__pulse-eyebrow { color: var(--brand-cyan); }
.avv-hero .sa-hero__pulse-eyebrow .sa-pulse {
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan), 0 0 0 4px rgba(0, 186, 251, 0.16);
}

/* Final CTA eyebrow */
.avv-final::before { background: rgba(0, 186, 251, 0.28) !important; }
.avv-final .sa-final__eyebrow {
  color: var(--brand-cyan);
  background: rgba(0, 186, 251, 0.1);
  border-color: rgba(0, 186, 251, 0.32);
}

/* --- Capability cards on AVV-specific sections --------------------------- */
/* Cyan-tinted icon, soft typographic tag — no heavy pill. */
.avv-section .sa-cap__icon {
  background: linear-gradient(135deg, rgba(0, 186, 251, 0.18), rgba(10, 154, 86, 0.10));
  border-color: rgba(0, 186, 251, 0.28);
  color: var(--brand-cyan);
}
.avv-section .sa-cap__tag {
  color: var(--brand-cyan);
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  position: relative;
  padding-left: 14px;
  margin-top: 6px;
  align-self: flex-start;
}
.avv-section .sa-cap__tag::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 1.5px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
  border-radius: 2px;
}

/* AVV methods grid override — 4-column row */
.avv-section .sa-grid--4 { grid-template-columns: repeat(4, 1fr); max-width: 1280px; }
@media (max-width: 1100px) { .avv-section .sa-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .avv-section .sa-grid--4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Hero "verified call" panel — flat dark gradient, no inner card chrome.
   Timeline rail runs the left edge; steps are typography on white text.
   ========================================================================== */
.avv-callcard {
  position: relative;
  width: 100%;
  padding: 22px 24px 24px;
  border-radius: 22px;
  overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand-cyan) 92%, #000) 0%,
      color-mix(in srgb, var(--brand-cyan) 60%, #000) 55%,
      color-mix(in srgb, var(--brand-green) 55%, #000) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 18px 50px -22px rgba(0, 186, 251, 0.45),
    0 8px 24px -12px rgba(10, 154, 86, 0.35);
  transition: var(--theme-transition);
}
.avv-callcard::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(60px); pointer-events: none; z-index: 0;
}
.avv-callcard__inner { position: relative; z-index: 1; }

/* Top status bar — monospace, hairline divider only */
.avv-callcard__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 18px;
}
.avv-callcard__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px; letter-spacing: 0.16em; font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}
.avv-callcard__status::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.9);
  animation: avvPulse 1.4s infinite;
}
.avv-callcard__time {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px; color: rgba(255,255,255,0.82); letter-spacing: 0.10em;
  font-weight: 600;
}
@keyframes avvPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

/* Caller row — flat, no nested card */
.avv-callcard__caller {
  display: flex; align-items: center; gap: 14px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.avv-callcard__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: #fff;
  color: color-mix(in srgb, var(--brand-cyan) 80%, #000);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.avv-callcard__caller-meta { flex: 1; min-width: 0; }
.avv-callcard__caller-name {
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.005em;
}
.avv-callcard__caller-sub {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.06em; font-weight: 600;
  margin-top: 3px;
}
.avv-callcard__pill {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px; letter-spacing: 0.18em; font-weight: 800;
  flex-shrink: 0;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0 0 0 14px;
  position: relative;
  text-transform: uppercase;
}
.avv-callcard__pill::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #00ff9c;
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.9);
}

/* Step rows — borderless, vertical rail connects them, mini left-accent on each */
.avv-callcard__inner > .avv-callcard__step:first-of-type,
.avv-callcard__step + .avv-callcard__step { position: relative; }

.avv-callcard__step {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0 12px 4px;
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.avv-callcard__step + .avv-callcard__step::before {
  content: ''; position: absolute; left: 19px; top: -12px; bottom: calc(50% + 18px);
  width: 1.5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18));
}
.avv-callcard__step--done .avv-callcard__step-icon {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.32);
  color: #fff;
}
.avv-callcard__step-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  flex-shrink: 0;
}
.avv-callcard__step-body { min-width: 0; }
.avv-callcard__step-line {
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35;
  letter-spacing: -0.005em;
}
.avv-callcard__step-meta {
  color: rgba(255,255,255,0.72);
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px; line-height: 1.4; margin-top: 3px;
  letter-spacing: 0.04em;
}
.avv-callcard__step-tag {
  flex-shrink: 0;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.18em; font-weight: 800; text-transform: uppercase;
  padding: 0 0 0 12px;
  position: relative;
  color: #fff;
  background: transparent;
  border: 0;
}
.avv-callcard__step-tag::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 1.5px;
  background: #00ff9c;
  box-shadow: 0 0 8px rgba(0, 255, 156, 0.7);
  border-radius: 2px;
}

@media (max-width: 520px) {
  .avv-callcard { padding: 18px 18px 20px; border-radius: 18px; }
  .avv-callcard__step { grid-template-columns: 28px 1fr; gap: 10px; }
  .avv-callcard__step-tag { grid-column: 2 / 3; padding-left: 0; }
  .avv-callcard__step-tag::before { display: none; }
}

/* ==========================================================================
   Verified ticket flow — continuous cyan→green wire, 5 nodes, Verify as crux.
   Flat (no card chrome), single rail with a traveling pulse, gradient gate.
   ========================================================================== */
.avvflow {
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 1180px;
}

/* The continuous horizontal wire that connects all nodes.
   Vertically centered on the small (56px) node midpoint (= top: 27px for a 2px rail).
   The rail is drawn behind the nodes; each node has a solid background that masks it,
   so the wire visually emerges from the side of each node — never crossing the icon. */
.avvflow__rail {
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg,
    var(--brand-cyan) 0%,
    color-mix(in srgb, var(--brand-cyan) 70%, var(--brand-green)) 50%,
    var(--brand-green) 100%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.avvflow__rail::before,
.avvflow__rail::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
}
.avvflow__rail::before {
  left: -3px;
  background: var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan);
}
.avvflow__rail::after {
  right: -3px;
  background: var(--brand-green);
  box-shadow: 0 0 12px var(--brand-green);
}
/* The traveling data packet — a small white glow that slides L→R repeatedly */
.avvflow__pulse {
  position: absolute;
  top: 50%; left: -6%;
  transform: translateY(-50%);
  width: 80px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
  filter: blur(1px);
  opacity: 0.85;
  animation: avvflowPulse 5.5s cubic-bezier(.55,.05,.45,.95) infinite;
  pointer-events: none;
}
@keyframes avvflowPulse {
  0%   { left: -10%; opacity: 0; }
  10%  { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .avvflow__pulse { animation: none; opacity: 0; }
}

.avvflow__steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.avvflow__step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 6px;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
}

/* Standard node — small ring on the wire.
   Solid background + z-index lifts it above the rail so the wire is hidden
   behind the node body and only "emerges" from each node's left/right edges. */
.avvflow__node {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--brand-cyan);
  border: 2px solid color-mix(in srgb, var(--brand-cyan) 55%, transparent);
  box-shadow:
    0 0 0 6px var(--bg),
    0 6px 16px -8px rgba(0, 186, 251, 0.35);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.avvflow__node svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.avvflow__step:nth-child(4) .avvflow__node,
.avvflow__step:nth-child(5) .avvflow__node {
  color: var(--brand-green);
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent);
  box-shadow:
    0 0 0 6px var(--bg),
    0 6px 16px -8px rgba(10, 154, 86, 0.35);
}
.avvflow__step:hover .avvflow__node { transform: translateY(-2px); }

/* Crux node — the Verify gate. Larger, filled gradient, halo. */
.avvflow__step--crux {
  margin-top: -10px;        /* lift the gate above the wire to emphasize */
}
.avvflow__step--crux .avvflow__node {
  width: 80px; height: 80px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-green) 100%);
  box-shadow:
    0 0 0 8px var(--bg),
    0 22px 50px -12px rgba(0, 186, 251, 0.55),
    0 8px 24px -10px rgba(10, 154, 86, 0.40);
}
.avvflow__step--crux .avvflow__node svg { width: 30px; height: 30px; stroke-width: 1.9; }
.avvflow__halo {
  position: absolute; inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--brand-cyan), var(--brand-green), var(--brand-cyan));
  filter: blur(14px);
  opacity: 0.35;
  z-index: -1;
  animation: avvflowSpin 9s linear infinite;
}
@keyframes avvflowSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .avvflow__halo { animation: none; }
}

/* Meta line — step number + timing */
.avvflow__meta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px; letter-spacing: 0.16em; font-weight: 800;
  text-transform: uppercase;
}
.avvflow__num { color: var(--brand-cyan); }
.avvflow__step:nth-child(4) .avvflow__num,
.avvflow__step:nth-child(5) .avvflow__num { color: var(--brand-green); }
.avvflow__step--crux .avvflow__num {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.avvflow__t {
  color: var(--text);
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding-left: 8px;
  border-left: 1px solid var(--hairline);
}

.avvflow__name {
  font-family: var(--font-brand);
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--heading);
  margin: 4px 0 0;
  line-height: 1.2;
}
.avvflow__step--crux .avvflow__name {
  font-size: 19px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.avvflow__body {
  margin: 8px 0 0;
  font-weight: 300; font-size: 13px; line-height: 1.55;
  color: var(--text);
  max-width: 230px;
}

/* Crux "Identity Gate" chip — sits between the gate node and the meta line */
.avvflow__chip {
  margin-top: 14px;
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.18em; font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-cyan) 14%, transparent),
    color-mix(in srgb, var(--brand-green) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--brand-green) 38%, transparent);
  color: var(--brand-green);
}
.avvflow__step--crux .avvflow__meta { margin-top: 10px; }

/* Bottom timing band — the total flow story compressed to one ribbon */
.avvflow__timing {
  margin: clamp(2.25rem, 4.5vw, 3.25rem) auto 0;
  padding: 12px 22px;
  display: inline-flex; align-items: center; gap: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-cyan) 6%, transparent),
    color-mix(in srgb, var(--brand-green) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 22%, transparent);
  max-width: max-content;
  display: flex;
  flex-wrap: wrap; justify-content: center;
  margin-left: auto; margin-right: auto;
}
.avvflow__timing-lbl {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.16em; font-weight: 800;
  color: var(--text); text-transform: uppercase;
  opacity: 0.78;
}
.avvflow__timing-val {
  font-family: var(--font-brand);
  font-weight: 500; font-size: 14px;
  color: var(--heading);
}
.avvflow__timing-val strong {
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 16px;
}
.avvflow__timing-sep {
  width: 22px; height: 1.5px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Mobile: vertical timeline */
@media (max-width: 900px) {
  .avvflow__rail {
    top: 0; bottom: 0;
    left: 27px;
    right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg,
      var(--brand-cyan) 0%,
      color-mix(in srgb, var(--brand-cyan) 70%, var(--brand-green)) 50%,
      var(--brand-green) 100%);
  }
  .avvflow__rail::before { top: -2px; bottom: auto; left: 50%; transform: translateX(-50%); }
  .avvflow__rail::after  { bottom: -2px; top: auto;  left: 50%; transform: translateX(-50%); right: auto; }
  .avvflow__pulse { display: none; }

  .avvflow__steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .avvflow__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    text-align: left;
    align-items: start;
    gap: 18px;
    padding: 0;
  }
  .avvflow__step--crux { margin-top: 0; }
  .avvflow__step--crux .avvflow__node { width: 64px; height: 64px; margin-left: -4px; }
  .avvflow__step--crux .avvflow__node svg { width: 26px; height: 26px; }
  .avvflow__node { width: 56px; height: 56px; }

  /* All copy goes in the right column; node spans the start of the row */
  .avvflow__step > .avvflow__node { grid-row: 1 / span 6; }
  .avvflow__meta,
  .avvflow__chip,
  .avvflow__name,
  .avvflow__body { grid-column: 2 / 3; max-width: none; margin-top: 0; }
  .avvflow__meta { margin-top: 4px; }
  .avvflow__name { margin-top: 4px; }
  .avvflow__body { margin-top: 6px; }
  .avvflow__chip { margin-top: 8px; }
  .avvflow__step--crux .avvflow__meta { margin-top: 4px; }
}
@media (max-width: 480px) {
  .avvflow__timing { padding: 12px 16px; gap: 10px; }
  .avvflow__timing-sep { display: none; }
}
