/* Soldek.ai — customer app guided tour. All selectors .tour-* prefixed.
   Tokens come from app.css :root; z-index sits above the panel (panel 9 → 20). */

/* === Spotlight overlay (click-catcher + box-shadow hole) === */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}
.tour-overlay.is-on { display: block; }
.tour-spot {
  position: fixed;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 37, 64, 0.45);
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

/* === Tooltip === */
.tour-tip {
  position: fixed;
  z-index: 21;
  display: none;
  width: min(340px, calc(100vw - 24px));
  background: var(--bg, #ffffff);
  color: var(--text, #0a2540);
  border: 1px solid var(--line, #e8e6e2);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--font, sans-serif);
  box-shadow: 0 12px 48px rgba(16, 24, 40, 0.22);
}
.tour-tip.is-on { display: block; animation: tour-in 0.2s ease both; }
@keyframes tour-in {
  from { opacity: 0; transform: translateY(6px); }
}
.tour-tip__step {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #ea580c);
  margin-bottom: 6px;
}
.tour-tip__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tour-tip__body {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted, #667085);
}

/* === Actions === */
.tour-tip__actions { display: flex; align-items: center; gap: 8px; }
.tour-tip__spacer { flex: 1; }
.tour-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  color: var(--muted, #667085);
}
.tour-btn:disabled { opacity: 0.4; cursor: default; }
.tour-btn--ghost:hover:not(:disabled) { background: var(--bg-soft, #f7f6f4); }
.tour-btn--primary { background: var(--accent, #ea580c); color: #fff; }
.tour-btn--primary:hover { filter: brightness(1.05); }
.tour-btn:focus-visible { outline: 2px solid var(--accent-ring, #fbd7c2); outline-offset: 1px; }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .tour-spot { transition: none; }
  .tour-tip.is-on { animation: none; }
}
