/* /tour walkthrough. Page-scoped on purpose: styles-v3.css stays shared and
   untouched, so no cache-bust churn on other pages. Reuses the v3 tokens and
   the shared mock components (hero-app, ui-inbox, ai-card, collab, fchip).
   Progressive enhancement contract: without tour.js the page reads as a
   linear illustrated story (all chapters visible, controls hidden); tour.js
   adds .tour-enhanced to the shell, which collapses chapters to one at a
   time and reveals the controls. */

/* ---------- hero ---------- */
.tour-hero{background:var(--band-blue);padding:clamp(56px,8vw,104px) 0;text-align:center}
.tour-hero h1{font-size:clamp(2.1rem,4.6vw,3.3rem);font-weight:700;color:var(--ink);max-width:22ch;margin:0 auto}
.tour-hero .lead{color:var(--band-blue-ink);max-width:58ch;margin:16px auto 26px}
.tour-hero .cta-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.tour-honesty{margin:18px auto 0;font-size:.875rem;color:var(--band-blue-ink);opacity:.85;max-width:64ch}

/* ---------- shell + rail ---------- */
#walkthrough{scroll-margin-top:70px}
.tour-shell{display:grid;grid-template-columns:288px minmax(0,1fr);gap:36px;align-items:start;scroll-margin-top:86px}
.tour-rail{position:sticky;top:88px;display:flex;flex-direction:column;gap:6px}
.tr-item{display:block;text-decoration:none;color:var(--ink);border:1px solid transparent;border-radius:var(--radius-md);padding:10px 14px;transition:background .15s ease,border-color .15s ease}
.tr-item:hover{background:var(--surface-sunken)}
.tr-item .t{display:block;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-subtle)}
.tr-item .l{display:block;font-size:.9rem;font-weight:600;line-height:1.35}
.tr-item.is-active{background:var(--surface-sunken);border-color:var(--border)}
.tr-item.is-active .t{color:var(--accent-ink)}

/* ---------- steps ---------- */
.tour-step{margin:0 0 72px}
.tour-step:last-of-type{margin-bottom:0}
.ts-time{display:inline-block;font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-muted);background:var(--surface-2);border-radius:999px;padding:4px 12px}
.ts-head h2{margin:12px 0 10px}
.ts-head p{max-width:62ch}
.ts-scene{margin:26px 0 4px}
.ts-fact .fchip{margin-top:12px}

/* enhanced mode: one chapter at a time */
.tour-enhanced .tour-step{display:none;margin-bottom:0}
.tour-enhanced .tour-step.is-active{display:block;animation:tour-in .4s var(--ease)}
@keyframes tour-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tour-enhanced .tour-step.is-active{animation:none}}

/* ---------- controls ---------- */
.tour-controls{display:none}
.tour-enhanced .tour-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:30px;border-top:1px solid var(--border-subtle);padding-top:22px}
.tour-count{font-size:.9rem;font-weight:600;color:var(--ink-muted)}
.tour-controls .btn[disabled]{opacity:.4;pointer-events:none}

/* ---------- scene: calendar ---------- */
.tour-cal{display:flex;flex-direction:column;gap:9px;padding:12px 14px}
.tc-slot{display:flex;align-items:center;gap:12px;background:var(--surface-sunken);border-left:3px solid var(--ch-msgr);border-radius:8px;padding:9px 12px}
.tc-slot.new{border-left-color:var(--ch-sms);box-shadow:var(--shadow-sm)}
.tc-when{font-weight:700;font-size:.8rem;min-width:62px}
.tc-what b{display:block;font-size:.84rem;font-weight:600}
.tc-what span{display:block;font-size:.74rem;color:var(--ink-muted)}
.tc-slot .tag{margin-left:auto}

/* ---------- scene: review ---------- */
.tour-review{margin:10px 14px 14px;background:var(--bg);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:14px 16px;box-shadow:var(--shadow-sm)}
.tr-stars{display:flex;gap:2px;margin-bottom:8px}
.tr-stars svg{width:16px;height:16px;fill:var(--accent);stroke:none}
.tour-review blockquote{font-size:.95rem;line-height:1.5;margin:0 0 6px}
.tr-cite{font-size:.76rem;color:var(--ink-muted)}
.tr-reply{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border-subtle);font-size:.78rem;font-weight:600;color:var(--ink-muted)}
.tr-reply .spark{width:14px;height:14px;fill:var(--accent);stroke:none}

/* ---------- scene: broadcast ---------- */
.tour-bcast{max-width:560px;margin:0 auto;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);overflow:hidden}
.tb-top{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:1px solid var(--border-subtle)}
.tb-top svg{width:16px;height:16px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round}
.tb-top b{font-size:.94rem}
.tb-top .tag{margin-left:auto}
.tb-aud{display:flex;align-items:center;gap:10px;padding:12px 16px 4px}
.tb-aud .lab{font-size:.78rem;font-weight:600;color:var(--ink-subtle)}
.tb-aud .chip{font-size:.8rem;font-weight:600;background:var(--surface-sunken);border:1px solid var(--border-subtle);border-radius:999px;padding:4px 12px}
.tb-msg{margin:10px 16px 14px;background:var(--bubble-out);border-radius:14px 14px 14px 4px;padding:12px 14px;font-size:.92rem;line-height:1.5;max-width:46ch}
.tb-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--border-subtle)}
.tb-foot span:first-child{font-size:.76rem;color:var(--ink-muted)}

/* ---------- scene: payments coming soon ---------- */
.tour-pay{position:relative;max-width:560px;margin:0 auto}
.tp-ribbon{position:absolute;top:-11px;right:16px;z-index:2;background:var(--ink);color:#fff;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:5px 13px;border-radius:999px;box-shadow:var(--shadow-sm)}
.tour-pay .hero-app{opacity:.94}

/* ---------- closing strip extras ---------- */
.cta-strip .tour-more{margin:18px 0 0;font-size:.9rem;color:rgba(255,255,255,.75)}
.cta-strip .tour-more a{color:#fff;text-underline-offset:3px}

/* ---------- responsive ---------- */
@media (max-width:920px){
  .tour-shell{display:block}
  .tour-rail{position:static;flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:10px;margin-bottom:20px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .tr-item{flex:0 0 auto;scroll-snap-align:start;border-color:var(--border-subtle)}
  .tr-item .l{font-size:.82rem}
  .tour-step{margin-bottom:56px}
  .tour-enhanced .tour-controls{margin-top:22px;padding-top:18px}
}
