/* Homepage hero: three product cards under the headline, Request Information column on the right (Nov 2026 layout). */
.hero .hero__grid { width: min(1280px, calc(100% - 2.5rem)); grid-template-columns: minmax(0, 1fr) minmax(300px, 330px); column-gap: 2rem; row-gap: 0; align-items: start; }
.hero__content { grid-column: 1; grid-row: 1; }
.products { grid-column: 1; grid-row: 2; align-self: end; }
.products__facts { grid-column: 1; grid-row: 3; }
.hero__fineprint { grid-column: 1; grid-row: 4; }
/* Request Information card: its bottom lines up with the bottom of the three cards */
.hero .hero__form-card { grid-column: 2; grid-row: 1 / 3; align-self: end; }
.hero__content .hero__text { max-width: 46rem; margin-bottom: 1.5rem; }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.1rem;
  row-gap: 1.25rem;
  align-items: start;
  margin: 1.25rem 0 0;
}
.products__facts {
  list-style: none; margin: 1.25rem 0 0; padding: .85rem 0;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: .75rem 0;
  border-top: 1px solid rgba(8, 56, 32, .14); border-bottom: 1px solid rgba(8, 56, 32, .14);
}
.products__facts li { flex: 1 1 0; min-width: 0; padding: 0 .75rem; text-align: center; font-size: .8125rem; line-height: 1.3; color: var(--gray-600); font-weight: 500; }
.products__facts li + li { border-left: 1px solid rgba(8, 56, 32, .18); }
.products__facts strong { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--green-900); font-variant-numeric: tabular-nums; }
.product { display: block; }
.product--refi { grid-column: 1; grid-row: 1; }
.product--loc { grid-column: 2; grid-row: 1; }
.product--mca { grid-column: 3; grid-row: 1; }
.product__link { display: block; border-radius: 18px; overflow: hidden; border: 1px solid rgba(8, 56, 32, .12); box-shadow: var(--shadow-md); transition: transform .25s ease, box-shadow .25s ease; line-height: 0; background: #fff; }
.product__link:hover, .product__link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product__link img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.product__cta { grid-row: 2; display: flex; justify-content: center; }
.product__cta--refi { grid-column: 1; }
.product__cta--mca { grid-column: 3; }
.product__cta .btn { width: 100%; justify-content: center; white-space: nowrap; padding-inline: .75rem; }

@media (max-width: 960px) {
  .hero .hero__grid { grid-template-columns: 1fr; }
  .hero__content, .products, .products__facts, .hero__fineprint, .hero .hero__form-card { grid-column: 1; grid-row: auto; align-self: auto; }
  .hero__fineprint { margin-top: .9rem; }
  .hero .hero__form-card { margin-top: 1.5rem; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; row-gap: 1rem; }
  .product--refi, .product--loc, .product--mca, .product__cta--refi, .product__cta--mca { grid-column: 1; grid-row: auto; }
  .products__facts li { flex: 1 1 100%; border-left: 0 !important; padding: 0; }
  .products__facts li + li { border-top: 1px solid rgba(8, 56, 32, .14); padding-top: .6rem; }
  .product--refi { order: 1; }
  .product__cta--refi { order: 2; }
  .product--loc { order: 3; }
  .product--mca { order: 4; }
  .product__cta--mca { order: 5; }
  .product__link { max-width: 420px; margin-inline: auto; }
  .product__cta .btn { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .product__link { transition: none; } }

/* Request Information card: more compact so the product cards get the room */
.hero__form-card { padding: 1.5rem 1.35rem 1.35rem; border-radius: 22px; }
.hero__form-card .form-card__header { margin-bottom: .5rem; }
.hero__form-card .form-card__title { font-size: 1.3rem; }
.hero__form-card .form-card__sub { font-size: .85rem; line-height: 1.45; margin: 0 0 1rem; }
.hero__form-card .form-group { margin-bottom: .75rem; }
.hero__form-card .form-group label { font-size: .72rem; }
.hero__form-card .form-group input,
.hero__form-card .form-group textarea,
.hero__form-card .form-group select { padding: .65rem .85rem; font-size: .92rem; }
.hero__form-card .form-more { font-size: .8rem; }
.hero__form-card .checkbox-label { font-size: .68rem; padding: .7rem .85rem; }
.hero__form-card .btn--full { padding: .9rem; font-size: 1rem; }
.hero__form-card .form-card__note { font-size: .72rem; margin-top: .7rem; }
@media (max-width: 820px) { .hero__form-card { padding: 1.4rem 1.2rem; } }

/* Tighter top of the hero on desktop so the product cards sit higher on the first screen */
@media (min-width: 961px) {
  .hero { padding-top: 13.5rem; }
  .hero__content .badge { margin-bottom: .9rem; }
  .hero__content .hero__title { margin-bottom: .9rem; }
  .hero__content .hero__text { margin-bottom: 1rem; }
  .products__facts { padding: .55rem 0; }
  .hero__fineprint { margin-top: .9rem; }
}

/* Wide screens: hero fills the page like the other sections. Below 1500px nothing changes. */
@media (min-width: 1500px) {
  .hero .hero__grid { width: min(calc(100% - clamp(3rem, 8vw, 14rem)), 2100px); grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem); column-gap: 2.5rem; }
  .hero__content .hero__text { max-width: 60rem; }
  .products { column-gap: 1.5rem; }
  /* header 96px + ticker 3.44rem + gap 4.06rem, so the spacing under the ticker keeps its proportions */
  .hero { padding-top: calc(96px + 7.5rem); }
  .finder__card { max-width: 1100px; }
}

/* Two section headings stay on one line on tablets and up; phones can still wrap. */
@media (min-width: 700px) {
  .section-title--oneline { white-space: nowrap; }
  .section-header:has(.section-title--oneline) { max-width: none; }
}
