/* ===================================================================
   Pasand Financing — design tokens
   =================================================================== */
:root{
  --pine-900: #0F2A1F;
  --pine-700: #153A2B;
  --pine-600: #1F5B44;
  --pine-500: #2C7856;
  --green-400: #4CA771;
  --green-300: #7FC79B;
  --paper: #FFFFFF;
  --mist: #F5F8F6;
  --mist-2: #EEF3EF;
  --ink: #14231C;
  --ink-soft: #55655D;
  --ink-faint: #86958D;
  --line: #E1E8E3;
  --line-strong: #CBD8CF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 42, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 42, 31, 0.14);

  --ease: cubic-bezier(.25,.8,.35,1);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================================
   Reset & base
   =================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 560; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p{ margin: 0; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--pine-700); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus{ left: 0; }

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

.eyebrow{
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pine-600); margin: 0 0 12px;
}
.eyebrow-on-dark{ color: var(--green-300); }

/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--pine-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--pine-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--pine-700); border: 1px solid var(--line-strong); }
.btn-ghost:hover{ border-color: var(--pine-600); background: var(--mist); }
.btn-on-dark{ background: var(--green-400); color: var(--pine-900); }
.btn-on-dark:hover{ background: var(--green-300); transform: translateY(-1px); }
.btn-ghost-on-dark{ border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-on-dark:hover{ border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm{ padding: 10px 18px; font-size: 13.5px; }
.btn-block{ width: 100%; margin-top: 20px; }

/* ===================================================================
   Top bar
   =================================================================== */
.top-bar{ background: var(--pine-900); color: rgba(255,255,255,0.75); font-size: 12.5px; }
.top-bar-row{ display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 20px; }

.social-links{ display: flex; align-items: center; gap: 14px; }
.social-links a{
  display: flex; color: rgba(255,255,255,0.55); transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-links a:hover{ color: var(--green-300); transform: translateY(-1px); }
.social-links svg{ width: 15px; height: 15px; }

.top-bar-right{ display: flex; align-items: center; gap: 22px; }
.top-bar-right a{ color: inherit; font-weight: 500; transition: color 0.2s var(--ease); white-space: nowrap; }
.top-bar-right a:hover{ color: #fff; }
.top-bar-phone{ font-weight: 600 !important; color: var(--green-300) !important; }

@media (max-width: 640px){
  .top-bar-right a:not(.top-bar-phone){ display: none; }
}

/* ===================================================================
   Header
   =================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row{ display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }

.brand{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark{ height: 30px; width: auto; display: block; }
.brand-mark-footer{ height: 26px; width: auto; display: block; }
.brand-word{ font-family: var(--font-display); font-size: 19px; font-weight: 560; color: var(--pine-700); }
.brand-word-light{ font-weight: 400; color: var(--ink-soft); margin-left: 2px; }

.main-nav > ul{ display: flex; align-items: flex-start; gap: 22px; }

@media (max-width: 1150px) and (min-width: 901px){
  .main-nav > ul{ gap: 10px; }
  .main-nav > ul > li > a, .main-nav .nav-link{ font-size: 13.5px; }
  .header-actions a.btn.btn-primary.btn-sm{ display: none; }
}
.main-nav > ul > li{ position: relative; width: 100%; }
.main-nav > ul > li > a,
.main-nav .nav-link{
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); background: none; border: none;
  transition: color 0.2s var(--ease);
  position: relative; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-family: var(--font-body);
}
.main-nav > ul > li > a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--green-400); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.main-nav > ul > li > a:hover{ color: var(--ink); }
.main-nav > ul > li > a:hover::after{ transform: scaleX(1); }

.mega-trigger:hover{ color: var(--ink); }
.mega-trigger svg{ transition: transform 0.2s var(--ease); }
.has-mega.is-open .mega-trigger svg{ transform: rotate(180deg); }
.has-mega.is-open .mega-trigger{ color: var(--ink); }

.header-actions{ display: flex; align-items: center; gap: 18px; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px;
}
.nav-toggle span{ display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   Mega menu
   =================================================================== */
.mega-panel{
  position: fixed; top: 111px; left: 50%; transform: translate(-50%, 8px);
  width: calc(250% - 32px); max-width: 900px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 90;
}
.has-mega.is-open .mega-panel{ opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50px); }

.mega-panel-inner{ display: grid; grid-template-columns: 0.85fr 1.6fr; gap: 32px; padding: 32px; max-width: none; }
.mega-heading{ font-family: var(--font-display); font-size: 20px; color: var(--pine-900); margin: 0 0 8px; }
.mega-desc{ font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

.mega-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mega-card{
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px;
  transition: background-color 0.2s var(--ease);
}
.mega-card:hover{ background: var(--mist); }
.mega-card-icon{
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--mist-2); color: var(--pine-600);
  display: flex; align-items: center; justify-content: center;
}
.mega-card-body{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mega-card-title{ font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mega-card-desc{ font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }
.mega-card-badge{
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--pine-600); background: var(--mist-2); padding: 2px 7px; border-radius: 100px;
}
.mega-card.is-soon{ cursor: default; }
.mega-card.is-soon:hover{ background: none; }
.mega-card.is-soon .mega-card-icon{ opacity: 0.5; }

/* List-style mega panel (Mortgages, Resources) — narrower, no card grid.
   Stays position:absolute (anchored to its own trigger's <li>) unlike the
   cards-style panel above, since it's narrow enough to never overflow and
   a real dropdown anchored to its trigger is the better UX for it. */
.mega-panel-list{ position: absolute; top: calc(100% + 1px); max-width: 260px; left: 0; transform: translate(0, 8px); }
.has-mega.is-open .mega-panel-list{ transform: translate(0, 0); }
.mega-panel-list .mega-panel-inner{ display: block; padding: 20px; }
.mega-heading-list{ font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin: 0 0 10px; }
.mega-list{ display: flex; flex-direction: column; gap: 2px; }
.mega-list-link{
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.mega-list-link:hover{ background: var(--mist); color: var(--pine-700); }

@media (max-width: 900px){
  .mega-panel-list{ max-width: none; }
}

@media (max-width: 900px){
  .mega-panel{
    position: static; transform: none; width: auto; max-width: none; box-shadow: none; border: none;
    border-radius: 0; background: var(--mist);
    display: none;
  }
  .has-mega.is-open .mega-panel{ display: contents; opacity: 1; visibility: visible; }
  .mega-panel-inner{ grid-template-columns: 1fr; padding: 16px 8px; gap: 16px; }
  .mega-grid{ grid-template-columns: 1fr; }
}

/* ===================================================================
   Hero
   =================================================================== */
.hero{ padding: 72px 0 96px; overflow: hidden; }
.hero-grid{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-copy h1{
  font-size: clamp(36px, 5vw, 58px);
  color: var(--pine-900);
}
.hero-lede{ margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-trust{ display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust li{
  font-size: 13px; color: var(--ink-faint); font-weight: 500;
  padding-left: 18px; position: relative;
}
.hero-trust li::before{
  content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-400);
}

.hero-visual{ position: relative; display: flex; justify-content: center; }
.preview-card{
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 32px 30px; width: 100%; max-width: 340px;
  animation: float-card 7s ease-in-out infinite;
}
@keyframes float-card{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.preview-card-head{ display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.preview-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(76,167,113,0.18); }
.preview-number{ font-family: var(--font-display); font-size: 48px; font-weight: 560; color: var(--pine-900); margin-top: 10px; font-variant-numeric: tabular-nums; }
.preview-currency{ color: var(--green-400); }
.preview-sub{ font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

.preview-bars{ display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 24px; }
.preview-bars span{
  flex: 1; height: var(--h); background: linear-gradient(180deg, var(--green-400), var(--pine-600));
  border-radius: 4px 4px 0 0; opacity: 0.85;
}

.preview-chip{
  position: absolute; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  border-radius: 100px; padding: 9px 16px; font-size: 12.5px; font-weight: 600; color: var(--pine-700);
  animation: float-chip 6s ease-in-out infinite;
}
.preview-chip-a{ top: 6%; right: -4%; animation-delay: 0.3s; }
.preview-chip-b{ bottom: 10%; left: -6%; animation-delay: 1s; }
@keyframes float-chip{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(8px); } }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; margin-bottom: 8px; }
  .preview-chip{ display: none; }
}

/* ===================================================================
   Section head (shared)
   =================================================================== */
.section-head{ max-width: 640px; margin: 0 0 44px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); color: var(--pine-900); margin-top: 4px; }
.section-lede{ margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); }

/* ===================================================================
   Calculator section
   =================================================================== */
.calculator-section{ padding: 40px 0 100px; background: var(--mist); }

.calc-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}

.calc-tabs{
  display: flex; gap: 4px; padding: 14px 14px 0; border-bottom: 1px solid var(--line);
}
.calc-tab{
  padding: 14px 22px; font-size: 15px; font-weight: 600; color: var(--ink-faint);
  border-radius: 12px 12px 0 0; position: relative; transition: color 0.2s var(--ease);
}
.calc-tab.is-active{ color: var(--pine-700); }
.calc-tab.is-active::after{
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--pine-600);
}
.calc-tab:hover{ color: var(--pine-600); }

.calc-panel{ padding: 40px; animation: panel-in 0.35s var(--ease); }
.calc-panel[hidden]{ display: none; }
@keyframes panel-in{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: translateY(0); } }

.calc-layout{ display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }

.calc-form{ display: flex; flex-direction: column; gap: 26px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field-label-row{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.field label{ font-size: 14px; font-weight: 600; color: var(--ink); }
.field-value{ font-size: 14px; font-weight: 700; color: var(--pine-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field-note{ font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; margin-top: 8px; }
.field-note-heading{ font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 4px; }

/* Range sliders */
input[type="range"]{
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px;
  background: var(--mist-2); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--pine-600); box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover{ transform: scale(1.12); box-shadow: 0 0 0 6px rgba(31,91,68,0.12); }
input[type="range"]::-moz-range-thumb{
  width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--pine-600); box-shadow: var(--shadow-sm); cursor: pointer;
}
input[type="range"]::-moz-range-track{ height: 6px; border-radius: 4px; background: var(--mist-2); }

/* Segmented control */
.segmented{
  display: inline-flex; background: var(--mist); border: 1px solid var(--line); border-radius: 100px; padding: 4px; gap: 2px;
}
.segmented-wrap{ display: flex; flex-wrap: wrap; }
.segmented button{
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); border-radius: 100px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease); white-space: nowrap;
}
.segmented button.is-active{ background: var(--pine-600); color: #fff; }
.segmented button:not(.is-active):hover{ background: var(--mist-2); }

/* Results panel */
.calc-results{
  background: var(--pine-700); color: #fff; border-radius: var(--radius-md); padding: 32px;
  display: flex; flex-direction: column; height: fit-content;
  background-image: radial-gradient(circle at 100% 0%, rgba(76,167,113,0.25), transparent 55%);
}
.result-hero{ display: flex; flex-direction: column; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.result-hero-label{ font-size: 13px; font-weight: 600; color: var(--green-300); text-transform: uppercase; letter-spacing: 0.06em; }
.result-hero-number{
  font-family: var(--font-display); font-size: 46px; font-weight: 560; margin-top: 10px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.result-hero-number .curr{ color: var(--green-300); font-size: 0.6em; vertical-align: 4px; }
.result-hero-sub{ font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px; }

.result-breakdown{ margin: 0; padding: 18px 0 4px; }
.result-breakdown div{
  display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12); gap: 12px;
}
.result-breakdown div:last-child{ border-bottom: none; }
.result-breakdown dt{ font-size: 13.5px; color: rgba(255,255,255,0.68); font-weight: 400; }
.result-breakdown dd{ margin: 0; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* Chart block */
.chart-block{ margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.chart-block-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.chart-block-head h3{ font-size: 19px; color: var(--pine-900); }
.chart-block-head p{ font-size: 14px; color: var(--ink-soft); margin-top: 6px; max-width: 46ch; }
.chart-canvas-wrap{ height: 300px; position: relative; }
.chart-canvas-wrap-short{ height: 240px; }

/* Schedule table */
.schedule-block{ margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.table-scroll{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.schedule-table{ width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.schedule-table th{
  text-align: right; padding: 12px 16px; background: var(--mist); color: var(--ink-soft);
  font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line); position: sticky; top: 0;
}
.schedule-table th:first-child, .schedule-table td:first-child{ text-align: left; }
.schedule-table td{ padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--ink); }
.schedule-table tbody tr:last-child td{ border-bottom: none; }
.schedule-table tbody tr:hover{ background: var(--mist); }
.schedule-table tr.is-hidden-row{ display: none; }
#scheduleToggle{ margin-top: 18px; }

@media (max-width: 900px){
  .calc-layout{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
  .calc-panel{ padding: 26px 20px; }
  .calc-results{ order: -1; }
}

/* ===================================================================
   How it works
   =================================================================== */
.how{ padding: 100px 0; }
.how-grid{ display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.how-head{ margin: 0; }
.how-list{ display: flex; flex-direction: column; gap: 32px; counter-reset: none; }
.how-list li{
  display: grid; grid-template-columns: 56px 1fr; align-items: start; gap: 20px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.how-list li:last-child{ border-bottom: none; padding-bottom: 0; }
.how-index{
  font-family: var(--font-display); font-size: 26px; color: var(--green-300); background: var(--pine-700);
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.how-list li > div{ min-width: 0; }
.how-list h3{ font-size: 18px; color: var(--pine-900); margin-bottom: 8px; }
.how-list p{ font-size: 15px; color: var(--ink-soft); }

@media (max-width: 900px){
  .how-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .how-list li{ grid-template-columns: 44px 1fr; gap: 14px; }
  .how-index{ width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
}

/* ===================================================================
   About
   =================================================================== */
.about{ padding: 100px 0 100px; }
.about-grid{
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  background: var(--mist); border-radius: var(--radius-lg); padding: 48px;
}
.about-grid h2{ font-size: clamp(24px, 3vw, 32px); color: var(--pine-900); margin-top: 4px; }
.about-grid .section-lede{ margin-top: 14px; }
.about-stats{ display: flex; flex-direction: column; gap: 20px; }
.about-stats li{ display: flex; flex-direction: column; gap: 2px; }
.about-stat-num{ font-family: var(--font-display); font-size: 30px; color: var(--pine-600); font-variant-numeric: tabular-nums; }
.about-stat-label{ font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; padding: 32px 24px; }
  .about-stats{ flex-direction: row; flex-wrap: wrap; gap: 24px; }
}

/* ===================================================================
   CTA band
   =================================================================== */
.cta-band{ background: var(--pine-900); color: #fff; padding: 72px 0; }
.cta-band-inner{ display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2{ font-size: clamp(24px, 3vw, 32px); margin-top: 6px; max-width: 20ch; }
.cta-band p{ color: rgba(255,255,255,0.65); margin-top: 10px; max-width: 40ch; }
.cta-band-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer{ background: var(--mist); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid{ display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-tagline{ margin-top: 10px; font-size: 14px; color: var(--ink-faint); }
.footer-nav{ display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a{ font-size: 14px; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.footer-nav a:hover{ color: var(--pine-700); }
.footer-contact{ display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--pine-700); align-items: flex-end; }
.footer-legal{ border-top: 1px solid var(--line); padding: 20px 24px; }
.footer-legal p{ font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 640px){
  .footer-contact{ align-items: flex-start; }
  a.btn.btn-primary.btn-sm{ display: none; }
  .segmented-wrap{ align-items: center; justify-content: center; }
  .segmented button{ white-space: normal; }
  .calc-tabs{ overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .calc-tabs::-webkit-scrollbar{ display: none; }
  .calc-tab{ flex: 0 0 auto; padding: 12px 16px; font-size: 13.5px; }
}

/* ===================================================================
   Scroll reveal
   =================================================================== */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ===================================================================
   Mobile nav
   =================================================================== */
@media (max-width: 900px){
  .nav-toggle{ display: flex; }
  .main-nav{
    position: fixed; top: 72px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .main-nav.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav > ul{ flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 0; max-height: 70vh; overflow-y: auto; }
  .main-nav > ul > li{ border-bottom: 1px solid var(--line); }
  .main-nav > ul > li:last-child{ border-bottom: none; }
  .main-nav a, .main-nav .nav-link{ display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; text-align: left; }
  .main-nav > ul > li > a::after{ display: none; }
}

/* ===================================================================
   Top-bar "Follow us" label (fixes the invalid <span> that used to sit
   directly inside the <ul> — now a proper <li>)
   =================================================================== */
.social-label{
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4); margin-right: 4px;
}
@media (max-width: 480px){
  .social-label{ display: none; }
}

/* ===================================================================
   New form controls: select / number / text inputs
   (Closing Costs uses these; Contact page reuses them too)
   =================================================================== */
.field-select, .field-number, .field-text{
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field-select:focus, .field-number:focus, .field-text:focus{
  outline: none; border-color: var(--pine-600); box-shadow: 0 0 0 3px rgba(31,91,68,0.12);
}
.field-textarea{ resize: vertical; min-height: 110px; font-family: var(--font-body); }
.field label{ display: block; margin-bottom: 8px; }

/* ===================================================================
   Page hero (About / Contact) — lighter-weight than the homepage hero
   =================================================================== */
.page-hero{ padding: 64px 0 48px; background: var(--mist);position: relative;background-size: cover;background-position: center;background-repeat: no-repeat;align-items: center;isolation: isolate; }
.page-hero::before {content: "";position: absolute;inset: 0;background: rgba(0, 0, 0, 0.6);z-index: -1;}
.page-hero .wrap {position: relative;z-index: 1;}
.page-hero .eyebrow { color: var(--paper);}
.page-hero h1{ font-size: clamp(30px, 4.5vw, 46px); color: var(--paper); margin-top: 8px; max-width: 18ch; }
.page-hero-lede{ margin-top: 16px; font-size: 17px; color: var(--paper); max-width: 56ch; }
/* ===================================================================
   About page detail
   =================================================================== */
.about-detail{ padding: 72px 0; }
.about-detail-grid{ display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: start; }
.about-detail-copy h2{ font-size: 21px; color: var(--pine-900); margin: 28px 0 10px; }
.about-detail-copy h2:first-child{ margin-top: 0; }
.about-detail-copy p{ font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }
.about-stats-page{
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--mist); border-radius: var(--radius-lg); padding: 28px;
}
@media (max-width: 900px){
  .about-detail-grid{ grid-template-columns: 1fr; }
}

/* ===================================================================
   Contact page
   =================================================================== */
.contact-detail{ padding: 72px 0 96px; }
.contact-grid{ display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.contact-methods{ display: flex; flex-direction: column; gap: 22px; }
.contact-method{ display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-method:last-child{ border-bottom: none; }
.contact-method-label{ font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.contact-method-value{ font-size: 16px; font-weight: 600; color: var(--pine-700); }
.contact-form{
  background: var(--mist); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form-note{ font-size: 12.5px; color: var(--ink-faint); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 10px 12px; }
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ===================================================================
   Footer parent-company line
   =================================================================== */
.footer-parent{ margin-top: 4px; font-size: 12.5px; color: var(--ink-faint); }

/* ===================================================================
   Broker section
   =================================================================== */
.broker-section{ position: relative; overflow: hidden; }
.broker-backdrop{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(76,167,113,0.28), transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(31,91,68,0.18), transparent 42%),
    linear-gradient(135deg, #EFEAE0 0%, #DCE8DC 55%, #C9DCC8 100%);
}
.broker-wrap{ position: relative; z-index: 2; padding: 72px 24px; }
.broker-card{
  background: var(--pine-900); color: #fff; border-radius: var(--radius-lg);
  padding: 40px; max-width: 460px; box-shadow: var(--shadow-lg);
}
.broker-avatar{
  width: 92px; height: 92px; border-radius: 50%; background: var(--green-400); color: var(--pine-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 22px;
}
.broker-name{ font-family: var(--font-display); font-size: 32px; font-weight: 560; margin: 0; }
.broker-title{ font-size: 16px; color: var(--green-300); margin-top: 6px; font-weight: 600; }
.broker-company{ font-size: 15px; color: rgba(255,255,255,0.75); margin-top: 2px; font-weight: 600; }
.broker-license{ font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 10px; }

.broker-contact, .broker-social{ margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
.broker-contact-heading{ font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin: 0 0 12px; font-weight: 700; }
.broker-contact-row{
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--green-300);
  padding: 7px 0; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s var(--ease);
}
.broker-contact-row:hover{ color: #fff; }
.broker-contact-row svg{ flex-shrink: 0; color: rgba(255,255,255,0.55); }
.broker-contact-row-static{ color: rgba(255,255,255,0.85); text-decoration: none; }

.broker-social-links{ display: flex; gap: 10px; flex-wrap: wrap; }
.broker-social-links a{
  width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.broker-social-links a:hover{ background: var(--green-400); color: var(--pine-900); }

.broker-actions{ display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.broker-actions .btn{ flex: 1 1 auto; justify-content: center; }

@media (max-width: 640px){
  .broker-wrap{ padding: 48px 20px; }
  .broker-card{ padding: 28px; max-width: none; }
}

/* ===================================================================
   Simple placeholder pages
   =================================================================== */
.placeholder-detail{ padding: 56px 0 96px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.placeholder-note{
  background: var(--mist); border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
  padding: 24px; max-width: 62ch;
}
.placeholder-note p{ font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ===================================================================
   Blog archive
   =================================================================== */
.blog-archive{ padding: 24px 0 96px; }
.blog-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card{
  display: flex; flex-direction: column; gap: 10px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.blog-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.blog-card-category{ font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pine-600); }
.blog-card-title{ font-family: var(--font-display); font-size: 20px; color: var(--pine-900); margin: 0; line-height: 1.3; }
.blog-card-excerpt{ font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex-grow: 1; }
.blog-card-meta{ font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }

@media (max-width: 980px){
  .blog-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .blog-grid{ grid-template-columns: 1fr; }
}

/* ===================================================================
   Single blog post
   =================================================================== */
.blog-post{ padding: 64px 0 40px; }
.blog-post-wrap{ max-width: 720px; }
.blog-post h1{ font-size: clamp(28px, 4vw, 42px); color: var(--pine-900); margin-top: 8px; }
.blog-post-meta{ font-size: 13.5px; color: var(--ink-faint); margin-top: 12px; }
.blog-post-body{ margin-top: 32px; font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.blog-post-body h2{ font-size: 22px; color: var(--pine-900); margin: 36px 0 14px; }
.blog-post-body p{ margin: 0 0 18px; }
.blog-post-body a{ color: var(--pine-600); text-decoration: underline; text-underline-offset: 2px; }
.blog-post-body a:hover{ color: var(--pine-700); }
.blog-post-body ul{ margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.blog-post-body li{ margin-bottom: 8px; }

/* ===================================================================
   Homepage highlight sections (About-photo, Newsletter, FAQ-calc, Services)
   =================================================================== */
.highlight-photo{
  border-radius: var(--radius-lg); min-height: 320px; width: 100%;
  background:
    radial-gradient(circle at 75% 25%, rgba(76,167,113,0.35), transparent 50%),
    radial-gradient(circle at 25% 80%, rgba(31,91,68,0.25), transparent 45%),
    linear-gradient(135deg, #EFEAE0 0%, #DCE8DC 55%, #C9DCC8 100%);
}
.highlight-photo-b{
  background:
    radial-gradient(circle at 30% 30%, rgba(124,181,146,0.35), transparent 50%),
    radial-gradient(circle at 70% 75%, rgba(21,58,43,0.25), transparent 45%),
    linear-gradient(150deg, #E7E2D6 0%, #D6E4D2 55%, #B9D4BC 100%);
}
.highlight-photo-c{
  background:
    radial-gradient(circle at 70% 70%, rgba(76,167,113,0.3), transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(15,42,31,0.35), transparent 45%),
    linear-gradient(160deg, #DCE3D9 0%, #A9C6AE 60%, #6E8B61 100%);
}

.highlight-about{ background: var(--pine-900); color: #fff; padding: 72px 0; }
.highlight-about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.highlight-about-copy h2{ font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 42px); margin: 8px 0 18px; }
.highlight-about-copy p{ font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 26px; max-width: 52ch; }


.page-inner{color: var(--pine-700); padding: 72px 0; }
.page-inner-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.page-inner-copy h2{ font-family: var(--pine-700); font-size: clamp(30px, 3.5vw, 42px); margin: 8px 0 18px; }
.page-inner-copy p{ font-size: 16px; line-height: 1.65; color: var(--pine-700); margin-bottom: 26px; max-width: 52ch; }

.highlight-newsletter{ background: var(--pine-900); color: #fff; padding: 72px 0; }
.highlight-newsletter-grid{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.highlight-newsletter-copy h2{ font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 14px; }
.highlight-newsletter-copy > p{ font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 26px; max-width: 52ch; }
.newsletter-form{ display: flex; flex-direction: column; gap: 16px; }
.newsletter-form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.newsletter-form .field label{ color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.newsletter-consent{ display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: rgba(255,255,255,0.7); line-height: 1.5; cursor: pointer; }
.newsletter-consent input{ margin-top: 3px; flex-shrink: 0; }
.newsletter-form .contact-form-note{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }

.highlight-faq{ background: var(--pine-600); color: #fff; padding: 72px 0; }
.highlight-faq-grid{ display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.highlight-faq-copy h2{ font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 32px; }
.highlight-faq-links{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.highlight-faq-link p{ font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.highlight-faq-link a{ color: var(--green-300); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.highlight-faq-link a:hover{ color: #fff; }
.highlight-faq-more{ display: inline-block; margin-top: 30px; color: var(--green-300); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.highlight-faq-more:hover{ color: #fff; }

.highlight-services{ background: var(--pine-700); color: #fff; padding: 72px 0; text-align: center; }
.highlight-services-heading{ font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 48px; }
.highlight-services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.highlight-service{ display: flex; flex-direction: column; align-items: center; gap: 14px; }
.highlight-service-icon{
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.highlight-service-icon svg{ width: 24px; height: 24px; }
.highlight-service p{ font-size: 16px; font-weight: 600; margin: 0; }
.highlight-service a{ color: var(--green-300); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; }
.highlight-service a:hover{ color: #fff; }

@media (max-width: 900px){
  .highlight-about-grid{ grid-template-columns: 1fr; }
  .highlight-about .highlight-photo{ order: -1; min-height: 220px; }    
  .page-inner-grid{ grid-template-columns: 1fr; }
  .page-inner-grid .highlight-photo{ order: -1; min-height: 220px; }
  .highlight-newsletter-grid{ grid-template-columns: 1fr; }
  .highlight-newsletter-grid .highlight-photo{ min-height: 200px; }
  .highlight-faq-grid{ grid-template-columns: 1fr; }
  .highlight-faq-grid .highlight-photo{ min-height: 200px; }
  .highlight-faq-links{ grid-template-columns: 1fr; gap: 22px; }
  .highlight-services-grid{ grid-template-columns: 1fr 1fr; gap: 36px 20px; }
}
@media (max-width: 480px){
  .newsletter-form-row{ grid-template-columns: 1fr; }
  .highlight-services-grid{ grid-template-columns: 1fr; }
}

/* ===================================================================
   Calculator: manual entry box under every slider + rules note
   =================================================================== */
.field-manual-wrap{ position: relative; margin-top: 12px; }
.field-manual{
  width: 100%; font-size: 16px; /* 16px stops iOS zooming on focus */
  font-weight: 700; color: var(--ink); background: #F7F9FC;
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px;
  font-variant-numeric: tabular-nums;
}
.field-manual:focus{ background: var(--paper); }
.field-manual-wrap.has-prefix .field-manual{ padding-left: 30px; }
.field-manual-wrap.has-suffix .field-manual{ padding-right: 48px; }
.field-manual-unit{
  position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none;
  font-size: 14px; font-weight: 600; color: var(--ink-faint);
}
.has-prefix .field-manual-unit{ left: 14px; }
.has-suffix .field-manual-unit{ right: 14px; }

.rules-note{
  margin: -8px 0 0; padding: 10px 14px; border-radius: 10px;
  background: var(--mist); border-left: 3px solid var(--green-400);
  font-size: 13px; line-height: 1.45; color: var(--ink-soft);
}
.segmented button:disabled{ opacity: 0.38; cursor: not-allowed; }
.segmented button:disabled:hover{ background: transparent; }

/* ===================================================================
   Homepage: section order & backgrounds
   About (light) -> Services (green) -> Mortgage tools (light green)
   -> Your Questions (dark green) -> Contact (white)
   =================================================================== */
.home-about{ background: var(--mist); padding: 88px 0; }
.home-about-grid{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.home-about-copy h2{ font-size: clamp(28px, 3.4vw, 40px); color: var(--pine-900); margin: 4px 0 18px; }
.home-about-copy p{ font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; max-width: 58ch; }
.home-about-copy .home-about-lead{ font-size: 17px; color: var(--ink); }
.home-about-stats{ flex-direction: row; flex-wrap: wrap; gap: 28px; margin: 22px 0 28px; }
.home-about-photo{ width: 100%; height: 100%; min-height: 360px; max-height: 520px; object-fit: cover; box-shadow: var(--shadow-lg); }

.highlight-services{ background: var(--pine-700); }
.highlight-services .highlight-service-icon{ border-color: rgba(255,255,255,0.45); }

.hero-tools{
  background:
    radial-gradient(circle at 88% 12%, rgba(76,167,113,0.30), transparent 42%),
    linear-gradient(135deg, #E6F3EA 0%, #CFE7D7 100%);
  padding: 88px 0;
}
.hero-tools .preview-card{ border-color: rgba(31,91,68,0.12); }

.home-contact{ background: var(--paper); padding: 88px 0 96px; border-top: 1px solid var(--line); }
.home-contact-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.home-contact-copy h2{ font-size: clamp(28px, 3.4vw, 40px); color: var(--pine-900); margin: 4px 0 14px; }
.home-contact-copy > p{ font-size: 16px; color: var(--ink-soft); margin: 0 0 26px; max-width: 44ch; }
.home-contact-links{ display: flex; flex-direction: column; gap: 12px; }
.home-contact-links a{ display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--pine-700); overflow-wrap: anywhere; }
.home-contact-links a:hover{ color: var(--pine-500); }
.home-contact-links svg{ flex-shrink: 0; color: var(--pine-500); }

@media (max-width: 900px){
  .home-about-grid, .home-contact-grid{ grid-template-columns: 1fr; gap: 36px; }
  .home-about-photo{ order: -1; min-height: 240px; max-height: 340px; }
  .home-about, .hero-tools, .home-contact{ padding: 64px 0; }
}

/* ===================================================================
   Secure contact form extras
   =================================================================== */
.form-hp{ position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form{ position: relative; }
.field-optional{ font-weight: 400; color: var(--ink-faint); }
.form-consent{ display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.form-consent input{ margin-top: 3px; flex-shrink: 0; accent-color: var(--pine-600); }
.form-status{ margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.form-status-success{ background: #E3F2E8; color: var(--pine-700); border: 1px solid #BFE0CA; }
.form-status-error{ background: #FCECEA; color: #8A2A1F; border: 1px solid #F3C7C1; }

/* Closing Costs — Occupancy / Newly built / First-time buyer on one row.
   Sized by the form column's own width (container query), so the three
   stay side by side wherever they fit and fall back to two rows only
   when the column is genuinely too narrow. */
.calc-form{ container-type: inline-size; container-name: calcform; }
.field-row.field-row-3{
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 16px;
}
.field-row.field-row-3 .segmented{ width: fit-content; max-width: 100%; }
.field-row.field-row-3 .segmented button{ padding: 8px 12px; }
.field-row.field-row-3 .field-label-row{ margin-bottom: 8px; }
@container calcform (max-width: 500px){
  .field-row.field-row-3{ grid-template-columns: 1fr 1fr; }
  .field-row.field-row-3 > .field:first-child{ grid-column: 1 / -1; }
}

/* Payment — Occupancy + First-time buyer row. The Occupancy toggle is
   wider than half the form column, so it used to wrap onto two lines.
   Give it the width it needs and let the second toggle take the rest. */
.field-row.field-row-toggles{
  grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px 22px;
}
.field-row.field-row-toggles .segmented{ width: fit-content; max-width: 100%; flex-wrap: nowrap; }
.field-row.field-row-toggles .segmented button{ padding: 8px 14px; white-space: nowrap; }
@container calcform (max-width: 430px){
  .field-row.field-row-toggles{ grid-template-columns: 1fr; }
}
