:root {
  --navy-950: #050b14;
  --navy-900: #07101f;
  --navy-850: #0b1729;
  --navy-800: #10213a;
  --navy-700: #1a3152;
  --cream: #f7f4ed;
  --white: #ffffff;
  --ink: #101b2b;
  --muted: #617087;
  --line: #dce2e9;
  --soft: #f1f4f7;
  --gold: #f5c451;
  --gold-deep: #dca72c;
  --red: #d93b35;
  --green: #1e9d68;
  --blue: #3e7bdc;
  --shadow: 0 22px 60px rgba(5, 11, 20, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Figtree", system-ui, sans-serif; color: var(--ink); background: var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; background: var(--gold); color: var(--navy-950); padding: 12px 18px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.visualizer-page { min-height: 100vh; background: radial-gradient(circle at 20% -10%, rgba(245,196,81,.15), transparent 35%), var(--cream); }
.v-header { min-height: 86px; padding: 15px max(24px, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy-950); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.v-brand { flex: 0 0 auto; }
.v-brand img { width: min(340px, 44vw); max-height: 58px; object-fit: contain; object-position: left center; }
.v-header__right { display: flex; align-items: center; gap: 26px; }
.v-header__status { display: inline-flex; gap: 8px; align-items: center; color: #cbd5e2; font-size: .86rem; font-weight: 700; }
.v-header__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(30,157,104,.16); }
.v-header__phone { text-decoration: none; color: #cbd5e2; font-size: .85rem; }
.v-header__phone strong { display: block; color: var(--white); font-size: 1.05rem; }

.v-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto 80px; }
.v-intro { padding: 70px 0 36px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 56px; align-items: end; }
.eyebrow { margin: 0 0 8px; color: #9b6d08; font-size: .76rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.v-intro h1 { max-width: 780px; margin: 0; font-family: "Anton", Impact, sans-serif; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .98; letter-spacing: .01em; font-weight: 400; color: var(--navy-950); }
.v-intro h1 span { color: #bd2f2a; }
.v-intro > div > p:last-child { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.v-trust { display: grid; gap: 12px; padding: 22px 24px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.55); }
.v-trust span { position: relative; padding-left: 24px; font-size: .9rem; font-weight: 700; color: var(--navy-800); }
.v-trust span::before { content: "✓"; position: absolute; left: 0; color: var(--green); }

.stepper { display: flex; align-items: center; margin: 0 0 24px; padding: 18px 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: var(--navy-950); color: var(--white); box-shadow: 0 14px 35px rgba(5,11,20,.18); }
.stepper__item { appearance: none; border: 0; background: transparent; color: inherit; display: grid; grid-template-columns: 40px auto; grid-template-rows: 20px 18px; column-gap: 11px; align-items: center; padding: 0; text-align: left; opacity: .45; }
.stepper__item:disabled { cursor: default; }
.stepper__item span { grid-row: 1/3; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-weight: 800; }
.stepper__item b { font-size: .88rem; }
.stepper__item small { color: #9babbd; font-size: .72rem; }
.stepper__item.is-active, .stepper__item.is-complete { opacity: 1; }
.stepper__item.is-active span { background: var(--gold); border-color: var(--gold); color: var(--navy-950); box-shadow: 0 0 0 5px rgba(245,196,81,.12); }
.stepper__item.is-complete span { border-color: var(--green); background: var(--green); color: transparent; position: relative; }
.stepper__item.is-complete span::after { content: "✓"; position: absolute; color: white; }
.stepper__line { height: 1px; flex: 1; min-width: 20px; margin: 0 18px; background: rgba(255,255,255,.16); }

.alert { margin-bottom: 18px; padding: 15px 18px; border: 1px solid #e5b8b6; border-left: 4px solid var(--red); border-radius: 10px; background: #fff4f3; color: #842d29; line-height: 1.45; font-weight: 600; }
.alert.is-success { background: #edf9f4; border-color: #a8dfc8; border-left-color: var(--green); color: #146443; }

.v-card { padding: clamp(24px, 5vw, 56px); border: 1px solid #e3e7eb; border-radius: var(--radius); background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.step-heading { margin-bottom: 38px; }
.step-heading--split { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.step-heading h2 { margin: 0 0 10px; color: var(--navy-950); font-family: "Anton", Impact, sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; font-weight: 400; }
.step-heading > p:last-child, .step-heading > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }

.upload-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; }
.upload-zone { position: relative; min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 40px; border: 2px dashed #b9c3cf; border-radius: 15px; background: linear-gradient(145deg,#f8fafb,#f0f4f7); text-align: center; transition: .2s ease; cursor: pointer; }
.upload-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--gold-deep); background: #fffaf0; transform: translateY(-2px); }
.upload-zone__icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 18px; background: var(--navy-900); color: var(--gold); box-shadow: 0 12px 25px rgba(5,11,20,.18); }
.upload-zone__icon svg { width: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-zone strong { margin-bottom: 7px; font-size: 1.18rem; color: var(--navy-950); }
.upload-zone span { color: var(--muted); }
.upload-zone small { margin-top: 18px; color: #8592a3; }
.photo-preview { position: relative; min-height: 370px; overflow: hidden; border-radius: 15px; background: var(--navy-950); }
.photo-preview > img { width: 100%; height: 370px; object-fit: contain; }
.photo-preview__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; color: white; background: linear-gradient(transparent,rgba(5,11,20,.92)); }
.photo-preview__bar span { display: flex; align-items: center; min-width: 0; }
.photo-preview__bar i { width: 8px; height: 8px; margin-right: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.photo-preview__bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.photo-preview__bar button { border: 0; background: transparent; color: var(--gold); font-weight: 800; }
.photo-tips { padding: 26px; border-radius: 15px; background: var(--navy-900); color: white; }
.photo-tips h3 { margin: 0 0 18px; font-size: 1.1rem; }
.photo-tips ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.photo-tips li { display: flex; gap: 10px; color: #c7d2df; font-size: .88rem; line-height: 1.35; }
.photo-tips li span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: rgba(30,157,104,.13); font-weight: 800; }
.photo-tips li:last-child span { color: #f3716c; background: rgba(217,59,53,.14); }
.photo-tips p { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #aebdcd; font-size: .78rem; line-height: 1.55; }
.address-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: end; margin-top: 24px; padding: 22px; border: 1px solid #cfd8e3; border-radius: 13px; background: linear-gradient(145deg,#f7f9fb,#fff); }
.address-card h3 { margin: 5px 0 7px; color: var(--navy-950); font-size: 1.15rem; }
.address-card > div:first-child > p:last-child { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.address-card .measurement-address { margin: 0; }
.address-first { display: grid; grid-template-columns: minmax(230px,.72fr) minmax(0,1.28fr); gap: 28px; align-items: end; margin: -8px 0 30px; padding: 24px; border: 1px solid #cfd8e3; border-left: 4px solid var(--gold); border-radius: 14px; background: linear-gradient(145deg,#f7f9fb,#fff); }
.address-first__copy h3 { margin: 4px 0 7px; color: var(--navy-950); font-size: 1.2rem; }
.address-first__copy > p:last-child { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.address-first label { color: var(--navy-800); font-size: .76rem; font-weight: 800; }
.address-first input { width: 100%; height: 47px; margin-top: 6px; padding: 0 12px; border: 1px solid #b9c4d0; border-radius: 8px; background: white; color: var(--navy-950); }
.address-first input:focus { border-color: var(--gold-deep); outline: 3px solid rgba(220,167,44,.14); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, .stepper__item:focus-visible { outline: 3px solid rgba(62,123,220,.34); outline-offset: 3px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button--primary { background: var(--gold); color: var(--navy-950); border-color: var(--gold); box-shadow: 0 8px 20px rgba(220,167,44,.22); }
.button--primary:not(:disabled):hover { background: #ffcf5d; }
.button--secondary { border-color: var(--navy-700); background: var(--navy-700); color: white; }
.button--ghost { border-color: #cfd6df; background: white; color: var(--navy-800); }
.button--wide { width: 100%; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.step-actions--end { justify-content: flex-end; }
.step-actions--start { justify-content: flex-start; }

.mini-preview { width: 170px; height: 105px; flex: 0 0 auto; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 7px 20px rgba(5,11,20,.1); }
.mini-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.choice-group { min-width: 0; margin: 0 0 38px; padding: 0; border: 0; }
.choice-group legend { font-size: 1.12rem; color: var(--navy-950); font-weight: 800; }
.choice-group__hint { margin: 5px 0 18px; color: var(--muted); font-size: .84rem; }
.choice-group__key { white-space: nowrap; font-weight: 750; color: var(--navy-700); }
.choice-group__key i { display: inline-block; width: 18px; height: 4px; margin: 0 3px 2px 2px; border-radius: 3px; background: var(--gold-deep); box-shadow: 0 0 6px rgba(220,167,44,.45); }
.area-selection-summary { margin: -6px 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: .8rem; font-weight: 700; line-height: 1.4; }
.area-selection-summary.has-selections { border-color: #e7c76e; background: #fff8e6; color: var(--navy-800); }
.area-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.area-option, .style-option { position: relative; display: flex; flex-direction: column; padding: 18px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; transition: .18s ease; cursor: pointer; }
.area-option:hover, .style-option:hover { border-color: #aab7c7; transform: translateY(-2px); }
.area-option:has(input:checked), .style-option:has(input:checked) { border-color: var(--gold-deep); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--gold-deep), 0 7px 18px rgba(220,167,44,.1); }
.area-option input, .style-option input, .package-card input { position: absolute; opacity: 0; pointer-events: none; }
.area-option::after { content: ""; position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 7px; border-radius: 999px; background: var(--gold); color: var(--navy-950); font-size: .61rem; line-height: 1; font-weight: 900; letter-spacing: .02em; opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.area-option:has(input:checked)::after { content: "✓ Selected"; opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.area-option:focus-within { outline: 3px solid rgba(62,123,220,.34); outline-offset: 3px; }
.area-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.area-option__art { display: block; height: 104px; margin: -7px -5px 13px; overflow: hidden; border: 1px solid #e1e7ee; border-radius: 8px; background: linear-gradient(145deg,#fbfcfd,#eef2f6); }
.area-option__art svg { display: block; width: 100%; height: 100%; }
.area-feature { stroke-linecap: round; stroke-linejoin: round; transition: stroke .16s ease, filter .16s ease; }
.area-diagram[data-active="main-roofline"] { --f-main-roofline-stroke:#E08A00;--f-main-roofline-w:3.4;--f-main-roofline-fill:#FDECCB;--f-main-roofline-glow:url(#lit); }
.area-diagram[data-active="peaks"] { --f-peaks-stroke:#E08A00;--f-peaks-w:3.4;--f-peaks-fill:#FDECCB;--f-peaks-glow:url(#lit); }
.area-diagram[data-active="roof-ridge"] { --f-roof-ridge-stroke:#E08A00;--f-roof-ridge-w:3.4;--f-roof-ridge-fill:#FDECCB;--f-roof-ridge-glow:url(#lit); }
.area-diagram[data-active="dormers"] { --f-dormers-stroke:#E08A00;--f-dormers-w:3.4;--f-dormers-fill:#FDECCB;--f-dormers-glow:url(#lit); }
.area-diagram[data-active="garage"] { --f-garage-stroke:#E08A00;--f-garage-w:3.4;--f-garage-fill:#FDECCB;--f-garage-glow:url(#lit); }
.area-diagram[data-active="windows"] { --f-windows-stroke:#E08A00;--f-windows-w:3.4;--f-windows-fill:#FDECCB;--f-windows-glow:url(#lit); }
.area-diagram[data-active="columns"] { --f-columns-stroke:#E08A00;--f-columns-w:3.4;--f-columns-fill:#FDECCB;--f-columns-glow:url(#lit); }
.area-diagram[data-active="front-door"] { --f-front-door-stroke:#E08A00;--f-front-door-w:3.4;--f-front-door-fill:#FDECCB;--f-front-door-glow:url(#lit); }
.area-diagram[data-active="porch"] { --f-porch-stroke:#E08A00;--f-porch-w:3.4;--f-porch-fill:#FDECCB;--f-porch-glow:url(#lit); }
.area-diagram[data-active="bushes"] { --f-bushes-stroke:#E08A00;--f-bushes-w:3.4;--f-bushes-fill:#FDECCB;--f-bushes-glow:url(#lit); }
.area-diagram[data-active="small-trees"] { --f-small-trees-stroke:#E08A00;--f-small-trees-w:3.4;--f-small-trees-fill:#FDECCB;--f-small-trees-glow:url(#lit); }
.area-diagram[data-active="yard-landscaping"] { --f-bushes-stroke:#E08A00;--f-bushes-w:3.4;--f-bushes-fill:#FDECCB;--f-bushes-glow:url(#lit);--f-small-trees-stroke:#E08A00;--f-small-trees-w:3.4;--f-small-trees-fill:#FDECCB;--f-small-trees-glow:url(#lit); }
.area-option b, .style-option b { color: var(--navy-950); font-size: .91rem; }
.area-option small, .style-option small { margin-top: 5px; color: var(--muted); font-size: .75rem; line-height: 1.25; }
.style-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.style-option { min-height: 120px; justify-content: flex-end; }
.swatches { display: flex; gap: 6px; margin-bottom: auto; padding-bottom: 16px; }
.swatches i { width: 13px; height: 22px; border: 2px solid white; border-radius: 50% 50% 45% 45%; box-shadow: 0 2px 7px rgba(5,11,20,.25); }
.swatches .warm { background: #ffd67e; box-shadow: 0 0 10px #ffd67e; }
.swatches .pure { background: #f8fcff; border-color: #7897b5; box-shadow: inset 0 0 0 1px #fff, 0 0 11px #9ed9ff, 0 2px 7px rgba(5,11,20,.3); }
.swatches .red { background: #df4038; box-shadow: 0 0 10px #e4574f; }
.swatches .green { background: #1da86d; box-shadow: 0 0 10px #34be83; }
.swatches .blue { background: #3779df; box-shadow: 0 0 10px #4d8be9; }
.swatches .amber { background: #f3a837; box-shadow: 0 0 10px #ffbd59; }

.status-badge { padding: 8px 12px; border-radius: 999px; background: #fff4d8; color: #8a620d; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.status-badge.is-ready { background: #e8f7f0; color: #16704b; }
.generation-loading { overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; border-radius: 14px; background: var(--navy-950); color: white; }
.generation-loading__visual { position: relative; min-height: 440px; overflow: hidden; background: #03070d; }
.generation-loading__visual img { width: 100%; height: 100%; min-height: 440px; object-fit: contain; opacity: .64; filter: saturate(.7); }
.scan-line { position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg,transparent,var(--gold),transparent); box-shadow: 0 0 20px var(--gold); animation: scan 3.4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 7%; opacity: .3; } 50% { top: 91%; opacity: 1; } }
.generation-loading__copy { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.generation-loading__copy .spark { color: var(--gold); font-size: 2.2rem; }
.generation-loading__copy h3 { margin: 14px 0 10px; font-size: 1.55rem; }
.generation-loading__copy p { margin: 0 0 24px; color: #bcc9d6; line-height: 1.5; }
.parallel-status { display: flex; gap: 9px; align-items: center; margin: -8px 0 20px; padding: 11px 13px; border: 1px solid rgba(245,196,81,.28); border-radius: 9px; background: rgba(245,196,81,.08); color: #f6d47f; font-size: .8rem; }
.parallel-status span { color: var(--gold); font-size: 1rem; }
.generation-loading__copy small { margin-top: 14px; color: #8495a8; line-height: 1.4; }
.progress-track { height: 7px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.1); }
.progress-track span { display: block; width: 12%; height: 100%; border-radius: inherit; background: var(--gold); transition: width .5s ease; }
.comparison { position: relative; height: min(62vw, 610px); min-height: 420px; overflow: hidden; border-radius: 14px; background: var(--navy-950); user-select: none; }
.comparison__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.comparison__after { position: absolute; inset: 0 auto 0 0; width: var(--split); overflow: hidden; border-right: 2px solid white; }
.comparison__after img { width: calc(100% * 100 / max(1, var(--split-number, 50))); max-width: none; }
.comparison input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; touch-action: pan-y; }
.comparison__handle { position: absolute; z-index: 3; left: var(--split); top: 50%; width: 46px; height: 46px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 3px solid white; border-radius: 50%; background: var(--navy-900); color: var(--gold); box-shadow: 0 5px 20px rgba(0,0,0,.4); font-weight: 800; }
.comparison__label { position: absolute; z-index: 2; top: 18px; padding: 7px 11px; border-radius: 7px; color: white; background: rgba(5,11,20,.78); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.comparison__label--before { right: 18px; }
.comparison__label--after { left: 18px; background: rgba(220,167,44,.9); color: var(--navy-950); }
.design-summary { display: grid; grid-template-columns: 1.4fr .7fr auto; gap: 24px; align-items: center; margin-top: 15px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; }
.design-summary small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 800; }
.design-summary p { margin: 4px 0 0; color: var(--navy-900); font-weight: 700; }

.estimate-notice { display: flex; gap: 16px; align-items: flex-start; margin: -12px 0 30px; padding: 18px 20px; border: 1px solid #f0d58f; border-radius: 11px; background: #fff9e9; }
.estimate-notice > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--gold); color: var(--navy-950); font-size: 1.3rem; }
.estimate-notice b { color: #6e510f; }
.estimate-notice p { margin: 4px 0 0; color: #786b4d; font-size: .87rem; line-height: 1.5; }
.quote-builder { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px 34px; align-items: start; margin: 0 0 42px; padding: clamp(22px,3vw,34px); border: 1px solid #cfd8e3; border-radius: 15px; background: linear-gradient(145deg,#f7f9fb,#fff); }
.quote-builder__copy h3 { margin: 6px 0 10px; font-family: "Anton", Impact, sans-serif; color: var(--navy-950); font-size: clamp(1.65rem,3vw,2.15rem); font-weight: 400; line-height: 1.08; }
.quote-builder__copy > p:last-child { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.quote-builder__controls label { display: block; margin-bottom: 8px; color: var(--navy-800); font-size: .8rem; font-weight: 800; }
.quote-builder__fallbacks { grid-column: 1 / -1; }
.measurement-line { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(72px,auto); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.measurement-line:first-child { padding-top: 0; }
.measurement-line:last-child { border-bottom: 0; padding-bottom: 0; }
.measurement-line div { display: grid; gap: 3px; }
.measurement-line b { color: var(--navy-950); }
.measurement-line small { color: var(--muted); font-size: .75rem; }
.measurement-line > span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.measurement-line > strong { color: var(--navy-950); text-align: right; }
.measurement-empty { margin: 0; color: var(--muted); line-height: 1.5; }
.property-reference { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.property-reference__heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 13px; }
.property-reference__heading h4 { margin: 4px 0 0; color: var(--navy-950); font-size: 1rem; }
.property-reference__heading > p { margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }
.property-reference__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.property-reference__grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.property-reference__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.property-reference__grid figcaption { padding: 8px 10px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.property-reference__fallback { margin: 11px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.quote-builder__controls label span { color: var(--muted); font-weight: 600; }
.measurement-address { display: grid; grid-template-columns: 1fr 78px 104px; gap: 10px; margin-bottom: 12px; }
.measurement-address__street { grid-column: 1 / -1; }
.measurement-address input { width: 100%; height: 46px; margin-top: 6px; padding: 0 12px; border: 1px solid #b9c4d0; border-radius: 8px; background: white; color: var(--navy-950); font: inherit; }
.measurement-address input:focus { border-color: var(--gold-deep); outline: 3px solid rgba(220,167,44,.14); }
.measurement-address input.is-invalid { border-color: #cf4c45; }
.quote-builder__input-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.footage-input { position: relative; }
.footage-input input { width: 100%; height: 50px; padding: 0 48px 0 14px; border: 1px solid #b9c4d0; border-radius: 8px; background: white; color: var(--navy-950); font-size: 1rem; font-weight: 750; }
.footage-input input:focus { border-color: var(--gold-deep); outline: 3px solid rgba(220,167,44,.14); }
.footage-input input.is-invalid { border-color: #cf4c45; }
.footage-input span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: .8rem; font-weight: 800; }
.quote-builder__input-row .button { min-height: 50px; }
.quote-builder__help { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
#measurement-help { color: #5e5e5e; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: normal; }
.guided-fallback { margin-top: 16px; padding: 17px; border: 1px solid #edcf7a; border-radius: 10px; background: #fff9e9; }
.design-review { margin: 0 0 18px; padding: 22px; border-color: #e7c45f; box-shadow: 0 10px 28px rgba(16,33,58,.08); }
.design-review .eyebrow { color: #956700; }
.estimate-notice--review { border-color: #a9d8c4; background: #eef9f4; }
.estimate-notice--review > span { background: #d9f2e7; color: #14704b; }

.guided-fallback .eyebrow { margin: 0 0 4px; font-size: .67rem; }
.guided-fallback h4 { margin: 0 0 6px; color: var(--navy-950); font-size: 1rem; }
.guided-fallback > p:not(.eyebrow) { margin: 0; color: #6f644c; font-size: .78rem; line-height: 1.45; }
.guided-fallback__fields { display: grid; grid-template-columns: minmax(220px,420px); gap: 10px; margin: 14px 0 12px; }
.guided-fallback select { width: 100%; height: 46px; margin-top: 6px; padding: 0 10px; border: 1px solid #b9c4d0; border-radius: 8px; background: white; color: var(--navy-950); font: inherit; }
.guided-fallback select:focus { border-color: var(--gold-deep); outline: 3px solid rgba(220,167,44,.14); }
.guided-fallback select.is-invalid { border-color: #cf4c45; }
.manual-footage { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.manual-footage summary { color: var(--navy-800); cursor: pointer; font-size: .8rem; font-weight: 800; }
.manual-footage[open] summary { margin-bottom: 12px; }
.manual-footage > label { margin-top: 4px; }
.quote-result { grid-column: 1 / -1; padding: 24px; border-radius: 12px; background: var(--navy-950); color: white; text-align: center; }
.quote-result p { margin: 0 0 5px; color: #b8c5d3; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quote-result strong { display: block; color: var(--gold); font-family: "Anton", Impact, sans-serif; font-size: clamp(2.15rem,6vw,3.4rem); font-weight: 400; line-height: 1.05; }
.quote-result span { display: block; margin-top: 7px; color: white; font-size: .88rem; font-weight: 750; }
.quote-result small { display: block; max-width: 700px; margin: 12px auto 0; color: #98a8ba; line-height: 1.45; }
.package-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.package-card { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; transition: .18s ease; }
.package-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(5,11,20,.09); }
.package-card:has(input:checked) { border-color: var(--gold-deep); box-shadow: inset 0 0 0 2px var(--gold), 0 14px 30px rgba(220,167,44,.12); }
.package-card--featured { background: linear-gradient(180deg,#fffaf0,#fff); }
.package-card__flag { position: absolute; top: 0; right: 22px; transform: translateY(-50%); padding: 7px 10px; border-radius: 999px; background: var(--navy-900); color: white; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.package-card__check { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #cbd3dc; border-radius: 50%; color: transparent; }
.package-card:has(input:checked) .package-card__check { background: var(--green); border-color: var(--green); color: white; }
.package-card h3 { margin: 5px 0 12px; font-family: "Anton", Impact, sans-serif; font-size: 2.3rem; font-weight: 400; color: var(--navy-950); }
.package-card__desc { min-height: 66px; margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.package-card ul { list-style: none; padding: 20px 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.package-card li { position: relative; padding-left: 23px; color: var(--navy-800); font-size: .88rem; }
.package-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.package-card > strong { margin-top: auto; padding: 12px; border-radius: 8px; background: var(--soft); color: var(--navy-800); text-align: center; font-size: .85rem; }
.package-card:has(input:checked) > strong { background: var(--gold); color: var(--navy-950); }
.lead-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; margin-top: 46px; padding: clamp(24px,4vw,44px); border-radius: 16px; background: var(--navy-950); color: white; }
.lead-layout__copy h3 { margin: 6px 0 14px; font-family: "Anton", Impact, sans-serif; font-size: 2.25rem; font-weight: 400; }
.lead-layout__copy > p:not(.eyebrow) { color: #b7c4d2; line-height: 1.6; }
.lead-layout__copy ul { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 11px; }
.lead-layout__copy li { position: relative; padding-left: 24px; color: #d4dde6; font-size: .88rem; }
.lead-layout__copy li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.lead-form { display: grid; gap: 15px; }
.lead-form label { display: grid; gap: 7px; color: #dce4ec; font-size: .79rem; font-weight: 700; }
.lead-form input:not([type="checkbox"]), .lead-form textarea { width: 100%; padding: 0 13px; border: 1px solid #384961; border-radius: 8px; background: #101d30; color: white; }
.lead-form input:not([type="checkbox"]) { height: 47px; }
.lead-form textarea { min-height: 96px; padding-top: 12px; padding-bottom: 12px; line-height: 1.45; resize: vertical; }
.lead-form input:not([type="checkbox"]):focus, .lead-form textarea:focus { border-color: var(--gold); outline: 2px solid rgba(245,196,81,.16); }
.lead-form input.is-invalid, .lead-form textarea.is-invalid { border-color: #e65b55; }
.field-optional { color: #8192a6; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row--location { grid-template-columns: 1fr 90px 120px; }
.consent { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; font-weight: 500 !important; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.form-privacy { margin: -4px 0 0; color: #8192a6; text-align: center; font-size: .72rem; }
.lead-success { padding: 58px 30px; border: 1px solid #b5e5d1; border-radius: 15px; background: #f0faf6; text-align: center; }
.lead-success > span { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 1.6rem; }
.lead-success h3 { margin: 0 0 10px; font-family: "Anton", Impact, sans-serif; font-size: 2.4rem; font-weight: 400; }
.lead-success p { margin: 0 auto 25px; max-width: 540px; color: var(--muted); }

.v-footer { padding: 35px 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--navy-950); color: #94a4b7; font-size: .78rem; }
.v-footer p { margin: 0; }
.v-footer a { color: #d2dbe5; }

@media (max-width: 1020px) {
  .area-grid { grid-template-columns: repeat(3,1fr); }
  .style-grid { grid-template-columns: repeat(3,1fr); }
  .stepper__item { grid-template-columns: 34px auto; }
  .stepper__item span { width: 32px; height: 32px; }
  .stepper__line { margin: 0 10px; }
  .upload-layout { grid-template-columns: 1fr; }
  .address-card { grid-template-columns: 1fr; align-items: stretch; }
  .photo-tips { grid-column: 1; }
  .photo-tips ul { grid-template-columns: 1fr 1fr; }
  .generation-loading { grid-template-columns: 1fr; }
  .generation-loading__visual { min-height: 360px; }
  .generation-loading__visual img { min-height: 360px; }
  .lead-layout { grid-template-columns: 1fr; gap: 30px; }
  .quote-builder { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 760px) {
  .v-header { min-height: 70px; padding: 10px 16px; }
  .v-brand img { width: min(260px, 66vw); max-height: 48px; }
  .v-header__status { display: none; }
  .v-header__phone { font-size: 0; }
  .v-header__phone strong { font-size: .82rem; white-space: nowrap; }
  .v-header__phone strong::before { content: "Call "; color: #9dafc0; font-weight: 600; }
  .v-shell { width: min(100% - 20px, 1180px); margin-bottom: 50px; }
  .v-intro { display: block; padding: 42px 8px 26px; }
  .v-intro h1 { font-size: clamp(2.5rem,13vw,4rem); }
  .v-intro > div > p:last-child { margin-top: 17px; font-size: 1rem; }
  .v-trust { display: none; }
  .stepper { padding: 12px 10px; border-radius: 10px; }
  .stepper__item { display: flex; flex-direction: column; gap: 5px; text-align: center; }
  .stepper__item span { width: 30px; height: 30px; font-size: .75rem; }
  .stepper__item b { font-size: .65rem; white-space: nowrap; }
  .stepper__item small { display: none; }
  .stepper__line { margin: -17px 5px 0; min-width: 8px; }
  .v-card { padding: 24px 17px; border-radius: 13px; }
  .step-heading { margin-bottom: 26px; }
  .step-heading--split { align-items: flex-start; }
  .step-heading h2 { font-size: 2.15rem; }
  .mini-preview { width: 86px; height: 66px; }
  .upload-zone { min-height: 310px; padding: 26px 16px; }
  .photo-preview, .photo-preview > img { min-height: 310px; height: 310px; }
  .photo-tips { padding: 22px; }
  .photo-tips ul { grid-template-columns: 1fr; }
  .step-actions { flex-wrap: wrap; }
  .step-actions .button { flex: 1 1 145px; }
  .area-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .area-option { min-height: 175px; padding: 14px 12px; }
  .area-option__art { height: 88px; margin-left: -2px; margin-right: -2px; }
  .area-option small, .style-option small { font-size: 12px; line-height: 1.35; }
  .area-option::after { top: 8px; right: 8px; font-size: .56rem; }
  .style-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .style-option { min-height: 112px; }
  .generation-loading__visual, .generation-loading__visual img { min-height: 290px; }
  .generation-loading__copy { padding: 28px 22px; }
  .comparison { height: 68vw; min-height: 300px; }
  .design-summary { grid-template-columns: 1fr; gap: 14px; }
  .package-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote-builder { padding: 22px 17px; margin-left: -7px; margin-right: -7px; }
  .address-card { padding: 18px 15px; }
  .measurement-line { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .measurement-line > span { grid-column: 1; }
  .measurement-line > strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .property-reference__heading { display: block; }
  .property-reference__heading > p { margin-top: 6px; text-align: left; }
  .property-reference__grid { grid-template-columns: 1fr; }
  .quote-builder__input-row { grid-template-columns: 1fr; }
  .measurement-address { grid-template-columns: 1fr 72px 95px; }
  .guided-fallback__fields { grid-template-columns: 1fr; }
  .quote-builder__input-row .button { width: 100%; }
  .step-actions--sticky-mobile { position: sticky; z-index: 8; bottom: 0; margin: 28px -8px -8px; padding: 11px 8px calc(11px + env(safe-area-inset-bottom)); border: 1px solid rgba(207,216,227,.9); border-radius: 12px 12px 0 0; background: rgba(255,255,255,.96); box-shadow: 0 -10px 25px rgba(5,11,20,.1); backdrop-filter: blur(10px); }
  .step-actions--sticky-mobile #generate-design { flex: 2 1 190px; }
  .package-card { min-height: 0; padding: 24px; }
  .package-card__desc { min-height: 0; }
  .lead-layout { padding: 24px 17px; margin-left: -7px; margin-right: -7px; }
  .form-row, .form-row--location { grid-template-columns: 1fr; }
  .v-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Deterministic photo-layer builder */
.stepper--three .stepper__item { min-width: 170px; }
.analysis-loading { overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; border-radius: 15px; background: var(--navy-950); color: white; }
.analysis-loading__photo { position: relative; min-height: 430px; overflow: hidden; background: #03070d; }
.analysis-loading__photo img { width: 100%; height: 100%; min-height: 430px; object-fit: contain; opacity: .58; filter: saturate(.7) brightness(.72); }
.analysis-loading > div:last-child { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.analysis-loading .spark { color: var(--gold); font-size: 2.3rem; }
.analysis-loading h3 { margin: 15px 0 9px; font-size: 1.5rem; }
.analysis-loading p { margin: 0 0 24px; color: #bdc8d5; line-height: 1.55; }
.analysis-loading small { margin-top: 15px; color: #8797a9; line-height: 1.45; }

.layer-builder { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.55fr); gap: 24px; align-items: start; }
.layer-builder__preview-column { min-width: 0; }
.layer-preview { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #02060b; box-shadow: 0 15px 36px rgba(5,11,20,.22); isolation: isolate; }
.layer-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transition: filter .3s ease; }
.layer-preview.is-dusk img { filter: brightness(.34) saturate(.74) contrast(1.06); }
.layer-svg { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lighting-layer { pointer-events: none; }
.layer-preview__badge { position: absolute; z-index: 3; top: 13px; left: 13px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: rgba(5,11,20,.72); color: white; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; backdrop-filter: blur(8px); }
.daylight-toggle { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; width: max-content; max-width: 100%; margin: 15px 0 0; cursor: pointer; }
.daylight-toggle input { position: absolute; opacity: 0; }
.daylight-toggle > span { position: relative; grid-row: 1 / 3; width: 44px; height: 25px; border-radius: 99px; background: #9ba8b6; transition: background .2s ease; }
.daylight-toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s ease; }
.daylight-toggle input:checked + span { background: var(--navy-700); }
.daylight-toggle input:checked + span::after { transform: translateX(19px); background: var(--gold); }
.daylight-toggle input:focus-visible + span { outline: 3px solid rgba(62,123,220,.34); outline-offset: 3px; }
.daylight-toggle b { color: var(--navy-900); font-size: .82rem; }
.daylight-toggle small { color: var(--muted); font-size: .7rem; }
.mapping-note { display: flex; gap: 9px; margin: 16px 0 0; padding: 13px 15px; border: 1px solid #b9dfcf; border-radius: 9px; background: #eff9f4; color: #436256; font-size: .76rem; line-height: 1.45; }
.mapping-note span { color: var(--green); font-weight: 900; }

.layer-controls { position: sticky; top: 18px; overflow: hidden; border: 1px solid #d8dfe7; border-radius: 14px; background: #f8fafc; box-shadow: 0 12px 28px rgba(5,11,20,.09); }
.detected-heading { display: flex; justify-content: space-between; gap: 15px; align-items: end; padding: 22px 22px 16px; }
.detected-heading h3 { margin: 3px 0 0; color: var(--navy-950); font-size: 1.25rem; }
.detected-heading > span { color: var(--muted); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.detected-options { max-height: min(46vh,500px); overflow: auto; padding: 0 10px; scrollbar-width: thin; }
.detected-option { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid #e1e6eb; background: transparent; cursor: pointer; }
.detected-option:first-child { border-top: 0; }
.detected-option input { position: absolute; opacity: 0; pointer-events: none; }
.detected-option .switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #aab5c1; transition: background .18s ease; }
.detected-option .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(5,11,20,.24); transition: transform .18s ease; }
.detected-option input:checked + .switch { background: var(--green); }
.detected-option input:checked + .switch::after { transform: translateX(16px); }
.detected-option input:focus-visible + .switch { outline: 3px solid rgba(62,123,220,.34); outline-offset: 3px; }
.detected-option__copy { display: grid; gap: 2px; min-width: 0; }
.detected-option__copy b { color: var(--navy-950); font-size: .82rem; }
.detected-option__copy small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.detected-option > strong { color: var(--navy-700); font-size: .73rem; white-space: nowrap; }

.compact-style-group { margin: 14px 14px 0; padding: 14px 8px 8px; border: 1px solid #dce2e9; border-radius: 10px; background: white; }
.compact-style-group legend { padding: 0 6px; color: var(--navy-900); font-size: .76rem; font-weight: 800; }
.compact-style-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.compact-style-grid label { position: relative; display: grid; place-items: center; min-width: 0; padding: 8px 2px 6px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.compact-style-grid label:has(input:checked) { border-color: var(--gold-deep); background: #fff7e4; }
.compact-style-grid input { position: absolute; opacity: 0; }
.compact-style-grid input:focus-visible + span { outline: 3px solid rgba(62,123,220,.34); outline-offset: 2px; }
.compact-style-grid b { margin-top: 5px; color: var(--navy-700); font-size: .61rem; }
.color-dot, .color-pair { height: 20px; display: flex; align-items: center; justify-content: center; }
.color-dot { width: 20px; border: 2px solid white; border-radius: 50%; }
.color-dot--warm { background: #ffd77d; box-shadow: 0 0 10px #ffc95c; }
.color-dot--pure { background: #f7fcff; border-color: #8aa4bd; box-shadow: 0 0 10px #aee1ff; }
.color-pair i { width: 12px; height: 18px; margin-left: -3px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.color-pair i:first-child { margin-left: 0; }
.color-pair .red { color: #ef4038; background: #ef4038; }
.color-pair .green { color: #25b96f; background: #25b96f; }
.color-pair .blue { color: #3985f6; background: #3985f6; }
.color-pair .pure { color: #cceaff; background: #f7fcff; }

.builder-price { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px; padding: 16px; border-radius: 10px; background: var(--navy-950); color: white; }
.builder-price div { min-width: 0; }
.builder-price small { display: block; color: #9babbc; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.builder-price strong { display: block; margin-top: 4px; color: var(--gold); font-family: "Anton", Impact, sans-serif; font-size: 1.55rem; font-weight: 400; line-height: 1.1; }
.builder-price p { margin: 4px 0 0; color: #a8b6c5; font-size: .66rem; line-height: 1.35; }
.mini-spinner { width: 22px; height: 22px; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.layer-controls > .button { width: calc(100% - 28px); margin: 0 14px 14px; }

.analysis-fallback { display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid #9bd4ba; border-radius: 13px; background: #eff9f4; }
.analysis-fallback > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 1.35rem; }
.analysis-fallback h3 { margin: 0 0 5px; color: var(--navy-950); }
.analysis-fallback p { margin: 0; color: #527064; line-height: 1.5; }

.final-plan { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 0; overflow: hidden; border: 1px solid #d7dee6; border-radius: 15px; background: #f7f9fb; }
.final-plan__preview { min-width: 0; padding: 18px; background: var(--navy-950); }
.layer-preview.is-dusk.has-final-comparison > #final-photo { filter: none; }
.final-render-after { position: absolute; z-index: 4; inset: 0; clip-path: inset(0 calc(100% - var(--final-split, 50%)) 0 0); pointer-events: none; }
.final-render-image { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: none !important; }
.final-comparison-ui { position: absolute; z-index: 6; inset: 0; user-select: none; }
.final-comparison-ui::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--final-split, 50%); width: 2px; transform: translateX(-1px); background: white; box-shadow: 0 0 10px rgba(5,11,20,.62); pointer-events: none; }
.final-comparison-ui input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.final-comparison-ui input:focus-visible + .final-comparison-label { outline: 3px solid white; outline-offset: 3px; }
.final-comparison-handle { position: absolute; z-index: 3; left: var(--final-split, 50%); top: 50%; width: 46px; height: 46px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 3px solid white; border-radius: 50%; background: var(--navy-900); color: var(--gold); box-shadow: 0 5px 20px rgba(0,0,0,.45); font-size: 1rem; font-weight: 900; pointer-events: none; }
.final-comparison-label { position: absolute; z-index: 2; bottom: 14px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(5,11,20,.82); color: white; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(7px); pointer-events: none; }
.final-comparison-label--design { left: 14px; background: rgba(153,103,0,.9); }
.final-comparison-label--original { right: 14px; }
.final-render-overlay { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid rgba(245,196,81,.34); border-radius: 10px; background: rgba(5,11,20,.9); color: white; box-shadow: 0 8px 24px rgba(0,0,0,.28); backdrop-filter: blur(9px); }
.final-render-overlay div { display: grid; gap: 2px; min-width: 0; }
.final-render-overlay b { font-size: .78rem; }
.final-render-overlay small { color: #aebdcb; font-size: .67rem; line-height: 1.35; }
.final-render-overlay button { margin-left: auto; flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--gold); border-radius: 7px; background: var(--gold); color: var(--navy-950); font-size: .68rem; font-weight: 800; }
.final-render-overlay.is-complete { z-index: 7; left: 50%; bottom: auto; top: 12px; right: auto; width: auto; padding: 8px 10px; transform: translateX(-50%); border-color: rgba(90,206,152,.4); background: rgba(9,61,42,.88); pointer-events: none; }
.final-render-overlay.is-complete .mini-spinner, .final-render-overlay.is-complete small { display: none; }
.final-render-overlay.is-failed { border-color: rgba(255,255,255,.18); }
.final-render-overlay.is-failed .mini-spinner { display: none; }
.final-render-caption { margin: 11px 2px 0; color: #a8b6c5; font-size: .7rem; line-height: 1.4; }
.visualizer-page.has-render-gate { overflow: hidden; }
.render-gate { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.render-gate__backdrop { position: absolute; inset: 0; background: rgba(2,6,11,.76); backdrop-filter: blur(7px); }
.render-gate__dialog { position: relative; z-index: 1; width: min(920px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(24px,4vw,42px); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: var(--navy-950); color: white; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.render-gate__dialog h3 { margin: 5px 0 10px; font-family: "Anton",Impact,sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 400; line-height: 1.04; }
.render-gate__dialog > div > p:not(.eyebrow) { margin: 0 0 23px; color: #b7c4d2; line-height: 1.55; }
.render-gate__progress { display: flex; gap: 12px; align-items: center; margin: 0 0 28px; padding: 13px 15px; border: 1px solid rgba(245,196,81,.28); border-radius: 10px; background: rgba(245,196,81,.08); }
.render-gate__progress > div { display: grid; gap: 3px; }
.render-gate__progress b { color: #f8e2a6; font-size: .8rem; }
.render-gate__progress small { color: #aab9c8; font-size: .7rem; line-height: 1.35; }
.lead-form--gate { margin-top: 22px; }
.lead-form--gate .form-privacy { color: #8fa0b2; text-align: center; }
.lead-gate-error { margin: 0 0 16px !important; padding: 12px 14px; border: 1px solid rgba(229,91,85,.5); border-radius: 9px; background: rgba(217,59,53,.13); color: #ffd6d4 !important; font-size: .8rem; font-weight: 700; }
.render-gate__address { margin-bottom: 18px !important; color: #f5d98c !important; font-weight: 800; }
.property-edit-form { display: grid; gap: 16px; margin-bottom: 20px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.property-edit-form label { color: #dce4ec; font-size: .76rem; font-weight: 800; }
.property-edit-form input { width: 100%; height: 45px; margin-top: 6px; padding: 0 11px; border: 1px solid #384961; border-radius: 8px; background: #101d30; color: white; }
.property-edit-form input:focus { border-color: var(--gold); outline: 2px solid rgba(245,196,81,.16); }
.property-gate-loading { min-height: 180px; display: flex; gap: 13px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); color: #dce5ee; }
.property-result--gate { margin-top: 0; color: var(--ink); }
.property-gate-error { padding: 22px; border: 1px solid rgba(229,91,85,.5); border-radius: 12px; background: rgba(217,59,53,.12); }
.property-gate-error p { margin: 0 0 16px; color: #ffd6d4; line-height: 1.5; }
.property-gate-error > div { display: flex; flex-wrap: wrap; gap: 10px; }
.final-plan__details { padding: clamp(24px,4vw,38px); }
.final-plan__details h3 { margin: 5px 0 6px; color: var(--navy-950); font-family: "Anton", Impact, sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 400; line-height: 1.05; }
.final-plan__details > p:not(.eyebrow):not(.estimate-disclaimer) { margin: 0 0 18px; color: var(--muted); }
.final-lines { border-top: 1px solid var(--line); }
.final-lines > div { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.final-lines span { display: grid; gap: 2px; }
.final-lines b { color: var(--navy-900); font-size: .8rem; }
.final-lines small { color: var(--muted); font-size: .68rem; }
.final-lines strong { color: var(--navy-900); font-size: .8rem; white-space: nowrap; }
.estimate-disclaimer { margin: 15px 0 0; color: #7e7460; font-size: .68rem; line-height: 1.45; }
.lead-copy h3 { margin: 5px 0 13px; font-family: "Anton", Impact, sans-serif; font-size: 2.35rem; font-weight: 400; }
.lead-copy > p:not(.eyebrow) { color: #b7c4d2; line-height: 1.55; }
.lead-copy ul { list-style: none; padding: 19px 0 0; margin: 19px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 10px; color: #d4dde6; font-size: .84rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

@media (max-width: 1020px) {
  .layer-builder { grid-template-columns: 1fr; }
  .layer-controls { position: static; }
  .detected-options { max-height: none; }
  .analysis-loading { grid-template-columns: 1fr; }
  .analysis-loading__photo, .analysis-loading__photo img { min-height: 330px; }
  .final-plan { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .stepper--three .stepper__item { min-width: 0; }
  .analysis-loading__photo, .analysis-loading__photo img { min-height: 260px; }
  .analysis-loading > div:last-child { padding: 26px 21px; }
  .layer-builder { margin-left: -7px; margin-right: -7px; }
  .layer-preview { border-radius: 10px; }
  .detected-option { grid-template-columns: 38px minmax(0,1fr); }
  .detected-option > strong { grid-column: 2; margin-top: -6px; }
  .compact-style-grid b { display: none; }
  .analysis-fallback { grid-template-columns: 42px 1fr; padding: 19px; }
  .analysis-fallback > span { width: 42px; height: 42px; }
  .analysis-fallback .button { grid-column: 1 / -1; width: 100%; }
  .final-plan { margin-left: -7px; margin-right: -7px; }
  .final-plan__preview { padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Four-step applicable-choice flow */
.stepper--four .stepper__item { min-width: 132px; }
.selection-builder { display: grid; gap: 30px; }
.selection-photo-card { display: grid; grid-template-columns: minmax(250px,.65fr) minmax(280px,1fr); gap: 0; overflow: hidden; border: 1px solid #d8e0e8; border-radius: 15px; background: linear-gradient(145deg,#f5f8fa,#fff); }
.selection-photo-card > img { width: 100%; height: 245px; object-fit: cover; background: var(--navy-950); }
.selection-photo-card > div { display: flex; flex-direction: column; justify-content: center; padding: 30px 34px; }
.selection-photo-card h3 { margin: 3px 0 7px; color: var(--navy-950); font-size: 1.35rem; }
.selection-photo-card p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; }
#selected-count { width: fit-content; margin-top: 17px; padding: 7px 10px; border-radius: 999px; background: var(--navy-950); color: white; font-size: .72rem; font-weight: 800; }
.choice-section { padding-top: 3px; }
.choice-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 15px; }
.choice-section__heading h3 { margin: 3px 0 0; color: var(--navy-950); font-size: 1.32rem; }
.choice-section__heading > p { margin: 0; color: var(--muted); font-size: .82rem; }
.applicable-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.applicable-card { position: relative; min-height: 178px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid #d7dfe7; border-radius: 12px; background: white; box-shadow: 0 6px 16px rgba(5,11,20,.04); cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.applicable-card:hover { transform: translateY(-2px); border-color: #aab7c7; box-shadow: 0 11px 25px rgba(5,11,20,.08); }
.applicable-card.is-selected { border-color: var(--gold-deep); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--gold-deep),0 11px 25px rgba(220,167,44,.1); }
.applicable-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.applicable-card:focus-within { outline: 3px solid rgba(62,123,220,.34); outline-offset: 3px; }
.applicable-card__check { position: absolute; top: 15px; right: 15px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #c8d1db; border-radius: 50%; background: white; color: transparent; font-weight: 900; transition: .18s ease; }
.applicable-card.is-selected .applicable-card__check { border-color: var(--green); background: var(--green); color: white; }
.applicable-card__tag { width: fit-content; padding: 5px 8px; border-radius: 999px; background: #eaf7f1; color: #18734e; font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.applicable-card__copy { display: grid; gap: 6px; margin: 22px 36px 20px 0; }
.applicable-card__copy b { color: var(--navy-950); font-size: 1rem; }
.applicable-card__copy small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.applicable-card > strong { margin-top: auto; color: var(--navy-700); font-size: .75rem; }
.applicable-card.is-selected > strong { color: #18734e; }
.style-card-group { margin: 0; padding: 0; border: 0; }
.style-card-group legend { width: 100%; margin-bottom: 15px; color: var(--navy-950); font-size: 1.32rem; font-weight: 800; }
.style-card-group legend .eyebrow { display: block; margin-bottom: 3px; }
.style-card-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.style-card-grid label { position: relative; min-height: 130px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 17px; border: 1px solid #d7dfe7; border-radius: 11px; background: white; cursor: pointer; transition: .18s ease; }
.style-card-grid label:hover { transform: translateY(-2px); border-color: #aab7c7; }
.style-card-grid label:has(input:checked) { border-color: var(--gold-deep); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--gold-deep); }
.style-card-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.style-card-grid label:focus-within { outline: 3px solid rgba(62,123,220,.34); outline-offset: 3px; }
.style-card-grid .color-dot,.style-card-grid .color-pair { margin-bottom: auto; }
.style-card-grid b { margin-top: 12px; color: var(--navy-950); font-size: .84rem; }
.style-card-grid small { margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.selection-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border-radius: 12px; background: var(--navy-950); color: white; }
.selection-footer p { margin: 0; color: #b8c4d1; font-size: .84rem; line-height: 1.45; }
.render-guide-svg { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; }
.render-guide-svg[hidden] { display: none !important; }
.render-review { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,.65fr); overflow: hidden; border: 1px solid #d6dee6; border-radius: 15px; background: #f7f9fb; }
.render-review__preview { min-width: 0; padding: 18px; background: var(--navy-950); }
.render-review__details { display: flex; flex-direction: column; justify-content: center; padding: clamp(25px,4vw,42px); }
.render-review__details h3 { margin: 5px 0 10px; color: var(--navy-950); font-family: "Anton",Impact,sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 400; line-height: 1.05; }
.render-review__details > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.render-review__details ul { list-style: none; display: grid; gap: 10px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--navy-800); font-size: .82rem; font-weight: 700; }
.render-review__details li::before { content: "✓"; margin-right: 9px; color: var(--green); }
.render-review .layer-preview { min-height: 420px; }
.render-review .layer-preview > #final-photo { z-index: 1; }
.step-actions--split { justify-content: space-between; }
.estimate-plan { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); overflow: hidden; border: 1px solid #d7dee6; border-radius: 15px; background: #f7f9fb; }
.estimate-plan__photo { position: relative; min-height: 430px; padding: 18px; background: var(--navy-950); }
.estimate-plan__photo img { width: 100%; height: 100%; min-height: 394px; object-fit: cover; border-radius: 11px; }
.estimate-plan__photo span { position: absolute; top: 30px; left: 30px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(5,11,20,.8); color: white; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }
.property-verification { margin-bottom: 30px; padding: clamp(22px,4vw,34px); border: 1px solid #d3dce5; border-radius: 15px; background: linear-gradient(145deg,#f7f9fb,#fff); }
.property-verification__intro h3 { margin: 4px 0 7px; color: var(--navy-950); font-size: clamp(1.25rem,2.4vw,1.65rem); }
.property-verification__intro > p:last-child { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.5; }
.property-form { display: flex; align-items: end; gap: 14px; margin-top: 23px; }
.property-form__grid { flex: 1 1 auto; display: grid; grid-template-columns: minmax(170px,1fr) 82px 112px; gap: 11px; }
.property-form__street { grid-column: 1 / -1; }
.property-form label { color: var(--navy-800); font-size: .76rem; font-weight: 800; }
.property-form input { width: 100%; height: 47px; margin-top: 6px; padding: 0 12px; border: 1px solid #b9c4d0; border-radius: 8px; background: white; color: var(--navy-950); }
.property-form input:focus { border-color: var(--gold-deep); outline: 3px solid rgba(220,167,44,.14); }
.property-form .button { flex: 0 0 auto; min-width: 174px; }
.property-result { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); gap: 0; overflow: hidden; margin-top: 24px; border: 1px solid #cbd6e1; border-radius: 13px; background: white; }
.property-map-frame { position: relative; min-height: 330px; overflow: hidden; background: #dce4eb; }
.property-map-frame img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.property-map-pin { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%,-50%); border: 3px solid white; border-radius: 50%; background: rgba(245,196,81,.28); box-shadow: 0 3px 15px rgba(5,11,20,.45),0 0 0 8px rgba(245,196,81,.2); }
.property-map-pin::before,.property-map-pin::after { content: ""; position: absolute; left: 50%; top: 50%; background: white; transform: translate(-50%,-50%); }
.property-map-pin::before { width: 2px; height: 58px; }
.property-map-pin::after { width: 58px; height: 2px; }
.property-map-pin i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%,-50%); border: 2px solid white; border-radius: 50%; background: var(--gold-deep); }
.property-result__details { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.property-result__details h4 { margin: 4px 0 8px; color: var(--navy-950); font-size: 1.15rem; line-height: 1.35; }
.property-result__details > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; }
.property-result__details > small { margin-top: 16px; color: #7d8998; font-size: .68rem; line-height: 1.45; }
.property-result__actions { display: grid; gap: 9px; margin-top: 20px; }
.property-confirmed { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid #a9d9c4; border-radius: 10px; background: #edf9f4; color: #145f42; }
.property-confirmed > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; font-weight: 900; }
.property-confirmed > div { display: grid; gap: 2px; min-width: 0; }
.property-confirmed b { font-size: .82rem; }
.property-confirmed small { overflow: hidden; color: #4e7565; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.property-confirmed button { margin-left: auto; border: 0; background: transparent; color: #145f42; font-size: .75rem; font-weight: 800; text-decoration: underline; }
.property-measurement-note { margin: 0 0 16px; padding: 13px 15px; border: 1px solid #eed28b; border-radius: 9px; background: #fff8e8; color: #75591b; font-size: .78rem; line-height: 1.45; }
.property-measurement-note.is-ready { border-color: #a9d9c4; background: #edf9f4; color: #145f42; }

@media (max-width: 1020px) {
  .stepper--four .stepper__item { min-width: 105px; }
  .applicable-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .style-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .render-review,.estimate-plan { grid-template-columns: 1fr; }
  .property-result { grid-template-columns: 1fr; }
  .property-map-frame,.property-map-frame img { min-height: 360px; }
  .render-review__details { min-height: 280px; }
  .estimate-plan__photo { min-height: 360px; }
  .estimate-plan__photo img { min-height: 324px; }
  .address-first { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 760px) {
  .stepper--four .stepper__item { min-width: 0; }
  .selection-photo-card { grid-template-columns: 1fr; }
  .selection-photo-card > img { height: 210px; }
  .selection-photo-card > div { padding: 24px 21px; }
  .choice-section__heading { display: block; }
  .choice-section__heading > p { margin-top: 7px; }
  .applicable-card-grid { grid-template-columns: 1fr; }
  .applicable-card { min-height: 160px; }
  .style-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .style-card-grid label { min-height: 120px; }
  .selection-footer { align-items: stretch; flex-direction: column; }
  .selection-footer .button { width: 100%; }
  .render-review,.estimate-plan { margin-left: -7px; margin-right: -7px; }
  .render-review__preview { padding: 10px; }
  .render-review .layer-preview { min-height: 280px; }
  .final-comparison-handle { width: 40px; height: 40px; }
  .final-comparison-label { bottom: 10px; padding: 6px 8px; font-size: .6rem; }
  .final-comparison-label--design { left: 10px; }
  .final-comparison-label--original { right: 10px; }
  .render-review__details { min-height: 0; padding: 28px 22px; }
  .estimate-plan__photo { min-height: 290px; padding: 10px; }
  .estimate-plan__photo img { min-height: 270px; }
  .estimate-plan__photo span { top: 20px; left: 20px; }
  .property-verification { margin-left: -7px; margin-right: -7px; padding: 22px 17px; }
  .property-form { align-items: stretch; flex-direction: column; }
  .property-form__grid { width: 100%; grid-template-columns: minmax(0,1fr) 72px 96px; }
  .property-form .button { width: 100%; }
  .property-result { grid-template-columns: 1fr; }
  .property-map-frame,.property-map-frame img { min-height: 260px; }
  .property-result__details { padding: 23px 18px; }
  .property-confirmed small { white-space: normal; }
  .address-first { margin-left: -7px; margin-right: -7px; padding: 20px 16px; }
  .address-first .property-form__grid { grid-template-columns: minmax(0,1fr) 72px 96px; }
  .render-gate { padding: 10px; }
  .render-gate__dialog { max-height: calc(100vh - 20px); padding: 23px 17px; border-radius: 14px; }
  .property-result--gate { margin-left: -7px; margin-right: -7px; }
}
