/* An illustrated, local-only tour. All sizes inside the window follow its width. */
.landing-demo { margin:0; min-width:0; color:var(--deep); container-type:inline-size; }
.demo-window { overflow:hidden; border:1px solid color-mix(in srgb,var(--deep) 55%,var(--line)); border-radius:9px; background:var(--paper); box-shadow:5px 6px 0 color-mix(in srgb,var(--deep) 13%,var(--cream)); font:400 2.1cqw/1.4 Helvetica,Arial,sans-serif; user-select:none; pointer-events:none; }
.demo-window-bar { display:flex; align-items:center; justify-content:space-between; gap:2cqw; height:9cqw; padding:0 4cqw; border-bottom:1px solid var(--line); }
.demo-brand { display:flex; align-items:center; gap:1.1cqw; font-size:2.8cqw; font-weight:700; letter-spacing:-.1cqw; }
.demo-brand img { width:3.8cqw; height:3.8cqw; }
.demo-window-dots { display:flex; gap:.8cqw; }
.demo-window-dots i { width:.8cqw; height:.8cqw; border-radius:50%; background:var(--deep); opacity:.45; }
.demo-app-steps { height:10cqw; display:flex; align-items:center; justify-content:center; gap:2cqw; color:var(--muted); font-size:1.85cqw; }
.demo-app-steps>span { display:flex; align-items:center; gap:.8cqw; opacity:.55; }
.demo-app-steps b { font-weight:500; }
.demo-app-steps>i { width:4cqw; height:1px; background:var(--line); }
.demo-app-steps>span[data-active] { color:var(--deep); opacity:1; }
.demo-app-steps>span[data-active] b { font-weight:700; }
.demo-stage { aspect-ratio:620/440; position:relative; overflow:hidden; }
.demo-scene { position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .18s ease; }
.landing-demo[data-scene="upload"] .demo-upload,
.landing-demo[data-scene="treatment"] .demo-treatment,
.landing-demo[data-scene="mouth"] .demo-mouth,
.landing-demo[data-scene="processing"] .demo-processing,
.landing-demo[data-scene="result"] .demo-result { opacity:1; visibility:visible; }
.demo-heading { position:absolute; top:0; left:5%; right:5%; margin:0; text-align:center; color:var(--ink); font-size:3.4cqw; font-weight:600; line-height:1.3; letter-spacing:-.09cqw; }
.demo-primary { position:absolute; bottom:7%; right:7%; display:flex; align-items:center; justify-content:center; gap:3cqw; height:7.2cqw; padding:0 2.5cqw; color:#fff; background:var(--deep); border:1px solid var(--deep); border-radius:.9cqw; font-size:2.2cqw; font-weight:600; white-space:nowrap; }
.demo-primary b { font-size:2.9cqw; font-weight:400; }
.demo-dropzone { position:absolute; left:20%; top:16%; width:60%; height:50%; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:1.3cqw; border:1.5px dashed color-mix(in srgb,var(--deep) 65%,var(--line)); border-radius:1.8cqw; background:color-mix(in srgb,var(--deep) 4%,var(--paper)); }
.demo-dropzone strong { font-weight:500; font-size:2.8cqw; color:var(--ink); }
.demo-dropzone>span { color:var(--muted); font-size:2cqw; }
.demo-upload-icon { width:8cqw; height:8cqw; fill:none; stroke:currentColor; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }
.demo-photo-options { position:absolute; top:70%; left:20%; right:20%; display:flex; justify-content:center; gap:3cqw; color:var(--muted); font-size:1.9cqw; }
.demo-upload-next { opacity:.45; }
.demo-uploaded { position:absolute; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; background:var(--paper); border-radius:inherit; }
.demo-uploaded svg { width:25cqw; height:25cqw; }
.demo-uploaded>span { color:var(--muted); font-size:1.9cqw; }
.demo-uploaded b { color:var(--deep); margin-left:1cqw; }
.landing-demo[data-uploaded] .demo-uploaded { display:flex; }
.landing-demo[data-uploaded] .demo-dropzone { border-style:solid; }
.landing-demo[data-uploaded] .demo-upload-next { opacity:1; }
.demo-file { position:absolute; top:16%; left:5%; width:24%; padding:1cqw 1cqw 1.4cqw; border:1px solid var(--deep); border-radius:1cqw; background:var(--paper); transform:rotate(-7deg); box-shadow:1cqw 1.4cqw 2.4cqw #173b5915; text-align:center; display:none; }
.demo-file svg { display:block; width:100%; aspect-ratio:1; }
.demo-file span { color:var(--muted); font-size:1.9cqw; }
.landing-demo[data-scene="upload"]:not([data-uploaded]) .demo-file { display:block; }
.demo-treatment-photo { position:absolute; top:23%; left:5%; width:27%; text-align:center; }
.demo-treatment-photo svg { display:block; width:100%; aspect-ratio:1; border:1px solid var(--line); border-radius:1cqw; }
.demo-treatment-photo span { display:block; margin-top:1.3cqw; color:var(--muted); font-size:1.8cqw; }
.demo-treatment-grid { position:absolute; top:18%; left:36%; width:59%; height:55%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); gap:1.5cqw; }
.demo-treatment-grid>span { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6cqw; border:1px solid var(--line); border-radius:1cqw; color:var(--muted); font-size:1.95cqw; }
.demo-treatment-grid i { color:var(--deep); font-size:3.3cqw; line-height:1; font-style:normal; }
.demo-whitening b { position:absolute; top:.7cqw; right:1cqw; color:var(--deep); opacity:0; }
.landing-demo[data-treatment-selected] .demo-whitening { border-color:var(--deep); background:color-mix(in srgb,var(--deep) 9%,var(--paper)); color:var(--ink); }
.landing-demo[data-treatment-selected] .demo-whitening b { opacity:1; }
.demo-mouth-photo { position:absolute; left:29%; top:12%; width:42%; aspect-ratio:1; overflow:hidden; border:1px solid var(--line); border-radius:1cqw; background:color-mix(in srgb,var(--deep) 3%,var(--paper)); }
.demo-mouth-photo>svg { display:block; width:100%; height:100%; }
.demo-selection { position:absolute; left:34%; top:54%; width:32%; height:14%; border:1.5px solid var(--deep); background:color-mix(in srgb,var(--deep) 13%,transparent); transform:scale(0); transform-origin:top left; }
.demo-selection i { position:absolute; width:.75cqw; height:.75cqw; border:1px solid var(--deep); background:#fff; }
.demo-selection i:nth-child(1) { top:-.4cqw; left:-.4cqw; }.demo-selection i:nth-child(2) { top:-.4cqw; right:-.4cqw; }
.demo-selection i:nth-child(3) { bottom:-.4cqw; left:-.4cqw; }.demo-selection i:nth-child(4) { bottom:-.4cqw; right:-.4cqw; }
.demo-mouth-hint { position:absolute; top:73%; left:3%; right:3%; margin:0; text-align:center; color:var(--muted); font-size:1.9cqw; }
.demo-loader { position:absolute; width:16cqw; height:16cqw; left:calc(50% - 8cqw); top:17%; }
.demo-loader svg { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:currentColor; stroke-linecap:round; }
.demo-loader-ring { stroke-width:2; stroke-dasharray:200 76; }
.demo-loader-smile { stroke-width:4; }
.demo-processing .demo-heading { top:45%; font-size:3.5cqw; }
.demo-process-hint { position:absolute; top:54%; left:5%; right:5%; margin:0; text-align:center; color:var(--muted); font-size:2.1cqw; line-height:1.6; }
.demo-process-track { position:absolute; top:73%; left:30%; width:40%; height:.8cqw; border-radius:1cqw; background:var(--line); overflow:hidden; }
.demo-process-track>span { display:block; height:100%; width:100%; background:var(--deep); transform-origin:left; transform:scaleX(0); }
.demo-comparison { position:absolute; top:13%; left:13%; width:74%; border:1px solid var(--line); border-radius:.5cqw; padding:1.3cqw; background:#fff; box-shadow:.6cqw .6cqw 0 color-mix(in srgb,var(--deep) 8%,var(--paper)); }
.demo-comparison-photos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3.4205%; }
.demo-comparison-photos>div { position:relative; min-width:0; }
.demo-comparison-photos>div>span { position:absolute; top:1cqw; left:1cqw; font-size:2cqw; line-height:1.2; font-weight:700; text-transform:uppercase; }
.demo-comparison-photos small { font-size:1.55cqw; }
.demo-comparison-photos svg { display:block; width:100%; aspect-ratio:1; }
.demo-comparison-footer { display:flex; justify-content:center; align-items:center; gap:2cqw; padding:1cqw 0; color:#173b59; }
.demo-comparison-footer>svg { width:9.5cqw; height:9.5cqw; color:var(--deep); }
.demo-comparison-footer rect { fill:color-mix(in srgb,currentColor 9%,white); }
.demo-comparison-footer path { fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.demo-comparison-footer>div { display:flex; flex-direction:column; gap:.2cqw; font-size:1.7cqw; line-height:1.35; }
.demo-comparison-footer strong { font-size:2.1cqw; }
.demo-comparison-footer small { margin-top:.4cqw; font-size:1.35cqw; }
.demo-result-actions { position:absolute; bottom:4%; left:13%; right:13%; display:flex; justify-content:center; gap:2cqw; }
.demo-result-actions .demo-primary { position:static; }
.demo-print-button { display:flex; align-items:center; justify-content:center; gap:1.3cqw; height:7.2cqw; padding:0 3cqw; border:1px solid var(--line); border-radius:.9cqw; font-size:2.2cqw; color:var(--muted); }
.demo-print-button svg { width:2.7cqw; height:2.7cqw; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linejoin:round; }
.demo-cursor { display:none; position:absolute; left:10%; top:45%; width:5cqw; height:6cqw; pointer-events:none; filter:drop-shadow(.3cqw .4cqw .3cqw #173b5920); }
.landing-demo[data-ready]:not([data-scene="processing"]):not([data-scene="result"]) .demo-cursor { display:block; }
.demo-cursor>svg { position:relative; display:block; width:100%; height:100%; fill:#173b59; stroke:#fff; stroke-width:1.8; stroke-linejoin:round; }
.demo-cursor-click { position:absolute; width:6cqw; height:6cqw; top:-2.6cqw; left:-2.6cqw; border:1px solid var(--deep); border-radius:50%; opacity:0; }
.demo-controls { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; padding-top:9px; border-top:1px solid var(--line); }
.demo-chapters,.demo-playback { display:flex; gap:3px; }
.demo-controls button { border:0; border-radius:5px; background:transparent; min-height:36px; padding:7px 10px; color:var(--muted); font:500 11px/1.2 Helvetica,Arial,sans-serif; cursor:pointer; }
.demo-controls button[aria-pressed="true"],.demo-controls button:hover { color:var(--deep); background:color-mix(in srgb,var(--deep) 8%,var(--paper)); }
.demo-controls button:focus-visible { outline:2px solid var(--deep); outline-offset:2px; }
.demo-playback button { width:36px; display:grid; place-items:center; }
.demo-playback svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.demo-playback .demo-play-icon { fill:currentColor; stroke:none; }
.landing-demo[data-playing] .demo-play-icon,.landing-demo:not([data-playing]) .demo-pause-icon { display:none; }
.demo-accessible { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:680px) { .landing-demo { width:min(480px,100%); margin:10px auto 0; }.demo-controls button { min-height:44px; }.demo-playback button { width:38px; } }
@media(prefers-reduced-motion:reduce) { .demo-scene { transition:none; } }
