/* First-mount onboarding tour. Spotlight + callout. */

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  transition: background 0.18s ease;
}
/* Applied to centered (no-spotlight) steps where there's no .tour-hole
   box-shadow to provide the dim, e.g. intro/outro callouts. */
.tour-overlay--dim { background: rgba(0, 0, 0, 0.62); }

/* The hole is positioned over the target element. Its huge outer box-shadow
   dims everything outside its bounds, giving a "punched out" effect without
   needing clip-path support. The 1px transparent border is the trick that
   makes the shadow fade cleanly from the hole's edge. */
.tour-hole {
  position: absolute;
  border-radius: 8px;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.62),
    0 0 24px 4px color-mix(in oklab, var(--accent) 35%, transparent);
  pointer-events: none;
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.tour-callout {
  position: absolute;
  width: min(360px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 18px 18px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  color: var(--text-primary);
  transition: top 0.18s ease, left 0.18s ease;
}
.tour-callout--centered {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

.tour-callout__progress {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tour-callout__title {
  margin: 0 0 8px;
  font-family: 'Saira Condensed', 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.tour-callout__body {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}

.tour-callout__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tour-callout__nav { display: flex; gap: 8px; }

.tour-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.12s;
}
.tour-btn:hover { opacity: 0.88; }
.tour-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tour-btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}
