:root {
  color-scheme: light;
  --black: #0d0d10;
  --charcoal: #17171d;
  --ink: #242631;
  --muted: #626a78;
  --paper: #f7f6f2;
  --white: #ffffff;
  --line: #e1ded8;
  --magenta: #b915c8;
  --magenta-dark: #881196;
  --purple: #2a143e;
  --gold: #f2cf66;
  --soft: #f0eeea;
  --shadow: 0 22px 58px rgba(13, 13, 16, 0.18);
  --radius: 8px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --hero-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.48;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--black);
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-shell,
.hero-inner,
.section-shell,
.cta-section,
.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.nav-actions,
.hero-actions,
.button-row,
.footer-links,
.meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  color: var(--white);
  font-weight: 900;
}

.nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-actions a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-actions a:hover,
.nav-actions a:focus-visible {
  color: var(--white);
}

.button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button {
  min-height: 48px;
  min-width: 0;
  border: 1px solid var(--magenta);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  color: var(--white);
  padding: 0.82rem 1.05rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(185, 21, 200, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.button-outline {
  background: transparent;
  color: var(--magenta-dark);
  border-color: rgba(185, 21, 200, 0.4);
}

.button-small {
  min-height: 40px;
  padding: 0.58rem 0.86rem;
  color: var(--white) !important;
}

.text-button {
  color: var(--magenta-dark);
  border: 0;
  background: transparent;
  padding: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(580px, 76vh, 740px);
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 13, 16, 0.9), rgba(13, 13, 16, 0.67) 48%, rgba(42, 20, 62, 0.78)),
    var(--hero-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 8%, rgba(185, 21, 200, 0.36), transparent 36%),
    linear-gradient(180deg, transparent 72%, rgba(13, 13, 16, 0.2));
}

.hero.compact {
  min-height: auto;
}

.hero-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
summary,
label {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: inherit;
  font-size: clamp(3.4rem, 7vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  margin: 0;
  color: inherit;
  font-size: 1.14rem;
  line-height: 1.18;
  font-weight: 900;
}

.hero-lede {
  max-width: 730px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
}

.hero-actions,
.button-row {
  flex-wrap: wrap;
  margin-top: 1.55rem;
}

.trust-note,
.section-heading p,
.card p,
.proof-card li,
.split-copy p,
.split-copy li,
.faq-list p,
.site-footer p,
.form-help,
.form-status,
.step-caption,
.property-card p,
.property-detail-copy p,
.calculator-copy p,
.risk-copy p,
.risk-copy li {
  color: var(--muted);
}

.trust-note {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-card,
.form-panel,
.calculator,
.metric-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.15rem, 2vw, 1.6rem);
}

.home-hero {
  min-height: clamp(640px, 78vh, 760px);
}

.home-hero::before {
  background:
    linear-gradient(90deg, rgba(13, 13, 16, 0.58), rgba(13, 13, 16, 0.24) 48%, rgba(42, 20, 62, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

.home-hero::after {
  background:
    linear-gradient(90deg, rgba(13, 13, 16, 0.12), transparent 28% 62%, rgba(185, 21, 200, 0.12)),
    linear-gradient(180deg, transparent 72%, rgba(13, 13, 16, 0.08));
}

.borrower-hero-inner {
  width: min(1320px, calc(100% - 48px));
  grid-template-columns: minmax(380px, 0.9fr) minmax(430px, 500px);
  grid-template-areas:
    "title title"
    "intro panel";
  align-content: center;
  column-gap: clamp(2rem, 4vw, 5rem);
  row-gap: clamp(1.2rem, 2vw, 1.8rem);
  padding: clamp(2rem, 3.2vw, 3rem) 0 clamp(1.5rem, 2.6vw, 2.4rem);
}

.borrower-hero-inner > * {
  min-width: 0;
}

.home-hero h1 {
  max-width: 100%;
  font-size: clamp(2.1rem, 2.55vw, 3rem);
  line-height: 1;
  white-space: nowrap;
}

.hero-title-band {
  grid-area: title;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-title-band .eyebrow {
  margin-bottom: 1rem;
  color: var(--black);
  text-shadow: none;
}

.hero-title-band h1 {
  margin-inline: auto;
  text-shadow: 0 4px 24px rgba(13, 13, 16, 0.58);
}

.hero-title-band h1 span {
  display: inline;
}

.hero-intro {
  grid-area: intro;
  max-width: 520px;
  align-self: start;
  padding-top: 0.35rem;
}

.hero-actions-stack {
  width: min(420px, 100%);
  flex-direction: column;
  align-items: stretch;
  gap: 0.72rem;
}

.hero-actions-stack .button {
  width: 100%;
}

.door-stage {
  grid-area: panel;
  align-self: start;
  color: var(--white);
  text-align: left;
  width: 100%;
}

.panel-label {
  margin: 0 0 0.65rem;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

.door-stage h2 {
  color: var(--gold);
  font-size: clamp(1.25rem, 1.35vw, 1.55rem);
  line-height: 1.08;
  white-space: nowrap;
  text-shadow: 0 3px 16px rgba(13, 13, 16, 0.45);
  margin-bottom: 1rem;
}

.mortgage-door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
  margin-top: 0;
}

.mortgage-door {
  position: relative;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 12px 12px 5px 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(160deg, rgba(185, 21, 200, 0.7), rgba(42, 20, 62, 0.92)),
    var(--white);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(13, 13, 16, 0.28);
  padding: 0.95rem;
  text-decoration: none;
}

.mortgage-door::before {
  content: "";
  position: absolute;
  inset: 13px 14px 62px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px 8px 3px 3px;
  box-shadow:
    inset 0 58px 0 rgba(255, 255, 255, 0.08),
    inset 0 -58px 0 rgba(13, 13, 16, 0.12);
}

.mortgage-door::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 48%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 207, 102, 0.14);
}

.mortgage-door:hover,
.mortgage-door:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(242, 207, 102, 0.22);
}

.door-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.door-question {
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 14px rgba(13, 13, 16, 0.32);
}

.mortgage-door small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.18;
}

.hero-card.dark {
  background: rgba(13, 13, 16, 0.82);
  color: var(--white);
}

.hero-card.dark li,
.hero-card.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.proof-list {
  display: grid;
  gap: 0.74rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 1.45rem;
}

.proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--magenta);
}

.section-shell,
.cta-section {
  padding: clamp(3.75rem, 7vw, 6.2rem) 0;
}

.section-band-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-band-dark .section-heading p,
.section-band-dark .door-card p {
  color: rgba(255, 255, 255, 0.74);
}

.section-band-dark .door-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.section-band-dark .door-card a {
  color: var(--gold);
}

.section-band-dark .door-card span {
  color: var(--gold);
}

.section-band-gold {
  background: #17171d;
  color: var(--white);
}

.section-band-gold .eyebrow,
.section-band-gold .split-copy li::before {
  color: var(--gold);
}

.section-band-gold .split-copy p,
.section-band-gold .split-copy li {
  color: rgba(255, 255, 255, 0.78);
}

.section-band-gold .split-copy li::before {
  background: var(--gold);
}

.section-band-light {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.align-right {
  margin-left: auto;
  text-align: right;
  max-width: 780px;
}

.section-heading {
  max-width: 780px;
}

.section-heading.centered {
  margin: 0 auto;
  text-align: center;
}

.section-heading p {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.borrower-section .section-heading h2,
.property-preview-section .section-heading h2,
.cta-section h2 {
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  line-height: 1.04;
}

.path-grid,
.card-grid,
.property-grid,
.metric-grid,
.process-grid,
.listing-grid {
  display: grid;
  gap: 0.95rem;
}

.path-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.3rem;
}

.door-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.15rem;
}

.door-card.primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}

.door-card span {
  width: fit-content;
  color: var(--magenta-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.door-card.primary span {
  color: var(--gold);
}

.door-card h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.08;
}

.door-card p {
  color: var(--muted);
}

.door-card.primary p {
  color: rgba(255, 255, 255, 0.76);
}

.door-card a {
  margin-top: auto;
  color: var(--magenta-dark);
  font-weight: 900;
  text-decoration: none;
}

.door-card.primary a {
  color: var(--white);
}

.listing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.card,
.property-card,
.metric,
.faq-list details,
.form-step,
.comparison-card,
.formula-card,
.process-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card,
.property-card,
.process-card {
  min-height: 230px;
  padding: 1.15rem;
}

.card.featured,
.property-card.featured {
  background: var(--charcoal);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}

.card.featured p,
.property-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.card-kicker,
.metric span,
.comparison-card span,
.property-label,
.formula-card span,
.process-card span,
.tag {
  display: inline-flex;
  width: fit-content;
  color: var(--magenta-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card.featured .card-kicker,
.property-card.featured .property-label {
  color: var(--gold);
}

.card h3,
.property-card h3 {
  margin-top: 0.72rem;
}

.card p,
.property-card p {
  margin-bottom: 0;
}

.card a,
.property-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--magenta-dark);
  font-weight: 850;
  text-decoration: none;
}

.card.featured a,
.property-card.featured a {
  color: var(--white);
}

.split-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.borrower-band h2 {
  max-width: 620px;
  font-size: clamp(2.25rem, 3.7vw, 3.5rem);
  line-height: 1;
}

.borrower-band .split-copy {
  max-width: 650px;
  margin-left: auto;
  padding-top: 0.3rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.split-copy ul,
.risk-copy ul {
  display: grid;
  gap: 0.68rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.split-copy li,
.risk-copy li {
  position: relative;
  padding-left: 1.45rem;
}

.split-copy li::before,
.risk-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--magenta);
}

.metric-panel {
  padding: 1.05rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 1rem;
}

.metric strong {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1;
}

.metric p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-panel {
  padding: 1.1rem;
  background: var(--white);
  border-color: var(--line);
}

.guided-form {
  display: grid;
  gap: 1rem;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.progress-dot {
  min-height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
}

.progress-dot.is-active {
  background: var(--magenta);
}

.form-step {
  display: none;
  padding: 1rem;
}

.form-step.is-active {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.guided-form label,
.calculator label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink);
  font-weight: 850;
}

.guided-form input,
.guided-form select,
.guided-form textarea,
.calculator input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0.76rem;
}

.guided-form textarea {
  min-height: 118px;
  resize: vertical;
}

.guided-form input:focus,
.guided-form select:focus,
.guided-form textarea:focus,
.calculator input:focus {
  outline: 3px solid rgba(185, 21, 200, 0.16);
  border-color: var(--magenta);
}

.check-row {
  display: flex !important;
  align-items: flex-start;
  grid-template-columns: none !important;
  gap: 0.65rem !important;
}

.check-row input {
  width: auto;
  min-height: auto;
  margin-top: 0.25rem;
}

.turnstile-placeholder {
  min-height: 74px;
  display: grid;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 0.85rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 800;
}

.property-image {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(13, 13, 16, 0.08), rgba(13, 13, 16, 0.42)),
    var(--property-image, url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80")) center / cover no-repeat;
}

.property-card {
  display: grid;
  gap: 1rem;
}

.property-card .property-image {
  min-height: 210px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
}

.tag {
  border-radius: 999px;
  background: var(--soft);
  padding: 0.32rem 0.55rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.property-detail {
  background: var(--white);
}

.property-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.property-detail-copy {
  display: grid;
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.comparison-card {
  padding: 1rem;
}

.comparison-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.calculator-section {
  background: var(--charcoal);
  color: var(--white);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.calculator-copy p,
.calculator-section .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.formula-card {
  margin-top: 1.35rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.formula-card strong {
  display: block;
  margin-top: 0.35rem;
}

.calculator {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.calculator-result {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: var(--white);
}

.calculator-result span,
.calculator-result em {
  color: rgba(255, 255, 255, 0.78);
}

.calculator-result strong {
  display: block;
  margin: 0.4rem 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.process-card span {
  color: var(--gold);
}

.borrower-process .process-card span {
  color: var(--magenta-dark);
}

.borrower-process .process-card {
  min-height: 200px;
}

.property-preview-section {
  background: var(--white);
}

.partner-strip {
  background: var(--black);
  color: var(--white);
}

.partner-strip .section-shell {
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.partner-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.partner-strip h2 {
  font-size: clamp(1.8rem, 3.1vw, 3rem);
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cta-section {
  text-align: center;
}

.cta-actions-centered {
  justify-content: center;
}

.cta-section p {
  max-width: 760px;
  margin: 1rem auto 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  text-align: center;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-footer p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links a {
  color: var(--magenta-dark);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-inner,
  .split-grid,
  .property-detail-grid,
  .calculator-grid,
  .borrower-hero-inner {
    grid-template-columns: 1fr;
  }

  .borrower-hero-inner {
    grid-template-areas:
      "title"
      "intro"
      "panel";
    width: min(760px, calc(100% - 32px));
  }

  .home-hero h1 {
    white-space: normal;
    font-size: clamp(2.3rem, 8vw, 4rem);
  }

  .path-grid,
  .card-grid,
  .process-grid,
  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .hero-actions,
  .button-row {
    align-items: stretch;
  }

  .nav-shell {
    min-height: 64px;
    padding: 0.7rem 0;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    font-size: 0.9rem;
    line-height: 1.05;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }

  .nav-actions a:not(.button-small) {
    display: none;
  }

  .nav-actions {
    flex: 0 0 auto;
  }

  .nav-actions .button-small {
    display: none;
  }

  .hero-actions-stack {
    width: 100%;
  }

  .hero-actions-stack .button {
    font-size: 0.92rem;
    padding-inline: 0.72rem;
    text-align: center;
  }

  .nav-actions .button-small {
    width: auto;
    min-height: 38px;
    padding: 0.55rem 0.65rem;
    white-space: nowrap;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .home-hero h1 {
    font-size: clamp(1.8rem, 7.6vw, 2.2rem);
    line-height: 1.02;
  }

  .hero-title-band h1 span {
    display: block;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .door-stage h2 {
    white-space: normal;
  }

  .mortgage-door-grid {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .card-grid,
  .property-grid,
  .metric-grid,
    .process-grid,
    .listing-grid,
    .comparison-grid,
    .form-grid,
    .door-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .property-card,
  .process-card,
  .door-card {
    min-height: auto;
  }

  .door-link {
    grid-template-columns: 1fr;
  }

  .door-link span {
    grid-row: auto;
  }
}

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