/* CDY Property Group: public site.
   Sleek and high-contrast, built around the logo: ink black, white, and emerald for the one action we want. */

:root {
  --ink: #0d1c23;
  --ink-700: #16272f;
  --ink-900: #08131a;
  --brand: #029c60; /* the logo's emerald: graphics and large accents */
  --accent: #047857; /* deep emerald: buttons and small text on light backgrounds (5.5:1 with white) */
  --accent-600: #065f46;
  --accent-text: #047857;
  --accent-bright: #10b981; /* emerald for dark backgrounds */
  --accent-glow: #34d399;
  --mist: #f4f6f5;
  --mist-200: #e6ebe9;
  --white: #ffffff;
  --text: #101a1f;
  --text-soft: #2f3e44;
  --muted: #4b5a60;
  --line: #dde3e1;
  --dark-line: #1f333b;
  --field-line: #6b7a80;
  --on-dark: #f4f6f5;
  --on-dark-muted: #a8b8b3;
  --error: #b3261e;
  --success: #1c6540;

  --font-head: "Montserrat", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 71.25rem;
  --header-h: 4.9rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 3.4vw + 1.1rem, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 1.9vw + 1.05rem, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--accent-text);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mist);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Panels we move focus to with script (error summary, success message) are not controls: no ring. */
[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  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;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-4);
}

.on-dark .eyebrow {
  color: var(--accent-glow);
}

.lead {
  font-size: clamp(1.15rem, 0.6vw + 1.05rem, 1.35rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 36em;
}

.muted {
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.btn:hover {
  background: var(--accent-600);
  color: var(--white);
}

.btn:active {
  background: #064e3b;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.btn-block {
  width: 100%;
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.45rem 1.05rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-link {
  background: none;
  border: 0;
  padding: 0.6rem 0.25rem;
  min-height: 2.75rem;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 28, 35, 0.97);
  border-bottom: 1px solid var(--dark-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.25rem 0;
}

.brand img {
  height: 2.9rem;
  width: auto;
}

.site-nav {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  color: var(--on-dark);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--accent-glow);
}

.site-header :focus-visible {
  outline-color: var(--white);
}

.site-header .btn:not(.btn-ghost),
.cta-photo .btn,
.on-dark .btn:not(.btn-ghost) {
  background: var(--accent-bright);
  color: var(--ink);
}

.site-header .btn:not(.btn-ghost):hover,
.cta-photo .btn:hover,
.on-dark .btn:not(.btn-ghost):hover {
  background: var(--accent-glow);
  color: var(--ink);
}

.site-header .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.site-header .btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

@media (max-width: 24em) {
  .brand img {
    height: 2.4rem;
  }

  .site-header .btn-small {
    padding-inline: 0.8rem;
    font-size: 0.95rem;
  }
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

@media (min-width: 60em) {
  :root {
    --header-h: 5.4rem;
  }

  .brand img {
    height: 3.6rem;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
  }
}

/* ---------- hero ---------- */

.hero {
  background-color: var(--ink);
  background-image: radial-gradient(52rem 30rem at 88% -12%, rgba(2, 156, 96, 0.34), transparent 62%), radial-gradient(36rem 22rem at -8% 112%, rgba(2, 156, 96, 0.16), transparent 62%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .eyebrow {
  color: var(--accent-glow);
}

.hero .lead {
  color: #c9d4d0;
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(2.25rem, 6vw, 5.5rem);
  align-items: start;
}

/* Phones: headline, then the form, then the reassurance list. Desktop: text on the left, form on the right. */
@media (min-width: 62em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 27.5rem);
    grid-template-rows: auto auto;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 0;
    align-items: start;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .hero-grid > .ticks {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .hero-grid > .offer-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-5);
}

.hero-copy .lead {
  margin-bottom: 0;
}

@media (min-width: 62em) {
  .hero-copy .lead {
    margin-bottom: var(--space-5);
  }
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--white);
}

.ticks svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--accent-bright);
}


/* ---------- offer form ---------- */

.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.offer-card h2 {
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.offer-card .card-note {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: var(--space-4);
}

.form-progress {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.js .form-progress {
  display: flex;
}

.form-progress .bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--mist-200);
  overflow: hidden;
}

.form-progress .bar i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 260ms var(--ease);
}

.form-progress[data-step="2"] .bar i {
  width: 100%;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Two-step form. Until the script has taken over, step 2 stays out of sight so the page doesn't jump;
   with no script at all, every field shows and the step buttons are not needed. */
fieldset[data-step][hidden],
.js:not(.js-ready) fieldset[data-step="2"] {
  display: none;
}

html:not(.js) [data-next],
html:not(.js) [data-back] {
  display: none;
}

.field {
  margin-bottom: var(--space-4);
}

.field label,
.field .label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.3;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

.field .hint {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

form .error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--error);
  margin-top: 0.35rem;
}

form .error::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field-row {
  display: grid;
  gap: 0 var(--space-4);
}

@media (min-width: 30em) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: var(--space-4);
}

.check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}

.check label {
  font-size: 1rem;
}

.check [aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.check .error {
  grid-column: 1 / -1;
  margin-top: 0;
}

fieldset.field legend {
  padding: 0;
}

.checks {
  display: grid;
  gap: 0.35rem 1rem;
}

@media (min-width: 30em) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}

.checks .check {
  margin-bottom: 0;
  min-height: 2.75rem;
  align-items: center;
}

.checks .check input {
  margin-top: 0;
}

.error-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: #fdf1ef;
  padding: 0.85rem 1rem;
  margin-bottom: var(--space-4);
  font-size: 1rem;
}

.error-summary h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--error);
  margin-bottom: 0.3rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--error);
  font-weight: 600;
}

.consent {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  margin: var(--space-3) 0 0;
}

.form-actions {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.form-reassure {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--muted);
  margin: var(--space-4) 0 0;
}

.form-reassure svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  color: var(--success);
}

.form-success h2,
.form-success h3 {
  color: var(--ink);
}

.form-success .badge {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #e3f1e9;
  color: var(--success);
  margin-bottom: var(--space-4);
}

.form-success .badge svg {
  width: 1.75rem;
  height: 1.75rem;
}

.form-success ol {
  margin: var(--space-4) 0;
  padding-left: 1.3rem;
}

.form-success li {
  margin-bottom: 0.35rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-head p:not(.eyebrow) {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin: 0;
}

/* steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--ink);
  padding-top: var(--space-4);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.steps h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  color: var(--text-soft);
}

/* situation cards */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 40em) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (min-width: 64em) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mist-200);
}

.card-body {
  padding: var(--space-5);
}

.card .icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--mist);
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-mist .card .icon {
  background: var(--mist);
}

.card .icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.card h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.07rem;
}

/* why sell for cash (dark band) */

.on-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

.on-dark .section-head p:not(.eyebrow) {
  color: var(--on-dark-muted);
}

.on-dark a {
  color: var(--white);
}

.truths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 48em) {
  .truths {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-7);
  }
}

.truths li {
  border-left: 3px solid var(--accent-bright);
  padding-left: var(--space-5);
}

.truths h3 {
  margin-bottom: 0.5rem;
}

.truths p {
  margin: 0;
  color: var(--on-dark-muted);
}

/* compare */

.compare {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink-900);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.compare h3 {
  margin-bottom: var(--space-4);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.6rem;
  border-top: 1px solid var(--dark-line);
}

.compare thead th {
  border-top: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.compare tbody th {
  font-weight: 700;
  color: var(--white);
  width: 30%;
}

.compare td {
  color: var(--on-dark);
}

.compare .ours {
  color: #6ee7b7;
  font-weight: 600;
}

@media (max-width: 34em) {
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    position: absolute;
    left: -9999px;
  }

  .compare tr {
    border-top: 1px solid var(--dark-line);
    padding: 0.8rem 0;
  }

  .compare tbody th,
  .compare td {
    border: 0;
    padding: 0.15rem 0;
    width: 100%;
  }

  .compare td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--on-dark-muted);
  }
}

/* faq */

.faq-grid {
  display: grid;
  gap: var(--space-5);
}

.faq-grid .section-head {
  margin-bottom: 0;
}

.faq-grid .section-head .btn {
  margin-top: var(--space-5);
}

@media (min-width: 62em) {
  .faq-grid {
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }

  .faq-grid .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq {
  max-width: 50rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.15rem 0.25rem;
  min-height: 3.5rem;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq summary:hover {
  color: var(--accent-text);
}

.faq .answer {
  padding: 0 0.25rem 1.25rem;
  max-width: 44rem;
  color: var(--text-soft);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* final call to action */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.cta-final p {
  max-width: 36rem;
  margin: 0 auto var(--space-5);
  font-size: 1.2rem;
  color: var(--text-soft);
}

/* closing band: the street at dusk, one porch light on */

.cta-photo {
  position: relative;
  background: var(--ink-900) url("../img/porch-moving.webp") 70% 60% / cover no-repeat;
  color: var(--white);
}

.cta-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 19, 26, 0.94) 0%, rgba(8, 19, 26, 0.82) 36%, rgba(8, 19, 26, 0.2) 70%, rgba(8, 19, 26, 0) 100%);
}

.cta-photo .wrap {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.cta-photo-copy {
  max-width: 30rem;
}

.cta-photo h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-photo p {
  font-size: 1.2rem;
  color: var(--on-dark);
  margin-bottom: var(--space-5);
}

.cta-photo :focus-visible {
  outline-color: var(--mist);
}

@media (max-width: 47.99em) {
  .cta-photo {
    background-position: 62% bottom;
    background-size: auto 60%;
    background-color: #08131a;
  }

  .cta-photo::before {
    background: linear-gradient(180deg, rgba(8, 19, 26, 1) 0%, rgba(8, 19, 26, 1) 42%, rgba(8, 19, 26, 0.6) 66%, rgba(8, 19, 26, 0.12) 100%);
  }

  .cta-photo .wrap {
    padding-block: 3.5rem 15rem;
  }
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
}

/* page hero for inner pages */

.page-hero {
  background-color: var(--ink);
  background-image: radial-gradient(48rem 26rem at 90% -20%, rgba(2, 156, 96, 0.3), transparent 62%);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 2.8vw + 1rem, 3rem);
  margin-bottom: var(--space-4);
  max-width: 20em;
}

.page-hero .eyebrow {
  color: var(--accent-glow);
}

.page-hero .lead {
  color: #c9d4d0;
}

.split {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 62em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 30rem);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.split h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 1.2vw + 1.3rem, 2rem);
  margin: 0 0 var(--space-4);
}

.split h2:not(:first-child) {
  margin-top: var(--space-6);
}

.plain-list {
  margin: 0 0 var(--space-5);
  padding-left: 1.25rem;
}

.plain-list li {
  margin-bottom: 0.5rem;
}

.prose > * {
  max-width: 44rem;
}

.prose h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: var(--space-6) 0 var(--space-3);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-muted);
  padding-block: var(--space-7) var(--space-6);
  font-size: 1rem;
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
  }
}

.footer-brand img {
  height: 3.75rem;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 1.5rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.disclosure {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--dark-line);
  font-size: 0.97rem;
  line-height: 1.55;
}

.disclosure strong {
  color: var(--on-dark);
}

.disclosure p {
  max-width: 62rem;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: #a7f3d0;
  color: var(--ink);
}

/* ---------- area and situation pages ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
  color: var(--on-dark-muted);
}

.crumbs a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.crumbs a:hover {
  color: var(--white);
}

.crumbs [aria-current="page"] {
  color: var(--on-dark);
}

.hero .crumbs :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--white);
}

.page-hero .btn {
  background: var(--accent-bright);
  color: var(--ink);
  margin-top: var(--space-3);
}

.page-hero .btn:hover {
  background: var(--accent-glow);
  color: var(--ink);
}

.facts {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.facts li {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.facts strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.facts span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.facts-note {
  max-width: 46rem;
  color: var(--text-soft);
}

.table-scroll {
  overflow-x: auto;
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}

.data-table thead th {
  border-top: 0;
  background: var(--mist);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.source {
  margin-top: var(--space-3);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 52rem;
}

.split-even {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 52em) {
  .split-even {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.split-even h2,
.h-small,
.side-links h2 {
  color: var(--ink);
  font-size: clamp(1.3rem, 0.8vw + 1.1rem, 1.6rem);
  margin: 0 0 var(--space-4);
}

.link-list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.link-list a::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: rotate(45deg);
}

.link-list a:hover {
  color: var(--accent-text);
}

.link-list-wide {
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.15rem var(--space-6);
}

.article-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 62em) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }

  .side-links {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.article-grid .prose h2:first-child {
  margin-top: 0;
}

.area-grid {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.area-grid a {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms var(--ease);
}

.area-grid a:hover {
  border-color: var(--accent);
}

.area-grid strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.area-grid span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a::after {
  content: " \203A";
  color: var(--accent);
}

.card h3 a:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- hero photo ---------- */

.hero {
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  will-change: transform;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 62%;
  transform-origin: 72% 55%;
}

/* Dark on the left for the headline, the lit porch glowing through on the right. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 19, 26, 0.97) 0%, rgba(8, 19, 26, 0.88) 32%, rgba(8, 19, 26, 0.42) 60%, rgba(8, 19, 26, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 19, 26, 0.9) 0%, rgba(8, 19, 26, 0) 38%),
    radial-gradient(52rem 30rem at 88% -12%, rgba(2, 156, 96, 0.26), transparent 62%);
}

/* Phones and tablets: the photo sits behind the headline and fades into the page before the form. */
@media (max-width: 61.99em) {
  .hero-media {
    bottom: auto;
    height: min(40rem, 100%);
  }

  .hero-media img {
    object-position: 74% 50%;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(8, 19, 26, 0.5) 0%, rgba(8, 19, 26, 0.82) 40%, rgba(8, 19, 26, 0.96) 72%, var(--ink) 100%);
  }
}

.facts strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- motion (only for visitors who haven't asked for less) ---------- */

.site-header {
  transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}

html.scrolled .site-header {
  background: rgba(13, 28, 35, 0.9);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: hero-drift 20s var(--ease) both;
  }

  .hero-copy > *,
  .page-hero .wrap > *,
  .hero-grid > .ticks > li {
    animation: rise 800ms var(--ease) both;
  }

  .hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: 90ms; }
  .hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: 180ms; }
  .hero-copy > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: 270ms; }
  .page-hero .wrap > :nth-child(5) { animation-delay: 360ms; }

  .hero-grid > .ticks > li:nth-child(1) { animation-delay: 520ms; }
  .hero-grid > .ticks > li:nth-child(2) { animation-delay: 620ms; }
  .hero-grid > .ticks > li:nth-child(3) { animation-delay: 720ms; }

  .hero-grid > .offer-card {
    animation: card-in 900ms var(--ease) 300ms both;
  }

  @keyframes hero-drift {
    from { transform: scale(1.14) translate3d(2%, 1%, 0); }
    to { transform: scale(1.03) translate3d(0, 0, 0); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: none; }
  }

  @keyframes card-in {
    from { opacity: 0; transform: translate3d(0, 32px, 0) scale(0.97); }
    to { opacity: 1; transform: none; }
  }

  /* Scroll reveals: site.js adds .reveal, then .in when the item comes into view. */
  html.motion .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    transition-delay: var(--d, 0ms);
  }

  html.motion .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* The line above each step draws itself in. */
  html.motion .steps li.reveal {
    border-top-color: transparent;
    background: linear-gradient(var(--ink), var(--ink)) top left / 0% 3px no-repeat;
    transition: opacity 700ms var(--ease), transform 700ms var(--ease), background-size 900ms var(--ease);
    transition-delay: var(--d, 0ms);
  }

  html.motion .steps li.reveal.in {
    background-size: 100% 3px;
  }

  .card,
  .area-grid a {
    transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
  }

  .card:hover,
  .area-grid a:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -30px rgba(13, 28, 35, 0.55);
  }

  /* A light sweep across the buttons on hover. */
  .btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
  }

  .btn:hover::after {
    transform: translateX(120%);
    transition: transform 750ms var(--ease);
  }

  .cta-photo {
    background-attachment: scroll;
  }
}
