/* Financial Health Check hero refinement: tighter editorial composition, stronger visual hierarchy, mobile-safe scaling. */

.homepage-hero-reworked {
  min-height: clamp(620px, 72vh, 760px) !important;
  padding-top: clamp(56px, 6vw, 92px) !important;
  padding-bottom: clamp(48px, 5vw, 76px) !important;
  align-items: center !important;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr) !important;
  column-gap: clamp(20px, 4vw, 64px) !important;
}

.homepage-hero-reworked .hero-copy {
  max-width: 590px;
  padding-bottom: 8px;
}

.homepage-hero-reworked .hero-copy h1 {
  max-width: 560px;
  font-size: clamp(52px, 5.25vw, 82px) !important;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.homepage-hero-reworked .hero-copy .lede {
  max-width: 500px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
}

.homepage-hero-reworked .hero-sketch-picture {
  min-height: 500px !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
  position: relative;
}

.homepage-hero-reworked .phone-mockup-image {
  width: min(100%, 900px) !important;
  max-width: 900px !important;
  transform: scale(1.18) !important;
  transform-origin: center center;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.16));
}

/* A restrained halo gives the phone a focal point without adding another card. */
.homepage-hero-reworked .hero-sketch-picture::after {
  content: "";
  position: absolute;
  width: min(34vw, 360px);
  aspect-ratio: 1;
  right: 12%;
  top: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,173,104,.10), rgba(212,173,104,0) 70%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 980px) {
  .homepage-hero-reworked {
    min-height: auto !important;
    padding-top: 70px !important;
    grid-template-columns: 1fr !important;
    row-gap: 18px;
  }

  .homepage-hero-reworked .hero-copy {
    max-width: 650px;
  }

  .homepage-hero-reworked .hero-sketch-picture {
    min-height: 420px !important;
    width: min(100%, 680px);
    margin-inline: auto !important;
  }

  .homepage-hero-reworked .phone-mockup-image {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    transform: scale(1.08) !important;
  }

  .homepage-hero-reworked .hero-sketch-picture::after {
    width: 300px;
    right: 20%;
    top: 22%;
  }
}

@media (max-width: 640px) {
  .homepage-hero-reworked {
    padding-top: 44px !important;
    padding-bottom: 40px !important;
    row-gap: 4px;
  }

  .homepage-hero-reworked .hero-copy h1 {
    max-width: 360px;
    font-size: clamp(44px, 11.5vw, 62px) !important;
    line-height: .98;
    margin-bottom: 18px;
  }

  .homepage-hero-reworked .hero-copy .lede {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.5;
  }

  .homepage-hero-reworked .hero-sketch-picture {
    min-height: 310px !important;
    width: 100%;
    margin-top: -8px !important;
  }

  .homepage-hero-reworked .phone-mockup-image {
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    transform: scale(1.02) !important;
  }

  .homepage-hero-reworked .hero-sketch-picture::after {
    width: 220px;
    right: 12%;
    top: 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-hero-reworked .phone-mockup-image {
    transition: none !important;
  }
}
