/* Ayala homepage */
.home-page {
  --home-forest: #082b25;
  --home-mint: #bff4d6;
  --home-line: #d6e7dc;
}

.home-page .section { padding-block: clamp(40px, 6vw, 82px); }
.home-page .section-head { margin-bottom: clamp(20px, 3vw, 34px); }
.home-page h2 { text-wrap: balance; }
.home-page section[id] { scroll-margin-top: 85px; }

.home-page .hero--home {
  --home-hero-overlay: linear-gradient(90deg, #061f1deb, #061f1dc4 42%, #082e2450 78%, #061f1d78);
  border-bottom: 3px solid #53c794;
}
.home-page .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  grid-template-areas: "heading form" "copy form";
  grid-template-rows: auto auto;
  align-items: start;
  align-content: center;
  column-gap: clamp(46px, 8vw, 114px);
  row-gap: 18px;
  padding-block: clamp(42px, 6vw, 80px);
}
.home-hero-heading { grid-area: heading; align-self: end; }
.home-page .hero-copy { grid-area: copy; }
.home-page .hero-form { grid-area: form; align-self: center; min-width: 0; }
.home-page .hero h1 {
  max-width: 14ch; margin: 0;
  font-size: clamp(2.45rem, 1rem + 3.6vw, 4.2rem);
  line-height: 1.04; letter-spacing: -.045em; text-wrap: balance;
}
.home-page .hero h1 em { color: var(--home-mint); font-style: normal; }
.home-page .hero .hero__kicker { color: #a5eac4; font-size: .76rem; }
.home-page .hero-copy > p { margin: 0; max-width: 49ch; color: #eff8f1; }
.home-page .hero__flags { margin-block: 18px 0; font-size: .88rem; }
.home-page .hero__badges { margin-top: 14px; }
.home-page .hero-badge { background: #092d25b8; }
.home-page .hero-form .form-block {
  width: 100%; max-width: none; border: 1px solid #bce3cb;
  border-radius: 22px; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 0 0 6px #c2f3db38, 0 26px 60px #031b18aa;
}
.home-page .hero-form .form-block__heading { font-size: 1.28rem; }
.home-page .hero .hero__note { margin: 13px 0 0; font-size: .85rem; color: #e0f4e7; }

.home-page .home-markets { background: #effaf3; padding-block: 25px; border-bottom: 1px solid var(--home-line); }
.home-markets > .container { display: grid; gap: 19px; align-items: center; }
.home-markets .section-head { margin: 0; }
.home-markets .section-head h2 { font-size: 1.23rem; margin: 0 0 6px; }
.home-markets .section-head p { font-size: .87rem; margin: 0; }
.home-markets .exchange-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-markets .exchange-chip { width: 100%; min-width: 0; height: 52px; padding: 8px 12px; }
.home-markets .exchange-chip img { max-width: 100%; height: auto; max-height: 25px; object-fit: contain; }

.home-company {
  background: linear-gradient(90deg, #0b2f27f5, #0b2f27d9 55%, #0b2f2790),
    url("../images/hero-ph.webp") right 65% / cover;
  color: #f3faf5;
}
.home-company h2 { color: #fff; }
.home-company .split { align-items: center; }
.home-company .split > div:first-child { max-width: 50ch; }
.home-company .split > div:first-child a { color: var(--home-mint); }
.home-company .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-company .card { padding: 16px; border-radius: 13px; background: #f4fcf6; }
.home-company .icon-badge { width: 36px; height: 36px; margin-bottom: 8px; }
.home-company .icon-badge .icon { width: 20px; height: 20px; }
.home-company .card h3 { font-size: 1rem; }
.home-company .card p { font-size: .84rem; }

.home-steps { background: #f8fcf9; }
.home-steps .steps-grid { gap: 0; border: 1px solid var(--home-line); border-radius: 18px; background: #fff; }
.home-steps .step { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 21px; }
.home-steps .step:hover { transform: none; }
.home-steps .step__num { background: #d7f3e1; color: #0c503a; }

.home-estimate { background: linear-gradient(120deg, #d8f3e5, #f5faf5); }
.home-estimate .motif-cards { position: relative; }
.home-estimate .calc-widget {
  --calc-skeleton-bg: #9ec6b2;
  min-width: 0;
  scroll-margin-top: 85px;
}
.home-estimate .calc-widget__wrapper { gap: clamp(16px, 4vw, 44px); margin-bottom: clamp(20px, 4vw, 38px); }
.home-estimate .calc-canvas-wrap { margin-top: 19px; border-color: #b9dac7; background: #f5fff9; }
.home-estimate .calc-canvas-wrap canvas { height: 145px; }

.home-compare { background: #fff; }
.home-compare .compare-wrap { border-color: var(--home-line); }
.home-compare .compare thead th { background: #e1f5ea; }
.home-reviews { background: #f2f8f4; }
.home-reviews .review { border-color: var(--home-line); border-radius: 14px; box-shadow: none; }
.home-reviews .review__stats { gap: 6px; }
.home-reviews .review__stats div { background: #eaf6ee; padding-inline: 8px; }
.home-security { background: #fff; }
.home-advantages { background: #edf8f0; }
.home-security .card, .home-advantages .card { border-color: var(--home-line); box-shadow: none; }
.home-advantages .card { border-top: 3px solid #79cda6; }

.home-join { background: radial-gradient(ellipse at 3% 100%, #176446, var(--home-forest) 72%); color: #e0f1e7; }
.home-join .split > .reveal > h2 { color: #fff; font-size: clamp(1.9rem, 1.1rem + 2vw, 3rem); }
.home-join .form-block__heading { color: var(--home-forest); font-size: 1.28rem; line-height: 1.25; margin: 0 0 14px; }
.home-join .split { align-items: center; }
.home-join .split > :first-child a { color: var(--home-mint); }
.home-join .form-block { width: 100%; border-radius: 20px; border-color: #bce3cb; color: var(--ink); }
.home-faq { background: #f4faf6; }
.home-faq .faq-list { max-width: none; }
.home-faq .faq-item { box-shadow: none; border-color: var(--home-line); }
.home-faq .faq-item.is-open { border-color: #91c8a9; }
.site-footer { border-top: 3px solid #318864; }

@media (min-width: 900px) {
  .home-markets > .container { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); }
  .home-steps .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-steps .step + .step { border-left: 1px solid var(--home-line); }
  .home-faq .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .home-faq .faq-item { margin-bottom: 0; }
}
@media (max-width: 899px) {
  .home-page .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "form" "copy"; gap: 25px; }
  .home-page .hero--home {
    --home-hero-overlay: linear-gradient(180deg, #071e1d8a, #082b25 540px);
    background-position: center, right top;
    background-size: auto, auto clamp(390px, 62vw, 570px);
  }
  .home-page .hero-form { max-width: 500px; }
  .home-page .hero h1 { max-width: 19ch; }
  .home-steps .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--home-line); overflow: hidden; }
  .home-steps .step { background: #fff; }
}
@media (max-width: 560px) {
  .home-markets .exchange-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-company .cards-grid { gap: 8px; }
  .home-company .card, .home-steps .step { padding: 12px; min-width: 0; }
  .home-estimate .calc-canvas-wrap canvas { height: 115px; }
}

/* Section rhythm and support features */
.home-page .hero__flags { margin-top: 15px; }
.home-page .hero__badges { margin-top: 12px; }
.home-page .section-head > :last-child { margin-bottom: 0; }
.home-page .home-company { padding-block: clamp(42px, 7vw, 94px); }
.home-company .split > div:first-child ul { margin-bottom: 0; }
.home-estimate .calc-canvas-note { right: 14px; }
.home-estimate .calc-widget__title { font-size: clamp(1.4rem, 2.8vw, 2.05rem); margin-bottom: 8px; }
.home-estimate .calc-widget__subtitle { margin-bottom: clamp(16px, 3vw, 27px); }
.home-estimate .calc-widget__controls { gap: clamp(16px, 3vw, 34px); }
.home-estimate .calc-widget__range:focus-visible { outline: 2px solid #146449; outline-offset: 4px; }
.home-reviews .reviews-note { margin-block: 18px 0; }
.home-support-pair { background: #edf8f0; }
.home-support-pair .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-support-pair .card { padding: clamp(14px, 2vw, 22px); }
.home-join .split > div > :last-child { margin-bottom: 0; }
.home-faq .container > :last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
  .home-support-pair {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: max(0px, calc((100% - 1200px) / 2));
  }
  .home-support-pair > .section { min-width: 0; }
  .home-support-pair > .section + .section { border-left: 1px solid var(--home-line); }
}
@media (max-width: 560px) {
  .home-support-pair .cards-grid { grid-template-columns: minmax(0, 1fr); }
}

.home-page .hero .hero__kicker { display: inline-block; border-left: 3px solid #aff5c4; padding-left: 12px; letter-spacing: .09em; }
.home-page .hero h1 em { display: inline; color: #bcf8cb; }
.home-page .hero__flags { border-top: 1px solid #a5d8bc55; padding-top: 14px; width: fit-content; }
.home-page .home-markets { background: #e4f3e9; }
.home-markets > .container { background: #fff; border: 1px solid #bfd6c9; border-radius: 20px; padding: clamp(16px, 2.7vw, 34px); }
.home-company .card { border-radius: 18px 18px 18px 5px; }
.home-reviews .review { box-shadow: 0 6px 22px #1038240c; border-top: 3px solid #7cbb99; }
@media (min-width: 900px) {
  .home-page .hero-inner { padding-bottom: 84px; }
  .home-page .home-markets { padding: 0 24px 28px; }
  .home-markets > .container { position: relative; z-index: 2; top: -30px; margin-bottom: -30px; box-shadow: 0 12px 28px #123e2912; }
}
@media (max-width: 899px) { .home-page .home-markets { padding: 18px 16px; } }

.home-page .hero-inner { grid-template-areas: "heading form" "copy form" "resources resources"; row-gap: 16px; }
.home-page .hero-copy { align-self: start; }
.hero-resources { grid-area: resources; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding: 14px 0 0; border-top: 1px solid #a7d5be66; }
.hero-resources .hero__flags, .hero-resources .hero__badges { margin: 0; padding: 0; border: 0; }
@media (min-width: 900px) {
  .home-page .hero-inner { grid-template-rows: 1fr 1fr auto; padding-block: clamp(32px, 4vw, 60px) 54px; }
  .home-page .hero h1 { max-width: 15ch; }
}
@media (max-width: 899px) {
  .home-page .hero-inner { grid-template-areas: "heading" "form" "copy" "resources"; padding-block: 26px 28px; }
  .home-page .hero-form { width: 100%; }
  .home-page .hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
}
.hero-account-facts {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  width: fit-content; max-width: 100%; margin: 19px 0 0; padding: 12px 16px;
  border: 1px solid #a7d5be59; border-radius: 12px; background: #082b25e8;
}
.hero-account-facts dt { color: #c9e3d5; font-size: .8rem; }
.hero-account-facts dd { margin: 3px 0 0; color: #f0fff6; font-size: 1.07rem; font-weight: 700; }
