/* v5.71 — place every alternate portrait safely to the left of the fixed lead form.
   The original portrait (variant 0) stays unchanged. On medium tablets the form stacks
   below the hero because there is not enough horizontal room for both a portrait and card. */

/* Keep each alternate face left of the lead card, but retain the same visual scale
   and right-side alignment as the original portrait. Amounts are tuned per source. */
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture {
  background: #071d30 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 1101px) {
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="1"] .hero-visual picture img {
    transform: translate3d(0, 0, 0) !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="2"] .hero-visual picture img {
    transform: translate3d(-7%, 0, 0) !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="3"] .hero-visual picture img {
    transform: translate3d(-8%, 0, 0) !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="4"] .hero-visual picture img {
    transform: translate3d(-2%, 0, 0) !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="5"] .hero-visual picture img {
    transform: translate3d(-13%, 0, 0) !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="1"] .hero-visual picture img,
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="2"] .hero-visual picture img,
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="3"] .hero-visual picture img,
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="4"] .hero-visual picture img,
  .home-page .home-firstscreen > section.home-hero-v46[data-hero-variant="5"] .hero-visual picture img {
    left: 0 !important;
    right: auto !important;
    will-change: transform;
  }
}

/* Tablet landscape: move the form to its own row rather than overlaying the portrait. */
@media (min-width: 761px) and (max-width: 1100px) {
  .home-page .home-firstscreen {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "hero" "form" "proof" "warning" !important;
    gap: 14px !important;
    padding: 0 0 18px !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46 {
    grid-area: hero !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46 > .hero-container {
    height: auto !important;
    min-height: 560px !important;
    padding: 38px 34px 42px !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-copy {
    width: min(61%, 650px) !important;
    max-width: 650px !important;
  }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img {
    transform: none !important;
    object-position: 58% center !important;
  }
  .home-page .home-firstscreen > .hero-lead-card {
    grid-area: form !important;
    position: relative !important;
    inset: auto !important;
    justify-self: center !important;
    width: min(calc(100% - 40px), 660px) !important;
    max-width: 660px !important;
    margin: 0 auto !important;
  }
  .home-page .home-firstscreen > section.proof-premium {
    grid-area: proof !important;
    width: calc(100% - 40px) !important;
    margin: 0 auto !important;
  }
  .home-page .home-firstscreen > .home-legal-warning {
    grid-area: warning !important;
    width: calc(100% - 40px) !important;
    margin: 0 auto !important;
  }
}

/* Mobile already stacks the form below the hero: retain its established image treatment. */
@media (max-width: 760px) {
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img {
    transform: none !important;
  }
}
