/* V2: responsive title artwork and APP-first conversion hierarchy. */
.hero-title-image {
  display: block;
  width: 100%;
  height: auto;
}

.header-inner { gap: 22px; }
.desktop-nav { gap: 26px; }
.header-conversion-actions,
.conversion-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.header-conversion-actions { flex: none; gap: 10px; }
.conversion-actions { align-items: stretch; }
.conversion-actions .button { min-width: 200px; }
.benefits .benefit-cta { display: flex; flex-direction: column; align-items: center; }

/* Blue secondary conversion buttons. */
.site-header a.header-cta[href*="/plain/apply/otp"],
.hero-actions .hero-action-buttons > a[href*="/plain/apply/otp"],
.benefits .benefit-cta a[href*="/plain/apply/otp"],
.closing-cta .closing-inner a[href*="/plain/apply/otp"],
#risk-dialog .risk-dialog-buttons > a[href="#guide"] {
  background-color: #004695 !important;
  background-image: none !important;
  border-color: #004695 !important;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(0,70,149,.15) !important;
}
.site-header a.header-cta.app-cta,
.hero-actions .hero-action-buttons > a.app-cta,
.benefits .benefit-cta a.app-cta,
.closing-cta .closing-inner a.app-cta,
.guide .step-details a[data-device-link],
#risk-dialog .risk-dialog-buttons > a[data-device-link] {
  background-color: #CA2420 !important;
  background-image: none !important;
  border-color: #CA2420 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(202,36,32,.23) !important;
}
.site-header .header-cta > span,
.conversion-actions .button > span,
.hero-action-buttons .button-red > span {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.app-cta:focus-visible,
.conversion-actions a:focus-visible {
  outline: 3px solid #004695;
  outline-offset: 4px;
}
.app-cta:hover { filter: brightness(.94); }
.app-cta:active { filter: brightness(.9); }

/* An airy end panel keeps the red APP CTA distinct from its surroundings. */
.closing-cta {
  background: radial-gradient(ellipse at 20% 0, #fff, transparent 65%), #edf4fb;
  color: #004695;
}
.closing-cta::before {
  border-color: rgba(0,70,149,.12);
  box-shadow: 0 0 0 65px rgba(0,70,149,.025), 0 0 0 130px rgba(0,70,149,.02);
}
.closing-cta .closing-inner p { color: #475f7d; }
.closing-inner .conversion-actions { margin-top: 8px; }

.intro .intro-copy > p:first-child {
  max-width: 1000px;
  text-align: left;
  line-height: 1.9;
}
.intro .intro-launch {
  color: #004695;
  font-weight: 900;
}
.intro .intro-offer {
  color: #CA2420 !important;
  white-space: normal;
}
.intro .intro-offer > span { white-space: nowrap; }

@media (min-width: 681px) and (max-width: 1050px) {
  .header-inner { gap: 14px; padding-inline: 18px; }
  .desktop-nav { gap: 15px; font-size: 15px; }
  .header-conversion-actions { gap: 8px; }
  .header-conversion-actions .header-cta { gap: 7px; padding: 7px 8px 7px 14px; font-size: 14px; }
  .header-conversion-actions .header-cta > span { width: 27px; height: 27px; }
  .hero-action-buttons { gap: 10px; }
  .hero-actions .hero-action-buttons .button { min-width: 160px; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .hero .hero-woman { top: calc(102px + 92vw * 748 / 2103); }
  .hero .hero-etf { top: calc(132px + 92vw * 748 / 2103); }
}

@media (max-width: 680px) {
  .header-conversion-actions { display: none; }

  /* The source includes transparent top/bottom padding. Crop it in the layout
     while keeping the supplied PNG intact and preserving its native ratio. */
  .hero .hero-title-layer {
    top: 88px;
    left: 3%;
    width: 94%;
    aspect-ratio: 1122 / 800;
    overflow: hidden;
  }
  .hero .hero-title-image {
    position: absolute;
    top: -41.25%;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .hero .hero-woman {
    top: calc(78px + 94vw * 800 / 1122);
    width: min(66vw, 320px);
  }
  .hero .hero-etf { top: 18%; }

  .hero-action-buttons {
    grid-template-columns: 1.2fr 1fr;
  }
  .hero-actions .hero-action-buttons .button {
    min-width: 0;
    gap: 5px;
    padding-inline: 8px;
    font-size: clamp(13px,3.85vw,15px);
    white-space: nowrap;
  }
  .hero-scroll-cue { gap: 8px; }
  .hero-scroll-cue .hero-guide-mobile {
    display: inline-flex;
    min-height: 32px;
    margin-left: 8px;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #004695;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .hero-scroll-cue .hero-guide-mobile > span { display: none; }
  .hero-scroll-cue .hero-guide-mobile:hover { transform: none; box-shadow: none; }
  .conversion-actions { display: grid; grid-template-columns: 1.2fr 1fr; width: 100%; gap: 8px; }
  .benefits .benefit-cta .conversion-actions > .button,
  .closing-inner .conversion-actions > .button {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 50px;
    margin-top: 0;
    padding: 9px 8px;
    gap: 5px;
    font-size: clamp(13px,3.6vw,16px);
  }
  .conversion-actions .button > span { width: 25px; height: 25px; }
  .closing-inner .conversion-actions { margin-top: 24px; }
}

@media (max-width: 680px) and (max-height: 740px) {
  .hero .hero-title-layer { top: 80px; left: 10%; width: 80%; }
  .hero .hero-woman { top: calc(78px + 80vw * 800 / 1122); width: 52vw; }
  .hero .hero-etf { top: 12%; }
}
