/* Guided tour: a stage that plays the platform like a video */
*{box-sizing:border-box}
body.tour-body{margin:0;min-height:100vh;background:#06101f;color:#eaf0f8;font-family:"Atkinson Hyperlegible","Segoe UI",sans-serif}
.tour-top{display:flex;justify-content:space-between;align-items:center;padding:12px clamp(14px,3vw,32px)}
.tour-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font:700 1.05rem "Saira",sans-serif}
.tour-brand img{border-radius:50%;box-shadow:0 0 0 2px #fff}.tour-brand b{color:#8fc0ff}
.tour-close{color:#b4c2d6;text-decoration:none;padding:8px 14px;border:1px solid #22355a;border-radius:999px}
.tour-close:hover{color:#fff;border-color:#4a6a9a}
.tour-stage{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-areas:"screen chapters" "caption chapters";gap:18px 22px;width:min(1400px,96vw,calc(62vh * 16 / 9 + 242px));margin:0 auto;padding-bottom:30px}
.tour-screen{grid-area:screen;border-radius:16px;overflow:hidden;background:#0b1f3a;box-shadow:0 30px 80px rgba(0,0,0,.55);border:1px solid #1c3358}
.tour-chrome{display:flex;align-items:center;gap:14px;padding:9px 14px;background:#0f2445;border-bottom:1px solid #1c3358}
.tour-chrome .dots{display:flex;gap:6px}.tour-chrome .dots i{width:11px;height:11px;border-radius:50%;background:#2d4a78}
.tour-chrome .dots i:nth-child(1){background:#c8202b}.tour-chrome .dots i:nth-child(2){background:#e3a300}.tour-chrome .dots i:nth-child(3){background:#1e8e5a}
.tour-url{flex:1;max-width:560px;padding:5px 14px;border-radius:999px;background:#08182f;color:#9fb3cf;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tour-frame-wrap{position:relative;overflow:hidden;background:#030915}
.tour-frame-wrap iframe{position:absolute;left:0;top:0;width:1280px;height:720px;border:0;transform-origin:0 0;background:#030915}
.tour-veil{position:absolute;inset:0;cursor:default}
.tour-caption{grid-area:caption;padding:4px 4px 0;max-width:900px}
.tour-chapter{margin:0;color:#e3a300;font:600 .95rem "Saira",sans-serif}
.tour-caption h1{margin:4px 0 8px;font:700 clamp(1.5rem,2.6vw,2.2rem)/1.15 "Saira",sans-serif;color:#fff}
.tour-caption p[data-text]{margin:0;font-size:clamp(1.02rem,1.5vw,1.2rem);line-height:1.6;color:#c9d5e6;max-width:72ch;min-height:3.2em}
.tour-progress{height:4px;margin:16px 0 14px;border-radius:4px;background:#1a2d4d;overflow:hidden}
.tour-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f5f7fa,#e3a300,#c8202b,#3d8bff)}
.tour-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tour-controls button{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #2a4370;background:#0f2445;color:#eaf0f8;font:700 .95rem "Atkinson Hyperlegible",sans-serif;cursor:pointer}
.tour-controls button:hover{border-color:#5a7cb0}
.tour-controls .play{background:#1366d6;border-color:#1366d6;min-width:150px}
.tour-controls .voice[aria-pressed="true"]{background:#e3a300;border-color:#e3a300;color:#1a1200}
.tour-controls button:focus-visible,.tour-chapters button:focus-visible{outline:3px solid #e3a300;outline-offset:2px}
.tour-count{margin-left:auto;color:#8496b0;font-size:.9rem}
.tour-chapters{grid-area:chapters;display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:16px}
.tour-chapters button{text-align:left;padding:10px 14px;border-radius:10px;border:0;background:transparent;color:#9fb3cf;font:600 .95rem "Atkinson Hyperlegible",sans-serif;cursor:pointer;position:relative}
.tour-chapters button:hover{background:#0f2445;color:#fff}
.tour-chapters button[aria-current="true"]{background:#fff;color:#0b1f3a}
.tour-chapters button[aria-current="true"]::before{content:"";position:absolute;left:-8px;top:9px;bottom:9px;width:4px;border-radius:4px;background:#e3a300}
.tour-codebox{position:fixed;right:18px;bottom:18px;z-index:5;max-width:320px;padding:16px;border-radius:16px;background:#fff;color:#10233f;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.tour-codebox p{margin:0 0 8px;font-weight:700}
.tour-codebox form{display:flex;gap:6px}.tour-codebox input{flex:1;min-width:0;padding:10px;border-radius:10px;border:1px solid #c4d0dd;font:1rem inherit;text-transform:uppercase}
.tour-codebox button{padding:10px 12px;border-radius:10px;border:0;background:#1366d6;color:#fff;font-weight:700;cursor:pointer}
body.is-end .tour-caption h1::after{content:"";display:block;width:96px;height:8px;margin-top:10px;background:radial-gradient(circle,#f5f7fa 0 3px,transparent 3.5px) 0 50%/24px 8px,radial-gradient(circle,#e3a300 0 3px,transparent 3.5px) 6px 50%/24px 8px,radial-gradient(circle,#c8202b 0 3px,transparent 3.5px) 12px 50%/24px 8px,radial-gradient(circle,#3d8bff 0 3px,transparent 3.5px) 18px 50%/24px 8px}
[hidden]{display:none!important}
@media (max-width:900px){
  .tour-stage{grid-template-columns:1fr;grid-template-areas:"screen" "caption" "chapters"}
  .tour-chapters{position:static;flex-direction:row;flex-wrap:wrap}
  .tour-chapters button{padding:8px 12px;font-size:.88rem}
  .tour-codebox{left:12px;right:12px;max-width:none}
}
@media (prefers-reduced-motion:reduce){.tour-progress i{transition:none}}

.tour-endcard{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:20px;
  background:radial-gradient(circle at 50% 40%,#12305a,#06101f 70%);opacity:0;pointer-events:none;transition:opacity .9s ease .6s}
body.is-end .tour-endcard{opacity:1}
.tour-endcard img{border-radius:50%;box-shadow:0 0 0 3px #fff,0 0 50px rgba(61,139,255,.6);margin-bottom:10px}
.te-big{margin:0;font:800 clamp(1.6rem,4vw,3.2rem)/1.1 "Saira",sans-serif;color:#fff}
.te-small{margin:0;color:#e3a300;font:600 clamp(1rem,1.8vw,1.35rem) "Saira",sans-serif}
.te-contact{margin:14px 0 0;color:#b4c2d6;font-size:clamp(.85rem,1.3vw,1.05rem);line-height:1.6}
