/* The first-login tour (fusion--tour): a welcome card, then a highlighted part of the page with a
   card beside it. Learning-page colours: oxblood button, cream lines. */
.tour-layer {
  --tour-brand: #3F2021;
  --tour-black: #222222;
  --tour-cream: #E6E0D5;
  --tour-muted: #696153;
  position: fixed;
  inset: 0;
  z-index: 100050; /* above the site header (100000) and the help button */
  font-family: "DM Sans", sans-serif;
}
.tour-layer--welcome { background: rgba(20, 18, 16, .45); display: grid; place-items: center; padding: 16px; }

.tour-welcome { width: 440px; max-width: 100%; background: #fff; color: var(--tour-black); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.tour-welcome-head { background: var(--tour-brand); color: #fff; padding: 22px 24px 18px; }
.tour-welcome-eyebrow { margin: 0; font-family: "Maven Pro", "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.tour-welcome-head h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.tour-welcome-body { padding: 18px 24px 20px; font-size: 15px; }
.tour-welcome-body ul { margin: 0 0 18px; padding-left: 18px; display: grid; gap: 6px; }

/* the part being shown: a clear window in the dimmed page */
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(20, 18, 16, .45); outline: 2px solid #fff; pointer-events: none; transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease; }

.tour-card { position: fixed; width: 340px; max-width: calc(100vw - 16px); background: #fff; color: var(--tour-black); border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 14px 36px rgba(0, 0, 0, .25); font-size: 15px; }
.tour-card.is-sheet { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); top: auto; width: auto; max-width: none; }
.tour-step { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tour-muted); }
.tour-title { margin: 4px 0 6px; font-size: 18px; line-height: 1.25; font-weight: 700; }
.tour-body { margin: 0 0 14px; line-height: 1.5; color: #3b3732; }

.tour-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-nav { display: inline-flex; align-items: center; gap: 8px; }
.tour-btn { font: 600 14px "DM Sans", sans-serif; border: 0; border-radius: 999px; padding: 10px 20px; background: var(--tour-brand); color: #fff; cursor: pointer; }
.tour-back { font: 500 14px "DM Sans", sans-serif; border: 1px solid var(--tour-cream); border-radius: 999px; padding: 9px 16px; background: #fff; color: var(--tour-black); cursor: pointer; }
.tour-skip { font: 500 14px "DM Sans", sans-serif; border: 0; background: none; padding: 6px 0; color: var(--tour-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tour-layer button:focus-visible { outline: 2px solid var(--tour-black); outline-offset: 2px; }

/* pointing the way to the next page: the page stays clickable (only the card takes clicks) and the
   link pulses */
.tour-layer--lead { pointer-events: none; }
/* no link to point at: the card alone, in the middle of the dimmed page */
.tour-layer--go { background: rgba(20, 18, 16, .45); }
.tour-card.is-centred { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.tour-layer--lead .tour-card { pointer-events: auto; }
.tour-spot.is-pulse { outline-color: var(--tour-brand); animation: tour-pulse 1.4s ease-out infinite; }
@keyframes tour-pulse {
  0% { outline: 2px solid rgba(63, 32, 33, 1); outline-offset: 0; }
  70% { outline: 2px solid rgba(63, 32, 33, 0); outline-offset: 10px; }
  100% { outline: 2px solid rgba(63, 32, 33, 0); outline-offset: 10px; }
}

@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } .tour-spot.is-pulse { animation: none; outline: 3px solid var(--tour-brand); } }
