/* ==========================================================================
   East Side Apartment Value
   Palette comes from the neighborhood: awning green, door brass, limestone.
   To rebrand, change the variables in :root and the two font families.
   ========================================================================== */

:root {
  /* Colour */
  --canopy: #1c3b30;        /* awning green: primary */
  --canopy-deep: #132a22;   /* footer, banner */
  --canopy-soft: #2a5142;   /* hover on green */
  --brass: #a9853f;         /* accent, decorative only */
  --brass-light: #d3b36f;   /* accent on green */
  --brass-ink: #6f5620;     /* accent dark enough for small text */
  --limestone: #eceae3;     /* page background */
  --paper: #faf9f5;         /* cards */
  --white: #ffffff;         /* form fields */
  --ink: #1b211e;           /* body text */
  --ink-soft: #55605a;      /* secondary text */
  --on-green: #eceae3;      /* text on green */
  --on-green-soft: #b9c4bd; /* secondary text on green */
  --line: #d6d2c6;          /* borders on limestone */
  --line-green: rgba(236, 234, 227, 0.2);
  --brick: #9b3b2b;         /* errors */

  /* Type */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape and depth */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(27, 33, 30, 0.04), 0 14px 30px -18px rgba(27, 33, 30, 0.22);
  --shadow-form: 0 2px 4px rgba(10, 20, 16, 0.12), 0 30px 60px -30px rgba(10, 20, 16, 0.55);

  /* Layout */
  --wrap: 72.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 4.5rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--canopy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--canopy-soft); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h3, h4 { font-family: var(--font-serif); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--canopy);
  color: var(--white);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Small label above a section heading */
.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.on-green .eyebrow { color: var(--brass-light); }

.section { padding-block: var(--section); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--ink-soft); max-width: 36rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--canopy); color: var(--white); }
.btn-primary:hover { background: var(--canopy-soft); color: var(--white); }
.btn-quiet { background: transparent; color: var(--canopy); border-color: var(--canopy); }
.btn-quiet:hover { background: rgba(28, 59, 48, 0.07); color: var(--canopy); }
.btn-brass { background: var(--brass-light); color: var(--canopy-deep); }
.btn-brass:hover { background: #dfc387; color: var(--canopy-deep); }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.btn-small { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 234, 227, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover { color: var(--canopy); }
.wordmark svg { width: 1.7rem; height: 1.7rem; flex: none; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--brass); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .header-actions { display: flex; align-items: center; gap: 0.6rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--limestone);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 0.75rem; }
  .wordmark { font-size: 1.05rem; }
}
@media (max-width: 23rem) {
  .wordmark { font-size: 0.95rem; gap: 0.5rem; }
  .wordmark svg { width: 1.45rem; height: 1.45rem; }
}
@media (min-width: 52.01rem) {
  .header-actions { display: none; }
}
@media (max-width: 36rem) {
  .header-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  max-width: 14ch;
}
.hero-lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
}
.fact {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.fact dt { font-size: 0.8125rem; color: var(--ink-soft); }
.fact dd { margin: 0.25rem 0 0; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3; }
.fact-key { background: var(--canopy); border-color: var(--canopy); }
.fact-key dt { color: var(--brass-light); }
.fact-key dd { color: var(--white); }
.lede-promise { color: var(--ink); font-weight: 600; }

/* The facade: one building, your apartment, and the sales it is measured against */
.facade {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--canopy);
  border-radius: var(--radius-l);
  color: var(--on-green);
}
.facade svg { width: 100%; height: auto; }
.facade figcaption { margin-top: 1.1rem; font-size: 0.875rem; line-height: 1.45; color: var(--on-green-soft); }
.facade-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1rem; list-style: none; font-size: 0.875rem; }
.facade-key li { display: inline-flex; align-items: center; gap: 0.5rem; }
.key-swatch { width: 0.9rem; height: 0.75rem; border-radius: 2px; flex: none; }
.key-yours { border: 2px solid var(--on-green); }
.key-sold { background: var(--brass-light); }

.win { fill: rgba(236, 234, 227, 0.07); stroke: rgba(236, 234, 227, 0.22); stroke-width: 1; }
.win-sold { fill: var(--brass-light); stroke: var(--brass-light); }
.win-yours { fill: rgba(236, 234, 227, 0.16); stroke: var(--on-green); stroke-width: 2.5; }
.facade-trim { stroke: rgba(236, 234, 227, 0.3); stroke-width: 1; fill: none; }
.facade-awning { fill: var(--canopy-deep); stroke: var(--brass-light); stroke-width: 1.5; }
.facade-numeral { fill: var(--brass-light); font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: no-preference) {
  .win-sold { animation: light-up 0.5s ease-out both; }
  .facade-sold .win-sold:nth-child(1) { animation-delay: 0.5s; }
  .facade-sold .win-sold:nth-child(2) { animation-delay: 0.75s; }
  .facade-sold .win-sold:nth-child(3) { animation-delay: 1s; }
  .facade-sold .win-sold:nth-child(4) { animation-delay: 1.25s; }
  .facade-sold .win-sold:nth-child(5) { animation-delay: 1.5s; }
  .win-yours { animation: mark-yours 0.6s ease-out 0.15s both; }
}
@keyframes light-up {
  from { fill: rgba(236, 234, 227, 0.07); stroke: rgba(236, 234, 227, 0.22); }
  to { fill: var(--brass-light); stroke: var(--brass-light); }
}
@keyframes mark-yours {
  from { stroke-width: 1; stroke: rgba(236, 234, 227, 0.22); }
  to { stroke-width: 2.5; stroke: var(--on-green); }
}

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .facade { max-width: 30rem; }
}
@media (max-width: 38rem) {
  .facts { grid-template-columns: 1fr; }
}

/* Hero address box: the first step of the valuation */
.address-start {
  margin-top: 2rem;
  max-width: 36rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
.address-row { display: flex; gap: 0.6rem; align-items: flex-end; }
.address-field { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.address-unit { flex: 0 0 5.5rem; }
.address-field label { margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.address-field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1px solid #bdb9ac;
  border-radius: var(--radius-s);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.address-field input:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--canopy); border-radius: var(--radius-s); }
.address-field input[aria-invalid="true"] { border-color: var(--brick); box-shadow: 0 0 0 1px var(--brick); }
.address-go { min-height: 3.25rem; flex: none; }
.address-start .field-error { margin-top: 0.5rem; }
.address-help { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-soft); }
.address-help a { color: inherit; }
@media (max-width: 34rem) {
  .address-row { flex-wrap: wrap; }
  .address-field:first-child { flex-basis: 100%; }
  .address-unit { flex: 1 1 5rem; }
  .address-go { flex: 2 1 8rem; }
}

/* Recorded sales snapshot at the top of the form */
.snapshot {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  background: #f1eee4;
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.snapshot[hidden] { display: none; }
.snapshot h3 { font-size: 1.1rem; line-height: 1.3; }
.snapshot-status { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.snapshot-status:empty { display: none; }
.snapshot-list { margin-top: 0.75rem; list-style: none; }
.snapshot-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.snap-where { font-weight: 600; overflow-wrap: anywhere; }
.snap-meta { color: var(--ink-soft); font-size: 0.875rem; }
.snap-price { font-family: var(--font-serif); font-size: 1.05rem; text-align: right; }
.snapshot-note { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--ink-soft); }
.snapshot-note:empty { display: none; }
@media (max-width: 30rem) {
  .snapshot-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .snap-meta { grid-column: 1; grid-row: 2; }
  .snap-price { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

/* --------------------------------------------------------------------------
   How it works: numerals set like the address on an awning
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brass);
}
.step h3 { font-size: 1.3rem; line-height: 1.25; }
.step p { margin-top: 0.6rem; color: var(--ink-soft); }

@media (max-width: 46rem) {
  .steps { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Valuation form
   -------------------------------------------------------------------------- */
.valuation {
  background: var(--canopy);
  color: var(--on-green);
}
.valuation-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.valuation-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.valuation-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; color: var(--white); }
.valuation-intro p:not(.eyebrow) { margin-top: 1rem; color: var(--on-green-soft); }
.promise-list { margin-top: 1.75rem; list-style: none; border-top: 1px solid var(--line-green); }
.promise-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--line-green); font-size: 0.975rem; }
.promise-list strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.1rem; color: var(--white); }
.promise-list span { color: var(--on-green-soft); }

@media (max-width: 60rem) {
  .valuation-grid { grid-template-columns: 1fr; }
  .valuation-intro { position: static; }
}

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-form);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* Progress */
.progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  list-style: none;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 3px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.progress-num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  flex: none;
}
.progress li.is-done { border-top-color: var(--canopy); color: var(--ink); }
.progress li.is-done .progress-num { background: var(--canopy); border-color: var(--canopy); color: var(--white); }
.progress li[aria-current="step"] { border-top-color: var(--brass); color: var(--ink); }
.progress li[aria-current="step"] .progress-num { background: var(--brass-ink); border-color: var(--brass-ink); color: var(--white); }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step > legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15;
}
.step-note { margin-bottom: 1.5rem; color: var(--ink-soft); font-size: 0.975rem; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1rem;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 34rem) {
  .field-grid { grid-template-columns: 1fr; }
}

.field > label,
.group-label {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--ink-soft); }
.req { color: var(--brick); }
.hint { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid #bdb9ac;
  border-radius: var(--radius-s);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%231b211e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--canopy);
  border-radius: var(--radius-s);
}
.field [aria-invalid="true"] { border-color: var(--brick); box-shadow: 0 0 0 1px var(--brick); }

.field-error {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brick);
}
.field-error:empty { display: none; }

/* Button-style choices built on real radio inputs */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices > legend { padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid #bdb9ac;
  border-radius: var(--radius-s);
  font-size: 0.975rem;
  font-weight: 500;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.choice input:hover + span { border-color: var(--canopy); }
.choice input:checked + span { background: var(--canopy); border-color: var(--canopy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

.inline-note {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  background: #f1eee4;
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.inline-note[hidden] { display: none; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid #bdb9ac;
  border-radius: var(--radius-s);
}
.consent input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--canopy); }
.consent label { font-size: 0.875rem; line-height: 1.5; font-weight: 400; margin: 0; }
.privacy-note { margin-top: 0.9rem; font-size: 0.875rem; color: var(--ink-soft); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.form-actions .btn-primary { margin-left: auto; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #f6e9e5;
  border: 1px solid #dbb3a9;
  border-radius: var(--radius-s);
  color: #6f2417;
  font-size: 0.95rem;
}
.form-status[hidden] { display: none; }
.form-status .btn { margin-top: 0.7rem; }

.spinner {
  width: 1.05rem; height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; }
.thanks p { margin-top: 0.9rem; }
.thanks ol { margin: 1.25rem 0 0 1.25rem; }
.thanks li { margin-top: 0.4rem; padding-left: 0.25rem; }
.thanks .btn { margin-top: 1.5rem; }
.thanks:focus { outline: none; }

/* --------------------------------------------------------------------------
   Why owners use us
   -------------------------------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  list-style: none;
}
.reason {
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.reason svg { width: 1.75rem; height: 1.75rem; color: var(--canopy); margin-bottom: 1rem; }
.reason h3 { font-size: 1.25rem; line-height: 1.25; }
.reason p { margin-top: 0.5rem; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 40rem) {
  .reasons { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Areas
   -------------------------------------------------------------------------- */
.areas { background: var(--paper); border-block: 1px solid var(--line); }
.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  list-style: none;
}
.area-list li { border-top: 1px solid var(--line); }
.area-list a {
  display: block;
  padding: 1.35rem 0;
  color: var(--ink);
  text-decoration: none;
}
.area-list strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
}
.area-list span { display: block; margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.975rem; }
.area-list a:hover strong { color: var(--canopy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 40rem) {
  .area-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Guide cards
   -------------------------------------------------------------------------- */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  list-style: none;
}
.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.guide-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.guide-card h3 { margin-top: 0.8rem; font-size: 1.35rem; line-height: 1.25; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--canopy); text-decoration: underline; text-decoration-thickness: 1px; }
.guide-card p:not(.guide-tag):not(.guide-meta) { margin-top: 0.7rem; color: var(--ink-soft); font-size: 1rem; }
.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.guide-meta a { font-weight: 600; }
@media (max-width: 56rem) {
  .guide-cards { grid-template-columns: 1fr; }
}
.guide-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 46rem) {
  .guide-cards-two { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Closing banner
   -------------------------------------------------------------------------- */
.banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--canopy-deep);
  border-radius: var(--radius-l);
  color: var(--on-green);
}
.banner h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; color: var(--white); }
.banner p { margin-top: 0.8rem; color: var(--on-green-soft); max-width: 34rem; }
@media (max-width: 46rem) {
  .banner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--canopy-deep);
  color: var(--on-green-soft);
  font-size: 0.95rem;
}
.site-footer a { color: var(--on-green); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
}
.footer-brand .wordmark { color: var(--white); }
.footer-brand p { margin-top: 1rem; max-width: 24rem; }
.footer-col h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-top: 0.5rem; }
.footer-col .soon { margin-top: 1.5rem; }
.footer-col .soon-list li { color: var(--on-green-soft); }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-green);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.footer-legal p + p { margin-top: 0.6rem; }
.footer-legal .disclosure { color: var(--on-green); }
/* Privacy links sit in the surrounding grey text, underlined, as quiet as the text around them */
.privacy-link,
.site-footer .privacy-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.privacy-link:hover,
.site-footer .privacy-link:hover { color: inherit; text-decoration-thickness: 2px; }
@media (max-width: 60rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Article and area pages
   -------------------------------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .wrap,
.prose-wrap { max-width: 50rem; }
.crumbs { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.06; }
.page-lede {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.page-meta { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-soft); }

.prose { padding-bottom: 1rem; font-size: 1.0938rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--brass-ink); }
.prose strong { font-weight: 600; }

.callout {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.callout h2, .callout h3 { margin-top: 0; font-size: 1.2rem; }
.callout > * + * { margin-top: 0.7rem; }
.callout dl { margin: 0.9rem 0 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.callout dl > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.callout dt { color: var(--ink-soft); font-size: 0.975rem; }
.callout dd { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; text-align: right; }
.callout .source-line { font-size: 0.85rem; color: var(--ink-soft); }

.sources { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.sources h2 { margin-top: 0; font-size: 1.2rem; }
.sources ul { margin-top: 0.8rem; }

.article-cta {
  margin-top: 3rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--canopy);
  border-radius: var(--radius-l);
  color: var(--on-green);
}
.article-cta h2 { margin-top: 0; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.15; color: var(--white); }
.article-cta p { margin-top: 0.8rem; color: var(--on-green-soft); }
.article-cta .btn { margin-top: 1.4rem; }

.more { padding-top: clamp(3rem, 6vw, 4.5rem); }
.more h2 { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

.hub-list { list-style: none; border-top: 1px solid var(--line); }
.hub-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.hub-list h2 { margin-top: 0.6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.hub-list h2 a { color: var(--ink); text-decoration: none; }
.hub-list h2 a:hover { color: var(--canopy); text-decoration: underline; text-decoration-thickness: 1px; }
.hub-list p:not(.guide-tag):not(.guide-meta) { margin-top: 0.6rem; color: var(--ink-soft); max-width: 40rem; }
.hub-list .guide-meta { margin-top: 0.9rem; padding-top: 0; justify-content: flex-start; gap: 1.5rem; }

.soon-block { margin-top: 3rem; }
.soon-block h2 { font-size: 1.3rem; }
.soon-block ul { margin-top: 0.8rem; padding-left: 1.3rem; color: var(--ink-soft); }
.soon-block li + li { margin-top: 0.3rem; }

.notfound { padding-block: clamp(4rem, 12vw, 9rem); text-align: left; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
.notfound p:not(.eyebrow) { margin-top: 1rem; color: var(--ink-soft); max-width: 32rem; }
.notfound .btn { margin-top: 1.75rem; margin-right: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Who prepares your valuation */
.who { border-top: 1px solid var(--line); }
.who-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.who h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; margin-top: 0.75rem; }
.who-grid > div > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--ink-soft); max-width: 34rem; }
.sources { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.4rem, 3vw, 2rem); }
.sources h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; }
.sources ul { margin-top: 1rem; padding-left: 1.1rem; display: grid; gap: 0.8rem; color: var(--ink-soft); }
.sources a { color: var(--canopy); }
@media (max-width: 52rem) { .who-grid { grid-template-columns: 1fr; } }
