@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f5ef;
  --surface: #fffefa;
  --ink: #18352b;
  --muted: #455c52;
  --line: #cfd9d0;
  --sun: #ffc56f;
  --green: #173b31;
  font: 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); }
[hidden] { display: none !important; }
a { color: #245843; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a34d00; outline-offset: 4px; }
main:focus { outline: none; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .6rem 1rem; background: white; z-index: 2; }
.skip:focus { top: 1rem; }
.wrap { width: min(calc(100% - 3rem), 75rem); margin-inline: auto; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.header-inner { position: relative; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.07rem; white-space: nowrap; }
.brand span { font-weight: 550; margin-left: -.25rem; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .9rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.header-actions { display: flex; gap: .9rem; align-items: center; }
.header-quick, .mega-menu summary { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; font-weight: 750; font-size: .9rem; }
.header-quick { padding-inline: .85rem; border: 1px solid var(--line); border-radius: .45rem; text-decoration: none; }
.header-quick:hover, .mega-menu summary:hover { background: var(--paper); }
.mega-menu summary { padding-inline: .65rem; border-radius: .45rem; cursor: pointer; list-style: none; }
.mega-menu summary::-webkit-details-marker { display: none; }
.ui-icon { flex: none; width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mega-menu summary .ui-icon { width: 1rem; height: 1rem; }
.mega-menu[open] summary .ui-icon { transform: rotate(180deg); }
.mega-panel { position: absolute; z-index: 3; inset-inline: 0; inset-block-start: calc(100% - .18rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); box-shadow: 0 16px 36px #1e3c3026; }
.mega-group > p { margin: 0 .5rem .3rem; color: var(--muted); font-size: .73rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.mega-group ul, .breadcrumbs ol, .request-list { margin: 0; padding: 0; list-style: none; }
.mega-group a { display: flex; min-height: 55px; align-items: flex-start; gap: .65rem; padding: .55rem; border-radius: .42rem; }
.mega-group a:hover, .mega-group a:focus-visible { background: var(--paper); text-decoration: none; }
.mega-group .ui-icon, .request-list .ui-icon, .review-list .ui-icon { box-sizing: content-box; width: 1.25rem; height: 1.25rem; padding: .45rem; border-radius: .42rem; color: #1c5c41; background: #e8efdf; }
.mega-group strong, .mega-group small, .request-list strong { display: block; }
.mega-group small { color: var(--muted); font-size: .8rem; }
.breadcrumbs { color: var(--muted); font-size: .84rem; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; column-gap: .6rem; min-height: 44px; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; color: #708477; }
.hero { padding-block: clamp(2.7rem, 5.5vw, 5rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(2rem, 5.6vw, 5rem); align-items: center; }
.subhero { padding-block: clamp(2.65rem, 6vw, 4.4rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; margin: 0 0 1rem; }
.eyebrow span { width: .65rem; height: .65rem; border-radius: 50%; background: #e89830; flex: none; }
h1, h2, h3 { line-height: 1.13; margin: 0 0 .65em; text-wrap: balance; }
h1, h2 { font-weight: 760; letter-spacing: -.055em; }
h1 { font-size: clamp(2.55rem, 5.45vw, 5.1rem); margin-bottom: .34em; }
.subhero h1 { font-size: clamp(2.3rem, 5.15vw, 4.4rem); max-width: 23ch; }
h2 { font-size: clamp(1.95rem, 4vw, 3rem); }
h3 { font-size: 1.13rem; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 2.15vw, 1.31rem); max-width: 53ch; color: var(--muted); }
.quiet { color: var(--muted); }
.small { font-size: .9rem; margin-top: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .65rem 1rem; border: 1px solid var(--green); border-radius: .48rem; background: var(--green); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #265645; }
.page-home .hero .button { background: var(--sun); border-color: #d99843; color: var(--ink); }
.page-home .hero .button:hover { background: #ffb95b; }
.secondary { background: transparent; color: var(--ink); }
.secondary:hover { background: #eaece0; }
.hero-visual { position: relative; min-width: 0; padding-bottom: .55rem; }
.roof-photo { display: block; width: 100%; height: clamp(215px, 27vw, 390px); object-fit: cover; object-position: 50% 58%; border-radius: .85rem; }
.request-photo, .paperwork-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .85rem; }
.quote-request-hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.75rem); }
.request-workspace { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(1.8rem, 6vw, 4.5rem); }
.request-list li { display: flex; gap: .75rem; margin: .95rem 0; color: var(--muted); }
.request-list strong { color: var(--ink); }
.request-card { background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1rem, 3vw, 1.6rem); }
.request-card h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.request-card blockquote { background: var(--surface); }
.example { position: relative; width: calc(100% - 2.5rem); margin: -4.25rem auto 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: .65rem; padding: 1.15rem 1.35rem; box-shadow: 0 12px 34px #142c2724; }
.example-label, .example-foot { color: var(--muted); font-size: .76rem; font-weight: 750; }
.example-label { margin: 0 0 .35rem; }
.example-foot { margin: .55rem 0 0; }
.example h2 { font-size: clamp(1.1rem, 2.1vw, 1.55rem); letter-spacing: -.035em; margin-bottom: .45rem; }
.example-rows, .figures { margin: 1rem 0; }
.example-rows div, .figures div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.example-rows { margin: .45rem 0; }
.example-rows dt { font-weight: 750; }
.example-rows small { color: var(--muted); margin-left: .4em; font-weight: 550; }
dd { margin: 0; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.example-total { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; background: #e9f0de; padding: .7rem .8rem; border-radius: .4rem; }
.example-total strong { font-size: clamp(1.55rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.06em; white-space: nowrap; }
.example-total strong span { font-size: .82rem; letter-spacing: 0; }
.example-total > span { font-size: .86rem; }
.page-battery .battery-example { width: 100%; margin: 0; }
.battery-example .example-rows dt { display: flex; align-items: center; gap: .55rem; }
.battery-example .example-rows dd { white-space: nowrap; }
.page-battery .article { border-top: 1px solid var(--line); }
.section { padding-block: clamp(2.2rem, 6vw, 4.2rem); }
.quote-grid { display: grid; gap: 1rem; }
.quote-fields, .result-card, .lookup section { border: 1px solid var(--line); border-radius: .7rem; padding: 1.15rem; background: var(--surface); }
.review-list { margin: 1.8rem 0 1.1rem; border-top: 1px solid var(--line); }
.review-list article { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 2.4fr); gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-block: 1rem; }
.review-list h3, .review-list p, .review-list .index, .lookup p { margin: 0; }
.index { display: block; color: #526259; font-weight: 750; font-size: .78rem; margin-bottom: .7rem; }
.text-link { font-weight: 750; }
.article { max-width: 52rem; }
.article h2:not(:first-child) { margin-top: 1.3em; }
.lookup { display: grid; gap: .7rem; }
.note, blockquote { margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--paper); border-left: 4px solid #da9239; }
.source-list { padding-left: 1.4rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.section-heading h2 { margin-bottom: .2em; }
.section-heading .text-link { margin-bottom: .5rem; }
.checker-workspace { display: grid; gap: .75rem; }
.checker-intro h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); max-width: 19ch; }
.checker-links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.checker-links .button-link { font-size: .9rem; }
.checker-workspace .result, .checker-workspace noscript { grid-column: 1 / -1; }
.page-compare .reading { border-top: 1px solid var(--line); }
.form-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.form-toolbar p { margin: 0; color: var(--muted); font-size: .9rem; }
.form-toolbar .button { padding: .45rem .7rem; font-size: .9rem; }
.example-status { margin: 0; color: var(--muted); font-size: .9rem; }
.example-status:not(:empty) { margin-bottom: .7rem; }
.quote-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); }
.quote-fields { margin: 0; min-width: 0; }
legend { font-weight: 800; padding-inline: .35rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
label { display: block; font-size: .93rem; font-weight: 650; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 44px; margin-top: .23rem; font-size: 1rem; color: var(--ink); border: 1px solid #84938a; background: white; border-radius: .37rem; padding: .48rem .65rem; }
input[aria-invalid="true"] { border-color: #a02e20; }
.field-error { display: block; color: #852719; margin-top: .35rem; font-size: .86rem; }
.check { display: flex; align-items: start; gap: .5rem; }
.check input { margin: .32rem .1rem 0 0; }
.extra { margin-top: .85rem; }
.extra summary { cursor: pointer; font-weight: 700; min-height: 44px; padding-block: .55rem; }
.extra[open] summary { margin-bottom: .75rem; }
.result { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid #99a99e; border-radius: .75rem; background: #eef2e8; margin-top: 1.5rem; }
.result label { margin-top: 1rem; }
.result-card ul { padding-left: 1.2rem; margin-bottom: 0; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer .developer-credit { color: var(--muted); }
.button-link { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; text-decoration-thickness: 1px; }
button, .button { touch-action: manipulation; }
@media (prefers-reduced-motion: no-preference) {
  .button, .button-link { transition: background-color .16s ease, color .16s ease; }
}
@media (min-width: 1000px) {
  .checker-workspace { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 1rem clamp(2rem, 5vw, 5.5rem); align-items: start; }
  .checker-intro { padding-top: .75rem; }
}
@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 2rem), 70rem); }
  .hero-grid, .request-workspace { grid-template-columns: 1fr; }
  .mega-panel { grid-template-columns: 1fr; gap: .75rem; padding: .7rem; max-height: calc(100dvh - 84px); overflow-y: auto; }
  .header-quick { display: none; }
  .mega-group + .mega-group { border-top: 1px solid var(--line); padding-top: .65rem; }
  .review-list article { grid-template-columns: 2rem 1fr; gap: .3rem .65rem; }
  .review-list article p { grid-column: 2; }
}
@media (max-width: 450px) {
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .field-grid { grid-template-columns: 1fr; }
  .example { width: calc(100% - 1rem); padding-inline: .8rem; }
  .example-rows small { display: block; margin-left: 0; }
}
@media (max-width: 360px) {
  .header-inner { gap: .5rem; }
  .brand { font-size: 1rem; }
  .mega-menu summary { padding-inline: .25rem; }
}
@media print {
  body { background: white; }
  .site-header, .site-footer, .hero, .reading, #checker > :not(#result), #result .actions { display: none !important; }
  #checker, #result { margin: 0; padding: 0; border: 0; background: white; }
  .quote-grid { display: block; }
  .result-card { break-inside: avoid; margin-bottom: .6rem; }
}
