:root {
  --ink: #17211c; --muted: #4d5b53; --paper: #f7f4ee; --card: #fff; --line: #e4ddd0;
  --accent: #1f4d38; --accent-2: #e2a04a; --on-accent: #fff; --hero-text: #f7f4ee;
  --radius: 18px; color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scroll-padding-bottom: 96px; }
body { margin: 0; font-family: system-ui, "Segoe UI", sans-serif; font-size: 1.05rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
h1, h2, h3, .logo-name, .stat-num, .quote-price { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
a { color: var(--link, var(--accent)); }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -48px; background: #fff; color: #111; padding: 8px 12px; z-index: 90; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
[hidden] { display: none !important; }
.demo-banner { background: #111; color: #eee; text-align: center; font-size: .86rem; padding: 8px 12px; }
.demo-banner a { color: var(--accent-2); }
.site-header { position: relative; z-index: 50; background: var(--header, #102018); color: #f6f3ec; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.logo { color: inherit; text-decoration: none; display: flex; flex-direction: row; align-items: center; gap: 10px; }
.mark { width: 36px; height: 36px; flex: none; }
.reply { font-weight: 700; }
.logo-name { font-size: 1.25rem; color: inherit; }
.logo-sub { font-family: Outfit, sans-serif; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 16px; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; place-items: center; }
.nav-toggle .burger, .nav-toggle .burger::before, .nav-toggle .burger::after { display: block; width: 18px; height: 2px; background: currentColor; color: #fff; position: relative; }
.nav-toggle .burger::before, .nav-toggle .burger::after { content: ""; position: absolute; left: 0; }
.nav-toggle .burger::before { top: -6px; } .nav-toggle .burger::after { top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; font: 650 1rem/1 Outfit, sans-serif; cursor: pointer; }
.btn-accent { background: var(--accent-2); color: #1a1208; }
.btn-accent:hover { filter: brightness(1.05); color: #1a1208; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; }
.header-call .short { display: none; }
.hero { position: relative; isolation: isolate; color: var(--hero-text); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-shade, linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72))); }
.hero-copy { padding: 28px 0 36px; max-width: 40rem; }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--accent-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px 0; background: var(--stat-bg, transparent); color: var(--stat-ink, inherit); }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; color: var(--accent-2); }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 12px; }
.card { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.choice-grid, .size-grid { display: grid; gap: 8px; }
.choice-grid { grid-template-columns: 1fr 1fr; }
.choice, .size, .time { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.choice input, .size input, .time input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice:has(input:checked), .size:has(input:checked), .time:has(input:checked) { outline: 2px solid var(--accent); }
.choice:has(input:disabled), .time:has(input:disabled) { opacity: .4; }
.stepper { display: flex; gap: 8px; align-items: center; }
.stepper button, .icon-btn { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper input { width: 76px; text-align: center; }
input, select, textarea { width: 100%; font: 400 1rem/1.4 Outfit, sans-serif; color: #17211c; background: #fff; border: 1px solid #d5d0c6; border-radius: 12px; min-height: 48px; padding: 10px 12px; }
textarea { min-height: 90px; }
.quote-layout, .book-grid, .split { display: grid; gap: 16px; }
.quote-panel { background: var(--panel, #102018); color: #f6f3ec; border-radius: var(--radius); padding: 18px; }
.quote-price { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--accent-2); margin: 0 0 8px; }
.field-error { color: #ffb4a2; font-weight: 700; font-size: .9rem; }
.panel .field-error, .card .field-error { color: #8c2f16; }
.compare { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; touch-action: none; user-select: none; background: #222; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-line, .compare-knob { position: absolute; z-index: 2; pointer-events: none; }
.compare-line { top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-50%); }
.compare-knob { top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; transform: translate(-50%, -50%); font-weight: 700; }
.compare input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.compare-tag { position: absolute; top: 10px; z-index: 2; background: rgba(0,0,0,.65); color: #fff; border-radius: 99px; padding: 4px 8px; font-size: .8rem; }
.compare-tag.before { left: 10px; } .compare-tag.after { right: 10px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.viewport { overflow: hidden; min-width: 0; }
.track { display: flex; gap: 12px; }
.slide { flex: 0 0 100%; min-width: 0; }
.review-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.g-badge { background: #fff; color: #17211c; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.g-score { font-family: Fraunces, Georgia, serif; font-size: 2.4rem; margin: 0; }
.g-stars { color: #c48a10; letter-spacing: 2px; margin: 4px 0; }
.sample-pill { display: inline-block; background: #f3e2c2; color: #6d3d10; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #ccc; }
.dot.on { background: var(--accent); }
.carousel-controls { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: Fraunces, Georgia, serif; }
details[open] summary::after { content: "–"; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.towns { list-style: none; padding: 0; margin: 0; }
.towns li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.site-footer { background: var(--header, #102018); color: #e7e2d8; padding: 36px 0 20px; }
.site-footer a, .quote-panel a { color: #e0b15a; }
body.theme-land .eyebrow, body.theme-land .stat-num,
body.theme-hvac .eyebrow, body.theme-hvac .stat-num { color: #7a4510; }
body.theme-land .quote-panel .eyebrow, body.theme-land .quote-panel .quote-price,
body.theme-hvac .quote-panel .eyebrow, body.theme-hvac .quote-panel .quote-price { color: #e0b15a; }
.footer-grid { display: grid; gap: 12px; }
.fine { font-size: .88rem; opacity: .8; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in, .js.reduce .reveal { opacity: 1; transform: none; }
.mobile-bar { display: none; }
.chat-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 45; min-height: 48px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-2); color: #1a1208; font: 700 1rem Outfit, sans-serif; cursor: pointer; }
.chat-panel { position: fixed; right: 14px; bottom: 72px; z-index: 46; width: min(360px, calc(100vw - 20px)); max-height: min(480px, calc(100dvh - 110px)); background: #fff; color: #17211c; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.chat-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; background: var(--header, #102018); color: #fff; }
.chat-head h2 { font-size: 1.1rem; margin: 0; color: #fff; }
.chat-close { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }
.chat-log { padding: 10px; overflow: auto; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.bubble { margin: 0; padding: 8px 10px; border-radius: 12px; max-width: 92%; }
.bubble.bot { background: #f1eee6; } .bubble.user { background: #102018; color: #fff; align-self: flex-end; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; }
.quick button { border: 1px solid #ddd; background: #fff; border-radius: 99px; min-height: 36px; padding: 6px 10px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 8px; border-top: 1px solid #eee; }
.icon-btn:disabled { opacity: .4; }
@media (min-width: 800px) {
  .grid.cards { grid-template-columns: 1fr 1fr 1fr; }
  .size-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .site-header { position: sticky; top: 0; }
  .quote-layout, .book-grid, .split, .review-layout { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .slide { flex-basis: calc(50% - 6px); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .hero-copy { padding: 72px 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; color: #fff; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; background: var(--header, #102018); padding: 8px; border-radius: 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .header-call .full { display: none; } .header-call .short { display: inline; }
}
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--header, #102018); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-bar .btn-line { color: #f4f1ea; border-color: rgba(244, 241, 234, 0.75); }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .chat-toggle { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-panel { bottom: calc(146px + env(safe-area-inset-bottom)); }
}
body.theme-auto {
  --paper: #12110e; --ink: #f4efe6; --muted: #c9c0b2; --card: #1d1b16; --line: #3a342c;
  --accent: #e2a04a; --accent-2: #e2a04a; --header: #0c0b09; --link: #e2a04a;
  --hero-shade: linear-gradient(180deg, rgba(10,9,7,.2), rgba(10,9,7,.82));
  --radius: 6px; --panel: #0c0b09; --stat-bg: #0c0b09; --stat-ink: #f4efe6;
}
body.theme-auto .hero { min-height: 86vh; display: flex; align-items: flex-end; }
body.theme-auto h1, body.theme-auto h2, body.theme-auto .logo-name { font-family: Outfit, sans-serif; font-weight: 650; letter-spacing: -0.04em; }
body.theme-land { --paper: #f3f6ef; --ink: #1c2a20; --muted: #4e6154; --accent: #2d6a45; --accent-2: #c9842a; --header: #1d3a28; --radius: 26px; }
body.theme-land .hero { display: block; color: var(--ink); background: var(--paper); }
body.theme-land .hero::after { display: none; }
body.theme-land .hero-media { position: relative; height: 46vh; }
body.theme-land .hero-copy { color: var(--ink); max-width: none; }
body.theme-hvac { --paper: #f4f7fb; --ink: #142033; --muted: #445066; --accent: #163a5f; --accent-2: #d4842c; --header: #163a5f; --radius: 10px; --panel: #163a5f; }
body.theme-hvac .hero { display: grid; color: var(--ink); background: var(--paper); }
body.theme-hvac .hero::after { display: none; }
body.theme-hvac .hero-media { position: relative; min-height: 280px; }
body.theme-hvac h1 { font-family: Outfit, sans-serif; font-weight: 650; }
@media (min-width: 900px) {
  body.theme-land .hero, body.theme-hvac .hero { grid-template-columns: 1.05fr .95fr; align-items: center; }
  body.theme-hvac .hero-media { min-height: 520px; }
  body.theme-land .hero-media { height: auto; min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
