
/* VOICE everyday tool, calm and sure: one task per screen, a homeowner on a phone
   IDEA a roofer's tablet takeoff: the roof photo is the worksheet, a slim sheet of instructions beside it
   PICTURE the homeowner's own roof, full bleed, with big red handles they drag onto the corners
   COLOUR RoofPrices Cool Slate: slate #192E3E, mist #EDF3F7, brand red #C6102F for what to touch
   TYPE Inter 800 for titles and the price, Inter 400/600 for text
   LAYOUT laptop: photo left, 420px instruction panel right; phone: photo on top, sheet below, action bar pinned */
:root{color-scheme:light;--bg:light-dark(#edf3f7,#0e1a24);--panel:light-dark(#ffffff,#132331);--ink:light-dark(#192e3e,#e8eef3);--body:light-dark(#405363,#b9c7d2);--line:light-dark(#d5e1e8,#29404f);--mist:light-dark(#edf3f7,#1a2e3d);--red:#c6102f;--redh:#a50d27;--ok:light-dark(#17694a,#59c493)}
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;overflow:hidden}
button,input{font:inherit;color:inherit}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


.top{height:60px;display:flex;align-items:center;gap:14px;padding:0 max(16px,env(safe-area-inset-left));background:var(--panel);border-bottom:1px solid var(--line)}
.top img{height:30px;width:auto;flex:none}
.stage-name{flex:1;font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dots{display:flex;gap:6px;align-items:center}
.dots i{width:28px;height:6px;border-radius:3px;background:var(--line)}
.dots i.on{background:var(--red)}
.dots i.done{background:color-mix(in srgb,var(--red) 45%,var(--line))}
.exit{min-height:44px;padding:0 12px;border:0;background:none;font-weight:600;color:var(--body);cursor:pointer;border-radius:10px}
.exit:hover{background:var(--mist)}
@media(max-width:600px){.dots i{width:16px}.top img{height:24px}.exit span{display:none}}


.app{height:calc(100% - 60px);display:grid;grid-template-columns:minmax(0,1fr) 420px}
.app.nows{grid-template-columns:minmax(0,1fr)}
#ws{position:relative;overflow:hidden;background:#0c1928;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.app.nows #ws{display:none}
#stage{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
#photo{display:block;pointer-events:none;-webkit-user-drag:none}
#ov{position:absolute;left:0;top:0;overflow:visible}
#ov text{font:600 15px Inter,sans-serif;paint-order:stroke;stroke:#0c1928;stroke-width:4px;fill:#fff;pointer-events:none}
.hint{position:absolute;left:12px;right:12px;top:12px;display:flex;justify-content:center;pointer-events:none}
.hint span{background:rgba(12,25,40,.86);color:#fff;font-size:14px;font-weight:600;padding:8px 14px;border-radius:999px;max-width:520px;text-align:center}
.zoom{position:absolute;right:12px;top:56px;display:flex;flex-direction:column;gap:6px}
.chip{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);min-height:44px;padding:0 18px;border-radius:999px;border:0;background:#fff;color:#a50d27;font-weight:700;box-shadow:0 2px 10px rgba(0,0,0,.3);cursor:pointer}
.zoom button{width:44px;height:44px;border-radius:12px;border:0;background:rgba(255,255,255,.94);color:#192e3e;font-size:20px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.zoom button:focus-visible,.exit:focus-visible{outline:3px solid #98cfff;outline-offset:2px}
#loupe{position:fixed;width:140px;height:140px;border-radius:50%;border:3px solid #fff;box-shadow:0 6px 24px rgba(0,0,0,.45);pointer-events:none;display:none;z-index:9;background:#0c1928}


#panel{display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--line);height:100%}
#content{flex:1;overflow:auto;padding:24px 24px 12px}
.app.nows #content{width:min(680px,100%);margin:0 auto;padding-top:clamp(20px,5vh,56px)}
h1{font-size:clamp(24px,3vw,32px);line-height:1.12;letter-spacing:-.02em;margin:0 0 10px;font-weight:800;text-wrap:balance}
p{margin:0 0 14px;color:var(--body)}
.lead{font-size:17px}
.small{font-size:14px}
#bar{display:flex;gap:10px;padding:12px 24px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel)}
.app.nows #bar{width:100%;justify-content:center}
.app.nows #bar>*{max-width:330px}
.btn{min-height:52px;padding:0 20px;border-radius:12px;border:0;font-weight:700;font-size:16px;cursor:pointer;flex:1}
.primary{background:var(--red);color:#fff}
.primary:hover{background:var(--redh)}
.primary:disabled{background:var(--line);color:var(--body);cursor:not-allowed}
.ghost{background:var(--mist);color:var(--ink);flex:0 0 auto;min-width:96px}
.btn:focus-visible,.card:focus-visible,.link:focus-visible,.step button:focus-visible{outline:3px solid #2b74c7;outline-offset:2px}
.link{background:none;border:0;padding:10px 0;min-height:44px;color:var(--red);font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.note{display:flex;gap:10px;align-items:flex-start;background:var(--mist);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--body);margin:0 0 14px}
.warn{background:#fdf1dc;color:#7a4700}
.fig img{width:100%;height:auto;display:block;border-radius:12px;background:#fff}
.fig figcaption{font-size:13px;color:var(--body);margin-top:6px}
.fig{margin:0 0 16px}
label.f{display:block;font-weight:600;font-size:15px;margin:0 0 6px}
.input{width:100%;min-height:52px;border:1.5px solid var(--line);border-radius:12px;padding:0 14px;font-size:18px;background:var(--panel)}
.input:focus{outline:3px solid #2b74c7;border-color:#2b74c7}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.readout{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--line);padding:12px 0 0;margin:6px 0 14px;font-size:15px}
.readout b{font-size:22px;font-weight:800;white-space:nowrap}
.flag{display:inline-block;font-size:12px;font-weight:700;color:var(--body);background:var(--mist);border-radius:6px;padding:2px 8px;margin-bottom:12px}


.cards{display:grid;gap:12px;margin:0 0 16px}
.card{display:flex;gap:14px;align-items:center;text-align:left;width:100%;min-height:76px;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--panel);cursor:pointer}
.card:hover{border-color:#9db3c4}
.card[aria-pressed=true]{border-color:var(--red);box-shadow:inset 0 0 0 1.5px var(--red)}
.card b{display:block;font-size:16px}
.card small{display:block;color:var(--body);font-size:14px;line-height:1.35}
.card .ic{flex:none;width:48px;height:48px;border-radius:12px;background:var(--mist);display:grid;place-items:center;font-size:22px;color:var(--ink)}
.card img{flex:none;width:96px;height:64px;object-fit:contain;background:#fff;border-radius:8px}
.pitches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.pc{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;min-height:104px;border:1.5px solid var(--line);border-radius:14px;background:var(--panel);cursor:pointer;font-weight:700}
.pc small{font-weight:500;color:var(--body);font-size:13px}
.pc[aria-pressed=true]{border-color:var(--red);box-shadow:inset 0 0 0 1.5px var(--red)}
.pc svg{width:78px;height:40px}
.counter{display:grid;grid-template-columns:84px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.counter img{width:84px;height:56px;object-fit:contain;background:#fff;border-radius:8px}
.counter b{display:block}
.counter small{color:var(--body);font-size:13px;line-height:1.3;display:block}
.step{display:flex;align-items:center;gap:4px}
.step button{width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);background:var(--panel);font-size:20px;font-weight:700;cursor:pointer}
.step output{width:28px;text-align:center;font-weight:800;font-size:18px}
.price{background:#192e3e;color:#fff;border-radius:16px;padding:20px;margin:0 0 14px}
.price span{display:block;color:#c9d6df;font-size:14px}
.price strong{display:block;font-size:clamp(30px,6vw,40px);line-height:1.1;letter-spacing:-.02em;font-weight:800;white-space:nowrap}
.price+.price{background:#24405a}
table{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 14px}
th,td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line)}
td.n,th.n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.secs{display:grid;gap:8px;margin:0 0 14px}
.sec{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:12px;padding:6px 6px 6px 14px;font-size:15px}
.sec .link{padding:6px 10px}
details{margin:0 0 14px;border:1px solid var(--line);border-radius:12px;padding:0 14px}
summary{min-height:48px;display:flex;align-items:center;font-weight:600;cursor:pointer}
@media(max-width:899px){
 .app{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .app.nows{grid-template-rows:minmax(0,1fr)}
 .app{grid-template-rows:minmax(0,1fr) 46svh}
 #panel{border-left:0;border-top:1px solid var(--line);height:100%;min-height:0}
 .app.nows #panel{max-height:none;height:100%}
 #content{padding:16px 16px 8px}
 #bar{padding:10px 16px max(12px,env(safe-area-inset-bottom))}
 h1{font-size:22px;margin-bottom:6px}
 .lead{font-size:16px}
 .ws-fig{display:none}
}
/* Site integration: isolated app, existing data and no floating chat overlay. */
:root{color-scheme:light;--bg:#edf3f7;--panel:#fff;--ink:#192e3e;--body:#405363;--line:#d5e1e8;--mist:#edf3f7;--ok:#17694a}
[hidden]{display:none!important}button,a,input{ -webkit-tap-highlight-color:transparent }
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;height:100dvh}
.top{height:68px;padding-inline:20px;gap:12px}.top img{width:110px;height:48px;object-fit:contain}.app-logo{display:flex;align-items:center;flex:none}
.app{height:calc(100dvh - 68px)}.exit{font-size:14px;white-space:nowrap}.app.nows #content{width:min(780px,100%);padding-top:30px}
#content h1:focus{outline:none}.top .dots{gap:4px}.top .dots i{width:22px}
#panel{min-height:0;overflow:hidden}#content{overscroll-behavior:contain;scrollbar-gutter:stable}#bar{flex:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.address-card{padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--mist);margin:22px 0}.address-card h2{font-size:20px;margin:0 0 12px}.address-card p.small{margin:12px 0 0}.address-entry{display:flex;gap:8px}.address-entry .input{min-width:0;flex:1}.address-entry button{flex:none;min-width:120px}
.address-matches{list-style:none;padding:0;margin:12px 0}.address-matches button{width:100%;min-height:52px;padding:12px;border:1px solid var(--line);background:white;text-align:left;border-radius:10px;cursor:pointer;margin-bottom:6px}.address-matches strong,.address-matches small{display:block}.address-matches small{color:var(--body)}
.building-map{width:100%;height:230px;border:1px solid var(--line);background:#fff;border-radius:12px}.building-shape{fill:#d7e4ed;stroke:#405363;stroke-width:.5;cursor:pointer}.building-shape.is-selected{fill:#f3a4b2;stroke:#c6102f;stroke-width:1}.building-number{font-size:5px;fill:#192e3e;pointer-events:none}.building-options label{display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 4px;border-bottom:1px solid var(--line)}.building-options input{width:22px;height:22px}.building-options strong,.building-options small{display:block}.building-options small{color:var(--body)}#use-buildings{width:100%;margin-top:14px}.address-card .link{margin-right:14px}
.alternative-label{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--body);margin:20px 0 12px}.upload-card{position:relative}.upload-card input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-card:focus-within{outline:3px solid #2b74c7;outline-offset:2px}
.alternatives .card{min-height:68px}.fig img{max-height:210px;object-fit:contain}.ws-fig img{max-height:180px}.fig{margin-top:14px}.sec .link{padding:8px 10px;min-height:44px}.price strong{font-size:clamp(24px,5.5vw,40px);white-space:normal}.price span{margin-bottom:8px}a.card{min-height:80px}
@media(min-width:1100px){.alternatives{grid-template-columns:1fr 1fr}.alternatives .card:last-child{grid-column:1/-1}}
@media(max-width:899px){.app{grid-template-rows:minmax(0,1fr) 46svh}.app.nows{grid-template-rows:minmax(0,1fr)}.app.nows #content{padding-top:24px}.address-card{padding:16px}.app.nows #bar{padding-inline:16px}.counter{grid-template-columns:64px 1fr auto;gap:8px}.counter img{width:64px;height:48px}.counter small{font-size:12px}.counter b{font-size:14px}.step{gap:0}.step output{width:24px}.step button{width:44px}.counter{padding-block:12px}.app.nows .fig img{max-height:180px}.note{font-size:13px}.readout b{font-size:19px}}
@media(max-width:600px){.top{gap:6px;padding-inline:10px}.top img{width:88px;height:44px}.top .stage-name{display:none}.top .dots{flex:1;justify-content:center}.top .dots i{width:12px}.top .exit{padding-inline:6px;font-size:12px}.address-entry{flex-direction:column}.address-entry button{width:100%}.pitches{gap:8px}.pc{padding:8px 4px;min-height:90px}.pc svg{width:65px}.btn{padding-inline:15px}.card{gap:10px;padding:12px}.card img{width:76px}.readout{font-size:14px}.flag{margin-bottom:8px}.counter small{max-width:150px}.price strong{font-size:28px}.small{font-size:13px}#bar{gap:8px}}
@media(max-height:600px) and (min-width:600px){.fig{display:none}.top{height:56px}.app{height:calc(100dvh - 56px)}}
.address-card .small a{display:inline-flex;align-items:center;min-height:44px}#app-status:not(.sr-only){padding:12px 20px;background:#fff2d6;color:#7a4700;margin:0;font-size:14px}
#zfit{padding:0;font-size:12px!important;line-height:1.1}

/* Size first, followed by the photo-guided matching flow. */
body.roof-matching-page{height:auto;min-height:100dvh;overflow:auto}
.roof-matching-page .app.nows{height:auto;min-height:calc(100svh - 100px)}
.roof-matching-page .app.nows #panel{height:auto;overflow:visible;border-left:0}
.roof-matching-page .app.nows #content{width:100%;max-width:none;overflow:visible;padding:32px clamp(20px,3vw,48px)}
.roof-matching-page .app.nows #bar{position:sticky;bottom:0;z-index:2;background:#ffffffed;backdrop-filter:blur(14px);justify-content:flex-end;padding:14px clamp(20px,3vw,48px) max(14px,env(safe-area-inset-bottom))}
.roof-matching-page .app.nows #bar .primary{flex:0 1 330px}
.roof-matching-page .app.nows #bar .ghost{margin-right:auto}
.step-caption{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;color:#a50d27;margin-bottom:10px}
.size-entry{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);gap:clamp(30px,6vw,110px);align-items:center;max-width:1600px;margin:auto}
.size-entry h1{font-size:clamp(28px,3vw,44px);max-width:24ch!important;line-height:1.1;margin-bottom:16px}
.size-copy>.lead{max-width:62ch;margin-bottom:22px}
.size-form{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--mist)}
.size-form h2{font-size:21px;margin:0 0 20px;letter-spacing:-.02em}
.segmented{display:inline-flex;background:#f1f5f8;border:1px solid #cbdbe5;border-radius:10px;padding:4px;gap:3px;max-width:100%;margin:0 0 20px}
.segmented button{cursor:pointer;border:0;border-radius:7px;padding:10px 16px;min-height:44px;background:transparent;font-weight:650;font-size:14px;line-height:1.25;color:#405363}
.segmented button[aria-pressed=true]{background:#192e3e;color:white;box-shadow:0 2px 5px #192e3e1a}
.segmented button:focus-visible,.roof-choice:focus-visible{outline:3px solid #2879c7;outline-offset:3px}
.size-form .segmented{width:100%;background:#dfe8ef}.size-form .segmented button{flex:1}
.size-form>.input{margin-bottom:12px}.size-form .small{line-height:1.5}
.measure-help{font-size:12px;padding-top:14px;border-top:1px solid #cbdbe5;margin:0;line-height:1.55}
.size-feedback{font-size:13px;font-weight:650;color:#17694a;min-height:1.5em;margin:8px 0 14px}
.no-account{margin-top:16px;margin-bottom:0}
.matching-intro{padding:14px 0 16px}.matching-intro>.step-caption{color:var(--body)}
.intro-photos{position:relative;margin:0 0 22px;padding:0 20px 20px 0}
.intro-photos>img{display:block;width:100%;height:auto;border-radius:20px;object-fit:contain;background:#edf3f7;border:1px solid var(--line)}
.intro-inset{position:absolute;width:37%;bottom:0;right:0;transform:rotate(4deg);background:white;border:5px solid white;border-radius:12px;box-shadow:0 8px 24px #192e3e25;overflow:hidden}
.intro-inset img{width:100%;height:auto;display:block}.matching-intro h2{font-size:clamp(22px,2.1vw,30px);line-height:1.17;letter-spacing:-.025em;margin:0 0 12px;max-width:25ch}
.matching-intro p{font-size:15px;max-width:60ch}.intro-pills{display:flex;flex-wrap:wrap;gap:8px}.intro-pills span{font-size:12px;padding:7px 11px;background:#edf3f7;border-radius:99px;font-weight:650}
.match-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}.match-heading p{margin:0;max-width:70ch}.match-heading .segmented{flex:none}
.roof-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1680px;margin:0 auto 18px}
.roof-choice{position:relative;display:flex;flex-direction:column;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:15px;cursor:pointer;overflow:hidden;padding:0;transition:box-shadow .18s,border-color .18s,transform .18s}
.roof-choice:hover{border-color:#8aa1b1;box-shadow:0 6px 20px #192e3e10;transform:translateY(-2px)}
.roof-choice img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#edf3f7;display:block}
.choice-copy{display:block;padding:14px 16px 16px}.choice-copy b{display:block;font-size:16px;line-height:1.3}.choice-copy small{display:block;font-size:13px;line-height:1.4;color:var(--body);margin-top:5px}
.choice-number{position:absolute;top:10px;left:12px;z-index:1;color:#617788;font-size:11px;font-weight:750}
.choice-check{display:none;position:absolute;top:9px;right:10px;border-radius:50%;width:25px;height:25px;place-items:center;background:#c6102f;color:#fff;font-weight:800}
.roof-choice[aria-pressed=true]{border-color:#c6102f;box-shadow:0 0 0 2px #c6102f}.roof-choice[aria-pressed=true] .choice-check{display:grid}.match-note{margin-bottom:0}
.builder-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(380px,1.2fr);gap:clamp(28px,5vw,84px);max-width:1550px;margin:auto;align-items:start}
.builder-controls>p{max-width:65ch}.builder-controls h1{font-size:clamp(26px,2.5vw,36px)}
.part-inputs{padding:16px;background:#f7f9fb;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
.part-inputs:focus-within{border-color:#bd7180;background:#fcf7f8}.part-inputs h2{font-size:15px;margin:0 0 14px}.part-inputs label.f{font-size:13px}.part-inputs .row2{margin-bottom:0}.part-inputs .small{font-size:12px;margin:10px 0 0}.extra-heading{display:flex;align-items:center;justify-content:space-between}.extra-heading .link{font-size:12px;min-height:32px;padding:0}.part-inputs select{font-size:15px;min-height:48px}.part-inputs>.f{margin-top:12px}
.builder-tools{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 12px}.builder-tools .btn{font-size:13px;padding:10px 14px;flex:1;min-width:140px;min-height:44px}.geometry-error{color:#a50d27;font-size:13px;line-height:1.4;min-height:1em;margin-bottom:4px}
.roof-model-card{position:sticky;top:20px;background:#edf3f7;border:1px solid #cfdee7;border-radius:18px;overflow:hidden;margin:0;padding:20px}
.model-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}.model-heading h2{font-size:22px;line-height:1.15;margin:0}.model-heading .step-caption{font-size:10px;color:#405363;margin:0 0 7px}.model-heading img{width:130px;height:auto;aspect-ratio:3/2;object-fit:contain;border:1px solid #d5e1e8;border-radius:9px}
#roof-plan{margin:14px -8px 0;background:#f7fafc;border-radius:12px;overflow:hidden}#roof-plan svg{display:block;width:100%;height:auto;max-height:430px}
.plan-ridge{fill:none;stroke:#93aab9;stroke-width:1.5;stroke-dasharray:5 4}.plan-number{font:800 17px Inter,system-ui;fill:#192e3e;paint-order:stroke;stroke:#edf3f7;stroke-width:8px;stroke-linejoin:round}.plan-dimension{font:700 15px Inter,system-ui;fill:#a50d27;paint-order:stroke;stroke:#f7fafc;stroke-width:6px;stroke-linejoin:round}.plan-front{font:650 10px Inter,system-ui;fill:#708697;letter-spacing:2px}.plan-feature{font:700 10px Inter,system-ui;fill:white}
.model-readout{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-top:18px;border-top:1px solid #d0dfe8;padding-top:14px;font-size:14px}.model-readout strong{font-size:24px;font-weight:800;letter-spacing:-.02em}.model-note{font-size:12px;line-height:1.5;margin:9px 0 0;max-width:70ch}
.builder-controls .pitches{grid-template-columns:repeat(3,minmax(0,1fr))}.builder-controls .pc{min-height:94px}.builder-controls .counter{grid-template-columns:64px 1fr auto;gap:8px}.builder-controls .counter img{width:64px}.builder-controls .cards:has([data-act=mat]){grid-template-columns:1fr!important}.builder-controls .cards:has([data-act=mat]) .card{flex-direction:row!important;align-items:center!important;padding:14px!important}.builder-controls .cards:has([data-act=mat]) img{width:90px;height:60px}.builder-controls .fig img{max-height:160px}
@media(min-width:1900px){.roof-choices{gap:24px}.roof-choice img{max-height:245px}.size-entry{padding-block:12px}}
@media(max-width:1100px){.size-entry{gap:30px;grid-template-columns:minmax(280px,1fr) minmax(270px,.85fr)}.size-form{padding:20px}.builder-layout{grid-template-columns:minmax(280px,.9fr) minmax(300px,1fr);gap:24px}.roof-choices{gap:12px}.choice-copy{padding:12px}.choice-copy b{font-size:14px}.choice-copy small{font-size:12px}.model-heading h2{font-size:19px}.model-heading img{width:100px}.roof-model-card{padding:16px}.match-heading{display:block}.match-heading .segmented{margin:16px 0 0}}
@media(max-width:899px){.size-entry{grid-template-columns:1fr;gap:28px}.size-entry h1{font-size:30px}.size-copy>.lead{font-size:16px}.matching-intro{max-width:640px;justify-self:center}.intro-photos{margin-bottom:20px}.size-form{padding:18px}.size-form h2{font-size:19px}.size-form .row2{gap:10px}.size-form label.f{font-size:13px}.roof-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.builder-layout{display:flex;flex-direction:column;gap:22px}.builder-controls{width:100%}.roof-model-card{position:static;width:100%;order:-1;max-width:670px;align-self:center}.model-heading h2{font-size:18px}.model-heading img{width:90px}#roof-plan svg{max-height:250px}.model-readout{margin-top:6px;padding-top:10px;font-size:12px}.model-readout strong{font-size:20px}.model-note{font-size:11px}.builder-controls h1{font-size:25px}.builder-controls .counter{grid-template-columns:54px 1fr auto}.builder-controls .counter img{width:54px}.roof-matching-page .app.nows #content{padding:22px 18px}.roof-matching-page .app.nows #bar{padding:10px 16px max(12px,env(safe-area-inset-bottom))}.roof-matching-page .app.nows #bar .primary{flex:1}.roof-matching-page .app.nows #bar .ghost{margin-right:0;min-width:76px}.roof-matching-page .app.nows{min-height:calc(100svh - 88px)}.choice-copy b{font-size:14px}.choice-copy small{font-size:12px}.intro-pills span{font-size:11px}.size-form .segmented button{font-size:13px;padding-inline:9px}}
@media(max-width:380px){.choice-copy{padding:10px}.choice-copy small{font-size:11px}.choice-copy b{font-size:13px}.size-entry h1{font-size:27px}.size-form{padding:14px}.roof-choices{gap:10px}.model-heading h2{font-size:16px}.model-heading .step-caption{font-size:9px}.model-heading img{width:75px}}
@media(prefers-reduced-motion:reduce){.roof-choice:hover{transform:none}}
.table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-x:contain;margin-bottom:14px;border:1px solid var(--line);border-radius:10px}.table-scroll table{margin-bottom:0}.table-scroll:focus-visible{outline:3px solid #2879c7;outline-offset:3px}
@media(max-width:899px){.plan-dimension{font-size:26px;stroke-width:9px}.plan-number{font-size:26px;stroke-width:10px}.plan-front{font-size:18px;letter-spacing:1px}.plan-feature{font-size:16px}}

/* ---------- Plan editor: drag a corner, tap a measurement (Dec 2026) ---------- */
.plan-hint{font-size:13px;line-height:1.45;margin:12px 0 0;color:var(--body)}
#roof-plan.plan-editor{position:relative;margin:12px -8px 0;background:#f7fafc;border-radius:12px;overflow:hidden;user-select:none;-webkit-user-select:none}
#roof-plan.plan-editor svg{display:block;width:100%;height:auto;max-height:none}
.plan-editor .part{fill:#edf3f7;stroke:#708b9d;stroke-width:2}
.plan-editor .part.on{fill:#e3ecf2;stroke:#c6102f;stroke-width:2.5}
.plan-editor .part.pickable{cursor:pointer}
.plan-editor .part.pickable:hover{fill:#e6eef4}
.plan-editor .ridge{fill:none;stroke:#93aab9;stroke-width:1.5;stroke-dasharray:5 4;pointer-events:none}
.plan-editor .part-number{font:800 16px Inter,system-ui,sans-serif;fill:#192e3e;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#edf3f7;stroke-width:6px;stroke-linejoin:round}
.plan-editor .part-tag{font:700 13px Inter,system-ui,sans-serif;fill:#a50d27;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke:#edf3f7;stroke-width:6px;stroke-linejoin:round}
.plan-editor .dim-line{fill:none;stroke:#c6102f;stroke-opacity:.45;stroke-width:1.2;pointer-events:none}
.plan-editor .plan-front{font:650 10px Inter,system-ui,sans-serif;fill:#708697;letter-spacing:2px;text-anchor:middle}
.plan-editor.is-error svg{opacity:.45}
.plan-layer{position:absolute;inset:0;pointer-events:none}
.plan-layer>*{pointer-events:auto}
.dim{position:absolute;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px 0 6px;margin:0;border-radius:999px;border:1.5px solid #e2a9b3;background:#fff;color:#a50d27;font:700 13px/1 Inter,system-ui,sans-serif;white-space:nowrap;box-shadow:0 1px 4px #192e3e1f;cursor:text;font-variant-numeric:tabular-nums}
.dim:not(:has(.k)){padding-left:10px}
.dim .k{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#c6102f;color:#fff;font-size:10px;font-weight:800}
button.dim::after{content:'';position:absolute;inset:-8px -2px}
button.dim:hover{border-color:#c6102f}
.dim.static{pointer-events:none;border-color:#d5e1e8;color:#405363;box-shadow:none}
.dim.static .k{background:#708b9d}
.corner{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;padding:0;margin:0;border-radius:50%;border:3px solid #fff;background:#c6102f;color:#fff;box-shadow:0 2px 8px #192e3e59;cursor:nwse-resize;touch-action:none;display:grid;place-items:center}
.corner[data-pos=tr],.corner[data-pos=bl]{cursor:nesw-resize}
.corner[data-pos=tr] svg,.corner[data-pos=bl] svg{transform:rotate(90deg)}
.corner::after{content:'';position:absolute;inset:-10px;border-radius:50%}
.corner svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.corner:hover,.corner.dragging{transform:translate(-50%,-50%) scale(1.15)}
.corner.dragging{box-shadow:0 0 0 8px #c6102f2e,0 2px 8px #192e3e59}
.corner:focus-visible,.dim:focus-visible{outline:3px solid #2b74c7;outline-offset:2px}
.dim-input{position:absolute;transform:translate(-50%,-50%);width:96px;height:40px;border:2px solid #2b74c7;border-radius:10px;background:#fff;color:#192e3e;font:700 16px Inter,system-ui,sans-serif;text-align:center;padding:0 6px;box-shadow:0 4px 14px #192e3e33;z-index:2}
.dim-input:focus{outline:none}
.dim-input.bad{border-color:#c6102f;background:#fff4f5}
.part-inputs.is-active{border-color:#bd7180;background:#fcf7f8}
@media (prefers-reduced-motion:no-preference){.corner{transition:transform .12s,box-shadow .12s}}

/* Running budget in the action bar */
.live{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;margin-left:auto;padding:0 6px;min-width:0;text-align:right}
.live:empty{display:none}
.live small{font-size:12px;font-weight:650;color:var(--body);line-height:1.25}
.live strong{font-size:19px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;font-variant-numeric:tabular-nums;color:#192e3e}
.roof-matching-page .app.nows #bar:has(.live:not(:empty)) .ghost{margin-right:0}

/* Slope */
.sec-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.sec-tab{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;text-align:left;min-height:52px;padding:8px 14px 8px 10px;border:1.5px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:inherit}
.sec-tab b{grid-row:1/3;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--mist);font-size:13px}
.sec-tab span{font-weight:650;font-size:14px;line-height:1.2}
.sec-tab small{font-size:12px;color:var(--body);line-height:1.2}
.sec-tab[aria-pressed=true]{border-color:var(--red);box-shadow:inset 0 0 0 1.5px var(--red)}
.sec-tab[aria-pressed=true] b{background:var(--red);color:#fff}
.sec-tab:focus-visible,.pc:focus-visible{outline:3px solid #2b74c7;outline-offset:2px}
.pc.measured{border-style:dashed}
.tilt{border:1.5px solid var(--red);border-radius:14px;padding:14px;background:#fff}
.tilt-live{display:flex;gap:14px;align-items:center}
.tilt-live svg{width:110px;flex:none}
.tilt-live output{display:block;font-size:32px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.1}
.tilt-live small{display:block;font-size:13px;color:var(--body);line-height:1.4;margin-top:4px}
.tilt-actions{display:flex;gap:8px;margin-top:12px}

/* Result */
.prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:0 0 14px}
.prices .price{margin:0}
.prices .price+.price{background:#24405a}
.price small{display:block;color:#c9d6df;font-size:13px;margin-top:8px}
.size-line{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 10px}
.size-line>div{border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.size-line span{display:block;font-size:13px;color:var(--body)}
.size-line b{display:block;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.compare,.roofer-checklist{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.compare h2,.roofer-checklist h2{font-size:19px;margin:0 0 8px;letter-spacing:-.01em}
.compare a{color:var(--red);font-weight:700}
.roofer-checklist .ask{margin-top:14px}
.next-steps{margin-top:22px}
.next-steps a.card{text-decoration:none;color:inherit}
.next-steps{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
@media(max-width:899px){
 .builder-layout.plan-after .roof-model-card{order:1}
 .roof-matching-page .app.nows #bar{flex-wrap:wrap}
 .live{order:-1;flex:1 0 100%;flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;padding:0 2px 2px;margin:0;text-align:left}
 .live small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .live strong{font-size:clamp(15px,4.6vw,18px)}
 .roof-model-card{padding:14px}
 #roof-plan.plan-editor{margin:10px -14px 0;border-radius:0}
 .dim{height:28px;font-size:12px;padding:0 8px 0 5px;gap:4px}
 .dim .k{width:17px;height:17px}
 .size-line b{font-size:18px}
}
@media print{
 .site-header,.estimator-benefits,#bar,.estimator-toolbar .exit,.estimator-toolbar .dots,.top .exit,.next-steps,.plan-hint,.step button,.corner{display:none!important}
 body,body.roof-matching-page{background:#fff!important;overflow:visible!important;height:auto!important}
 .estimator-page{padding:0!important}.estimator-frame{border:0!important;box-shadow:none!important}
 .app,.app.nows,.roof-matching-page .app.nows{height:auto!important;min-height:0!important}
 .builder-layout{display:block!important}.roof-model-card{position:static!important;break-inside:avoid;margin-top:16px}
 .price,.prices .price+.price{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
