:root {
  color-scheme: light;
  --ink: #1c1930;
  --muted: #575268;
  --paper: #fbfaf8;
  --line: #dfdce7;
  --accent: #5142b8;
  --deep: #29204d;
  --green: #dbf8a6;
  font: 100%/1.55 'Inter', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 18px; }
:focus-visible { outline: 3px solid #7d67fc; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); padding: .6rem 1rem; background: white; z-index: 2; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #eeebee; background: var(--paper); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.16rem; letter-spacing: -.045em; text-decoration: none; flex-shrink: 0; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--deep); display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 8px; }
.mark i { display: block; background: var(--green); width: 3px; height: 6px; border-radius: 1px; }
.mark i:nth-child(2) { height: 10px; }
.mark i:nth-child(3) { height: 15px; }
.nav nav { display: flex; gap: clamp(18px, 3vw, 43px); }
.nav nav a { color: var(--muted); font-size: .94rem; font-weight: 600; text-decoration: none; }
.nav nav a:hover, .text-link:hover, footer a:hover { color: var(--accent); }
.nav nav [aria-current=page] { color: var(--accent); }
.button { min-height: 45px; padding: .66rem 1.09rem; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 700; font-size: .93rem; text-decoration: none; color: inherit; background: white; }
.button:hover { border-color: #8a7eb7; }
.primary { padding: .85rem 1.22rem; background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: #3e3096; border-color: #3e3096; }
.nav-button { background: transparent; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(32px, 5vw, 82px); padding-block: clamp(46px, 5.8vw, 84px); }
.hero-copy { padding-block: .2rem; }
.eyebrow { color: #504494; font-size: .79rem; text-transform: uppercase; font-weight: 750; letter-spacing: .105em; margin: 0 0 11px; display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 17px; height: 2px; border-radius: 4px; background: #7061c8; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 780; line-height: 1.02; letter-spacing: -.075em; }
h1 { font-size: clamp(3.45rem, 6.2vw, 6.1rem); margin-bottom: 20px; }
h1 em { font-weight: inherit; font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2.3rem, 4vw, 3.75rem); margin-bottom: 12px; }
h3 { font-size: 1.02rem; }
.lede { font-size: clamp(1.04rem, 1.5vw, 1.23rem); color: var(--muted); max-width: 395px; line-height: 1.5; margin-bottom: 26px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.text-link { font-size: .92rem; font-weight: 700; text-underline-offset: 5px; text-decoration-color: #a19bb8; }
.hero-image { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 1.48; background: #d9d6e8; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.calculator-section { background: #f1eff8; padding-block: clamp(40px, 5vw, 65px); border-block: 1px solid #e8e3f1; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p:last-child { margin-bottom: 0; color: var(--muted); }
.subtle { background: transparent; border-color: #d8d1e8; flex-shrink: 0; }
.workspace { display: grid; align-items: start; grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr); gap: 20px; }
.mobile-quote { display: none; }
.panel { border: 1px solid #ddd8eb; background: white; border-radius: 16px; }
.inputs { padding: clamp(18px, 2.6vw, 31px); }
fieldset { padding: 0; margin: 0 0 21px; border: 0; min-width: 0; border-bottom: 1px solid #eeebf3; padding-bottom: 21px; }
legend { font-size: 1.13rem; font-weight: 750; padding: 0; margin-bottom: 13px; letter-spacing: -.025em; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.fields label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 650; min-width: 0; }
.control { width: 100%; display: flex; align-items: center; gap: 4px; border: 1px solid #dcd7e7; border-radius: 8px; min-height: 43px; padding-inline: 10px; background: #fcfbfe; }
.control span { color: #625b73; font-size: .84rem; font-weight: 500; flex-shrink: 0; }
.control input, .control select { min-width: 0; width: 100%; color: var(--ink); border: 0; padding: 7px 0; appearance: textfield; outline: none; background: transparent; font-size: 1rem; font-weight: 600; }
.control input::-webkit-inner-spin-button, .control input::-webkit-outer-spin-button { appearance: none; }
.control:focus-within { outline: 2px solid #7561dd; outline-offset: 1px; }
.control:has([aria-invalid=true]) { border-color: #aa3955; background: #fff4f7; }
.control.select { position: relative; }
.control select { cursor: pointer; appearance: none; padding-right: .9rem; }
.control.select::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); position: absolute; right: .75rem; top: 42%; pointer-events: none; }
.field-note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
summary { font-weight: 700; cursor: pointer; }
.optional-fields[open] .fields { margin-top: 12px; }
#window-fields { margin: -5px 0 22px; border: 1px solid #e6def2; padding: 12px 14px; border-radius: 9px; background: #faf8fe; }
.check-label { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: .85rem; }
.check-label input { accent-color: var(--accent); inline-size: 1.05rem; block-size: 1.05rem; flex-shrink: 0; }
.window-status { margin: 9px 0 0; font-size: .85rem; padding: 8px 10px; background: #edf6e8; color: #324926; border-radius: 5px; }
.window-over { background: #fcebf0; color: #8b2244; }
.privacy { border-top: 1px solid #eeebf3; margin-top: 16px; padding-top: 12px; }
.result-stack { display: grid; gap: 12px; position: sticky; top: 16px; }
.result { overflow: hidden; }
.result-top { background: var(--deep); color: #fff; padding: clamp(19px, 2.5vw, 30px); }
.result-label { font-weight: 700; margin-bottom: 3px; display: flex; justify-content: space-between; align-items: center; }
.result-label span { font-size: .78rem; color: #e4dff8; border: 1px solid #716581; padding: .1rem .42rem; border-radius: 5px; }
.quote { display: block; font-size: clamp(2.75rem, 5vw, 5.1rem); letter-spacing: -.085em; line-height: 1.08; overflow-wrap: anywhere; font-weight: 760; color: var(--green); font-variant-numeric: tabular-nums; }
.result-unit { font-size: .87rem; color: #e0daef; margin: 6px 0 17px; }
.metrics { border-top: 1px solid #5b5276; padding-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metrics span { display: block; color: #ddd5ef; font-size: .84rem; }
.metrics strong { display: block; font-size: clamp(1.18rem, 2vw, 1.6rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-detail, .rate-card { padding: clamp(17px, 2.5vw, 27px); }
.result-detail h3 { margin-bottom: 10px; }
.cost-bar { height: 8px; border-radius: 8px; overflow: hidden; display: flex; background: #f0edf6; }
.cost-bar span { height: 100%; }
.labor, #bar-labor { background: #7867cf; }
.expense, #bar-expense { background: #ccc1ef; }
.profit, #bar-profit { background: #b0d775; }
.breakdown { margin: 10px 0 15px; }
.breakdown > div { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .93rem; }
.breakdown dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.breakdown small { color: var(--muted); font-size: .76rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.breakdown .breakeven { border-top: 1px solid #ece7f2; margin-top: 4px; padding-top: 11px; }
.copy-button { width: 100%; background: #f6f3ff; color: #3f307f; border-color: #dfd7f4; }
.quote-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.quote-actions .button { padding-inline: .55rem; }
.copy-status, .input-error { font-size: .87rem; margin: 10px 0 0; }
.copy-status textarea { display: block; width: 100%; min-height: 100px; margin-top: .4rem; font: inherit; }
.input-error { color: #912342; margin: 0 0 10px; }
.notice { margin-bottom: 1rem; }
.rate-card h3 { margin-bottom: 5px; }
.rate-values { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.rate-values strong { font-size: 1.4rem; }
.rate-values span, .rate-card p { color: var(--muted); font-size: .9rem; }
.rate-card p { margin: 5px 0 0; }
.loss { color: #962747; }
.kit-section { padding-block: clamp(48px, 7vw, 92px); }
.kit-layout { padding: clamp(23px, 4.6vw, 57px); background: #eeebfb; border: 1px solid #e2dbf6; border-radius: 22px; display: grid; gap: clamp(22px, 4.2vw, 60px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.kit-copy p:not(.eyebrow) { color: var(--muted); }
.product-heading { font-size: clamp(2.85rem, 5vw, 4.6rem); }
.product-example { margin-top: -1.25rem; margin-bottom: clamp(32px, 6vw, 72px); }
.product-example > div { max-width: 740px; padding: clamp(16px, 3vw, 28px); background: #f0ecfb; border-left: 4px solid #8a7dcc; border-radius: 0 10px 10px 0; }
.product-example h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
.product-example p:last-child { margin: 0; }
.referral-share { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.referral-share h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.referral-share .button { margin-top: .75rem; }
.kit-copy ul { padding-left: 1.2rem; margin: 0 0 18px; }
.kit-copy li { margin: 5px 0; }
.kit-copy li::marker { color: var(--accent); }
.kit-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.kit-price strong { font-size: 2rem; letter-spacing: -.06em; line-height: 1.2; }
.kit-price span, .kit-status { color: var(--muted); font-size: .86rem; }
.kit-status { margin: 9px 0 0; }
.kit-visual { margin: 0; }
.kit-visual a { display: block; border-radius: 12px; overflow: hidden; background: white; border: 1px solid #cfc4ed; box-shadow: 0 13px 29px #3121571a; }
.kit-visual a:hover { border-color: var(--accent); }
.kit-visual img { width: 100%; height: auto; }
.kit-visual figcaption { text-align: center; color: var(--muted); margin-top: 10px; font-size: .85rem; }
.preview-switch { display: flex; justify-content: center; gap: 8px; }
.preview-switch button { border: 1px solid transparent; padding: .42rem .72rem; background: transparent; color: var(--muted); border-radius: 7px; font-weight: 650; }
.preview-switch button:hover { border-color: #cfc4ed; }
.preview-switch button[aria-pressed=true] { color: var(--deep); background: #fff; border-color: #d6cbee; }
.guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 7vw, 105px); padding-bottom: clamp(43px, 6vw, 80px); }
.guide h2 { font-size: clamp(2.15rem, 3.4vw, 3.1rem); }
.faq details { border-bottom: 1px solid var(--line); padding: 11px 0; }
.faq details:first-child { padding-top: 2px; }
.faq p { margin: 7px 0 3px; color: var(--muted); }
.more-tools { background: #f1eff8; padding-block: clamp(29px, 4.5vw, 58px); border-top: 1px solid #e8e3f1; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.resource-card { display: block; padding: clamp(15px, 2.6vw, 29px); border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; }
.resource-card:hover { border-color: var(--accent); }
.resource-card h2 { font-size: 1.4rem; letter-spacing: -.04em; line-height: 1.2; margin-bottom: 8px; }
.resource-card p { color: var(--muted); margin-bottom: 9px; }
.resource-card span { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.estimate-dialog { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 15px; width: min(520px, calc(100vw - 32px)); padding: clamp(16px, 4vw, 28px); }
.estimate-dialog::backdrop { background: #21173388; }
.estimate-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.estimate-dialog h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0; }
.estimate-dialog p { color: var(--muted); margin-bottom: 11px; }
.estimate-dialog label { display: block; font-size: .91rem; font-weight: 650; margin-bottom: 10px; }
.estimate-dialog input, .estimate-dialog textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; font-weight: 500; color: inherit; border: 1px solid var(--line); border-radius: 7px; box-sizing: border-box; }
.estimate-dialog textarea { resize: vertical; }
.printed-estimate { display: none; }
.page-intro { padding-block: clamp(34px, 5.8vw, 76px); }
.page-intro h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); max-width: 900px; }
.page-intro .lede { max-width: 640px; margin-bottom: 0; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 17px; }
.breadcrumb a { text-underline-offset: 3px; }
.compare-cards { display: grid; gap: 10px; }
.compare-price { padding: clamp(14px, 2.5vw, 24px); }
.compare-price.featured { background: var(--deep); color: white; }
.compare-price h3 { margin: 0 0 5px; }
.compare-price output { font-size: clamp(2.14rem, 4.2vw, 3.6rem); font-weight: 750; line-height: 1; letter-spacing: -.075em; overflow-wrap: anywhere; display: block; }
.compare-price.featured output { color: var(--green); }
.compare-price p { margin: 7px 0 0; font-size: .9rem; color: var(--muted); }
.compare-price.featured p { color: #e4dff8; }
.deep-result .button { margin-top: 10px; }
.deep-result .featured .button { background: transparent; color: white; border-color: #716581; }
.deep-result .copy-status, .deep-result .input-error { margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(190px, .48fr) minmax(0, 1.52fr); gap: clamp(24px, 7vw, 110px); padding-bottom: clamp(33px, 6vw, 80px); }
.article-layout aside { align-self: start; position: sticky; top: 18px; padding: 18px; border-radius: 13px; border: 1px solid var(--line); background: white; }
.article-layout aside h2 { font-size: 1.1rem; letter-spacing: -.025em; }
.article-layout aside a { display: block; color: var(--accent); margin-top: .55rem; font-size: .92rem; text-underline-offset: 3px; }
.article-body { max-width: 740px; }
.article-body section { margin-bottom: 37px; }
.article-body h2 { font-size: clamp(1.65rem, 3.2vw, 2.7rem); letter-spacing: -.06em; line-height: 1.1; }
.article-body p, .article-body li { color: #484359; }
.article-body li { margin-bottom: .35rem; }
.article-body table { width: 100%; border-spacing: 0; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.article-body th, .article-body td { padding: .57rem .88rem; border-bottom: 1px solid #efedf4; text-align: left; }
.article-body th { background: var(--deep); color: #fff; }
.article-body td:last-child, .article-body th:last-child { text-align: right; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body blockquote, .callout { margin: 17px 0; background: #f0ecfb; padding: 13px 17px; border-left: 4px solid #8a7dcc; border-radius: 0 8px 8px 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body .article-summary { padding: 14px 17px; background: #f0ecfb; border-radius: 9px; margin-bottom: 24px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 22px; }
.site-footer p, .site-footer a:last-child { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions { gap: 12px 20px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .nav { min-height: 62px; gap: 12px; }
  .nav-button, .nav-guide { display: none; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .86rem; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 34px; }
  .hero-image { aspect-ratio: 1.9; max-height: 285px; }
  .workspace, .kit-layout, .guide, .link-grid, .article-layout { grid-template-columns: 1fr; }
  .article-layout aside { position: static; }
  .result-stack { position: static; }
  .mobile-quote { display: flex; position: sticky; top: 0; z-index: 1; align-items: center; justify-content: space-between; gap: 8px; padding: .7rem .85rem; margin-bottom: 10px; background: var(--deep); color: white; border-radius: 9px; text-decoration: none; font-size: .84rem; }
  .mobile-quote strong { color: var(--green); font-size: 1.19rem; overflow-wrap: anywhere; }
  .mobile-quote span:last-child { text-decoration: underline; }
  #result-panel, #deep-results, #window-fields { scroll-margin-top: 62px; }
  .section-header { align-items: start; }
  .section-header h2 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .section-header .subtle { margin-top: 17px; padding-inline: 8px; font-size: .83rem; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 28px); }
  .brand { font-size: 1.05rem; gap: 5px; }
  .nav nav { gap: 10px; }
  .fields { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body.printing-estimate { color: #1b172a; background: #fff; }
  body.printing-estimate > :not(.printed-estimate) { display: none !important; }
  .printed-estimate { display: block; padding: 30px; overflow-wrap: anywhere; }
  .printed-estimate h1 { font-size: 34px; margin-bottom: 12px; }
  .printed-estimate h2 { font-size: 19px; margin: 22px 0 8px; }
  .printed-estimate .print-business { color: #443483; font-weight: 750; margin-bottom: 10px; }
  .printed-estimate .print-property { font-size: 18px; }
  .printed-estimate .print-amount { font-size: 38px; font-weight: 750; margin: 16px 0 0; }
  .printed-estimate .print-scope { white-space: pre-wrap; }
}
