/* The demo's tour (js/demo-tour.js): the intro over the app, the spotlight that glides from one real element to the next,
   its card, the end. Theme tokens: a dark club glows, a light salon stays light. */
.demo-bar__tour { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; color: #fff; font-size: 12px; font-weight: 600; }
.demo-bar__tour:hover { background: rgba(255, 255, 255, .12); }

/* ---------- the intro ---------- */
.tour-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--hero-bg, #0f0f10) 72%, transparent);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); opacity: 0; transition: opacity .3s var(--ease); }
.tour-intro.is-open { opacity: 1; }
.tour-intro.is-leaving { opacity: 0; transition-duration: .22s; }
.tour-intro__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 18%, color-mix(in srgb, var(--signal) 40%, transparent), transparent 70%),
    radial-gradient(45% 55% at 12% 90%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); animation: tour-drift 9s ease-in-out infinite alternate; }
@keyframes tour-drift { to { transform: translate3d(-2%, 2%, 0) scale(1.06); } }
.tour-intro__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); width: min(940px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  border-radius: 26px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  transform: translateY(18px) scale(.98); transition: transform .45s var(--ease); }
.tour-intro.is-open .tour-intro__card { transform: none; }
.tour-intro__art { position: relative; min-height: 100%; background: var(--surface); overflow: hidden; }
.tour-intro__art img { width: 100%; height: 100%; object-fit: cover; animation: tour-zoom 14s ease-out both; }
@keyframes tour-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.tour-intro__body { display: grid; gap: 16px; align-content: center; padding: 40px 38px; }
.tour-intro__kicker { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.tour-intro__live { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: tour-live 1.8s ease-out infinite; }
@keyframes tour-live { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tour-intro__title { font: 750 clamp(28px, 4vw, 40px)/1.08 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.tour-intro__points { display: grid; gap: 10px; }
.tour-intro__point { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; opacity: 0; transform: translateY(8px);
  animation: tour-in .5s var(--ease) forwards; animation-delay: calc(.35s + var(--i, 0) * .14s); }
@keyframes tour-in { to { opacity: 1; transform: none; } }
.tour-intro__tick { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.tour-intro__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.tour-intro__go { min-height: 50px; padding: 0 22px; font-size: 15px; box-shadow: 0 12px 30px -12px var(--accent); }
.tour-intro__go .ic { transition: transform .2s; }
.tour-intro__go:hover .ic { transform: scale(1.2); }

/* ---------- the spotlight ---------- */
.tour { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.tour__block { position: absolute; inset: 0; pointer-events: auto; cursor: default; }
.tour__spot { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 16px; opacity: 0;
  box-shadow: 0 0 0 200vmax rgba(6, 6, 12, .64); transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .3s; }
.tour.is-on .tour__spot { opacity: 1; }
.tour__spot::after { content: ""; position: absolute; inset: -4px; border-radius: 20px; border: 2px solid var(--signal); animation: tour-ring 1.8s ease-out infinite; }
@keyframes tour-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.045); } }
.tour.is-leaving { opacity: 0; transition: opacity .25s; }
.tour__card { position: absolute; top: 0; left: 0; width: min(360px, calc(100vw - 24px)); padding: 16px 16px 14px; border-radius: 18px; background: var(--bg); color: var(--ink);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); pointer-events: auto; opacity: 0;
  transition: transform .5s var(--ease), opacity .25s; overflow: hidden; }
.tour.is-on .tour__card { opacity: 1; }
.tour__card.is-in .tour__title, .tour__card.is-in .tour__text { animation: tour-in .35s var(--ease) both; }
.tour__card.is-in .tour__text { animation-delay: .06s; }
.tour__bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--surface-2); }
.tour__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--signal)); transition: width .45s var(--ease); }
.tour__head { display: flex; align-items: center; justify-content: space-between; margin: 2px -6px 2px 0; }
.tour__count { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.tour__title { font: 700 18px/1.25 var(--font-display); letter-spacing: -.015em; }
.tour__text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tour__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tour__acts [data-action="next"] { min-width: 120px; }
.tour__card.is-sheet { top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); transform: none !important; }

/* ---------- the end ---------- */
.tour-final { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(6, 6, 12, .55); opacity: 0; transition: opacity .25s; }
.tour-final.is-open { opacity: 1; }
.tour-final.is-leaving { opacity: 0; }
.tour-final__card { display: grid; gap: 10px; justify-items: center; width: min(440px, 100%); padding: 30px 26px 24px; border-radius: 24px; background: var(--bg); color: var(--ink); text-align: center;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .65); animation: tour-pop .45s var(--ease) both; }
@keyframes tour-pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.tour-final__badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--signal)); color: #fff; box-shadow: 0 14px 30px -12px var(--accent); }
.tour-final__badge .ic { width: 26px; height: 26px; }
.tour-final__title { font: 750 24px/1.15 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.tour-final__acts { display: grid; gap: 8px; width: 100%; margin-top: 8px; }

@media (max-width: 760px) {
  .tour-intro { align-items: end; padding: 0; }
  .tour-intro__card { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 94dvh; }
  .tour-intro__art { height: 180px; min-height: 0; }
  .tour-intro__body { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); gap: 12px; }
  .tour-intro__acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-intro__glow, .tour-intro__art img, .tour__spot::after, .tour-intro__live { animation: none; }
  .tour__spot, .tour__card { transition: none; }
  .tour-intro__point { animation-duration: .01s; animation-delay: 0s; }
}

/* a phone: the demo bar in one line — its words shortened, the tour and the order buttons whole */
@media (max-width: 600px) {
  .demo-bar:has(.demo-bar__tour:not([hidden])) { flex-wrap: nowrap; gap: 8px; padding: 6px 10px; }
  .demo-bar:has(.demo-bar__tour:not([hidden])) > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
  .demo-bar__tour, .demo-bar__cta { flex: none; white-space: nowrap; }
}

/* the two ways: short (the main button) and full (with how many steps), «I'll look myself» under them */
.tour-intro__full { min-height: 50px; padding: 0 18px; text-align: left; }
.tour-intro__full > span { display: grid; line-height: 1.15; }
.tour-intro__full small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.tour-intro__skip { justify-self: start; margin-top: -6px; }
.tour__where { flex: 1; min-width: 0; margin: 0 8px; overflow: hidden; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.tour__where::before { content: "· "; }
.tour-final__acts [data-action="other"] { justify-self: center; }

/* «Ещё»: the overview's card */
.tour-card { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, var(--accent-soft), var(--bg) 70%); }
.tour-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.tour-card__body { display: grid; gap: 6px; min-width: 0; }
.tour-card__body b { font: 650 16px var(--font-display); }
.tour-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
