/* =====================================================================
   "How VioVerse Works" animated walkthrough
   Source: ideas/How VioVerse Works.html (58KB, committed 6e29de4)
   All classes vw- prefixed. In-place tour card on the landing page (poster <-> playing via .is-playing).
   ===================================================================== */

/* ===================== TOKENS (mirrored from the real app, vw- scoped) ===================== */
:root {
  --vw-coral: #f26419;
  --vw-navy: #1E2A35;
  --vw-bone: #fbf8f1;
  --vw-ink: #1D2430;
  --vw-line: #c8c6be;
  --vw-muted: rgba(30,42,53,0.55);
  --vw-radius: 28px;
  --vw-radius-sm: 14px;
  --vw-font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
}

/* ===================== SELLING HEADERS ===================== */
.vw-caps {
  position: relative;
  min-height: 78px;
}
.vw-cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.vw-cap.is-active { opacity: 1; transform: none; }
.vw-cap-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vw-coral);
  margin-bottom: 7px;
}
.vw-cap-head {
  font-size: clamp(23px,5.6vw,28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.13;
  color: var(--vw-navy);
  text-wrap: balance;
}
.vw-cap-head em { font-style: normal; color: var(--vw-coral); }

/* ===================== DEVICE (phone frame) ===================== */
.vw-device {
  position: relative;
  background: var(--vw-ink);
  border-radius: 42px;
  padding: 11px;
  box-shadow: 0 16px 38px rgba(28,20,14,0.18), 0 3px 10px rgba(28,20,14,0.1);
  align-self: center;
}
.vw-notch {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 128px; height: 26px;
  background: var(--vw-ink);
  border-radius: 0 0 16px 16px;
  z-index: 6;
}
.vw-screen-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--vw-bone);
  width: 320px;
  height: 540px;
}
.vw-stage {
  position: absolute; top: 0; left: 0;
  width: 320px; height: 540px;
  transform-origin: top left;
}

/* ===================== PANELS (app screens) ===================== */
.vw-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.vw-screen.is-active { opacity: 1; }

/* ===================== CONTROLS ===================== */
.vw-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vw-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(30,42,53,0.12);
  overflow: hidden;
}
.vw-fill {
  height: 100%;
  width: 0%;
  background: var(--vw-coral);
  border-radius: 999px;
}
.vw-dots { display: flex; gap: 7px; }
/* FS-2 (2026-08-02): the tour's TEXT surfaces all measured correct -- every
   .vw-* caption resolves through --vw-font -- but these two controls were
   Arial, because buttons never inherit the family. Both are glyph-free
   today (a bar, and an inline SVG), so this is uniformity rather than a
   visible change: no control in the app should sit on the UA default. */
.vw-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(30,42,53,0.18);
  border: none; padding: 0; cursor: pointer;
  font-family: inherit;
  transition: background .2s, width .2s;
}
.vw-dot.is-active { background: var(--vw-coral); width: 22px; }
.vw-pp {
  width: 38px; height: 38px; flex: none;
  border-radius: 999px;
  border: 1.5px solid rgba(30,42,53,0.16);
  background: #fff;
  color: var(--vw-navy);
  font-family: inherit; /* FS-2, see .vw-dot above */
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.vw-pp:hover { border-color: var(--vw-coral); color: var(--vw-coral); }
.vw-pp svg { width: 15px; height: 15px; display: block; }
.vw-pp .vw-ico-play { display: none; }
.vw-pp.is-paused .vw-ico-play { display: block; }
.vw-pp.is-paused .vw-ico-pause { display: none; }

/* ===================== SHARED SCREEN SCAFFOLD ===================== */
.vw-status {
  position: absolute; top: 56px; left: 0; right: 0;
  text-align: center;
  font-size: 14.5px; font-weight: 500;
  color: var(--vw-muted);
}
.vw-counter {
  position: absolute; left: 0; right: 0; bottom: 42px;
  text-align: center;
  font-size: 27px; font-weight: 700;
  color: var(--vw-navy);
  letter-spacing: -0.01em;
}
.vw-counter b { color: var(--vw-coral); font-weight: 700; }

/* ===================================================================
   PANEL 1 + 2: THE SCAN (gray line-art doc, coral sweep, live counter)
   =================================================================== */
.vw-scanwrap {
  position: absolute; top: 110px; left: 50%;
  transform: translateX(-50%);
  width: 196px; height: 245px;
}
.vw-doc { position: absolute; inset: 0; }
.vw-doc svg { width: 100%; height: 100%; display: block; overflow: visible; }
.vw-doc-coral {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 46px; mask-size: 100% 46px;
  -webkit-mask-position: 0 -54px; mask-position: 0 -54px;
  opacity: 0;
}
/* Panel 1: continuous sweep */
.vw-screen.is-active .vw-scan-loop {
  animation: vwSweep 2.5s linear infinite;
  opacity: 1;
}
/* Panel 2: one sweep, settle on a coral bottom edge */
.vw-screen.is-active .vw-scan-done {
  animation: vwSweepDone 2.9s cubic-bezier(.4,0,.2,1) forwards;
  opacity: 1;
}
@keyframes vwSweep {
  0%   { -webkit-mask-position: 0 -54px; mask-position: 0 -54px; }
  100% { -webkit-mask-position: 0 261px; mask-position: 0 261px; }
}
@keyframes vwSweepDone {
  0%   { -webkit-mask-position: 0 -54px; mask-position: 0 -54px;
         -webkit-mask-size: 100% 46px; mask-size: 100% 46px; }
  78%  { -webkit-mask-position: 0 232px; mask-position: 0 232px;
         -webkit-mask-size: 100% 46px; mask-size: 100% 46px; }
  100% { -webkit-mask-position: 0 224px; mask-position: 0 224px;
         -webkit-mask-size: 100% 70px; mask-size: 100% 70px; }
}
/* status crossfade in panel 2 */
.vw-status-stack { position: absolute; top: 56px; left: 0; right: 0; height: 22px; }
.vw-status-stack .vw-status { top: 0; }
.vw-st-scan { opacity: 1; }
.vw-st-done { opacity: 0; color: var(--vw-navy); font-weight: 600; }
.vw-screen.is-active .vw-st-scan { animation: vwStOut 5.2s forwards; }
.vw-screen.is-active .vw-st-done { animation: vwStIn 5.2s forwards; }
@keyframes vwStOut { 0%,46% { opacity: 1; } 54%,100% { opacity: 0; } }
@keyframes vwStIn  { 0%,46% { opacity: 0; } 54%,100% { opacity: 1; } }

/* ===================================================================
   PANEL 3 + 4: THE FLAGGED REPORT (faded page + coral callout pills)
   =================================================================== */
.vw-report { position: absolute; inset: 0; }
.vw-page {
  position: absolute;
  top: 30px; left: 22px; right: 22px; bottom: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(28,20,14,0.08);
  overflow: hidden;
}
.vw-page svg { width: 100%; height: 100%; display: block; }
.vw-scrim {
  position: absolute; inset: 0;
  background: var(--vw-bone);
  opacity: 0;
}
.vw-screen.is-active .vw-scrim { animation: vwScrimIn .6s ease forwards; }
@keyframes vwScrimIn { from { opacity: 0; } to { opacity: 0.52; } }

/* callout pills */
.vw-pill {
  position: absolute;
  background: #fff;
  border: 2.5px solid rgba(242,100,25,0.6);
  border-radius: 999px;
  padding: 11px 22px 12px;
  box-shadow: 0 2px 8px rgba(30,42,53,0.14);
  text-align: left;
  transform: scale(.82);
  opacity: 0;
}
.vw-pill-lbl {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--vw-coral);
  line-height: 1.2; margin-bottom: 3px;
}
.vw-pill-val {
  font-size: 16px; font-weight: 700; color: var(--vw-navy);
  line-height: 1.1;
}
.vw-pill-status  { top: 114px; left: 28px; width: 166px; }
.vw-pill-balance { top: 210px; left: 40px; width: 168px; }

/* status pill: simple pop-in */
.vw-screen.is-active .vw-p-a { animation: vwPop .5s cubic-bezier(.2,.8,.3,1.2) .3s forwards; }
@keyframes vwPop { to { transform: scale(1); opacity: 1; } }

/* balance pill: pop-in, hold, press-down at poke, then lit */
.vw-screen.is-active .vw-p-balance { animation: vwBalance 8500ms ease forwards; }
@keyframes vwBalance {
  0%,5%   { transform: scale(.82); opacity: 0; border-color: rgba(242,100,25,0.6); box-shadow: 0 2px 8px rgba(30,42,53,0.14); }
  9%      { transform: scale(1); opacity: 1; }
  9%,34%  { border-color: rgba(242,100,25,0.6); box-shadow: 0 2px 8px rgba(30,42,53,0.14); }
  37%     { transform: scale(.93); }
  38%     { border-color: #f26419; box-shadow: 0 0 28px rgba(242,100,25,0.7),0 3px 10px rgba(30,42,53,0.24); }
  41%     { transform: scale(1.03); }
  45%,100%{ transform: scale(1); opacity: 1; border-color: #f26419; box-shadow: 0 0 22px rgba(242,100,25,0.58),0 3px 10px rgba(30,42,53,0.22); }
}

/* finger (Phosphor hand-pointing) */
.vw-finger {
  position: absolute;
  top: 232px; left: 120px;
  width: 96px; height: 96px;
  transform: translateY(80px);
  opacity: 0;
}
.vw-finger svg { width: 100%; height: 100%; display: block; }
.vw-screen.is-active .vw-finger { animation: vwFinger 8500ms cubic-bezier(.4,0,.3,1) forwards; }
@keyframes vwFinger {
  0%,12%  { transform: translateY(80px); opacity: 0; }
  24%     { transform: translateY(10px); opacity: 1; }
  31%     { transform: translateY(10px); opacity: 1; }
  36%     { transform: translateY(-4px); opacity: 1; }
  41%     { transform: translateY(10px); opacity: 1; }
  49%     { transform: translateY(80px); opacity: 0; }
  100%    { transform: translateY(80px); opacity: 0; }
}

/* slim detail panel */
.vw-detail {
  position: absolute; top: 34px; right: 14px; bottom: 20px;
  width: 83%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(28,20,14,0.2), 0 4px 14px rgba(28,20,14,0.1);
  padding: 26px 20px 22px;
  transform: translateX(112%);
  display: flex; flex-direction: column;
  gap: 0;
}
.vw-screen.is-active .vw-detail { animation: vwSlideIn .6s cubic-bezier(.3,0,.2,1) 3.4s forwards; }
@keyframes vwSlideIn { to { transform: translateX(0); } }
.vw-badge {
  align-self: flex-start;
  white-space: nowrap;
  background: var(--vw-coral);
  color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 26px;
}
.vw-seg-lbl {
  font-size: 14px; font-weight: 700;
  color: rgba(30,42,53,0.6);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 7px;
}
.vw-seg-problem {
  font-size: 23px; font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.22; color: var(--vw-coral);
  margin-bottom: 28px;
  text-wrap: balance;
}
.vw-seg-body {
  font-size: 20px; line-height: 1.4; font-weight: 600;
  color: var(--vw-navy);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.vw-cta {
  margin-top: auto;
  background: var(--vw-ink);
  color: #fff;
  border: none;
  font-family: var(--vw-font);
  font-size: 16px; font-weight: 600;
  padding: 15px; border-radius: 999px;
  text-align: center; cursor: pointer;
  width: 100%;
}

/* ===================================================================
   BEAT 2: "why it matters" (blind spot + the cost)
   =================================================================== */
.vw-rcard {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(28,20,14,0.14);
  overflow: hidden;
}
.vw-rcard svg { width: 100%; height: 100%; display: block; }
.vw-rflag {
  position: absolute;
  border-radius: 999px;
  background: rgba(242,100,25,0.16);
  border: 1.5px solid rgba(242,100,25,0.7);
  box-shadow: 0 0 10px rgba(242,100,25,0.45);
}
.vw-rflag.glow { animation: vwFlagGlow 2.8s ease-in-out infinite; }
@keyframes vwFlagGlow {
  0%,100% { box-shadow: 0 0 7px rgba(242,100,25,0.32); }
  50%     { box-shadow: 0 0 14px rgba(242,100,25,0.55); }
}

/* PANEL: THE BLIND SPOT */
.vw-bs { position: absolute; inset: 0; }
.vw-bs-card {
  top: 50%; left: 50%;
  width: 206px; height: 270px;
  transform: translate(-50%,-50%) scale(1);
  opacity: 0;
}
.vw-bs-fa { top: 96px; left: 40px; width: 92px; height: 22px; }
.vw-bs-fb { top: 150px; left: 54px; width: 104px; height: 22px; }
.vw-rcredit {
  position: absolute; top: 20px; left: 20px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em; color: var(--vw-coral);
}
.vw-rflag-lbl {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: 9px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: rgba(242,100,25,0.5);
}
.vw-screen.is-active .vw-bs-card { animation: vwDissolve 5000ms cubic-bezier(.4,0,.4,1) forwards; }
@keyframes vwDissolve {
  0%,44%  { opacity: 1; filter: blur(0px); transform: translate(-50%,-50%) scale(1); }
  100%    { opacity: 0; filter: blur(7px); transform: translate(-50%,-50%) scale(1.05); }
}
.vw-bs-wash { position: absolute; inset: 0; background: var(--vw-bone); opacity: 0; pointer-events: none; }
.vw-screen.is-active .vw-bs-wash { animation: vwWashIn 5000ms ease forwards; }
@keyframes vwWashIn { 0%,30% { opacity: 0; } 100% { opacity: 0.22; } }

/* PANEL: THE COST */
.vw-cost { position: absolute; inset: 0; }
.vw-bridge {
  position: absolute; top: 138px; left: 50%; transform: translateX(-50%);
  width: 268px; text-align: center;
  font-size: 23px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.18;
  color: var(--vw-coral);
  opacity: 0;
}
.vw-screen.is-active .vw-bridge { animation: vwBridgeIn 1100ms ease .3s forwards; }
@keyframes vwBridgeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* consequence chips */
.vw-chips {
  position: absolute; top: 202px; left: 50%; transform: translateX(-50%);
  width: 258px; display: flex; flex-direction: column; gap: 14px; align-items: stretch;
}
.vw-chip {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid rgba(30,42,53,0.1);
  border-radius: 999px;
  padding: 15px 22px;
  box-shadow: 0 4px 14px rgba(28,20,14,0.09);
  transform: translateY(34px);
  opacity: 0;
}
.vw-chip-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--vw-coral); flex: none; }
.vw-chip-txt { font-size: 17px; font-weight: 600; color: var(--vw-navy); letter-spacing: -0.01em; line-height: 1.2; }
.vw-screen.is-active .vw-chip-1 { animation: vwRise .7s cubic-bezier(.2,.7,.3,1) 1.7s forwards; }
.vw-screen.is-active .vw-chip-2 { animation: vwRise .7s cubic-bezier(.2,.7,.3,1) 3.2s forwards; }
.vw-screen.is-active .vw-chip-3 { animation: vwRise .7s cubic-bezier(.2,.7,.3,1) 4.7s forwards; }
@keyframes vwRise { to { transform: translateY(0); opacity: 1; } }

/* ===================================================================
   BEAT 3: THE TURN (the pivot: dread -> relief)
   =================================================================== */
.vw-turn {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 30px;
}
.vw-turn-big {
  font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.14;
  color: var(--vw-navy); text-wrap: balance;
  opacity: 0; transform: translateY(8px);
}
.vw-turn-big em { font-style: normal; color: #ef6a2e; }
.vw-turn-sub {
  margin-top: 22px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: rgba(30,42,53,0.6);
  opacity: 0; transform: translateY(6px);
}
.vw-screen.is-active .vw-turn-big { animation: vwTurnIn 1100ms cubic-bezier(.2,.7,.3,1) .5s forwards; }
.vw-screen.is-active .vw-turn-sub { animation: vwTurnIn 900ms ease 3.1s forwards; }
@keyframes vwTurnIn { to { opacity: 1; transform: translateY(0); } }

/* ===================================================================
   BEAT 4: "how easy the path is"
   =================================================================== */
.vw-hand { position: absolute; width: 84px; height: 84px; opacity: 0; pointer-events: none; z-index: 9; }
.vw-hand svg { width: 100%; height: 100%; display: block; }
.vw-b4-title {
  position: absolute; top: 52px; left: 0; right: 0; text-align: center;
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--vw-navy); opacity: 0;
}
.vw-screen.is-active .vw-b4-title { animation: vwTurnIn .6s ease .15s forwards; }

/* PANEL: THE PROMISE (3 steps + coral CTA) */
.vw-steps {
  position: absolute; top: 116px; left: 50%; transform: translateX(-50%);
  width: 266px; display: flex; flex-direction: column; gap: 12px;
}
.vw-step {
  display: flex; align-items: center; gap: 13px; background: #fff;
  border: 1px solid rgba(30,42,53,0.1); border-radius: 16px; padding: 13px 16px;
  box-shadow: 0 3px 10px rgba(28,20,14,0.07); opacity: 0; transform: translateY(16px);
}
.vw-step-n {
  width: 26px; height: 26px; border-radius: 999px; background: rgba(242,100,25,0.12);
  color: var(--vw-coral); font-size: 14px; font-weight: 800; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.vw-step-t { font-size: 14px; font-weight: 600; color: var(--vw-navy); letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }
.vw-screen.is-active .vw-step-1 { animation: vwRise .55s cubic-bezier(.2,.7,.3,1) .5s forwards; }
.vw-screen.is-active .vw-step-2 { animation: vwRise .55s cubic-bezier(.2,.7,.3,1) .75s forwards; }
.vw-screen.is-active .vw-step-3 { animation: vwRise .55s cubic-bezier(.2,.7,.3,1) 1.0s forwards; }
.vw-cta-pill {
  position: absolute; top: 320px; left: 50%; width: 266px;
  background: var(--vw-coral); color: #fff; border-radius: 999px; padding: 15px; text-align: center;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 6px 16px rgba(242,100,25,0.3); opacity: 0;
  transform: translateX(-50%) translateY(16px);
}
.vw-screen.is-active .vw-cta-pill { animation: vwCta 7000ms ease forwards; }
@keyframes vwCta {
  0%,18%    { opacity: 0; transform: translateX(-50%) translateY(16px) scale(1); }
  24%,58%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  63%       { opacity: 1; transform: translateX(-50%) translateY(0) scale(.95); }
  69%,100%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.vw-f6 { top: 318px; left: 182px; }
.vw-screen.is-active .vw-f6 { animation: vwTap6 7000ms ease forwards; }
@keyframes vwTap6 {
  0%,32%  { transform: translateY(64px); opacity: 0; }
  48%     { transform: translateY(2px); opacity: 1; }
  58%     { transform: translateY(2px); opacity: 1; }
  63%     { transform: translateY(13px); opacity: 1; }
  69%     { transform: translateY(2px); opacity: 1; }
  80%     { transform: translateY(64px); opacity: 0; }
  100%    { transform: translateY(64px); opacity: 0; }
}

/* PANEL: CREATE ACCOUNT */
.vw-acct {
  position: absolute; top: 140px; left: 50%; transform: translateX(-50%); width: 268px;
  background: #fff; border: 1px solid rgba(30,42,53,0.1); border-radius: 20px; padding: 22px 20px;
  box-shadow: 0 10px 28px rgba(28,20,14,0.1); min-height: 168px;
}
.vw-field-lbl {
  font-size: 11px; font-weight: 700; color: rgba(30,42,53,0.55);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.vw-field {
  display: flex; align-items: center; height: 46px; border: 1.5px solid rgba(30,42,53,0.16);
  border-radius: 12px; padding: 0 14px; font-size: 15px; color: var(--vw-navy); background: #fff;
}
.vw-acct-btn {
  margin-top: 16px; height: 46px; border-radius: 12px; background: var(--vw-coral);
  color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.vw-acct-form { opacity: 1; }
.vw-screen.is-active .vw-acct-form { animation: vwFormOut 5000ms ease forwards; }
@keyframes vwFormOut { 0%,52% { opacity: 1; } 58%,100% { opacity: 0; } }
.vw-acct-done {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; opacity: 0;
}
.vw-screen.is-active .vw-acct-done { animation: vwDoneIn 5000ms ease forwards; }
@keyframes vwDoneIn { 0%,54% { opacity: 0; transform: scale(.9); } 64%,100% { opacity: 1; transform: scale(1); } }
.vw-check {
  width: 54px; height: 54px; border-radius: 999px; background: var(--vw-coral);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(242,100,25,0.32);
}
.vw-check svg { width: 28px; height: 28px; display: block; }
.vw-done-txt { font-size: 16px; font-weight: 700; color: var(--vw-navy); }
.vw-f7 { top: 250px; left: 158px; }
.vw-screen.is-active .vw-f7 { animation: vwTap7 5000ms ease forwards; }
@keyframes vwTap7 {
  0%,20%  { transform: translateY(60px); opacity: 0; }
  40%     { transform: translateY(2px); opacity: 1; }
  48%     { transform: translateY(2px); opacity: 1; }
  53%     { transform: translateY(13px); opacity: 1; }
  58%     { transform: translateY(2px); opacity: 1; }
  68%     { transform: translateY(60px); opacity: 0; }
  100%    { transform: translateY(60px); opacity: 0; }
}

/* PANEL: UPLOAD */
.vw-drop {
  position: absolute; top: 118px; left: 50%; transform: translateX(-50%);
  width: 264px; height: 182px; border: 3px dashed rgba(242,100,25,0.85); border-radius: 18px;
  background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 0 26px;
}
.vw-drop-ico { width: 56px; height: 56px; color: var(--vw-coral); }
.vw-drop-ico svg { width: 100%; height: 100%; display: block; }
.vw-drop-txt { font-size: 18px; font-weight: 700; color: var(--vw-navy); line-height: 1.3; letter-spacing: -0.01em; }
.vw-screen.is-active .vw-drop { animation: vwDropPress 5000ms ease forwards; }
@keyframes vwDropPress { 0%,40% { transform: translateX(-50%) scale(1); } 48% { transform: translateX(-50%) scale(.97); } 56%,100% { transform: translateX(-50%) scale(1); } }
.vw-drop-cap {
  position: absolute; top: 316px; left: 0; right: 0; text-align: center;
  font-size: 12px; font-weight: 500; color: rgba(30,42,53,0.72);
}
.vw-filechip {
  position: absolute; top: 340px; left: 50%; transform: translateX(-50%) translateY(12px);
  width: 236px; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--vw-coral);
  border-radius: 13px; padding: 12px 18px; box-shadow: 0 5px 14px rgba(242,100,25,0.18); opacity: 0;
}
.vw-screen.is-active .vw-filechip { animation: vwChipIn 5000ms ease forwards; }
@keyframes vwChipIn { 0%,56% { opacity: 0; transform: translateX(-50%) translateY(12px); } 66%,100% { opacity: 1; transform: translateX(-50%) translateY(0); } }
.vw-pdf {
  width: 30px; height: 30px; border-radius: 7px; background: var(--vw-coral); color: #fff;
  font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.vw-chip-name { font-size: 14px; font-weight: 600; color: var(--vw-navy); white-space: nowrap; }
.vw-f8 { top: 200px; left: 150px; }
.vw-screen.is-active .vw-f8 { animation: vwTap7 5000ms ease forwards; }

/* PANEL: QUICK QUESTIONS */
.vw-q { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); width: 266px; }
.vw-q-h {
  font-size: 19px; font-weight: 700; color: var(--vw-navy); text-align: center;
  margin-bottom: 18px; letter-spacing: -0.02em;
}
.vw-opt {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1.5px solid rgba(30,42,53,0.12); border-radius: 14px; padding: 14px 16px; margin-bottom: 11px;
  font-size: 14.5px; font-weight: 600; color: var(--vw-navy); transition: none;
}
.vw-opt-check {
  width: 20px; height: 20px; border-radius: 999px; border: 2px solid rgba(30,42,53,0.2); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.vw-opt-check svg { width: 12px; height: 12px; display: block; opacity: 0; }
.vw-screen.is-active .vw-opt-sel { animation: vwSelOpt 6800ms ease forwards; }
@keyframes vwSelOpt { 0%,54% { border-color: rgba(30,42,53,0.12); background: #fff; } 60%,100% { border-color: var(--vw-coral); background: rgba(242,100,25,0.06); } }
.vw-screen.is-active .vw-opt-sel .vw-opt-check { animation: vwSelBox 6800ms ease forwards; }
@keyframes vwSelBox { 0%,54% { border-color: rgba(30,42,53,0.2); background: transparent; } 60%,100% { border-color: var(--vw-coral); background: var(--vw-coral); } }
.vw-screen.is-active .vw-opt-sel .vw-opt-check svg { animation: vwFadeIn 6800ms ease forwards; }
@keyframes vwFadeIn { 0%,56% { opacity: 0; } 62%,100% { opacity: 1; } }
.vw-q-btn {
  margin-top: 5px; height: 46px; border-radius: 12px; background: var(--vw-coral);
  color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.vw-screen.is-active .vw-q-btn { animation: vwQbtn 6800ms ease forwards; }
@keyframes vwQbtn { 0%,72% { transform: scale(1); } 78% { transform: scale(.96); } 84%,100% { transform: scale(1); } }
.vw-f9 { top: 150px; left: 150px; }
.vw-screen.is-active .vw-f9 { animation: vwTap9 6800ms ease forwards; }
@keyframes vwTap9 {
  0%,6%   { transform: translate(0,-40px); opacity: 0; }
  14%     { transform: translate(0,0); opacity: 1; }
  24%     { transform: translate(0,0); opacity: 1; }
  32%     { transform: translate(0,59px); opacity: 1; }
  42%     { transform: translate(0,59px); opacity: 1; }
  50%     { transform: translate(0,118px); opacity: 1; }
  54%     { transform: translate(0,129px); opacity: 1; }
  58%     { transform: translate(0,118px); opacity: 1; }
  68%     { transform: translate(0,176px); opacity: 1; }
  74%     { transform: translate(0,187px); opacity: 1; }
  78%     { transform: translate(0,176px); opacity: 1; }
  88%     { transform: translate(0,210px); opacity: 0; }
  100%    { transform: translate(0,210px); opacity: 0; }
}

/* PANEL: RESULTS (loop close) */
.vw-screen.is-active .vw-res-a { animation: vwPop .5s cubic-bezier(.2,.8,.3,1.2) .5s forwards; }
.vw-screen.is-active .vw-res-b { animation: vwPop .5s cubic-bezier(.2,.8,.3,1.2) .8s forwards; }

/* ===================================================================
   BEAT 5: THE CLOSE (CTA -> logo end card)
   =================================================================== */
.vw-close {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 28px;
}
.vw-close-line {
  font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--vw-navy); opacity: 0; transform: translateY(8px);
}
.vw-close-line em { font-style: normal; color: var(--vw-coral); }
.vw-close-cta {
  margin-top: 26px; width: 248px; background: var(--vw-coral); color: #fff;
  border-radius: 999px; padding: 16px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(242,100,25,0.32); opacity: 0; transform: translateY(10px);
  cursor: pointer; border: none; font-family: var(--vw-font);
}
.vw-screen.is-active .vw-close-line { animation: vwTurnIn .9s cubic-bezier(.2,.7,.3,1) .4s forwards; }
.vw-screen.is-active .vw-close-cta { animation: vwCtaIn 1s ease 1.1s forwards, vwCtaPulse 2.2s ease-in-out 2.4s infinite; }
@keyframes vwCtaIn   { to { opacity: 1; transform: translateY(0); } }
@keyframes vwCtaPulse {
  0%,100% { box-shadow: 0 8px 20px rgba(242,100,25,0.32); transform: translateY(0) scale(1); }
  50%     { box-shadow: 0 10px 30px rgba(242,100,25,0.5); transform: translateY(0) scale(1.035); }
}

/* logo end card -- MATCHES PRODUCTION: vio=coral, verse=navy */
.vw-end {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
  background: var(--vw-bone); opacity: 0;
}
.vw-screen.is-active .vw-end { animation: vwEndIn 1s ease 4.4s forwards; }
@keyframes vwEndIn { to { opacity: 1; } }
.vw-wordmark {
  font-size: 40px; font-weight: 800; letter-spacing: -0.04em; text-transform: lowercase;
  transform: translateY(8px);
}
.vw-wordmark .wm-vio   { color: var(--vw-coral); }
.vw-wordmark .wm-verse  { color: var(--vw-navy); }
.vw-screen.is-active .vw-wordmark { animation: vwTurnIn 1s cubic-bezier(.2,.7,.3,1) 4.6s forwards; }

/* ---- held end frame: CTA + replay appear after timeline stops ---- */
.vw-end-cta {
  margin-top: 24px; width: 220px; background: var(--vw-coral); color: #fff;
  border-radius: 999px; padding: 14px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: 0 6px 16px rgba(242,100,25,0.3); text-align: center;
  cursor: pointer; border: none; font-family: var(--vw-font);
  opacity: 0; pointer-events: none;
}
.vw-replay {
  margin-top: 14px; background: none; border: none;
  font-family: var(--vw-font); font-size: 13px; font-weight: 600;
  color: var(--vw-muted); cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  opacity: 0; pointer-events: none;
  transition: color 0.15s;
}
.vw-replay:hover { color: var(--vw-coral); }
.vw-replay svg { width: 14px; height: 14px; }
.vw-screen.is-held .vw-end-cta {
  opacity: 1; pointer-events: auto;
  animation: vwHeldIn .6s ease forwards;
}
.vw-screen.is-held .vw-replay {
  opacity: 1; pointer-events: auto;
  animation: vwHeldIn .6s ease .15s forwards;
}
@keyframes vwHeldIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  .vw-screen * { animation: none !important; }
  .vw-screen.is-held .vw-end-cta,
  .vw-screen.is-held .vw-replay { opacity: 1; pointer-events: auto; transform: none; }
}
/* paused: freeze every running keyframe */
.vw-stage.is-paused .vw-screen.is-active * { animation-play-state: paused !important; }

/* ===================== IN-CARD: state toggles + caption sizing ===================== */
/* Resting/playing swaps are now in landing.css (.tour-resting-cap, .tour-rest-action,
   .vw-caps, .vw-controls). These rules handle caps layout and sizing only. */
.tour-card .vw-caps { display: none; position: relative; }
.tour-card.is-playing .vw-caps { display: block; }
.tour-card .vw-controls { display: none; align-items: center; gap: 14px; }
.tour-card.is-playing .vw-controls { display: flex; }
.tour-card .vw-cap-head { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.13; color: var(--text); text-wrap: balance; }
.tour-card .vw-cap-head em { font-style: normal; color: var(--coral); }
.tour-card .vw-cap-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }

/* ===================== IN-CARD: device sizing via --scale variable ===================== */
/* Native stage is 320x540. Everything derives from --scale (set per breakpoint
   in landing.css). The phone is provably identical at rest and on every beat. */
.tour-card .vw-device      { width: calc(320px * var(--scale) + 22px); padding: 11px; }
.tour-card .vw-screen-frame { width: calc(320px * var(--scale)); height: calc(540px * var(--scale)); }
.tour-card .vw-stage        { width: 320px; height: 540px; transform-origin: top left; transform: scale(var(--scale)); }
.tour-card .vw-notch        { width: calc(128px * var(--scale)); height: calc(26px * var(--scale)); border-radius: 0 0 16px 16px; }

/* ===================== POSTER PHONE (Option A: dedicated clean scene) ===================== */
.tour-poster-phone {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--vw-bone);
  border-radius: 31px;
  overflow: hidden;
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
}
.tour-card.is-playing .tour-poster-phone { display: none; }
.tour-poster-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  opacity: 0.5;
  margin-bottom: 12px;
}
.tour-poster-bars > div { height: 8px; border-radius: 4px; background: rgba(30,42,53,0.12); }
.tour-poster-bars > div:nth-child(1) { width: 62%; }
.tour-poster-bars > div:nth-child(2) { width: 80%; background: rgba(30,42,53,0.10); }
.tour-poster-bars > div:nth-child(3) { width: 50%; }
.tour-poster-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(28,20,14,0.16);
  padding: 15px 14px;
}
.tour-poster-badge {
  display: inline-block;
  background: var(--vw-coral);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--vw-font);
}
.tour-poster-lbl {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(30,42,53,0.5);
  margin-top: 14px;
  font-family: var(--vw-font);
}
.tour-poster-problem {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--vw-coral);
  margin-top: 4px;
  font-family: var(--vw-font);
}
.tour-poster-body {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--vw-navy);
  margin-top: 4px;
  font-family: var(--vw-font);
}
.tour-poster-cta {
  margin-top: 16px;
  background: var(--vw-ink);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 11px;
  border-radius: 999px;
  font-family: var(--vw-font);
}
