@import url(
  "https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap"
);

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #f3f0e9;
  color: #111;

  font-family:
    "DM Sans",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}


/* HEADER */

.site-header {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  z-index: 20;

  height: 104px;

  padding:
    0 4vw;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.18);

  color: #fff;
}

.brand {
  display: inline-flex;

  flex-direction: column;

  align-items: flex-start;

  width: fit-content;
}

.brand .brokerage-name {
  display: block;

  color: #fff;

  font-size: 9px;

  font-weight: 600;

  line-height: 1.3;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.brand .agent-name {
  display: block;

  margin-top: 4px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 7px;

  font-weight: 500;

  line-height: 1.3;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.desktop-nav {
  display: flex;

  gap: 30px;

  align-items: center;
}

.desktop-nav a {
  font-size: 11px;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.header-actions {
  justify-self: end;

  display: flex;

  gap: 24px;

  align-items: center;
}

.header-signin {
  font-size: 10px;

  letter-spacing: 0.15em;
}

.header-contact {
  padding:
    13px 18px;

  border:
    1px solid rgba(255, 255, 255, 0.55);

  font-size: 9px;

  letter-spacing: 0.16em;
}


/* BROKERAGE DISCLOSURE */

.stellar-brokerage-disclosure {
  position: relative;

  z-index: 19;

  width: 100%;

  margin-top: 104px;

  padding:
    15px 4vw;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 24px;

  border-bottom:
    1px solid rgba(17, 17, 17, 0.14);

  background: #fff;

  color: #111;
}

.stellar-brokerage-logo {
  display: block;

  width: 145px;

  max-width: 100%;

  height: auto;
}

.stellar-brokerage-identity {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}

.stellar-brokerage-identity strong {
  color: #111;

  font-size: 12px;

  font-weight: 600;

  line-height: 1.35;
}

.stellar-brokerage-identity span {
  color: rgba(17, 17, 17, 0.68);

  font-size: 9px;

  line-height: 1.45;
}

.stellar-brokerage-contact {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 3px;

  text-align: right;
}

.stellar-brokerage-contact a,
.stellar-brokerage-contact span {
  color: #111;

  font-size: 9px;

  line-height: 1.45;
}

.stellar-brokerage-contact a {
  text-decoration: underline;

  text-underline-offset: 2px;
}


/* HERO */

.calculator-hero {
  min-height: 720px;

  padding:
    180px 7vw 70px;

  background:
    radial-gradient(
      circle at 80% 25%,
      rgba(255,255,255,0.09),
      transparent 27%
    ),
    linear-gradient(
      120deg,
      #080808,
      #171717 55%,
      #050505
    );

  color: #fff;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.eyebrow,
.section-label {
  margin:
    0 0 24px;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.24em;

  text-transform: uppercase;
}

.calculator-hero h1 {
  margin: 0;

  max-width: 920px;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(58px, 8vw, 118px);

  line-height: 0.88;

  font-weight: 500;

  letter-spacing: -0.055em;
}

.calculator-hero h1 em {
  color: #c5baa6;

  font-weight: 500;
}

.hero-copy {
  max-width: 580px;

  margin-top: 38px;

  color:
    rgba(255,255,255,0.7);

  font-size: 17px;

  line-height: 1.7;
}

.hero-footer {
  margin-top: 80px;

  display: flex;

  justify-content: space-between;

  color:
    rgba(255,255,255,0.48);

  font-size: 9px;

  letter-spacing: 0.18em;
}


/* CALCULATOR */

.calculator-section {
  padding:
    120px 6vw 130px;
}

.calculator-heading {
  max-width: 1450px;

  margin:
    0 auto 70px;

  display: grid;

  grid-template-columns:
    1fr 0.55fr;

  gap: 70px;

  align-items: end;
}

.calculator-heading h2,
.buyer-section h2,
.lead-copy h2 {
  margin: 0;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(45px, 5vw, 78px);

  line-height: 0.98;

  font-weight: 500;

  letter-spacing: -0.04em;
}

.calculator-heading > p {
  margin: 0;

  max-width: 430px;

  color: #666;

  line-height: 1.8;
}

.calculator-layout {
  max-width: 1450px;

  margin: auto;

  display: grid;

  grid-template-columns:
    minmax(0,1.35fr)
    minmax(360px,0.65fr);

  gap: 24px;

  align-items: start;
}


/* INPUT PANEL */

.calculator-panel {
  padding: 50px;

  background: #fff;

  border:
    1px solid #ddd9d0;
}

.panel-heading {
  display: flex;

  gap: 18px;

  align-items: center;

  margin-bottom: 42px;
}

.secondary-heading {
  margin-top: 36px;
}

.panel-heading span {
  color: #999;

  font-size: 10px;

  letter-spacing: 0.15em;
}

.panel-heading h3 {
  margin: 0;

  font-size: 12px;

  letter-spacing: 0.17em;
}

.field-grid {
  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 22px;
}

.field-group {
  margin-bottom: 24px;
}

.field-group label,
.lead-field label {
  display: block;

  margin-bottom: 10px;

  color: #666;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.17em;
}

.money-input,
.percent-input,
.field-group select {
  width: 100%;

  height: 60px;

  border:
    1px solid #d3cfc5;

  background: #faf9f6;
}

.money-input,
.percent-input {
  display: flex;

  align-items: center;
}

.money-input span {
  padding-left: 17px;

  color: #777;
}

.percent-input span {
  padding-right: 17px;

  color: #777;
}

.money-input input,
.percent-input input {
  width: 100%;

  height: 100%;

  padding:
    0 12px;

  border: 0;

  background: transparent;

  outline: none;
}

.field-group select {
  padding:
    0 16px;

  outline: none;

  color: #111;
}

.money-input:focus-within,
.percent-input:focus-within,
.field-group select:focus {
  border-color: #111;

  background: #fff;
}

input[type="number"] {
  appearance: textfield;

  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: none;

  -webkit-appearance: none;

  margin: 0;
}

.input-note {
  margin:
    14px 0 0;

  padding-top: 24px;

  border-top:
    1px solid #ebe7df;

  color: #89847a;

  font-size: 11px;

  line-height: 1.7;
}


/* RESULTS */

.results-panel {
  position: sticky;

  top: 28px;

  background: #111;

  color: #fff;
}

.results-top {
  padding:
    50px 42px 42px;

  border-bottom:
    1px solid rgba(255,255,255,0.12);
}

.section-label-dark {
  color:
    rgba(255,255,255,0.5);
}

.payment-number {
  margin-top: 14px;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(52px,5vw,78px);

  line-height: 1;

  letter-spacing: -0.05em;
}

.payment-caption {
  margin:
    14px 0 0;

  color:
    rgba(255,255,255,0.42);

  font-size: 9px;

  letter-spacing: 0.18em;
}

.result-breakdown {
  padding:
    28px 42px 10px;
}

.result-row {
  min-height: 48px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-bottom:
    1px solid rgba(255,255,255,0.08);

  color:
    rgba(255,255,255,0.62);

  font-size: 11px;
}

.result-row strong {
  color: #fff;

  font-weight: 500;
}

.result-total {
  margin-top: 10px;

  min-height: 66px;

  border-bottom: 0;

  color: #fff;

  font-size: 13px;
}

.result-total strong {
  font-family:
    "Playfair Display",
    serif;

  font-size: 24px;
}

.loan-summary {
  margin:
    10px 42px 30px;

  padding-top: 25px;

  border-top:
    1px solid rgba(255,255,255,0.13);

  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 20px;
}

.loan-summary span {
  display: block;

  margin-bottom: 7px;

  color:
    rgba(255,255,255,0.43);

  font-size: 8px;

  letter-spacing: 0.14em;
}

.loan-summary strong {
  font-family:
    "Playfair Display",
    serif;

  font-size: 22px;

  font-weight: 500;
}

.results-disclaimer {
  margin: 0;

  padding:
    0 42px 38px;

  color:
    rgba(255,255,255,0.36);

  font-size: 9px;

  line-height: 1.7;
}


/* BUYER SECTION */

.buyer-section {
  padding:
    120px 7vw;

  background: #0d0d0d;

  color: #fff;

  display: grid;

  grid-template-columns:
    1fr 0.65fr;

  gap: 100px;

  align-items: end;
}

.section-label-light {
  color:
    rgba(255,255,255,0.48);
}

.buyer-section > div:last-child p {
  margin:
    0 0 30px;

  max-width: 500px;

  color:
    rgba(255,255,255,0.62);

  line-height: 1.8;
}

.buyer-action {
  display: inline-block;

  padding-bottom: 5px;

  border-bottom:
    1px solid rgba(255,255,255,0.8);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.14em;
}


/* LEAD */

.lead-section {
  padding:
    120px 7vw;

  display: grid;

  grid-template-columns:
    0.85fr 1.15fr;

  gap: 100px;
}

.lead-copy p:last-child {
  max-width: 500px;

  margin-top: 28px;

  color: #666;

  line-height: 1.8;
}

.lead-grid {
  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 18px;
}

.lead-field {
  margin-bottom: 22px;
}

.lead-field input {
  width: 100%;

  height: 58px;

  padding:
    0 16px;

  border:
    1px solid #cbc6ba;

  background: transparent;

  outline: none;
}

.lead-field input:focus {
  border-color: #111;
}

#submitLeadButton {
  width: 100%;

  padding:
    20px 22px;

  border: 1px solid #111;

  background: #111;

  color: #fff;

  cursor: pointer;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.15em;
}

#submitLeadButton:disabled {
  opacity: 0.5;

  cursor: wait;
}

.lead-status {
  min-height: 22px;

  margin-top: 18px;

  font-size: 12px;
}

.lead-status.success {
  color: #506a4a;
}

.lead-status.error {
  color: #a04d44;
}


/* FOOTER */

.signature-footer {
  padding:
    65px 5vw 35px;

  background: #050505;

  color: #fff;

  overflow: hidden;
}

.signature-name {
  white-space: nowrap;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(64px,10.5vw,180px);

  line-height: 0.9;

  letter-spacing: -0.06em;
}

.signature-bottom {
  margin-top: 48px;

  padding-top: 22px;

  border-top:
    1px solid rgba(255,255,255,0.16);

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 30px;
}

.signature-location {
  color:
    rgba(255,255,255,0.5);

  font-size: 9px;

  letter-spacing: 0.18em;
}

.signature-links {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap:
    10px 22px;

  color:
    rgba(255,255,255,0.5);

  font-size: 9px;
}

.signature-links.signature-brokerage {
  display: flex;

  flex-direction: column;

  flex-wrap: nowrap;

  align-items: flex-end;

  justify-content: flex-start;

  gap: 5px;

  text-align: right;
}

.signature-brokerage strong {
  color: #fff;

  font-size: 11px;

  font-weight: 600;

  line-height: 1.35;

  letter-spacing: 0.04em;
}

.signature-brokerage span,
.signature-brokerage a {
  color:
    rgba(255,255,255,0.55);

  font-size: 8px;

  line-height: 1.45;

  letter-spacing: 0.04em;
}

.signature-brokerage a:hover {
  color: #fff;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

  .site-header {
    grid-template-columns:
      1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .calculator-layout,
  .calculator-heading,
  .buyer-section,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .results-panel {
    position: static;
  }

  .stellar-brokerage-disclosure {
    grid-template-columns:
      auto
      1fr;

    gap: 16px;
  }

  .stellar-brokerage-contact {
    grid-column:
      1
      /
      -1;

    flex-direction: row;

    flex-wrap: wrap;

    align-items: flex-start;

    gap:
      6px
      18px;

    text-align: left;
  }

  .signature-links.signature-brokerage {
    align-items: flex-start;

    text-align: left;
  }

}


@media (max-width: 700px) {

  .site-header {
    height: 82px;

    padding:
      0 20px;
  }

  .brand .brokerage-name {
    font-size: 7px;

    letter-spacing: 0.055em;
  }

  .brand .agent-name {
    font-size: 6px;

    letter-spacing: 0.045em;
  }

  .header-signin {
    display: none;
  }

  .header-contact {
    padding:
      10px 12px;

    font-size: 8px;
  }

  .stellar-brokerage-disclosure {
    margin-top: 82px;

    grid-template-columns: 1fr;

    gap: 10px;

    padding:
      14px
      20px;
  }

  .stellar-brokerage-logo {
    width: 125px;
  }

  .stellar-brokerage-contact {
    grid-column: auto;

    flex-direction: column;

    align-items: flex-start;

    gap: 3px;

    text-align: left;
  }

  .stellar-brokerage-identity strong {
    font-size: 11px;
  }

  .stellar-brokerage-identity span,
  .stellar-brokerage-contact a,
  .stellar-brokerage-contact span {
    font-size: 8px;
  }

  .calculator-hero {
    min-height: 650px;

    padding:
      155px 24px 35px;
  }

  .calculator-hero h1 {
    font-size:
      clamp(52px,17vw,78px);
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-footer span:last-child {
    display: none;
  }

  .calculator-section {
    padding:
      80px 18px;
  }

  .calculator-panel {
    padding:
      30px 20px;
  }

  .field-grid,
  .lead-grid,
  .loan-summary {
    grid-template-columns: 1fr;
  }

  .results-top {
    padding:
      38px 25px 32px;
  }

  .result-breakdown {
    padding:
      22px 25px 8px;
  }

  .loan-summary {
    margin:
      10px 25px 28px;
  }

  .results-disclaimer {
    padding:
      0 25px 30px;
  }

  .buyer-section,
  .lead-section {
    padding:
      80px 22px;

    gap: 55px;
  }

  .signature-footer {
    padding:
      50px 20px 30px;
  }

  .signature-bottom {
    flex-direction: column;
  }

  .signature-links.signature-brokerage {
    width: 100%;

    align-items: flex-start;

    justify-content: flex-start;

    gap: 6px;

    text-align: left;
  }

}