/* ==========================================================================
   Flick Academy — the guided tour (tour.js): the dimmed page, the spotlight cut around one section and the
   card beside it. Same white card, navy ink and logo orange as the dashboards; Pro wears the gold button.
   ========================================================================== */
.tour-blocker { position: fixed; inset: 0; z-index: 1000; }
/* the spotlight: a see-through box whose enormous shadow is the dimmed rest of the page */
.tour-spot {
  position: fixed; z-index: 1001; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(10, 19, 34, .62), 0 0 0 3px var(--logo-orange) inset;
  transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease, border-radius .3s ease;
}
.tour-card {
  position: fixed; z-index: 1002; width: min(360px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px 22px 18px;
  background: #fff; color: var(--navy); border: 1px solid #dde2ea; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(10, 19, 34, .28); font-family: var(--font-body);
  transition: left .3s ease, top .3s ease;
}
.tour-card.gold { border-color: rgba(251, 176, 24, .6); }
.tour-count { margin: 0 0 6px; font: 800 11px var(--font-heading); letter-spacing: .12em; text-transform: uppercase; color: var(--logo-orange); }
.tour-card.gold .tour-count { color: #e09a0e; }
.tour-card h2 { margin: 0; font: 800 18px/1.25 var(--font-heading); }
.tour-card #tourBody { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: #4a5568; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tour-actions > span { display: flex; align-items: center; gap: 6px; }
.tour-actions button { font-family: var(--font-heading); cursor: pointer; }
.tour-skip, .tour-back { border: 0; background: none; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: #6b7486; }
.tour-skip { margin-left: -10px; }
.tour-skip:hover, .tour-skip:focus-visible, .tour-back:hover, .tour-back:focus-visible { color: var(--navy); background: #f1f3f8; outline: none; }
.tour-card .tour-next { height: 40px; padding: 0 20px; font-size: 14px; }
.tour-card .tour-next:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* phones: the card docks to the bottom of the screen instead of floating beside the section */
.tour-card.docked {
  left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 16px 16px 0 0; border-width: 1px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }

/* dark mode (the dashboards' switch) */
[data-theme="dark"] .tour-card { background: #1c2d4a; color: #fff; border-color: rgba(168, 179, 199, .2); }
[data-theme="dark"] .tour-card.gold { border-color: rgba(251, 176, 24, .45); }
[data-theme="dark"] .tour-card #tourBody, [data-theme="dark"] .tour-skip, [data-theme="dark"] .tour-back { color: #a8b3c7; }
[data-theme="dark"] .tour-skip:hover, [data-theme="dark"] .tour-skip:focus-visible,
[data-theme="dark"] .tour-back:hover, [data-theme="dark"] .tour-back:focus-visible { color: #fff; background: rgba(168, 179, 199, .14); }
[data-theme="dark"] .tour-card .tour-next:focus-visible { outline-color: #fff; }
[data-theme="dark"] .tour-spot { box-shadow: 0 0 0 200vmax rgba(4, 9, 18, .72), 0 0 0 3px var(--logo-orange) inset; }
