/* tour.css — the guided walkthrough overlay.

   ★ NO FULL-SCREEN BACKDROP, DELIBERATELY. ★ The reader is meant to USE the page while
   the tour runs — type in the field, press the button — so dimming everything behind a
   scrim would fight the entire purpose. The target gets a ring; the rest of the page
   stays live, scrollable and clickable. That is the difference between a walkthrough and
   a lightbox.

   Colours and sizes come from the site's own tokens, so the card is Aunt Starling's and
   not a generic tooltip library's. Text sits on the shared scale (--t-small is the floor
   for anything a reader is meant to read; nothing here goes below it). */

.tour-card {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9000;                 /* above the banner, below nothing that matters */
  width: min(560px, calc(100vw - 24px));
  background: #fdfaf1;
  border: 1px solid #e6dfcb;
  border-left: 4px solid #c08a2e;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(2, 48, 71, .22);
  padding: 12px 14px;
  outline: none;
}
.tour-card__step {
  margin: 0 0 4px;
  font-size: var(--t-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #787266;
}
.tour-card__title { text-transform: none; letter-spacing: 0; font-weight: 600; }
.tour-card__text {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.55;
  color: #3b3527;
}
/* Said out loud when the control is not on this page, instead of an arrow into space. */
.tour-card__note {
  margin: 6px 0 0;
  font-size: var(--t-micro);
  color: #6b6350;
  font-style: italic;
}
.tour-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.tour-btn {
  font-family: inherit;
  font-size: var(--t-small);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #023047;
  cursor: pointer;
}
.tour-btn:hover { border-color: #8aa1ab; }
.tour-btn:focus-visible { outline: 2px solid #fb8500; outline-offset: 2px; }
.tour-btn--next, .tour-btn--go {
  background: #023047;
  border-color: #023047;
  color: #fdfaf1;
  font-weight: 600;
}
.tour-btn--next:hover, .tour-btn--go:hover { background: #04507a; border-color: #04507a; }
/* The way out is always visible and never the loudest thing on the card. */
.tour-btn--quit {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: #6b6350;
  text-decoration: underline;
}

/* The spotlight. A ring plus a lift, so it reads as "this one" against a live page. */
.tour-spotlight {
  outline: 3px solid #fb8500 !important;
  outline-offset: 3px;
  border-radius: 6px;
  scroll-margin-top: 90px;        /* clear the sticky banner when scrolled to */
  animation: tour-pulse 1.6s ease-out 2;
}
@keyframes tour-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 133, 0, .45); }
  100% { box-shadow: 0 0 0 14px rgba(251, 133, 0, 0); }
}

/* ★ MOTION IS AN ACCESSIBILITY SETTING, NOT A TASTE ONE. ★ A pulsing ring is exactly the
   kind of thing that hurts with a vestibular disorder, so it stops entirely — the ring
   itself stays, because that is the information. */
@media (prefers-reduced-motion: reduce) {
  .tour-spotlight { animation: none; }
}

/* On a phone the card is the full width of the screen and sits above the thumb, and the
   buttons wrap rather than shrinking below the tap-target floor. */
@media (max-width: 480px) {
  .tour-card { left: 8px; right: 8px; bottom: 8px; width: auto; transform: none; }
  .tour-btn { padding: 8px 14px; }
  .tour-btn--quit { margin-left: 0; }
}
