/* The primary task gets its own centered canvas; the hero supplies context. */
.hero-layout{display:block;min-height:440px;padding:70px 0 64px}
.hero-copy{max-width:680px}
.hero-copy h1{font-family:var(--font-ui);font-size:clamp(36px,4vw,58px);line-height:1.08;letter-spacing:-2px;max-width:650px}
.hero-copy .lead{font-size:18px;max-width:590px}
.hero-cta{display:flex;align-items:center;gap:26px;margin:26px 0}
.hero-cta>a:last-child{font-size:15px;font-weight:600;text-decoration:none}
.hero-copy .hero-points{display:flex;gap:24px;flex-wrap:wrap;margin-top:28px}
.hero-copy .point-card{padding:0;border:0;box-shadow:none;background:none;max-width:190px}
.hero-copy .point-card strong{font-size:14px}
.hero-copy .point-card span{font-size:12px;margin-top:4px;max-width:180px}
.budget-section{padding:72px 0 80px;background:#f3f5f1;scroll-margin-top:20px}
.budget-container{max-width:1040px}
.budget-intro{text-align:center;max-width:700px;margin:0 auto 34px}
.budget-intro h2{font-family:var(--font-ui);font-size:clamp(32px,4vw,44px);line-height:1.15;letter-spacing:-1.5px;margin:0 0 18px}
.budget-intro p:last-child{color:#566057;font-size:17px;margin:0}
.budget-tool{border:1px solid #dce2d9;border-radius:22px;background:white;box-shadow:0 16px 50px #14291a08;overflow:hidden}
.calc-progress{display:flex;justify-content:center;gap:64px;list-style:none;margin:0;padding:24px 28px;border-bottom:1px solid #e9ede6;background:#fcfdfb}
.calc-progress li{display:flex;align-items:center;gap:10px;color:#737a73;font-size:14px}
.calc-progress li span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef1ea;font-weight:600}
.calc-progress li[aria-current]{color:#b71111}
.calc-progress li[aria-current] span{background:#b71111;color:white}
.calc-progress li.complete{color:#37603b}
.calc-progress li.complete span{background:#e7f0e5;color:#37603b}
#calcForm{padding:32px 36px 28px}
.calc-stage h3{font-size:26px;letter-spacing:-.6px;line-height:1.2;margin:0 0 10px;font-weight:650}
.calc-stage h3:focus{outline:none}
.calc-stage-lead{font-size:15px;color:#646c64;margin:0 0 26px;max-width:760px}
.construction-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.construction-choice{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0;background:#fff;border:1.5px solid #dce1d8;border-radius:14px;padding:19px 14px 22px;cursor:pointer;color:#27352a}
.construction-choice:hover{background:#fafbf8;border-color:#87977e}
.construction-choice.selected{border-color:#b71111;background:#fff9f7;box-shadow:0 0 0 1px #b71111}
.construction-choice svg{width:108px;height:116px;fill:#f0f5ec;stroke:#596f54;stroke-width:2}
.construction-choice svg path{fill:none;stroke-width:1.3}
.construction-choice strong{font-size:17px}
.construction-choice>span{font-size:12px;color:#626b60;max-width:210px}
.calc-help{margin:22px 0 0;text-align:center;font-size:14px;color:#5b6459}
.calc-help a{text-underline-offset:4px}
.calc-controls{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding-top:26px;margin-top:24px;border-top:1px solid #e9ede6}
.calc-controls .btn{min-width:200px;border-radius:10px;padding:15px 24px}
.calc-back{margin-right:auto;background:none;border:none;color:#57614f;cursor:pointer;padding:12px 0}
.measurement-layout{display:grid;grid-template-columns:220px 1fr;gap:42px;align-items:center}
.measure-illustration svg{fill:#edf3e7;stroke:#61795a;stroke-width:2;width:100%}
.measure-illustration svg path{fill:none;stroke-width:1.2}
.measure-illustration .dimension-line{stroke:#949d8f}
.measure-illustration text{fill:#4b5947;stroke:none;font-size:13px}
.measure-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.unit-input{position:relative}
.unit-input span{position:absolute;right:14px;top:13px;color:#71796c;pointer-events:none}
.unit-input input{padding-right:48px}
.measure-fields input,.measure-fields select{border-radius:9px;border-color:#cfd7c9;min-height:50px}
.measure-fields input{font-size:19px}
.measure-fields label{font-weight:600;color:#46503f;font-size:13px}
.calc-explanation{margin-top:24px;padding:16px 18px;border-radius:10px;background:#f5f7f2;color:#535e4d;font-size:13px}
.calc-explanation summary{cursor:pointer;font-weight:600}
.calc-explanation p{margin-bottom:0}
.budget-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.budget-option{padding:17px;text-align:left;background:#fff;border:1px solid #d6dece;border-radius:12px;color:#283622;cursor:pointer}
.budget-option.selected{border-color:#b71111;box-shadow:0 0 0 1px #b71111;background:#fffaf7}
.profile-option-top{display:flex;align-items:center;gap:10px;min-height:64px}
.profile-option-top img{width:49px;height:60px;object-fit:contain}
.profile-option-top strong{display:block;font-size:14px;line-height:1.25}
.profile-option-top small{display:block;font-size:11px;color:#747d6d;margin-top:6px}
.profile-option-price{display:block;font-size:25px;font-weight:650;margin-top:12px;letter-spacing:-.5px}
.profile-option-price small{display:block;font-weight:400;font-size:11px;letter-spacing:0;color:#6f7869}
.profile-option-select{display:block;font-size:12px;margin-top:14px;color:#5e6956}
.selected .profile-option-select{color:#b71111}
.estimate-preview{display:flex;justify-content:space-between;gap:20px;padding:22px 0 12px;margin-top:20px;border-top:1px solid #e4e9df}
.estimate-preview>div:last-child{text-align:right}
.estimate-preview span,.estimate-preview strong{display:block}
.estimate-preview span{font-size:12px;color:#71776a}
#estimateProfile{font-size:19px;margin-top:4px}
#estimateAmount{font-size:30px;color:#283622;line-height:1.2}
.calc-scope{font-size:13px;color:#626c58;margin:10px 0 0}
.calc-error{color:#a11414;background:#fff2ed;border-radius:8px;padding:12px;font-size:14px}
.calc-capacity{font-size:13px;color:#a11414}
.project-summary{padding:32px 36px;background:#fcfdfb;border-top:1px solid #e5eadd}
.project-summary h3{font-size:25px;margin:0}
.project-summary .cart-list{margin-top:25px}
.project-summary .cart-item{display:flex;justify-content:space-between;gap:24px;padding:18px 0;border:0;border-bottom:1px solid #e3e8de;background:none;border-radius:0}
.project-summary .cart-item small{display:block;color:#6c7465;margin-top:6px;font-size:12px}
.cart-item-actions{text-align:right;flex-shrink:0}
.cart-item-actions strong{display:block;margin-bottom:8px;font-size:20px}
.cart-item-actions button{padding:4px 0 4px 12px;border:none;background:none;font-size:12px;text-decoration:underline;color:#6b735f;cursor:pointer}
.project-actions{display:flex;justify-content:space-between;gap:20px;margin-top:24px}
.project-actions .btn{border-radius:10px;font-size:14px}
.project-actions .btn-light{background:white;border:1px solid #cbd3c4;color:#38432e}
.calc-private{font-size:11px;color:#787e72;margin:15px 0 0}
.calc-nojs{padding:20px 36px;color:#a11414}
@media(max-width:800px){.calc-progress{gap:24px}.calc-progress li{font-size:12px}.measurement-layout{grid-template-columns:150px 1fr;gap:26px}.budget-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.hero-layout{min-height:0;padding:38px 0}.hero-copy h1{font-size:35px;letter-spacing:-1.2px}.hero-copy .lead{font-size:16px}.hero-cta{gap:18px;flex-wrap:wrap}.hero-copy .hero-points{gap:16px}.hero-copy .point-card{max-width:145px}.hero-copy .point-card span{display:none}.budget-section{padding:40px 0}.budget-container{width:calc(100% - 24px)}.budget-intro{padding:0 12px}.budget-intro p:last-child{font-size:14px}.budget-tool{border-radius:16px}.calc-progress{gap:10px;justify-content:space-between;padding:18px 14px}.calc-progress li{font-size:10px;gap:5px}.calc-progress li span{width:22px;height:22px;flex-shrink:0}.calc-progress b{font-weight:600}#calcForm,.project-summary{padding:24px 18px}.calc-stage h3{font-size:23px}.calc-stage-lead{font-size:13px;margin-bottom:20px}.construction-options{grid-template-columns:1fr;gap:10px}.construction-choice{display:grid;grid-template-columns:64px 1fr;column-gap:16px;text-align:left;padding:12px 16px;align-items:center}.construction-choice svg{grid-row:1/3;width:60px;height:70px}.construction-choice strong{align-self:end;font-size:17px}.construction-choice>span{align-self:start;font-size:12px}.calc-help{font-size:12px}.calc-controls{padding-top:20px;margin-top:20px}.calc-controls .btn{min-width:0;padding:13px 20px;font-size:14px}.measurement-layout{display:block}.measure-illustration{width:160px;margin:0 auto 18px}.measure-fields{gap:15px}.measure-fields select{font-size:13px;padding-left:10px}.budget-options{gap:10px}.budget-option{padding:12px}.profile-option-top{display:block}.profile-option-top img{height:55px;margin-bottom:10px;width:48px}.profile-option-top strong{font-size:13px}.profile-option-price{font-size:23px}.profile-option-select{font-size:11px}.estimate-preview{gap:10px}#estimateProfile{font-size:15px}#estimateAmount{font-size:24px}.project-actions{flex-direction:column;gap:12px}.project-summary .cart-item{display:block}.cart-item-actions{display:flex;justify-content:flex-start;align-items:center;text-align:left;margin-top:12px;gap:10px}.cart-item-actions strong{margin:0;font-size:18px}.project-summary .total-row{align-items:start;gap:10px}.project-summary .total-row>span{font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Schemes come from PerfectWin Studio's existing renderer. */
.construction-choice>img{width:140px;height:116px;object-fit:contain}
.measure-illustration svg{fill:initial;stroke:initial}
.measure-illustration svg path{stroke-width:revert}
.measure-illustration small{display:block;text-align:center;color:#67735d;font-size:11px}
@media(max-width:580px){.construction-choice>img{grid-row:1/3;width:64px;height:72px}.measure-illustration{width:190px}}
@media(max-width:360px){.calc-progress{gap:6px;padding:14px 10px}.calc-progress li{flex:1;min-width:0;flex-direction:column;text-align:center;font-size:10px;gap:6px}.calc-progress li b{width:100%}}
@media(max-width:580px){.profile-option-price{font-size:clamp(16px,4.5vw,23px);white-space:nowrap}.profile-option-price small{white-space:normal}}
@media(max-width:580px){.measure-fields .field:nth-child(n+3){grid-column:1/-1}}
