:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --white: #fffdf8;
  --ink: #212a22;
  --muted: #525a4d;
  --green: #284636;
  --deep-green: #223e30;
  --sage: #e9eddf;
  --line: #d6d7cb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.07; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.frame { width: min(100% - clamp(32px, 8vw, 112px), 1280px); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 2;
  transform: translateY(-150%);
  background: var(--white);
  padding: 8px 14px;
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  min-height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font: 700 1.4rem/1 var(--serif);
  letter-spacing: -.055em;
}
.brand small {
  display: block;
  margin-top: 5px;
  font: 700 .58rem/1 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px 8px 8px;
  background: var(--paper);
  clip-path: polygon(50% 0, 100% 48%, 89% 48%, 89% 100%, 63% 100%, 63% 65%, 37% 65%, 37% 100%, 11% 100%, 11% 48%, 0 48%);
}
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); }
.site-nav a, .footer-link {
  padding-block: 10px;
  font-size: .87rem;
  font-weight: 600;
  text-underline-offset: 5px;
}
.site-nav a:hover, .footer-link:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 51px;
  width: fit-content;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
.button span { font-size: 1.05em; }
.button-outline { min-height: 43px; border-color: #a6af9f; color: var(--green); }
.button-outline:hover { background: var(--sage); }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: #375843; }
.button-primary:focus-visible { outline-color: var(--green); }
.button:disabled { cursor: default; opacity: .65; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr);
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(26px, 3.8vw, 56px);
  align-items: center;
}
.hero-copy { padding-block: 32px; }
.kicker {
  color: var(--green);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero h1 {
  margin-block: 19px 25px;
  font-size: clamp(3rem, 5.1vw, 5.15rem);
  letter-spacing: -.079em;
}
.hero h1 span { display: block; }
.hero h1 em { color: #4b654b; font-weight: 400; }
.hero-lead {
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.68;
}
.hero-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 32px;
}
.hero-price {
  color: var(--muted);
  padding-left: 21px;
  border-left: 1px solid var(--line);
  font-size: .83rem;
  line-height: 1.3;
}
.hero-price strong { color: var(--ink); font: 700 1.39rem/1 var(--serif); }
.hero-price small { font-size: .72rem; }
.hero-figure {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(400px, 40vw, 568px);
  margin: 0;
  border-radius: 5px;
  background: #b6b7a0;
}
.hero-figure img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 51% 50%;
  z-index: -1;
}
.hero-figure figcaption {
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 14px;
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: .71rem;
  line-height: 1.35;
}

.checks {
  padding-block: clamp(32px, 4.3vw, 64px) clamp(46px, 6vw, 84px);
  border-top: 1px solid var(--line);
}
h2 { font-size: clamp(2.2rem, 4.15vw, 3.9rem); letter-spacing: -.065em; }
.kicker + h2 { margin-top: 10px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading > p { max-width: 34ch; color: var(--muted); }
.check-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.check-list li { padding: 22px 18px; }
.check-list li:first-child { padding-left: 0; }
.check-list li + li { border-left: 1px solid var(--line); }
.check-list h3 { margin-bottom: 7px; font: 700 1.35rem/1.15 var(--serif); letter-spacing: -.035em; }
.check-list p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.report-section {
  background: var(--deep-green);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 100px);
}
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 8vw, 112px);
}
.report-copy .kicker { color: #d4dec7; }
.report-copy > p:last-child {
  max-width: 38ch;
  margin-top: 20px;
  color: #e0e7da;
  font-size: 1.05rem;
}
.report-card { padding: clamp(15px, 2.2vw, 27px); background: var(--white); color: var(--ink); border-radius: 6px; }
.report-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 12px; margin-bottom: 14px; }
.report-header h3 { margin-top: 5px; font: 400 1.7rem/1.05 var(--serif); letter-spacing: -.045em; }
.report-header > p { color: var(--muted); font-size: .82rem; }
.report-image { aspect-ratio: 2.15; overflow: hidden; border-radius: 3px; background: #b6b7a0; }
.report-image img { height: 100%; object-fit: cover; object-position: 50% 52%; }
.report-image[data-view="roof"] img { object-position: 50% 26%; transform: scale(1.65); transform-origin: 52% 27%; }
.report-image[data-view="gate"] img { object-position: 50% 85%; transform: scale(1.6); transform-origin: 52% 85%; }
.report-controls { display: flex; gap: 6px; margin-top: 9px; }
.report-controls button {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
}
.report-controls button[aria-pressed="true"], .report-controls button:hover { background: var(--sage); color: var(--green); }
.report-controls button:disabled { cursor: default; }
.report-note { min-height: 1.6em; margin-top: 8px; color: var(--muted); font-size: .9rem; }

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 7vw, 100px);
  padding-block: clamp(48px, 7vw, 100px);
}
.process-intro { max-width: 39ch; color: var(--muted); margin-top: 14px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 15px;
  list-style: none;
  font-size: .96rem;
  font-weight: 650;
  cursor: pointer;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+" / ""; color: var(--green); font-size: 1.2rem; font-weight: 400; }
.questions details[open] summary::after { content: "−" / ""; }
.questions p { padding-bottom: 15px; color: var(--muted); font-size: .93rem; }

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(26px, 5vw, 70px);
  padding: clamp(22px, 4.7vw, 68px);
  border-radius: 6px;
  background: var(--sage);
}
.signup-copy p { max-width: 33ch; margin-top: 16px; color: var(--muted); }
.signup-card {
  min-width: 0;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}
.signup-card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid label { font-size: .86rem; font-weight: 650; }
.form-grid small { color: var(--muted); font-weight: 400; }
.form-grid input {
  display: block;
  width: 100%;
  min-height: 45px;
  margin-top: 5px;
  padding: 7px 9px;
  border: 1px solid #b3b8ab;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-block: 13px;
  margin-block: 3px;
  color: var(--muted);
  font-size: .87rem;
  cursor: pointer;
}
.consent input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.form-status { margin-top: 16px; padding: 10px; border-radius: 4px; background: var(--sage); color: var(--green); }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 20px;
  margin-top: clamp(34px, 6vw, 82px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.site-footer p { color: var(--muted); font-size: .84rem; }
.footer-link { white-space: nowrap; }

@media (max-width: 860px) {
  .hero h1 { font-size: clamp(2.8rem, 5.7vw, 3.5rem); }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: .81rem; }
  .report-layout, .process { gap: 32px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 69px; gap: 9px; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 30px 24px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin-block: 12px 15px; font-size: clamp(2.5rem, 9vw, 4rem); }
  .hero-action { margin-top: 22px; }
  .hero-figure { min-height: 0; aspect-ratio: 1.36; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-heading > p { margin-top: 11px; }
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-list li { padding: 15px 12px; }
  .check-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .check-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .report-layout, .process, .signup-section { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 1; width: 100%; }
}
@media (max-width: 390px) {
  .brand { font-size: 1.18rem; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark::before { inset: 7px; }
  .button-outline { padding-inline: 9px; gap: 6px; font-size: .8rem; }
  .hero-price { padding-left: 10px; }
  .hero-action { gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .report-controls button { transition: background-color .15s ease, color .15s ease; }
}

/* ---------- Added: live form, errors, success, privacy link, sticky bar ---------- */
:root { --warn: #9a3b12; --warn-soft: #f7e6dc; }
.field { min-width: 0; }
.field-err { margin-top: 5px; color: var(--warn); font-size: .84rem; font-weight: 600; line-height: 1.4; }
.form-grid input[aria-invalid="true"] { border-color: var(--warn); }
.consent { min-height: 44px; }
.consent input { width: 22px; height: 22px; margin-top: 1px; }
.consent a, .footer-privacy { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-block: 4px 14px; padding: 10px 12px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); font-size: .92rem; }
.form-success { display: grid; gap: 8px; padding: 6px 2px; }
.form-success h3 { font: 400 1.7rem/1.1 var(--serif); letter-spacing: -.045em; color: var(--green); }
.form-success p { color: var(--muted); }
.form-success:focus { outline: none; }
.site-footer p a { white-space: nowrap; }
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px rgba(33, 42, 34, .45);
}
.sticky-cta .button { width: 100%; }
@media (min-width: 701px) { .sticky-cta { display: none !important; } }
@media (max-width: 700px) {
  body.has-sticky .site-footer { padding-bottom: 96px; }
  .hero-action .button-primary { width: 100%; }
  .hero-price { padding-left: 0; border-left: 0; }
}
.footer-privacy { display: block; width: fit-content; padding-block: 10px 0; min-height: 44px; }
.report-controls button { min-height: 44px; }
