/* ── Presentation tour overlay (static/tour.js) ──────────────────────────────
   Only ever shown with ?tour-capture=1, while the Xvfb+Chrome recorder films
   the real interface: synthetic cursor, spotlight ring, subtitle bar. There is
   no launch button — nothing here is reachable by a normal visitor.          */

.tour-sync-flash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: #ffffff;
  pointer-events: none;
}

.tour-spot {
  position: fixed;
  z-index: 9992;
  border: 2px solid rgba(239, 118, 95, 0.9);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(23, 50, 77, 0.32), 0 0 30px rgba(239, 118, 95, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, top 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.tour-spot.is-on { opacity: 1; }
.tour-spot[hidden] { display: none; }

.tour-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9996;
  width: 48px;
  height: 48px;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.75s cubic-bezier(0.35, 0, 0.2, 1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.tour-cursor.is-on { opacity: 1; }
.tour-cursor[hidden] { display: none; }
.tour-cursor svg { display: block; width: 48px; height: 48px; }
.tour-cursor__ring {
  position: absolute;
  inset: -16px;
  border: 3px solid rgba(239, 118, 95, 0.9);
  border-radius: 50%;
  opacity: 0;
}
.tour-cursor.is-clicking .tour-cursor__ring { animation: tourClick 0.55s ease-out; }
@keyframes tourClick {
  0%   { opacity: 0.95; transform: scale(0.35); }
  100% { opacity: 0;    transform: scale(1.5); }
}

.tour-caption {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(14px);
  z-index: 9995;
  width: min(720px, calc(100vw - 32px));
  padding: 16px 20px 13px;
  border: 1px solid var(--line, #e9e4da);
  border-radius: 18px;
  background: rgba(23, 50, 77, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: #fffdfa;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tour-caption.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.tour-caption[hidden] { display: none; }
.tour-caption__who {
  display: block;
  margin-bottom: 6px;
  color: var(--coral, #ef765f);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tour-caption__text { margin: 0 0 11px; font-size: 1rem; line-height: 1.5; }
.tour-caption__bar { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.tour-caption__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--coral, #ef765f);
  transition: width 0.3s linear;
}

@media (max-width: 680px) {
  .tour-caption { bottom: 10px; padding: 13px 15px 10px; }
  .tour-caption__text { font-size: 0.92rem; }
  .tour-cursor { display: none; }
}

/* The recording runs at a fixed, known size — the tour never needs to animate
   for a user who might have motion sensitivity, but respect it anyway. */
@media (prefers-reduced-motion: reduce) {
  .tour-cursor, .tour-spot { transition: opacity 0.2s ease; }
}
