/* Staging-only professional homepage. Loaded after the immutable legacy assets.
   Scope is below the photographic hero: header, hero and footer remain untouched. */
.professional-home :is(.loan-hero-secondary, .loan-section, .loan-open-app, .loan-closing) {
  --pro-ink: #101820;
  --pro-navy: #101e2b;
  --pro-green: #0c7e52;
  --pro-brand-green: #3ffd6a;
  --pro-muted: #52606b;
  --pro-line: #d2e3d7;
  --pro-paper: #f0f8f2;
  --loan-muted: #52606b;
  --loan-line: #d2e3d7;
  color: var(--pro-ink);
}

.professional-home .loan-section {
  padding: 80px 0;
}

.professional-home :is(.loan-hero-secondary, .loan-section, .loan-closing, .loan-open-app) .loan-kicker {
  color: var(--pro-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.professional-home :is(.loan-heading h2, .loan-eligibility h2, .loan-responsible h2, .loan-faq h2, .loan-open-app-copy h2) {
  font-size: clamp(36px, 4.1vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.professional-home :is(.loan-heading > p, .loan-eligibility-grid > div:last-child > p) {
  color: var(--pro-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* The working product is the visual centrepiece, not a decorative third column. */
.professional-home .loan-hero-secondary {
  padding: 80px 0;
  background: #fff;
  scroll-margin-top: 24px;
}

.professional-home .loan-hero-secondary::before {
  display: none;
}

.professional-home .loan-hero-secondary .loan-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.professional-home .loan-hero-secondary .product-intro {
  align-self: center;
  padding: 0;
}

.professional-home .loan-secondary-hero-title {
  max-width: 560px;
  margin: 18px 0 24px;
  font-size: clamp(40px, 5.1vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.professional-home .loan-hero-secondary .loan-hero-lede {
  max-width: 460px;
  margin-top: 0;
  color: var(--pro-muted);
  font-size: 18px;
  line-height: 1.7;
}

.professional-home .borrower-calculator {
  width: 100%;
  max-width: 540px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.professional-home .borrower-calculator-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.professional-home .borrower-calculator-head > div > span {
  color: var(--pro-green);
  font-weight: 700;
  letter-spacing: .1em;
}

.professional-home .borrower-calculator-head h2 {
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.professional-home .borrower-calculator-head > strong {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 0 8px 12px;
  border-left: 1px solid var(--pro-line);
  border-radius: 0;
  background: transparent;
  color: var(--pro-muted);
  font-weight: 600;
}

.professional-home .borrower-amount-label {
  align-items: center;
  gap: 12px;
  color: var(--pro-muted);
  font-weight: 600;
}

.professional-home .borrower-amount-label output {
  color: var(--pro-ink);
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.professional-home .borrower-amount-slider {
  display: block;
  width: 100%;
  height: 44px;
  margin: 16px 0 0;
  accent-color: var(--pro-brand-green);
}

.professional-home .borrower-amount-scale {
  color: var(--pro-muted);
}

.professional-home .borrower-calculator-result > div {
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-size: 14px;
}

.professional-home .borrower-calculator-result dt {
  color: var(--pro-muted);
}

.professional-home .borrower-calculator-result dd {
  max-width: 180px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.professional-home .borrower-calculator-result .borrower-calculator-total {
  padding: 18px 0;
  color: var(--pro-ink);
}

.professional-home .borrower-calculator-total strong {
  font-size: 30px;
  font-weight: 600;
}

.professional-home .borrower-calculator-cta {
  padding: 16px 20px;
  border: 1px solid var(--pro-brand-green);
  border-radius: 6px;
  background: var(--pro-brand-green);
  color: var(--pro-navy);
  font-weight: 600;
}

.professional-home .borrower-calculator-cta:hover {
  border-color: #2be458;
  background: #2be458;
  color: var(--pro-navy);
}

.professional-home .borrower-calculator-body > p {
  color: var(--pro-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.professional-home :is(.borrower-calculator-cta, .loan-section .btn, .loan-closing .btn, .loan-closing-link, .loan-store-button):focus-visible {
  outline: 2px solid var(--pro-green);
  outline-offset: 4px;
}

.professional-home :is(.loan-section, .loan-closing) :is(.loan-btn-primary, .loan-btn-dark) {
  border-color: var(--pro-brand-green);
  border-radius: 6px;
  background: var(--pro-brand-green);
  color: var(--pro-navy);
  font-weight: 600;
}

.professional-home :is(.loan-section, .loan-closing) :is(.loan-btn-primary, .loan-btn-dark):hover {
  border-color: #2be458;
  background: #2be458;
  color: var(--pro-navy);
}




















/* A genuine app screen accompanies the unchanged eligibility criteria. */
.professional-home .loan-eligibility {
  background: #fff;
}

.professional-home .loan-eligibility-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.professional-home .loan-eligibility-art {
  display: flex;
  min-height: 0;
  max-height: 560px;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px 0;
  background: #fff;
}

.professional-home .eligibility-shape {
  display: none;
}

.professional-home .eligibility-art-copy {
  position: static;
  max-width: none;
  color: var(--pro-ink);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.professional-home .eligibility-phone {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 380px);
  max-width: 100%;
  height: auto;
  margin: 22px auto 0;
  transform: none;
}

.professional-home .loan-eligibility-grid > div:last-child {
  padding: 0;
}

.professional-home .loan-check-list {
  gap: 16px;
  margin: 28px 0 32px;
}

.professional-home .loan-check-list li {
  padding-left: 30px;
  font-size: 15px;
}

.professional-home .loan-check-list li::before {
  top: 0;
  width: 20px;
  height: 22px;
  border-radius: 4px;
  background: var(--pro-brand-green);
  color: var(--pro-navy);
  font-size: 17px;
}

/* All six personal-use topics, with quiet line icons and no card stack. */
.professional-home .loan-uses {
  padding-top: 64px;
  background: #fff;
}

.professional-home .loan-use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
  margin-top: 36px;
}

.professional-home .loan-use-grid article:nth-child(n) {
  display: grid;
  grid-column: auto;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  min-height: 0;
  padding: 26px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--pro-line);
  border-radius: 0;
  background: transparent;
}

.professional-home .loan-use-grid article:nth-child(n) .use-icon {
  grid-row: 1 / 3;
  place-self: start;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.professional-home .loan-use-grid .use-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--pro-green);
  stroke-width: 1.8;
}

.professional-home .loan-use-grid h3 {
  align-self: start;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.professional-home .loan-use-grid-compact p {
  display: block;
  margin: 8px 0 0;
  color: var(--pro-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* The same product panel now frames the functional calculator. */
.professional-home .loan-product-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--pro-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.professional-home .loan-product-panel-head img {
  width: 86px;
  height: 25px;
}

.professional-home .loan-responsible {
  background: var(--pro-navy);
  color: #fff;
}

.professional-home .loan-responsible-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 100px);
}

.professional-home .loan-responsible .loan-kicker {
  color: var(--pro-brand-green);
}

.professional-home .loan-responsible-grid > div:last-child p {
  color: #d2dbe1;
  font-size: 17px;
  line-height: 1.7;
}

.professional-home .loan-responsible a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 5px;
}

.professional-home .loan-faq {
  background: #fff;
}

.professional-home .loan-faq-grid {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(48px, 7vw, 100px);
}

.professional-home .loan-text-link {
  color: var(--pro-green);
  font-weight: 600;
  text-underline-offset: 5px;
}

.professional-home .loan-accordion {
  border-top: 1px solid var(--pro-navy);
}

.professional-home .loan-accordion details {
  border-color: var(--pro-line);
}

.professional-home .loan-accordion summary {
  padding: 22px 44px 22px 0;
  font-size: 17px;
  font-weight: 600;
}

.professional-home .loan-accordion summary::after {
  color: var(--pro-green);
}

.professional-home .loan-accordion details p {
  padding: 0 30px 0 0;
  color: var(--pro-muted);
}

/* Keep the exact real phone asset, with a calm product-led closing composition. */
.professional-home .loan-open-app {
  padding: 80px 0;
  background: #fff;
}

.professional-home .loan-open-app-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 5vw, 72px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.professional-home .loan-open-app-copy h2 {
  max-width: 600px;
  margin: 16px 0 22px;
  color: var(--pro-ink);
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1.12;
}

.professional-home .loan-open-app-smart {
  color: var(--pro-green);
}

.professional-home .loan-open-app-lede {
  color: var(--pro-muted);
  font-size: 19px;
  line-height: 1.6;
}

.professional-home .loan-store-actions {
  gap: 12px;
  margin-top: 30px;
}

.professional-home .loan-store-button {
  min-width: 180px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--pro-navy);
  border-radius: 8px;
}

.professional-home .loan-store-button-apple {
  background: var(--pro-navy);
  color: #fff;
}

.professional-home .loan-store-button-google {
  border-color: var(--pro-line);
  background: var(--pro-paper);
  color: var(--pro-muted);
  opacity: 1;
}

.professional-home .loan-open-app-disclosure {
  color: var(--pro-muted);
  font-size: 13px;
}

.professional-home .loan-open-app-media {
  min-height: 0;
  max-height: none;
  overflow: visible;
  background: #fff;
}

.professional-home .loan-open-app-media img {
  width: min(100%, 380px);
  max-height: 520px;
  transform: none;
}

@media (max-width: 900px) {
  .professional-home .loan-hero-secondary .loan-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .professional-home .loan-hero-secondary .product-intro {
    max-width: 620px;
  }

  .professional-home .loan-hero-secondary .loan-hero-lede {
    max-width: 580px;
  }

  .professional-home .borrower-calculator {
    max-width: 620px;
    justify-self: center;
  }

  .professional-home :is(.loan-eligibility-grid, .loan-responsible-grid, .loan-faq-grid) {
    grid-template-columns: 1fr;
    gap: 36px;
  }



  .professional-home .loan-eligibility-grid > div:last-child {
    order: -1;
  }

  .professional-home .loan-eligibility-art {
    max-height: 400px;
    padding-top: 12px;
  }

  .professional-home .eligibility-phone {
    width: min(100%, 300px);
  }

  .professional-home .loan-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .professional-home .loan-open-app-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
  }

  .professional-home .loan-open-app-media img {
    width: min(100%, 340px);
    max-height: 460px;
  }
}

@media (max-width: 700px) {
  .professional-home .loan-section {
    padding: 48px 0;
  }

  .professional-home .loan-hero-secondary {
    padding: 48px 0;
  }

  .professional-home .loan-secondary-hero-title {
    max-width: 480px;
    font-size: clamp(40px, 10vw, 52px);
  }

  .professional-home .loan-hero-secondary .loan-hero-lede {
    font-size: 16px;
  }

  .professional-home .borrower-calculator {
    padding: 0;
    border-radius: 14px;
  }

  .professional-home .borrower-calculator-head h2 {
    font-size: clamp(24px, 6vw, 28px);
  }

  .professional-home .borrower-calculator-result > div {
    gap: 12px;
    font-size: 13px;
  }

  .professional-home .borrower-calculator-result dd {
    max-width: 140px;
  }

  .professional-home .borrower-calculator-result > div:last-child {
    font-size: 12px;
  }

  .professional-home :is(.loan-heading h2, .loan-eligibility h2, .loan-responsible h2) {
    font-size: 32px;
  }

  .professional-home :is(.loan-heading > p, .loan-eligibility-grid > div:last-child > p) {
    font-size: 16px;
  }






  .professional-home .loan-uses {
    padding-top: 48px;
  }

  .professional-home .loan-use-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .professional-home .loan-use-grid article:nth-child(n) {
    padding: 22px 0;
  }

  .professional-home .loan-product-panel-head {
    padding: 16px 18px;
  }

  .professional-home .loan-responsible-grid > div:last-child p {
    font-size: 16px;
  }

  .professional-home .loan-accordion summary {
    font-size: 16px;
  }

  .professional-home .loan-open-app {
    padding: 48px 0;
  }

  .professional-home .loan-open-app-card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .professional-home .loan-open-app-copy h2 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .professional-home .loan-store-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .professional-home .loan-store-button {
    min-width: 0;
    width: 100%;
    gap: 8px;
    padding: 12px 8px;
  }

  .professional-home .loan-store-apple-icon {
    width: 26px;
    height: 26px;
  }

  .professional-home .loan-store-button strong {
    font-size: 18px;
  }

  .professional-home .loan-store-button small {
    font-size: 10px;
  }

  .professional-home .loan-open-app-media img {
    max-height: 420px;
  }
}

@media (max-width: 360px) {
  .professional-home .borrower-calculator-head > strong {
    padding-left: 8px;
    font-size: 11px;
  }

  .professional-home .borrower-calculator-head h2 {
    font-size: 23px;
  }

  .professional-home .borrower-calculator-result dd {
    max-width: 130px;
  }


}


/* Compact product body and utility-scale closing actions. */
.professional-home .borrower-calculator-body {
  padding: clamp(24px, 3vw, 36px);
}

.professional-home .loan-closing {
  padding: 32px 0;
  border-top: 1px solid var(--pro-line);
  background: var(--pro-paper);
}

.professional-home .loan-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.professional-home .loan-closing-block + .loan-closing-block {
  padding-left: 48px;
  border-left: 1px solid var(--pro-line);
}

.professional-home .loan-closing .loan-kicker {
  color: var(--pro-green);
  font-size: 10px;
  letter-spacing: .1em;
}

.professional-home .loan-closing h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.professional-home .loan-closing p {
  margin: 8px 0 14px;
  color: var(--pro-muted);
  font-size: 14px;
  line-height: 1.55;
}

.professional-home .loan-closing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.professional-home .loan-closing .btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.professional-home .loan-closing .loan-btn-outline {
  border-color: #a9b4bb;
  background: transparent;
  color: var(--pro-navy);
}

.professional-home .loan-closing .loan-btn-outline:hover {
  border-color: var(--pro-navy);
  background: #fff;
}

.professional-home .loan-closing-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--pro-green);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (max-width: 700px) {
  .professional-home .borrower-calculator-body {
    padding: 22px 20px;
  }

  .professional-home .loan-closing {
    padding: 28px 0;
  }

  .professional-home .loan-closing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .professional-home .loan-closing-block + .loan-closing-block {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--pro-line);
  }

  .professional-home .loan-closing h2 {
    font-size: 20px;
  }
}

/* Below-hero controls retain readable, touch-friendly targets. */
.professional-home :is(.borrower-calculator-cta, .loan-section .loan-btn-primary, .loan-section .loan-btn-dark) {
  min-height: 48px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}
.professional-home .loan-closing .btn { height: 44px; }

/* Decorative homepage motion: only the transparent logo owns a paint surface. */
.professional-home .brolly-intro[hidden],
.professional-home .brolly-intro-control[hidden] { display: none; }
.professional-home .brolly-intro:not([hidden]) {
  position: fixed;
  z-index: 10;
  display: block;
  pointer-events: none;
  background: transparent;
  opacity: .4;
}
.professional-home .brolly-intro canvas { display: block; width: 100%; height: 100%; }
.professional-home .brolly-intro-control {
  position: fixed;
  z-index: 20;
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d2e3d7;
  border-radius: 6px;
  background: #f0f8f2;
  color: #101e2b;
  font: 600 13px/1.6 Inter, sans-serif;
  cursor: pointer;
}
#brolly-intro-skip { left: max(16px, env(safe-area-inset-left)); }
#brolly-intro-replay { right: max(16px, env(safe-area-inset-right)); }
.professional-home .brolly-intro-control:focus-visible { outline: 2px solid #0c7e52; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .professional-home .brolly-intro:not([hidden]), #brolly-intro-skip { display: none; }
}
