/* demo-tour.css - interactive coach-mark overlay (demo-only, demo-tour.js).
   BEM kebab-case, base.css tokens only. Spotlight + tooltip movement is a
   no-op under prefers-reduced-motion (media query at the end). */

.demo-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  /* Visual only: the dashboard stays fully interactive during the tour so
     the reviewer can click the spotlighted control. Only the tooltip
     re-enables pointer events for its own buttons. */
  pointer-events: none;
}

/* The spotlight is a transparent box whose massive outset shadow dims the
   rest of the page, leaving the highlighted element visible and bright. */
.demo-tour-overlay__spot {
  position: fixed;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px var(--color-scrim);
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease,
    height 0.2s ease;
}

.demo-tour-tip {
  position: fixed;
  pointer-events: auto;
  width: min(380px, calc(100vw - 24px));
  padding: var(--spacing-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: top 0.2s ease, left 0.2s ease;
}

.demo-tour-tip--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.demo-tour-tip__step {
  margin: 0 0 var(--spacing-xs);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-tour-tip__title {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
}

.demo-tour-tip__body {
  margin: 0 0 var(--spacing-lg);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-text-light);
}

.demo-tour-tip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}

.demo-tour-tip__btn {
  min-height: 44px;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.demo-tour-tip__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-tour-tip__btn--primary {
  margin-left: auto;
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-color: transparent;
}

.demo-tour-tip__btn--ghost {
  border-color: transparent;
  color: var(--color-text-light);
}

.demo-tour-tip__btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .demo-tour-overlay__spot,
  .demo-tour-tip {
    transition: none;
  }
}
