/* Portal click-through demos (/demo/ and /demo/<industry>/), Oct 21, 2026. Built by ops/build_demo_pages.py; behavior in
   /assets/demo.js. Without JavaScript every step shows, one under the other. */
main.lp.demo-page>.tour,main.lp.demo-page>.demo-pick{max-width:none}
.demo-note{margin:0 0 22px;padding:12px 16px;border-radius:14px;background:var(--amber-bg);color:var(--amber-text);font-size:15.5px}
.demo-note b{color:var(--amber-text)}

/* Picker */
.demo-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin:8px 0 28px}
.demo-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--card-line);border-radius:20px;overflow:hidden;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:box-shadow .2s,transform .2s}
.demo-card:hover{color:var(--ink);box-shadow:0 18px 44px -18px rgba(0,49,149,.45);transform:translateY(-2px)}
.demo-card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top left;border-bottom:1px solid var(--line);background:var(--mist)}
.demo-card span{display:block;padding:14px 18px 4px;font-weight:700;font-size:19px;letter-spacing:-.02em}
.demo-card small{display:block;padding:0 18px 18px;color:var(--muted);font-size:15px;line-height:1.45}
.demo-card em{margin-top:auto;padding:0 18px 18px;font-style:normal;font-weight:600;color:var(--royal)}

/* Tour */
.tour{margin:0 0 20px}
.tour-stage{position:relative}
.tour-step{margin:0 0 36px}
.tour-step figcaption{display:flex;flex-direction:column;gap:4px;margin:0 0 14px;max-width:760px}
.tour-num{font-size:14px;font-weight:600;color:var(--royal)}
.tour-step figcaption b{font:700 clamp(22px,2.4vw,30px)/1.15 var(--font-display);letter-spacing:-.025em;color:var(--ink)}
.tour-sub{font-size:16.5px;line-height:1.45;color:var(--muted)}
.shot{position:relative;width:fit-content;max-width:100%;margin:0 auto;border-radius:var(--r-frame);overflow:hidden;box-shadow:var(--shadow-hero);border:1px solid var(--line);background:var(--mist)}
.shot img{width:auto;max-width:100%;height:auto;max-height:calc(100vh - 290px);max-height:calc(100svh - 290px)}
.tour-step figcaption{margin-left:auto;margin-right:auto}
.tour.is-live .tour-step figcaption{max-width:none;align-items:center;text-align:center}
.shot-phone{width:fit-content;margin:0 auto;border-radius:34px;border:10px solid var(--ink);box-shadow:0 30px 60px -30px rgba(0,32,95,.55)}
.spot{position:absolute;border-radius:12px;box-shadow:0 0 0 3px #FFB020,0 0 0 9999px rgba(5,14,36,.28);pointer-events:none;animation:spot-in .5s var(--ease) both}
.spot::after{content:"";position:absolute;inset:-3px;border-radius:12px;box-shadow:0 0 0 3px rgba(255,176,32,.6);animation:spot-pulse 2s ease-out .4s infinite}
.spot-m{display:none}
@media (max-width:640px){.spot-d{display:none}.spot-m{display:block}.shot{border-radius:16px}}
@keyframes spot-in{from{opacity:0;transform:scale(1.03)}to{opacity:1;transform:none}}
@keyframes spot-pulse{0%{opacity:.9;transform:scale(1)}80%,100%{opacity:0;transform:scale(1.025)}}
.tour-end .tour-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:28px 30px;border-radius:24px;background:linear-gradient(160deg,#000814,var(--deep) 60%,var(--royal));color:#DCE7FB}
.tour-end .tour-cta p{flex-basis:100%;margin:6px 0 0;font-size:16px;color:#DCE7FB}
.tour-end .tour-cta a:not(.btn){color:#fff}
.tour-end .tour-cta .btn-secondary{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.8)}
.tour-end .tour-cta .btn-primary{background:#fff;color:var(--royal)}
.tour-try-slot:empty{display:none}
.tour-restart{padding:0;border:0;background:none;color:#fff;font:600 16px/1.4 var(--font-body);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tour-bar{display:none}

/* With JavaScript: one step at a time */
.tour.is-live .tour-step{display:none;margin:0}
.tour.is-live .tour-step.is-on{display:block;animation:step-in .35s var(--ease) both}
.tour.is-live .tour-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 0}
.tour-dots{display:flex;flex-wrap:nowrap;justify-content:center;gap:2px;min-width:0}
.tour-dot{width:24px;height:24px;padding:0;border:0;background:none;cursor:pointer;position:relative}
.tour-dot::before{content:"";position:absolute;left:7px;top:7px;width:10px;height:10px;border-radius:50%;background:var(--card-line);transition:background .2s,transform .2s}
.tour-dot[aria-current="step"]::before{background:var(--royal);transform:scale(1.25)}
.tour-bar .btn{min-width:108px}
.tour-bar .btn[disabled]{opacity:.35;cursor:default}
@keyframes step-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (max-width:640px){
  .tour-step figcaption b{font-size:21px}
  .tour-sub{font-size:15.5px}
  .tour.is-live .tour-bar{position:sticky;bottom:64px;z-index:5;margin:12px -6px 0;padding:8px 6px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 8px 24px -10px rgba(15,27,51,.35)}
  .tour-bar .btn{min-width:80px;padding:0 14px;flex:0 0 auto}
  .tour-dots{display:none}   /* Oct 24, 2026 (conversion P3-6): 14px dots were too small to tap; on phones Back/Next and "Step n of N" do the job */
  .shot img{max-height:calc(100vh - 300px);max-height:calc(100svh - 300px)}
  .tour.is-live .tour-step figcaption{align-items:flex-start;text-align:left}
  .tour-num{display:block}
  .tour-end .tour-cta{padding:22px 18px}
  .tour-end .tour-cta .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){.spot,.spot::after,.tour.is-live .tour-step.is-on{animation:none}}
/* Oct 22, 2026: one-industry demo pages (ops/focus_demo_pages.py) - no menu, just the phone number and the price button */
.site-header:has(.nav-focus) .header-call{display:none}
.nav.nav-focus{display:flex;align-items:center;gap:14px;margin-left:auto}
@media (max-width:1240px){
  .nav.nav-focus{display:flex;position:static;flex-direction:row;align-items:center;gap:10px;padding:0;border:0;box-shadow:none;background:none;max-height:none;overflow:visible}
  .nav.nav-focus a{padding:0;border-top:0;font-size:15px;white-space:nowrap}
  .nav.nav-focus .btn{margin-top:0;width:auto;min-height:44px;font-size:15px;padding:0 14px}
}
@media (max-width:520px){.nav.nav-focus a[href^="tel"]{display:none}}
.site-footer.site-footer-focus{padding:28px var(--gutter) 96px;text-align:center}
/* Oct 24, 2026 (website audit conversion P2-7): each hub card has the 30-day sample portal link under it */
.demo-cell{display:flex;flex-direction:column;gap:8px}
.demo-cell .demo-card{flex:1}
.demo-try{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:600;color:var(--royal);text-decoration:none}
.demo-try:hover{text-decoration:underline;text-underline-offset:3px}
/* Oct 24, 2026 (redesign phase 4): phones get the tall -m screen through <source media>; object-fit keeps the box honest
   (Lighthouse image-aspect-ratio compared the hidden next step against the desktop width/height) */
.shot img{object-fit:contain}
