/* ==========================================================================
   Guided tour (spotlight walkthrough) — static showcase only.
   Colours lean on the app's theme tokens so the tour matches light & dark.
   The two brand-specific accents are fixed by request:
     Next button  → #FF3B1F on white text
     Skip button  → red text + red border
   ========================================================================== */

/* ---- header: keep the Guide button to the LEFT of the theme toggle ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.guide-btn .icon { width: 17px; height: 17px; }
.guide-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-hover);
}
.guide-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

/* ---------------------------------------------------------------- overlay */
.tour-root { position: fixed; inset: 0; z-index: 9000; }
.tour-root[hidden] { display: none; }

/* Full-screen click blocker so the page can't be interacted with mid-tour. */
.tour-block {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: transparent;
}

/* SVG overlay: a dim rectangle masked so the target(s) show through, plus an
   accent ring stroked around each lit hole. */
.tour-mask {
  position: fixed;
  inset: 0;
  z-index: 9002;
  pointer-events: none;
  color: var(--accent);          /* rings inherit this via currentColor */
}
.tour-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.45));
}

/* ------------------------------------------------------------------ card */
.tour-card {
  position: fixed;
  z-index: 9003;
  width: min(380px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(4, 14, 16, 0.4);
  padding: 20px 20px 16px;
  transition: top .28s cubic-bezier(.4,0,.2,1),
              left .28s cubic-bezier(.4,0,.2,1);
}

/* Step counter — pinned to the top-right corner of the card. */
.tour-step-count {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.tour-card h3 {
  margin: 0 0 8px;
  padding-right: 52px;           /* clear the corner step counter */
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
}
.tour-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* progress dots */
.tour-dots {
  display: flex;
  gap: 6px;
  margin: 14px 0 4px;
}
.tour-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s, transform .2s;
}
.tour-dots span.is-on { background: var(--accent); transform: scale(1.25); }

/* watermark line for the intro step — sits ABOVE the headline */
.tour-watermark {
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tour-watermark[hidden] { display: none; }
.tour-watermark strong { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- actions */
.tour-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.tour-actions-left  { display: flex; flex-direction: column; gap: 8px; }
.tour-actions-right { display: flex; align-items: center; gap: 8px; }

/* Skip — red text + red border (bottom left) */
.tour-skip {
  align-self: flex-start;
  padding: 7px 16px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e11d0f;
  background: transparent;
  border: 1px solid #e11d0f;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.tour-skip:hover { background: rgba(225, 29, 15, 0.08); }

/* Don't-show-again checkbox, sits below Skip */
.tour-dismiss {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}
.tour-dismiss input { accent-color: #FF3B1F; cursor: pointer; }

/* Back — a plain box */
.tour-back {
  padding: 9px 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.tour-back:hover { background: var(--surface-hover); }
.tour-back:disabled { opacity: 0.4; cursor: default; }

/* Next — #FF3B1F with white text */
.tour-next {
  padding: 9px 22px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: #FF3B1F;
  border: 1px solid #FF3B1F;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .15s;
}
.tour-next:hover { filter: brightness(1.07); }

.tour-skip:focus-visible,
.tour-back:focus-visible,
.tour-next:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

@media (max-width: 560px) {
  .guide-btn span { display: none; }
  .guide-btn { padding: 7px; }
  .tour-actions { flex-direction: column; }
  .tour-actions-right { justify-content: flex-end; }
}
