.roof-demo{color-scheme:light;--navy:#152d40;--navy-deep:#102332;--muted:#596974;--line:#dce3e6;--terra:#b66f50;--paper:#f8f9f8;--white:#fff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--navy);background:var(--paper);font-synthesis:none}
.roof-demo *{box-sizing:border-box}
.roof-demo body{margin:0}
.roof-demo button,.roof-demo input{font:inherit}
.roof-demo button,.roof-demo a,.roof-demo input{-webkit-tap-highlight-color:transparent}
.roof-demo button{cursor:pointer}
.roof-demo button:focus-visible,.roof-demo a:focus-visible,.roof-demo input:focus-visible,.roof-demo #model:focus-visible{outline:3px solid #2d7ea8;outline-offset:4px}
.roof-demo button{min-height:44px;border:1px solid var(--line);border-radius:10px;color:var(--navy);background:#fff;padding:10px 15px;font-size:12px;font-weight:650;transition:background .15s,border-color .15s,color .15s}
.roof-demo button:hover{background:#edf2f4;border-color:#bac9d1}
.roof-demo button[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.roof-demo .site-header{height:88px;max-width:1440px;margin:auto;padding:0 5%;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}
.roof-demo .wordmark{font-size:32px;letter-spacing:-1.7px;font-weight:850;color:var(--navy);text-decoration:none}
.roof-demo .wordmark-dot{color:var(--terra)}
.roof-demo .header-caption{font-size:10px;font-weight:750;letter-spacing:1.5px;border-left:1px solid #c9d2d6;padding-left:22px}
.roof-demo .preview-tag{margin-left:auto;font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:30px;padding:8px 12px}
.roof-demo main{max-width:1440px;padding:0 5%;margin:auto}
.roof-demo .intro{display:flex;align-items:flex-end;justify-content:space-between;gap:36px;padding:38px 0 30px}
.roof-demo .eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;margin:0 0 12px;color:var(--terra)}
.roof-demo h1{font-size:clamp(32px,3.8vw,54px);font-weight:650;line-height:1.08;letter-spacing:-2px;margin:0}
.roof-demo .intro-copy{font-size:14px;line-height:1.65;max-width:350px;color:var(--muted);margin:0 0 2px}
.roof-demo{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 15px 45px #132d4008}
.roof-demo .model-stage{height:530px;position:relative;background:radial-gradient(ellipse at 50% 48%,#f8fafb 0%,#eef3f5 64%,#e8eef1 100%);overflow:hidden}
.roof-demo .stage-header{position:absolute;inset:20px 24px auto;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;z-index:2}
.roof-demo .model-badge{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:650;background:#fffffff0;border:1px solid #dde4e8;border-radius:25px;padding:9px 12px}
.roof-demo .status-dot{width:6px;height:6px;background:var(--terra);border-radius:50%;flex:none}
.roof-demo .illustration-tag{font-size:9px;letter-spacing:1.3px;color:#5b6b75;font-weight:650}
.roof-demo #model{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y pinch-zoom;cursor:grab;overflow:hidden}
.roof-demo #model:active{cursor:grabbing}
.roof-demo #model canvas{display:block;width:100%;height:100%;touch-action:pan-y pinch-zoom}
.roof-demo .initial-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:65px 60px 80px}
.roof-demo #model canvas~.initial-fallback,.roof-demo #model:has(canvas) .initial-fallback{display:none}
.roof-demo .model-toolbar{position:absolute;bottom:18px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:3}
.roof-demo .toolbar-group{display:flex;gap:6px;padding:5px;background:#ffffffd9;border:1px solid #e1e6e8;border-radius:14px;backdrop-filter:blur(10px)}
.roof-demo .toolbar-group button{border-color:transparent;background:transparent}
.roof-demo .toolbar-group button:hover{background:#e9eff2}
.roof-demo .toolbar-group button[aria-pressed="true"]{background:var(--navy);color:#fff}
.roof-demo .icon-button{width:44px;min-width:44px;padding:8px;font-size:21px;line-height:1;display:flex;align-items:center;justify-content:center}
.roof-demo .icon-button svg{width:18px;height:18px}
.roof-demo .cover-panel{border-top:1px solid var(--line);padding:25px 30px 18px}
.roof-demo .phase-summary{display:flex;justify-content:space-between;align-items:center;gap:24px}
.roof-demo .phase-copy .eyebrow{margin-bottom:7px;font-size:9px}
.roof-demo h2{font-size:24px;letter-spacing:-.6px;font-weight:650;margin:0 0 8px}
.roof-demo #cover-description{font-size:13px;line-height:1.6;max-width:700px;min-height:21px;color:var(--muted);margin:0}
.roof-demo .progress-readout{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:75px}
.roof-demo .progress-readout span:first-child{font-size:32px;font-weight:550;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.roof-demo .progress-readout span:last-child{font-size:8px;letter-spacing:1.4px;color:var(--muted);font-weight:700}
.roof-demo .slider-heading{margin-top:25px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.roof-demo .slider-heading label{font-size:12px;font-weight:750}
.roof-demo .slider-heading label span{display:inline-block;margin-right:6px;font-size:19px;vertical-align:-1px;color:var(--terra)}
.roof-demo .scrub-note{font-size:11px;color:var(--muted)}
.roof-demo .range-wrap{padding:2px 0}
.roof-demo #cover-progress{--progress:0%;display:block;appearance:none;-webkit-appearance:none;width:100%;height:48px;margin:3px 0;background:transparent;cursor:ew-resize;touch-action:pan-y}
.roof-demo #cover-progress::-webkit-slider-runnable-track{height:6px;border-radius:10px;background:linear-gradient(to right,#152d40 0%,#c4d0d6 57%,#c68d70 100%)}
.roof-demo #cover-progress::-moz-range-track{height:6px;border-radius:10px;background:linear-gradient(to right,#152d40 0%,#c4d0d6 57%,#c68d70 100%)}
.roof-demo #cover-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:44px;width:44px;margin-top:-19px;border:7px solid #fff;border-radius:50%;background:var(--navy);box-shadow:0 1px 9px #152d4030;cursor:ew-resize}
.roof-demo #cover-progress::-moz-range-thumb{height:30px;width:30px;border:7px solid #fff;border-radius:50%;background:var(--navy);box-shadow:0 1px 9px #152d4030;cursor:ew-resize}
.roof-demo .phase-buttons{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:8px}
.roof-demo .phase-buttons button{font-size:11px;min-height:44px;border:0;border-radius:8px;padding:8px 12px;background:transparent;color:var(--muted)}
.roof-demo .phase-buttons button span{font-size:9px;margin-right:5px;opacity:.65}
.roof-demo .phase-buttons button[aria-pressed="true"]{background:#eef2f4;color:var(--navy)}
.roof-demo .phase-buttons button:hover{background:#edf2f4}
.roof-demo .cover-status{font-size:11px;color:var(--muted);margin:13px 0 0;padding-top:13px;border-top:1px solid #edf0f1;min-height:29px}
.roof-demo .model-note{padding:18px 2px 28px;display:flex;justify-content:space-between;gap:30px;color:#60707a;font-size:10px;line-height:1.65}
.roof-demo .model-note p{margin:0;max-width:450px}
.roof-demo .model-note .disclaimer{max-width:600px;font-size:10px;color:#64717a}
.roof-demo .model-note span{display:block}
@media (min-width:1500px){.roof-demo .model-stage{height:590px}}
@media (max-width:800px){.roof-demo .site-header{height:72px;padding:0 5%;gap:14px}
.roof-demo .wordmark{font-size:28px}
.roof-demo .header-caption{font-size:8px;letter-spacing:1px;padding-left:14px}
.roof-demo .preview-tag{display:none}
.roof-demo .intro{align-items:flex-start;flex-direction:column;gap:16px;padding:28px 0 24px}
.roof-demo h1{letter-spacing:-1.3px}
.roof-demo .intro-copy{max-width:530px;font-size:13px;line-height:1.55}
.roof-demo .model-stage{height:470px}
.roof-demo .stage-header{inset:16px 16px auto}
.roof-demo .model-toolbar{left:14px;right:14px;bottom:14px}
.roof-demo .cover-panel{padding:22px}
.roof-demo .model-note{flex-direction:column;gap:10px}
.roof-demo .model-note p,.roof-demo .model-note .disclaimer{max-width:100%}
.roof-demo .illustration-tag{font-size:8px;letter-spacing:.8px}
.roof-demo .scrub-note{display:none}}
@media (max-width:500px){.roof-demo main{padding:0 4%}
.roof-demo .site-header{padding:0 4%}
.roof-demo .intro{padding-top:25px}
.roof-demo .eyebrow{font-size:9px;margin-bottom:9px}
.roof-demo h1{font-size:34px;letter-spacing:-1.3px}
.roof-demo{border-radius:16px}
.roof-demo .model-stage{height:460px}
.roof-demo .stage-header{align-items:flex-start;gap:8px;inset:14px 12px auto}
.roof-demo .model-badge{font-size:10px;padding:8px 10px}
.roof-demo .illustration-tag{max-width:98px;text-align:right;font-size:7px;line-height:1.5;margin-top:6px}
.roof-demo .model-toolbar{flex-wrap:wrap;justify-content:center;gap:7px;left:8px;right:8px;bottom:10px}
.roof-demo .toolbar-group{padding:3px;gap:2px;border-radius:12px}
.roof-demo .toolbar-group button{font-size:10px;padding:8px 10px}
.roof-demo .toolbar-group .icon-button{font-size:20px;width:44px;padding:8px}
.roof-demo .view-controls{gap:0}
.roof-demo .cover-panel{padding:19px 16px 15px}
.roof-demo .phase-summary{gap:15px;align-items:flex-start}
.roof-demo h2{font-size:22px}
.roof-demo #cover-description{font-size:12px;line-height:1.65}
.roof-demo .progress-readout{min-width:56px}
.roof-demo .progress-readout span:first-child{font-size:26px}
.roof-demo .progress-readout span:last-child{font-size:7px;letter-spacing:1px}
.roof-demo .slider-heading{margin-top:19px}
.roof-demo .slider-heading label{font-size:11px}
.roof-demo .phase-buttons{gap:2px}
.roof-demo .phase-buttons button{padding:8px 5px;font-size:10px}
.roof-demo .phase-buttons button span{font-size:8px;margin-right:3px}
.roof-demo .initial-fallback{padding:65px 12px 100px}
.roof-demo .model-note{font-size:10px;padding:15px 2px 24px}
.roof-demo .cover-status{font-size:10px;line-height:1.5}
.roof-demo .model-note .disclaimer{font-size:10px}}
@media (prefers-reduced-motion:reduce){.roof-demo *,.roof-demo *::before,.roof-demo *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.roof-demo{min-width:0;align-self:center;line-height:1.4;overflow:hidden}.roof-demo .model-stage{height:460px}.roof-demo .model-note{padding:14px 18px;background:#f8f9f8}.roof-demo .model-note p{font-size:10px;line-height:1.65;color:#53636d}.roof-demo .cover-panel{background:white}.roof-demo .eyebrow{color:#805035}.roof-demo .model-toolbar{flex-wrap:wrap;justify-content:center}.roof-demo .illustration-tag{color:#52616a}.roof-demo button{text-transform:none;letter-spacing:normal}.roof-demo .model-note{display:block}.roof-demo .model-note p+p{margin-top:8px}@media(max-width:500px){.roof-demo .model-stage{height:430px}.roof-demo .stage-header{position:relative;inset:auto;padding:12px;min-height:55px}.roof-demo #model{top:55px;height:280px}.roof-demo .model-toolbar{bottom:10px}.roof-demo .cover-panel{padding:16px 12px}.roof-demo h2{font-size:21px}.roof-demo .progress-readout{min-width:48px}}
/* Reserve independent space for captions and controls at every card width. */
.roof-demo #model{top:55px;bottom:100px;height:auto}.roof-demo .stage-header{inset:12px 12px auto}.roof-demo .model-toolbar{left:8px;right:8px;bottom:10px;gap:6px}.roof-demo .toolbar-group{padding:3px;gap:2px}.roof-demo .toolbar-group button{padding:8px 10px}.roof-demo .model-note{border:0;margin:0}.roof-demo .model-note span{letter-spacing:normal;text-transform:none}@media(max-width:500px){.roof-demo .stage-header{inset:auto}.roof-demo #model{top:55px;bottom:100px;height:auto}}
.roof-demo #motion{width:auto;min-width:82px;font-size:11px;line-height:1.2;white-space:nowrap}
.roof-demo #model{bottom:130px}@media(max-width:500px){.roof-demo .model-stage{height:460px}}

/* Shared component headings must remain readable inside the dark homepage. */
.roof-demo h2{color:var(--navy)}
.roof-demo .model-note span{color:inherit;font-size:inherit}
.roof-demo #model{top:80px}
.roof-demo #cover-progress{border:0;padding:0;border-radius:0;box-shadow:none}
.roof-showcase{padding:70px 0;background:#101e2b}
.roof-showcase .roof-showcase-intro{max-width:720px;margin:0 auto 28px;text-align:center}
.roof-showcase .roof-showcase-intro p{color:#c5d1d9;line-height:1.6}
.roof-showcase .roof-demo{max-width:1100px;margin:0 auto}
@media(max-width:500px){.roof-showcase{padding:44px 0}.roof-showcase>.container{padding:0 12px}}

/* Keep replay next to the slider without crowding narrow cards. */
.roof-demo .slider-heading{flex-wrap:wrap;gap:10px}
.roof-demo .slider-heading label{flex:1 1 160px}
.roof-demo #cover-play{flex:none;min-width:105px;min-height:44px}
.roof-demo .slider-heading .scrub-note{flex-basis:100%}
