/* Homepage-only art direction; loaded after the shared heading scale. */
.home-page .hero {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-block: 64px;
  background: #f7f9fc url("../assets/images/hero.png") center / cover no-repeat;
}

.home-page .hero::before {
  display: block;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 30%, rgba(255,255,255,.68) 50%, rgba(255,255,255,.16) 70%, transparent 84%);
}

#main .home-page .hero h1 {
  max-width: 100%;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.04;
  letter-spacing: -.045em;
  color: #1d1d1f;
}

.home-page .hero .hero-lead {
  margin: 24px 0 0;
  max-width: 30ch;
  color: #51545a;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
  letter-spacing: -.015em;
}

.home-page .hero-actions {
  gap: 20px 28px;
  margin-top: 32px;
}

.home-page .hero .button {
  box-shadow: none;
  font-size: 16px;
  padding: 14px 24px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #005bb5;
  font-size: 16px;
  font-weight: 500;
}
.hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-link:focus-visible { outline: 3px solid #0071e3; outline-offset: 5px; border-radius: 4px; }

.home-page .hero-badges {
  gap: 8px 20px;
  margin-top: 36px;
  color: #565960;
  font-size: 13px;
  line-height: 1.5;
}
.home-page .hero-badges span + span {
  border-left: 1px solid #a8aaac;
  padding-left: 20px;
}

@media (max-width: 767px) {
  .home-page .hero {
    height: auto;
    min-height: 640px;
    align-items: flex-start;
    padding-block: 56px 230px;
    background-size: cover;
    background-position: center;
  }
  .home-page .hero::before {
    display: block;
    background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.78) 65%, rgba(255,255,255,.4));
  }
  .home-page .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-page .hero-badges { flex-direction: column; align-items: flex-start; margin-top: 24px; gap: 4px; }
  .home-page .hero-badges span + span { border: 0; padding: 0; }
}

/* Keep the mobile controls clear of the absolutely positioned brand. */
@media (max-width: 767px) {
  .navbar__actions { margin-left: auto; }
}

/* Keep the first screen aligned with the compact statistics strip. */
@media (min-width: 768px) {
  .home-page .hero {
    min-height: 0;
    height: var(--home-hero-height, calc(100svh - 180px));
    padding-block: clamp(24px, 5vh, 64px);
  }
}
.home-page .home-stats { padding-block: clamp(14px, 1.6vw, 22px); }
.home-stats .stat-value { font-size: 2rem !important; line-height: 1.15; }
.home-stats__icon svg { width: 23px; height: 23px; }
@media (max-width: 767px) {
  .home-stats .card-grid { gap: 12px; }
  .home-stats__item { gap: 8px; }
  .home-stats .stat-value { font-size: 1.6rem !important; }
}
