@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  --ink: #1c1914;
  --ink-soft: #3f3a33;
  --paper: #f4efe6;
  --paper-2: #fffdf8;
  --forest: #1e4a38;
  --forest-deep: #143528;
  --line: #e3dacb;
  --line-strong: #cfc4b2;
  --focus: #0b5cab;
  --danger: #8d2c2c;
  --shadow: 0 18px 40px rgba(28, 25, 20, 0.08);
  --radius: 18px;
  --header: 4.5rem;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
section, #lot-check, #solar-options, #backyard-options,
#solar, #backyard, #property-potential-review, #in-person-assessment,
#how-it-works, #solar-places, #how-we-work, #assessment-price {
  scroll-margin-top: 5.5rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-deep); }
a:hover { color: var(--forest); }
h1, h2, h3, .wordmark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.15rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.45rem; }
p { margin: 0 0 0.85rem; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}
.lede { font-size: 1.25rem; color: var(--ink); }
.fine { color: var(--ink-soft); font-size: 0.95rem; }
.proof { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); margin-right: auto; }
.wordmark { font-size: 1.15rem; line-height: 1; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tagline { font-size: 0.78rem; color: var(--ink-soft); }
.nav { display: none; gap: 1rem; align-items: center; }
.nav a:not(.button) { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav-toggle {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 0.9rem;
  font: inherit;
  font-weight: 700;
}
.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 1rem 1rem;
}
.button, button.button, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--forest);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.button { background: var(--forest); color: #fff; }
.button:hover { background: var(--forest-deep); color: #fff; }
.button-ghost { background: transparent; color: var(--forest-deep); }
.button-ghost:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }

.hero { padding: 1.5rem 0 1rem; }
.hero-grid { display: grid; gap: 1.4rem; }
.hero-photo { position: relative; display: grid; gap: 0.75rem; }
.hero-photo figure { margin: 0; }
.hero-photo figcaption, .card figcaption, .place h3, .photo-label { font-weight: 700; margin: 0.45rem 0 0; }
.hero-shot-frame { position: relative; }
.hero-shot-frame img, .frame img, .card picture img, .card figure img, .hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.hero-shot-frame img {
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
}
.hero-shot-solar img { object-position: center 28%; }
.hero-shot-adu img { object-position: center 45%; }
.photo-overlay {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  max-width: calc(100% - 1rem);
  background: rgba(20, 53, 40, 0.94);
  color: #fff;
  border: 1.5px solid #F5B82E;
  border-radius: 12px;
  padding: 7px 12px 8px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(20, 53, 40, 0.42);
  pointer-events: none;
}
.photo-overlay span { color: #FFD166; font-weight: 800; }
.overlay-adu-on-solar { display: none; }
.hero-photo-proof { margin: 0.15rem 0 0; }
.card picture img, .card figure img, .split .card img {
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
}
.card img.solar-crop, .place img.solar-crop { object-position: center 28%; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
}
.stat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}
.stat b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

section { padding: 3.2rem 0; }
.band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split, .cards, .steps, .places, .zips, .persona-grid { display: grid; gap: 1rem; align-items: stretch; }
.card, .step, .place, .persona, .zip, .faq details, .form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.card, .step, .persona {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.card .button, .card .button-ghost, .step-cta, .persona .button, .persona > p:has(.button) {
  margin-top: auto;
}
.step-cta { margin-bottom: 0; }
.photo-label { margin: 0.35rem 0 0.2rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.band .card, .band .step, .band .form-card { background: var(--paper); }
.card h3, .step h3 { color: var(--forest-deep); }
.we-you { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.we-you div { background: rgba(30, 74, 56, 0.06); border-radius: 12px; padding: 0.7rem 0.8rem; }
.we-you strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.step-kicker { font-weight: 700; color: var(--forest); margin-bottom: 0.2rem; }
.step h4 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0.9rem 0 0.4rem;
  color: var(--forest-deep);
}
.check-list {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.check-list li {
  position: relative;
  padding-left: 1.55rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}

.places { grid-template-columns: 1fr; }
.place img { border-radius: 12px; margin-bottom: 0.7rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.place img.crop-carport { object-position: 50% 30%; }
.place.span { }
.case-photos { display: grid; gap: 0.9rem; margin: 0.4rem 0 1rem; align-items: stretch; }
.case-photos figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-photos .photo-frame,
.case-photos .elevation .drawing-frame {
  display: block;
  width: 100%;
  aspect-ratio: var(--img-ratio, 3 / 2);
  border-radius: var(--img-radius, 12px);
  box-shadow: var(--img-shadow);
  overflow: hidden;
  background: #f4efe6;
}
.case-photos .photo-frame picture,
.case-photos .drawing-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.case-photos img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
  object-position: center 30%;
}
.case-photos .elevation .drawing-frame {
  background: #f7f4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  box-sizing: border-box;
}
.case-photos .elevation img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.case-photos figcaption { margin-top: 0.4rem; color: #f3ead7; }
.case-photos .elevation { background: transparent; padding: 0; border-radius: 0; }
.case-photos .elevation figcaption { color: #f3ead7; }
.case h2 {
  overflow: visible;
  padding-top: 0.2em;
  line-height: 1.2;
}
.note {
  background: #efe7d6;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-card { box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 0.85rem; }
.stack { margin-top: 0.85rem; }
.flush { margin: 0; }
label, .consent { display: grid; gap: 0.3rem; font-weight: 700; }
.consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; }
.consent input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 0.45rem; }
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.choices-2 { grid-template-columns: 1fr 1fr; }
.choices-3 { grid-template-columns: 1fr; }
.choices label {
  font-weight: 600;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-height: 48px;
  min-width: 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.15;
}
.choices label span { overflow: hidden; text-overflow: ellipsis; }
.choices input[type="checkbox"], .choices input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--forest);
  background: #fff;
  color: var(--ink);
}
.choices label:has(input:checked) {
  border-color: var(--forest);
  background: #eef5f1;
  color: var(--ink);
}
.choices label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 7rem; }
::placeholder { color: #4a453c; opacity: 1; }
.field-error { color: var(--danger); font-weight: 700; font-size: 0.92rem; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--danger); }
.form-alert {
  background: #f8e8e4;
  border: 1px solid #e3b2aa;
  color: #641f1f;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.8rem;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.persona figure, .persona picture { display: block; width: 100%; margin: 0; }
.persona figcaption { margin: 0; }
.persona img { border-radius: 12px; margin-bottom: 0.35rem; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 40%; display: block; }
.case {
  background: var(--forest-deep);
  color: #f4efe6;
  border-radius: 28px;
  padding: 1.4rem 1.1rem 1.5rem;
}
.case .eyebrow, .case a { color: #e8c47a; }
.case h2 { color: #fff; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 1rem 0; }
.case-stats div { background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 0.75rem; }
.case-stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; }
.diagram { width: 100%; height: auto; margin: 0.4rem 0 0.8rem; }
.case .button { background: #f4efe6; color: var(--forest-deep); border-color: #f4efe6; }
.case .button-ghost { color: #f4efe6; border-color: #f4efe6; }

.month-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.month-bar button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 0.8rem;
}

.zips { grid-template-columns: 1fr 1fr; }
.zip b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.4rem; }
.zip span { color: var(--ink-soft); }

.faq details { padding: 0.2rem 1rem; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--forest); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin-top: 0; }

.site-footer { background: var(--forest-deep); color: #f4efe6; padding: 2.5rem 0 6rem; }
.site-footer a { color: #f4efe6; }
.site-footer .eyebrow { color: #f3ead7; }
.footer-grid { display: grid; gap: 1.4rem; }
.site-footer .sources,
.site-footer .credits { font-size: 0.92rem; color: #e7dfd2; }
.site-footer .sources a,
.site-footer .credits a { color: #f4efe6; }
/* Sources page: body text on cream paper, not the footer cream-on-green colors. */
main ol.sources {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
  padding-left: 1.4rem;
}
main ol.sources li { margin: 0 0 0.85rem; }
main ol.sources a { color: var(--forest); }
main ol.sources a:hover,
main ol.sources a:focus { color: var(--forest-deep); }
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
}
.mobile-bar[hidden] { display: none; }
.mobile-bar .button { flex: 1 1 100%; width: 100%; }

.page-wrap { padding: 2.5rem 0 4rem; }
.prose { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }
.thanks-in, .thanks-out, .thanks-owner { display: none; }
body[data-thanks="in-area"] .thanks-in, body[data-thanks="waitlist"] .thanks-out, body[data-thanks="owner"] .thanks-owner { display: block; }

@media (max-width: 759px) {
  .header-inner > .button { display: none; }
  .site-header { overflow: visible; }
  .header-inner { min-height: 3.6rem; align-items: center; gap: 0.65rem; }
  .wordmark { font-size: 1.05rem; line-height: 1.15; white-space: nowrap; }
  .tagline { display: none; }
  .brand { flex-shrink: 0; min-width: 0; }
  .header-phone { font-size: 0.92rem; }
  .photo-overlay { font-size: 0.66rem; padding: 5px 8px 6px; border-radius: 10px; bottom: 0.55rem; }
  .hero-shot-adu { display: none; }
  .overlay-adu-on-solar { display: block; }
  .hero-shot-solar .overlay-solar { bottom: 3.05rem; }
  .hero-shot-solar .overlay-adu-on-solar { bottom: 0.55rem; }
  .hero-shot-frame img,
  .persona img,
  .place img,
  .card picture img,
  .card figure img,
  .option-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices-3 { grid-template-columns: 1fr; }
  .choices label { font-size: 0.88rem; padding: 0.45rem 0.5rem; }
}

@media (min-width: 760px) {
  .nav { display: flex; position: static; background: none; border: 0; padding: 0; flex-direction: row; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .split, .persona-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .places { grid-template-columns: 1fr 1fr; }
  .case-photos { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .zips { grid-template-columns: repeat(4, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
  .footer-grid { grid-template-columns: 1.1fr 1fr; }
}
@media (min-width: 980px) {
  .hero { padding-top: 2.4rem; }
  .places { grid-template-columns: 1.35fr 1fr 1fr; }
  .place.span { grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.option-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
.option-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.option-card figure { margin: 0; }
.option-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.option-card .photo-label { margin: 0.35rem 0 0.15rem; }
.option-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0.55rem 0 0.15rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--forest);
  color: #f4efe6;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.option-card.is-full .option-badge {
  background: var(--forest-deep);
}
.option-card h3 { margin: 0.35rem 0 0.2rem; }
.option-money {
  font-weight: 700;
  color: var(--forest-deep);
  margin: 0 0 0.6rem;
}
.option-card dl { margin: 0; display: grid; gap: 0.65rem; }
.option-card dt { font-weight: 700; margin: 0; }
.option-card dd { margin: 0.15rem 0 0; }
.option-cta { margin-top: auto; padding-top: 1rem; margin-bottom: 0; }
.option-cta .button { display: inline-flex; }
@media (min-width: 760px) {
  .option-grid { grid-template-columns: 1fr 1fr; }
  .choices-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.hero-cap-mobile { display: none; }
.form-split { display: grid; gap: 1.5rem; }
.review-preview {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  height: fit-content;
}
.review-preview .check-list { margin: 0; }
.option-more { margin-top: 1rem; }
.option-more > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest-deep);
  font-size: 1.05rem;
  padding: 0.55rem 0;
}
.option-more[open] > summary { margin-bottom: 0.6rem; }
@media (max-width: 759px) {
  .hero-cap-desktop { display: none; }
  .hero-cap-mobile { display: block; }
  .hero-photo-proof { display: none; }
}
@media (min-width: 760px) {
  .form-split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}

/* --- Shared image system (3:2) --- */
:root {
  --img-ratio: 3 / 2;
  --img-radius: 12px;
  --img-shadow: 0 8px 22px rgba(28, 25, 20, 0.08);
  --img-max-h: 320px;
  --img-pos: center 40%;
}
.media-frame,
.persona picture,
.option-card picture,
.place picture,
.card picture,
.case-photos picture,
.hero-shot-frame {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--img-radius);
  box-shadow: var(--img-shadow);
  aspect-ratio: var(--img-ratio);
  background: var(--line);
}
/* Height comes from width and --img-ratio (3:2). --img-max-h is the design target for wide frames. */
@media (min-width: 1024px) {
  .persona picture,
  .case-photos picture {
    /* 3:2 of the column width; no cap so the ratio stays exact */
    max-height: none;
  }
}
.persona img,
.option-card img,
.place img,
.card picture img,
.case-photos img,
.hero-shot-frame img,
.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--img-pos);
  border-radius: 0;
  margin: 0;
  aspect-ratio: auto;
  max-width: none;
}
.case-photos .diagram,
.case-photos img[src*="front-elevation"] {
  object-fit: contain;
  background: #fffdf8;
  object-position: center;
}
.hero-shot-solar img { object-position: center 28%; }
.hero-shot-adu img { object-position: center 45%; }
.img-pos-building { object-position: center 30%; }
.img-pos-upper { object-position: center 28%; }
.img-pos-center { object-position: center center; }
.hero-shot-frame {
  max-height: none;
}

/* Hero at 1024+: stack the two photos and stretch them so the photo
   column bottom aligns with the text column. Hero frames may leave the
   site-wide 3:2 ratio; both shots stay the same size as each other.
   Mobile is unchanged. */
@media (min-width: 1024px) {
  .hero-grid { align-items: stretch; }
  .hero-photo {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    height: 100%;
    min-height: 0;
    gap: 0.55rem;
  }
  .hero-shot {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
  }
  .hero-shot-frame {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
  }
  .hero-shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }
  .hero-photo figcaption { margin: 0.3rem 0 0; }
  .hero-photo-proof { margin: 0; flex: 0 0 auto; }
}

/* Contrast: header nav button and footer links */
.nav a:not(.button) {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.nav a:not(.button):hover,
.nav a:not(.button):focus,
.nav a:not(.button):focus-visible {
  color: var(--forest);
}
.site-header .nav a.button,
.site-header .nav a.button:link,
.site-header .nav a.button:visited,
.site-header .nav a.button:hover,
.site-header .nav a.button:focus,
.site-header .nav a.button:focus-visible,
.site-header .nav a.button:active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.site-header .nav a.button:hover,
.site-header .nav a.button:focus,
.site-header .nav a.button:focus-visible,
.site-header .nav a.button:active {
  color: #fff;
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}
a.button:link,
a.button:visited,
a.button:hover,
a.button:focus,
a.button:focus-visible,
a.button:active,
button.button:hover,
button.button:focus,
button.button:focus-visible,
button.button:active {
  color: #fff;
}
a.button:hover,
a.button:focus,
a.button:focus-visible,
a.button:active,
button.button:hover,
button.button:focus,
button.button:focus-visible,
button.button:active {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: #fff;
}
.case a.button,
.case a.button:link,
.case a.button:visited,
.case a.button:hover,
.case a.button:focus,
.case a.button:focus-visible,
.case a.button:active {
  color: var(--forest-deep);
  background: #f4efe6;
  border-color: #f4efe6;
}
.case a.button:hover,
.case a.button:focus,
.case a.button:focus-visible,
.case a.button:active {
  color: var(--forest-deep);
  background: #fff;
  border-color: #fff;
}
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:focus-visible,
.site-footer a:active {
  color: #f4efe6;
}
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:focus-visible {
  color: #fff;
}

/* Steps typography: eyebrows and h2s match the rest of the site */
.step .eyebrow {
  margin: 0 0 0.7rem;
}
.step h2 {
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.step-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}
.step-tile {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  margin: 0;
}
.step-tile b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.15;
}
.step-tile span {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0.2rem 0;
}
.step-tile small,
.step-tile .tile-source {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.step-tile .tile-source a { color: var(--forest-deep); }
.cover-icons {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}
.cover-icons li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  list-style: none;
}
.cover-icons { list-style: none; padding: 0; }
.cover-icons svg { width: 2rem; height: 2rem; color: var(--forest); }
.trust-lines { margin: 0.8rem 0 1rem; padding: 0; list-style: none; }
.trust-lines li { margin: 0 0 0.25rem; font-weight: 600; color: var(--forest-deep); }
.walk-away { margin: 0.8rem 0 1rem; padding-left: 1.2rem; }
.walk-away li { margin: 0 0 0.35rem; }
.price-block { font-weight: 700; color: var(--forest-deep); margin: 0.8rem 0 0.4rem; }
.step-foot { font-size: 0.92rem; color: var(--ink-soft); }
@media (min-width: 760px) {
  .step-tiles { grid-template-columns: repeat(4, 1fr); }
  .step-tile:nth-child(5) { grid-column: 1 / span 2; }
  .step-tile:nth-child(6) { grid-column: 3 / span 2; }
  .cover-icons { grid-template-columns: 1fr; }
}

/* Form desktop: fill the right column, 3-across name/email/phone, sticky preview */
.review-cover {
  background: var(--forest-deep);
  color: #f4efe6;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  box-shadow: var(--img-shadow);
}
.review-cover .eyebrow { color: #f3ead7; }
.review-cover h3 { color: #fff; font-size: 1.2rem; margin: 0 0 0.5rem; }
.review-cover p { margin: 0 0 0.4rem; }
.review-bubbles { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0; }
.review-bubbles span {
  display: inline-block;
  background: rgba(20, 53, 40, 0.94);
  color: #fff;
  border: 1.5px solid #F5B82E;
  border-radius: 12px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.84rem;
}
.review-bubbles b { color: #FFD166; }
.review-preview .trust-lines { color: var(--forest-deep); }
@media (min-width: 1024px) {
  .form-split { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 1.5rem; }
  .form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
  .review-preview {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

/* Options: all four cards on desktop, expander on mobile only */
@media (max-width: 1023px) {
  .option-extra { display: none; }
  .options-block:has(.option-more[open]) .option-extra { display: flex; }
}
@media (min-width: 1024px) {
  .options-block .option-more { display: none; }
  .options-block .option-grid,
  #solar-options .option-grid,
  #backyard-options .option-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    align-items: stretch;
  }
  .option-card { padding: 0.5rem; }
  .option-card h3 { font-size: 1.05rem; margin: 0.25rem 0 0.15rem; }
  .option-money { margin: 0 0 0.4rem; font-size: 0.95rem; }
  .option-card dl { gap: 0.35rem; }
  .option-card dt { font-size: 0.82rem; }
  .option-card dd { font-size: 0.88rem; }
  .option-cta { padding-top: 0.5rem; }
  .option-cta .button { min-height: 44px; padding: 0.45rem 0.8rem; font-size: 0.92rem; }
  .option-card .opt-row-fits dd,
  .option-card .opt-row-assess dd {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .option-card .opt-row-plan,
  .option-card .opt-row-saves,
  .option-card .opt-row-assess { display: none; }
  #solar-options .wrap,
  #backyard-options .wrap { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}

/* Places: 4-across on desktop, 2x2 on mid, 1 col on small */
.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: stretch;
}
.places .place { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.places .place h3 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0.45rem 0 0;
  color: var(--ink);
}
@media (min-width: 600px) {
  .places { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .places { grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
}

/* Sources page */
.sources li { scroll-margin-top: 5.5rem; }

@media (min-width: 760px) and (max-width: 1023px) {
  .form-grid.two.three { grid-template-columns: 1fr 1fr; }
  .form-grid.two.three > :nth-child(3) { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  #solar-options.band,
  #backyard-options.band { padding-top: 0.65rem; padding-bottom: 0.65rem; }
  #solar-options .eyebrow,
  #backyard-options .eyebrow { margin-bottom: 0.3rem; }
  #solar-options h2,
  #backyard-options h2 { margin-bottom: 0.25rem; }
  #solar-options .wrap > p,
  #backyard-options .wrap > p { margin-bottom: 0.55rem; }
  #solar-options .proof,
  #backyard-options .proof { margin-top: 0.35rem; }
}

@media (min-width: 1024px) {
  #solar-options .proof,
  #backyard-options .proof { margin: 0.35rem 0 0; font-size: 0.85rem; }
  #solar-options .option-foot-note,
  #backyard-options .option-foot-note { margin: 0.15rem 0; font-size: 0.85rem; }
  #solar-options .actions,
  #backyard-options .actions { margin: 0.35rem 0 0; }
}

/* --- v5 addendum --- */

/* Phone field: keep the label on one line and align inputs */
@media (min-width: 1024px) {
  .form-grid.two.three { align-items: end; }
  .form-grid.two.three label { white-space: nowrap; }
}

/* Case study: show the roofline */
.case-photos .photo-frame img,
.case-photos img.img-pos-center {
  object-position: center;
}

/* Elevation drawing in option cards uses contain so the whole drawing shows */
.option-card img.option-drawing {
  object-fit: contain;
  object-position: center;
  background: #fffdf8;
}

/* Desktop option cards: one full selling line, no ellipsis, less gap above the CTA */
.option-sell { display: none; margin: 0.35rem 0 0; font-size: 0.95rem; color: var(--ink); }
.option-sell a { font-weight: 700; }
.option-badge-empty {
  visibility: hidden;
  min-height: 1.55rem;
  margin: 0.55rem 0 0;
  padding: 0;
}
.option-badge { min-height: 1.55rem; }

@media (min-width: 1024px) {
  .option-sell { display: block; }
  .option-card .opt-row-fits,
  .option-card .opt-row-plan,
  .option-card .opt-row-saves,
  .option-card .opt-row-assess { display: none; }
  .option-card .opt-row-fits dd {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }
  .option-cta { margin-top: 0.75rem; padding-top: 0.5rem; }
  .option-card { display: flex; flex-direction: column; }
  .option-card .option-cta { margin-top: auto; padding-top: 0.75rem; }
}

/* Step 1 tiles: 3 across on desktop, 2 across on mobile, tighter on small screens */
@media (min-width: 1024px) {
  .step-tiles {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .step-tile:nth-child(5),
  .step-tile:nth-child(6) { grid-column: auto; }
}

@media (max-width: 1023px) {
  .step-tiles { grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.7rem 0; }
  .step-tile { padding: 0.55rem 0.6rem; }
  .step-tile b { font-size: 1.15rem; }
  .step #property-potential-review,
  #property-potential-review { padding-bottom: 0.2rem; }
  .step { padding: 1rem 1rem 1.1rem; }
}

/* Mobile first screen: photo with both bubbles sits under the headline */
@media (max-width: 1023px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .hero-grid > .eyebrow { grid-row: 1; margin-bottom: 0.35rem; }
  .hero-grid > h1 { grid-row: 2; margin-bottom: 0; }
  .hero-grid > .hero-photo { grid-row: 3; }
  .hero-grid > .hero-copy { grid-row: 4; }
}

/* Desktop hero: photo column spans the text block and stays height-matched */
@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto auto;
    align-items: stretch;
    column-gap: 1.4rem;
    row-gap: 0;
  }
  .hero-grid > .eyebrow { grid-column: 1; grid-row: 1; }
  .hero-grid > h1 { grid-column: 1; grid-row: 2; }
  .hero-grid > .hero-copy { grid-column: 1; grid-row: 3; }
  .hero-grid > .hero-photo {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    gap: 0.55rem;
  }
  .hero-photo .hero-shot {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
  }
  .hero-photo .hero-shot-frame {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    width: 100%;
  }
  .hero-photo .hero-shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }
  .hero-photo-proof { margin: 0; flex: 0 0 auto; }
}

/* Two ways is now text-only cards */
#solar.card picture,
#backyard.card picture,
#backyard.card figure { display: none; }

/* options one-screen tighten v5 */
@media (min-width: 1024px) {
  #solar-options.band,
  #backyard-options.band { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  #solar-options .eyebrow,
  #backyard-options .eyebrow { margin-bottom: 0.25rem; }
  #solar-options h2,
  #backyard-options h2 { margin-bottom: 0.2rem; }
  .option-card { padding: 0.45rem; }
  .option-badge,
  .option-badge-empty { min-height: 1.35rem; margin-top: 0.3rem; }
  .option-sell { font-size: 0.9rem; margin-top: 0.25rem; }
}


/* --- v7 two-step form, jump buttons, installers, case crop --- */
.form-anchor {
  scroll-margin-top: 5.5rem;
  height: 0;
}

.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest-deep);
  background: transparent;
  border: 1.5px solid var(--forest);
  cursor: pointer;
}
.button-quiet:hover,
.button-quiet:focus,
.button-quiet:focus-visible {
  background: #fff;
  color: var(--forest-deep);
}
.step-jump {
  margin: 0.65rem 0 0.85rem;
}

.form-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.form-step-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-deep);
}
.form-progress-track {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.form-progress-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d7d0c3;
  display: inline-block;
}
.form-progress-dot.is-current,
.form-progress-dot.is-done {
  background: var(--forest);
}
.form-next-note { margin: 0.45rem 0 0; }
.form-area-note {
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.7rem;
  background: rgba(30, 74, 56, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
}
.form-back-wrap { margin: 0.2rem 0 0.35rem; }
.form-back {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Progressive enhancement: JS adds .is-stepped */
form.is-stepped:not(.is-step-2) [data-step="2"] { display: none; }
form.is-stepped.is-step-2 [data-step="1"] { display: none; }

.crew-photos {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
  align-items: stretch;
}
.crew-photos figure { margin: 0; min-width: 0; }
.crew-photos .photo-frame {
  display: block;
  width: 100%;
  aspect-ratio: var(--img-ratio, 3 / 2);
  border-radius: var(--img-radius, 12px);
  box-shadow: var(--img-shadow);
  overflow: hidden;
  background: #f4efe6;
}
.crew-photos .photo-frame picture,
.crew-photos .photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 760px) {
  .crew-photos { grid-template-columns: 1fr 1fr; }
}


/* Staged: backyard home types panel. Native details/summary, no display:contents. */
.adu-types {
  margin: 0.55rem 0 0.25rem;
}
.adu-types > summary {
  display: inline-block;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  list-style: none;
}
.adu-types > summary::-webkit-details-marker,
.adu-types > summary::marker {
  display: none;
  content: "";
}
.adu-types > summary:hover,
.adu-types > summary:focus,
.adu-types > summary:focus-visible {
  color: var(--forest);
}
.adu-types[open] > summary { margin-bottom: 0.15rem; }
#backyard-home-types { scroll-margin-top: 5.5rem; }
.adu-types-panel {
  margin-top: 0.7rem;
}
.adu-types-panel figure { margin: 0; }
.adu-types-frame {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--img-radius, 12px);
  box-shadow: var(--img-shadow);
  background: #fff;
}
.adu-types-frame picture,
.adu-types-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #fff;
}
