/* ═══════════════════════════════════════════════════════════════
   HOME — the pinned phone journey + post-pin sections.

   Layering inside .journey-pin:
     1 .stage-particles   canvas constellation
     2 .stage-grid        22px blueprint grid
     3 .map-bleed         full-stage map, clipped to the phone at rest
     4 .hero-layer/.beat  text layers
     5 .phone-pos         the phone (bezel frames the bleed layer)
     6 .journey-rail      chapter ticks
═══════════════════════════════════════════════════════════════ */

#journey { position: relative; }

.journey-pin {
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  /* Shared geometry — journey.js mirrors these numbers when it computes the
     map-bleed clip rect; change them together. */
  --phone-h: min(74svh, 640px);
  --phone-w: calc(var(--phone-h) * 0.4639); /* 9 / 19.4 aspect */
  --phone-hero-x: clamp(120px, 16vw, 260px);
  --beat-gap: clamp(36px, 4.5vw, 84px);
}

.stage-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(37, 99, 235, 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 50% 44%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 72% at 50% 44%, #000 25%, transparent 100%);
}

/* ── Map bleed layer (below the phone, above the backdrop) ── */
.map-bleed {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.map-bleed svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mb-banner {
  position: absolute;
  top: calc(72px + 21px);
  left: clamp(20px, 4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-full);
  box-shadow: var(--shadow-card);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-primary);
  white-space: nowrap;
  opacity: 0;
}
.mb-banner .chip-dot { background: var(--cb-blue-600); }
.mb-eta {
  position: absolute;
  top: calc(72px + 21px);
  right: clamp(20px, 4vw, 48px);
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--rad-chip);
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
}

/* Map artwork (the app's custom desaturated Google Maps palette) */
.map-road-casing path { stroke: #dde3ec; fill: none; stroke-linecap: round; }
.map-road path        { stroke: #ffffff; fill: none; stroke-linecap: round; }
.map-route-halo { stroke: rgba(37, 99, 235, 0.16); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-route      { stroke: #2563eb; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-label {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 500;
  fill: #8a97a8;
  letter-spacing: 0.05em;
}
.mb-dest-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: destPulse 2.4s ease-out infinite;
}
@keyframes destPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ── Hero layer (chapter 0) ── */
.hero-layer {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  left: clamp(20px, 6vw, 96px);
  width: min(600px, 47vw);
  padding-top: 36px; /* clears the fixed nav on short viewports */
}
.hero-h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.75rem);
  font-weight: 750;
  letter-spacing: -0.042em;
  line-height: 1.03;
  color: var(--ink-display);
  margin-bottom: 24px;
}
.line-wrap { display: block; overflow: hidden; padding-block: 0.06em; }
.line-inner { display: block; will-change: transform; }
.hero-h1 .accent { color: var(--cb-blue-600); }
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.66;
  color: var(--ink-secondary);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── The phone anchor ── */
.phone-pos {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  perspective: 1400px;
}
/* Pre-build hero pose; journey.js takes over this transform on build.
   Keep the translateX clamp in sync with --phone-hero-x. */
.phone {
  transform: translateX(clamp(120px, 16vw, 260px)) rotateY(-8deg) rotateX(2deg);
  will-change: transform;
}

/* ── Beats (chapters 1–5) ── */
.beat {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: min(400px, calc(50vw - var(--phone-w) / 2 - var(--beat-gap) - 20px));
}
.beat[data-side="left"]  { right: calc(50% + var(--phone-w) / 2 + var(--beat-gap)); }
.beat[data-side="right"] { left:  calc(50% + var(--phone-w) / 2 + var(--beat-gap)); }
/* Hidden until journey.js takes control; static mode overrides below. */
html.js #journey:not(.journey--static) .beat { opacity: 0; }

.beat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.beat-kicker .bk-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cb-blue-600);
}
.beat h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.12;
  color: var(--ink-display);
  margin-bottom: 14px;
  text-wrap: balance;
}
.beat p {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
}
.beat .beat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
/* Chapter 3's beat floats over the flooded map — glass panel for contrast */
.beat-glass .beat-inner {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--rad-card);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}

/* ── Chapter rail ── */
.journey-rail {
  position: absolute;
  right: clamp(18px, 2.6vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
}
.rail-tick {
  width: 2.5px;
  height: 16px;
  border-radius: 2px;
  background: var(--ink-300);
  transition:
    background var(--dur-standard) var(--ease-cb),
    height var(--dur-standard) var(--ease-cb);
}
.rail-tick.active {
  background: var(--cb-blue-600);
  height: 30px;
}

/* Mobile progress bar (replaces the rail under 960px) */
.journey-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 7;
  background: var(--cb-blue-600);
  transform-origin: 0 50%;
  transform: scaleX(0);
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   JOURNEY — STATIC MODE
   Applies when JS never runs (html:not(.js)) or when journey.js opts
   out (reduced motion / build failure) via .journey--static.
   The stage collapses to normal flow: hero, phone, stacked beats.
═══════════════════════════════════════════════════════════════ */
html:not(.js) #journey .journey-pin,
#journey.journey--static .journey-pin {
  height: auto;
  overflow: visible;
  padding: 128px clamp(20px, 4vw, 40px) 72px;
}
html:not(.js) #journey .hero-layer,
#journey.journey--static .hero-layer {
  position: static;
  transform: none;
  width: auto;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
}
html:not(.js) #journey .hero-layer .hero-sub,
#journey.journey--static .hero-layer .hero-sub { margin-inline: auto; }
html:not(.js) #journey .hero-btns,
#journey.journey--static .hero-btns,
html:not(.js) #journey .hero-trust,
#journey.journey--static .hero-trust { justify-content: center; }
html:not(.js) #journey .phone-pos,
#journey.journey--static .phone-pos {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  margin: 56px auto;
}
html:not(.js) #journey .phone,
#journey.journey--static .phone { transform: none; will-change: auto; }
html:not(.js) #journey .beat,
#journey.journey--static .beat {
  position: static;
  transform: none;
  width: auto;
  max-width: 640px;
  margin: 0 auto 22px;
  opacity: 1 !important;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
html:not(.js) #journey .beat-glass .beat-inner,
#journey.journey--static .beat-glass .beat-inner {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html:not(.js) #journey :is(.map-bleed, .journey-rail, .journey-progress, .stage-particles),
#journey.journey--static :is(.map-bleed, .journey-rail, .journey-progress, .stage-particles) {
  display: none;
}
/* Static mode shows each chapter's screen inside its beat card (cloned by
   journey.js when it opts out; absent without JS, which is fine). */
.beat .beat-shot { display: none; }
html:not(.js) #journey .beat .beat-shot,
#journey.journey--static .beat .beat-shot {
  display: block;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BENTO
═══════════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.bento-card {
  grid-column: span 6;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform var(--dur-standard) var(--ease-cb),
    box-shadow var(--dur-standard) var(--ease-cb),
    border-color var(--dur-standard) var(--ease-cb);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--cb-blue-200);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-7 { grid-column: span 7; }

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--cb-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.bento-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin-bottom: 8px;
}
.bento-desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
}
.bento-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.bento-meta .mono-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-tertiary);
  background: var(--ink-100);
  border-radius: var(--rad-chip);
  padding: 5px 10px;
}

/* ═══════════════════════════════════════════════════════════════
   PARTNER NETWORK
═══════════════════════════════════════════════════════════════ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.role-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform var(--dur-standard) var(--ease-cb),
    box-shadow var(--dur-standard) var(--ease-cb),
    border-color var(--dur-standard) var(--ease-cb);
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--cb-blue-200);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.role-quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-primary);
  font-weight: 550;
  border-left: 2.5px solid var(--cb-blue-600);
  padding-left: 14px;
}
.role-desc {
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-secondary);
}
.partner-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.partner-note {
  font-size: 13.5px;
  color: var(--ink-tertiary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA (dark navy + constellation reprise)
═══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: clamp(96px, 12vw, 160px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.cta-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.cta-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 620px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Plain letterspaced mono kicker — no pill chrome. */
.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cb-blue-400);
  margin-bottom: 28px;
}
.cta-h {
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 22px;
  text-wrap: balance;
}
.cta-h .accent { color: var(--cb-blue-400); }
.cta-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-400);
  max-width: 560px;
  margin-bottom: 40px;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — the pinned journey under 960px
   Phone rides the upper stage; beats become one bottom card.
═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .journey-pin {
    --phone-h: min(62svh, 560px);
  }
  /* At mobile scale the full-bleed map's street labels render huge —
     tighten so "Linking Road" fits inside the phone's window band. */
  .map-label { font-size: 17px; }
  .hero-layer {
    left: 20px;
    right: 20px;
    width: auto;
    top: calc(72px + 3svh);
    transform: none;
    text-align: center;
    padding-top: 0;
  }
  /* Compact copy — the phone carries the story on mobile */
  .hero-pill { margin-bottom: 12px; font-size: 10.5px; padding: 6px 12px; }
  .hero-h1 { font-size: clamp(1.7rem, 7.2vw, 2.25rem); margin-bottom: 10px; }
  .hero-sub { font-size: 13px; line-height: 1.55; margin: 0 auto 16px; max-width: 440px; }
  .hero-btns { justify-content: center; margin-bottom: 12px; gap: 8px; }
  .hero-btns .btn-store { padding: 7px 16px 7px 14px; gap: 9px; }
  .hero-btns .btn-store svg { width: 19px; height: 19px; }
  .hero-btns .st-small { font-size: 8.5px; }
  .hero-btns .st-big { font-size: 13.5px; }
  .hero-trust { justify-content: center; gap: 6px; }
  .hero-trust .chip { font-size: 9.5px; padding: 4px 8px; }
  .hero-trust .chip .ic { font-size: 11px; }

  .phone-pos { top: 42%; }
  /* Chapter 0 on mobile: the phone waits below the hero copy, peeking from
     the bottom edge; journey.js raises it to centre as the hero exits.
     Keep the 52svh in sync with journey.js's mobile pose. */
  .phone { transform: translateY(52svh) scale(0.95); }

  .beat,
  .beat[data-side="left"],
  .beat[data-side="right"] {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    /* Above the phone (z 5): the larger mobile chassis may run a few px
       under the card — the glass panel floats over the bezel by design. */
    z-index: 6;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--rad-card);
    box-shadow: var(--shadow-lg);
    padding: 13px 16px;
  }
  .beat-kicker { margin-bottom: 7px; }
  .beat-kicker .chip { font-size: 10px; padding: 4px 8px; }
  .beat-kicker .bk-num { font-size: 10.5px; }
  .beat h3 { font-size: 1.02rem; margin-bottom: 5px; }
  .beat p {
    font-size: 11.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .beat .beat-meta { margin-top: 8px; }
  .beat .beat-meta .chip { font-size: 9.5px; padding: 4px 8px; }
  .beat-glass .beat-inner {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .journey-rail { display: none; }
  .journey-progress { display: block; }

  /* On phones the beat card already narrates the tracking state — the
     banner would just collide with the centred phone. The ETA chip stays,
     riding the top edge (the nav is hidden mid-journey). */
  .mb-banner { display: none; }
  .mb-eta { top: 14px; right: 12px; font-size: 12px; padding: 7px 11px; }

  .bento-card,
  .bento-card.span-5,
  .bento-card.span-7 { grid-column: span 12; }
  .roles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero-sub { font-size: 12.5px; }
  .beat h3 { font-size: 0.98rem; }
}

/* Short phones (≤700px tall): the centred phone + bottom beat card would
   collide — shrink the chassis so both keep clear air. The 62svh peek pose
   mirrors journey.js's mobile `from` (innerHeight <= 700 → 0.62). */
@media (max-width: 960px) and (max-height: 700px) {
  .journey-pin { --phone-h: min(56svh, 460px); }
  .phone { transform: translateY(58svh) scale(0.95); }
  .beat h3 { font-size: 0.95rem; }
  .beat p { font-size: 11px; -webkit-line-clamp: 3; }
}

/* Short-but-wide viewports (landscape phones/small laptops): shrink the
   phone rather than let it collide with the nav. */
@media (min-width: 961px) and (max-height: 640px) {
  .journey-pin { --phone-h: min(66svh, 520px); }
}

/* ═══════════════════════════════════════════════════════════════
   CARD ILLUSTRATIONS — the living visuals on bento + role cards.
   Pure CSS loops. Base (un-animated) styles are the *composed final
   frame*, so reduced-motion users see a finished still, not a blank.
═══════════════════════════════════════════════════════════════ */
.viz { position: relative; user-select: none; pointer-events: none; }

/* ── KYC: scanning identity document ── */
.viz-kyc { display: flex; justify-content: center; padding: 6px 0 2px; }
.vk-doc {
  position: relative;
  width: min(300px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-btn);
  padding: 12px 14px 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 10px;
}
.vk-head-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cb-blue-600); }
.vk-body { display: flex; gap: 12px; align-items: flex-start; }
.vk-photo {
  width: 40px;
  height: 46px;
  border-radius: 7px;
  background: var(--ink-100);
  color: var(--ink-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.vk-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.vk-f i {
  display: block;
  width: 26%;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-100);
  margin-bottom: 3px;
}
.vk-f b { display: block; height: 6px; border-radius: 3px; background: var(--ink-200); }
.vk-mrz {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--ink-300);
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.vk-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -8%;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.10) 62%, rgba(37, 99, 235, 0.55) 98%, transparent);
  opacity: 0;
  animation: vkScan 2.8s ease-in-out infinite;
}
@keyframes vkScan {
  0%   { transform: translateY(-30px); opacity: 0; }
  8%   { opacity: 1; }
  72%  { opacity: 1; }
  86%, 100% { transform: translateY(150px); opacity: 0; }
}
.vk-stamp { position: absolute; right: 10px; bottom: 8px; animation: vkStamp 5.6s var(--ease-cb) infinite; }
@keyframes vkStamp {
  0%, 38%  { opacity: 0; transform: scale(0.55); }
  46%, 90% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.9); }
}

/* ── Calls: live call pill + masked number ── */
.viz-call { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 2px; }
.vc-pill {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rad-full);
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
  width: min(360px, 100%);
}
.vc-av-wrap { position: relative; width: 38px; height: 38px; flex-shrink: 0; }
.vc-av {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.30);
}
.vc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cb-blue-500);
  opacity: 0;
  animation: callRing 2.2s ease-out infinite;
}
.vc-ring.r2 { animation-delay: 0.7s; }
.vc-info { flex: 1; min-width: 0; }
.vc-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}
.vc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.vc-timer {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-tertiary);
}
.vc-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 12px; }
.vc-wave i {
  width: 2.5px;
  height: 11px;
  border-radius: 2px;
  background: var(--cb-blue-500);
  transform: scaleY(0.4);
  transform-origin: center;
  animation: waveBar 1.1s var(--ease-in-out) infinite;
}
.vc-wave i:nth-child(2) { animation-delay: 0.15s; }
.vc-wave i:nth-child(3) { animation-delay: 0.3s; }
.vc-wave i:nth-child(4) { animation-delay: 0.1s; }
.vc-wave i:nth-child(5) { animation-delay: 0.25s; }
.vc-end {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--trade-sell-hard);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.30);
}
.vc-end .ic { transform: rotate(135deg); }

.vc-number {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 6px;
}
.vc-cc {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-tertiary);
}
.vc-digits { display: inline-flex; gap: 1px; }
.vd {
  position: relative;
  width: 0.72em;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
  text-align: center;
}
.vd::before {
  content: attr(data-n);
  opacity: 0;
  animation: vdReal 7s steps(1, end) infinite;
  animation-delay: calc(var(--d) * 0.12s);
}
.vd::after {
  content: '•';
  position: absolute;
  inset: 0;
  color: var(--ink-400);
  opacity: 1;
  animation: vdMask 7s steps(1, end) infinite;
  animation-delay: calc(var(--d) * 0.12s);
}
@keyframes vdReal {
  0%, 11%  { opacity: 0; }
  12%, 47% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes vdMask {
  0%, 11%  { opacity: 1; }
  12%, 47% { opacity: 0; }
  48%, 100% { opacity: 1; }
}

/* ── Location: map tile whose tracking switches off ── */
.viz-loc {
  border-radius: var(--rad-btn);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 150px;
}
.vl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.vl-pin {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -88%);
  font-size: 30px;
  color: var(--cb-blue-600);
  filter: drop-shadow(0 2px 3px rgba(2, 6, 23, 0.25));
  animation: vlPin 8s var(--ease-in-out) infinite;
}
@keyframes vlPin {
  0%, 52%  { color: var(--cb-blue-600); }
  60%, 92% { color: var(--ink-400); }
  100%     { color: var(--cb-blue-600); }
}
.vl-pulse {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  animation: vlGate 8s steps(1, end) infinite;
}
.vl-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cb-blue-500);
  opacity: 0;
  animation: callRing 2s ease-out infinite;
}
@keyframes vlGate {
  0%, 54%  { opacity: 1; }
  55%, 97% { opacity: 0; }
  98%, 100% { opacity: 1; }
}
.vl-state { position: absolute; left: 10px; bottom: 10px; }
.vl-state.on  { animation: vlOn 8s var(--ease-cb) infinite; }
.vl-state.off { opacity: 0; animation: vlOff 8s var(--ease-cb) infinite; }
@keyframes vlOn {
  0%, 52%   { opacity: 1; transform: none; }
  56%, 94%  { opacity: 0; transform: translateY(4px); }
  98%, 100% { opacity: 1; transform: none; }
}
@keyframes vlOff {
  0%, 54%   { opacity: 0; transform: translateY(4px); }
  58%, 92%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(4px); }
}

/* ── Invoice: the receipt prints itself ── */
.viz-inv { display: flex; justify-content: center; padding: 4px 0 2px; }
.vi-window {
  position: relative;
  width: min(280px, 100%);
  height: 158px;
  overflow: hidden;
}
.vi-slot {
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 7px;
  border-radius: 4px;
  background: var(--ink-800);
  z-index: 2;
}
.vi-paper {
  position: absolute;
  top: 7px;
  left: 14px;
  right: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding: 12px 14px 12px;
  box-shadow: var(--shadow-card);
  animation: viPrint 7s var(--ease-cb) infinite;
}
.vi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-tertiary);
  padding: 3.5px 0;
}
.vi-row b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-primary);
}
.vi-dash { border-top: 1.5px dashed var(--ink-200); margin: 6px 0; }
.vi-ref span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.04em; }
.vi-settled {
  position: absolute;
  right: 10px;
  bottom: 9px;
  animation: viSettle 7s var(--ease-cb) infinite;
}
@keyframes viPrint {
  0%        { transform: translateY(-86%); }
  10%       { transform: translateY(-86%); }
  38%, 92%  { transform: translateY(0); }
  98%, 100% { transform: translateY(-86%); }
}
@keyframes viSettle {
  0%, 46%   { opacity: 0; transform: scale(0.55); }
  54%, 90%  { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(0.9); }
}

/* ── Role: HQ terminal price adjust ── */
.viz-hq, .viz-duty, .viz-ledger {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--rad-btn);
  padding: 11px 13px;
}
.vh-row { display: flex; align-items: center; gap: 10px; }
.vh-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
  background: var(--ink-100);
  border-radius: var(--rad-chip);
  padding: 4px 8px;
  white-space: nowrap;
}
.vh-price { position: relative; flex: 1; height: 18px; }
.vh-px {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
}
.vh-px.a { animation: vhA 6s steps(1, end) infinite; }
.vh-px.b { opacity: 0; animation: vhB 6s steps(1, end) infinite; }
@keyframes vhA { 0%, 41% { opacity: 1; } 42%, 91% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes vhB { 0%, 41% { opacity: 0; } 42%, 91% { opacity: 1; } 92%, 100% { opacity: 0; } }
.vh-publish {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--cb-blue-600);
  border-radius: var(--rad-chip);
  padding: 5px 11px;
  animation: vhPub 6s var(--ease-cb) infinite;
}
@keyframes vhPub {
  0%, 40%, 52%, 100% { transform: none; background: var(--cb-blue-600); }
  44%, 48% { transform: scale(0.94); background: var(--cb-blue-700); }
}

/* ── Role: field rep en route ── */
.vd-row { display: flex; align-items: center; gap: 12px; }
.vd-track {
  position: relative;
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink-200);
}
.vd-dot {
  position: absolute;
  top: 50%;
  left: calc(100% - 22px);
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--cb-blue-600);
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.18);
  animation: vdTravel 5s var(--ease-in-out) infinite;
}
@keyframes vdTravel {
  0%, 6%    { left: -2px; }
  58%, 96%  { left: calc(100% - 22px); }
  100%      { left: -2px; }
}
.vd-dest {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--trade-buy-hard);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  animation: vdArrive 5s var(--ease-cb) infinite;
}
@keyframes vdArrive {
  0%, 55%  { background: var(--ink-200); color: var(--ink-400); transform: translateY(-50%) scale(0.85); }
  63%, 96% { background: var(--trade-buy-hard); color: var(--white); transform: translateY(-50%) scale(1); }
  100%     { background: var(--ink-200); color: var(--ink-400); transform: translateY(-50%) scale(0.85); }
}

/* ── Role: finance ledger clears ── */
.viz-ledger { display: flex; flex-direction: column; gap: 7px; }
.vg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.vg-hash {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--ink-quaternary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-row b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-primary);
}
.vg-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--trade-buy-hard);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  animation: vgClear 6s var(--ease-cb) infinite;
  animation-delay: calc(var(--r) * 0.5s);
}
@keyframes vgClear {
  0%, 14%  { background: var(--ink-200); color: var(--ink-400); transform: scale(0.8); }
  22%, 88% { background: var(--trade-buy-hard); color: var(--white); transform: scale(1); }
  96%, 100% { background: var(--ink-200); color: var(--ink-400); transform: scale(0.8); }
}
