/* onboarding.css — first-run spotlight tour overlay. Loaded LAST; sits above everything.
   Colors come from tokens so light + dark both work. See src/onboarding/onboarding.js
   and docs/superpowers/specs/2026-07-28-onboarding-tour-design.md. */

/* Transparent full-viewport layer that swallows clicks on the page behind the tour.
   On the Welcome step it also carries the full-screen dim (the hole is hidden then). */
.tour-blocker {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: transparent;
  pointer-events: auto;
}
.tour-blocker.is-welcome { background: rgba(0, 0, 0, 0.55); }

/* The lit cut-out. Its huge box-shadow paints the dim over the rest of the page. */
.tour-hole {
  position: fixed;
  z-index: 9001;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  pointer-events: none;
}

/* The callout card. */
.tour-pop {
  position: fixed;
  z-index: 9002;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 16px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
}
.tour-pop h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.tour-body { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.tour-body ul { margin: 4px 0 0; padding-left: 1.15em; }
.tour-body li { margin: 4px 0; }
.tour-body b { color: var(--ink); font-weight: 650; }
.tour-tip { margin: 9px 0 0; font-size: 0.84rem; color: var(--muted); }

.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-count { margin-right: auto; font-size: 0.78rem; color: var(--faint); }

.tour-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.tour-btn:hover { background: var(--surface-2); }
.tour-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.tour-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.tour-skip {
  display: block;
  margin: 8px 0 0;
  padding: 4px 2px;
  font: inherit;
  font-size: 0.8rem;
  background: none;
  border: 0;
  color: var(--faint);
  cursor: pointer;
}
.tour-skip:hover { color: var(--muted); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .tour-hole { transition: left 0.28s ease, top 0.28s ease, width 0.28s ease, height 0.28s ease; }
  .tour-pop { transition: left 0.22s ease, top 0.22s ease; }
}
