/* Standalone, CSS-only section. Selectors are scoped to the promo band. */
:root {
  --blue: #0033A0;
  --gold: #F8B200;
  --band-blue: var(--blue);
  --accent-cyan: #00AEEF;
}
.hfb-mobile-banking {
  --band-height: 560px;
  --band-top-space: 64px;
  --band-highlight: var(--gold);
  margin-block: 64px 96px;
  background: var(--band-blue);
  color: #fff;
  font-family: inherit;
  position: relative;
  isolation: isolate;
}
/* Continue the preceding services section's grey behind the upper overlap. */
.hfb-mobile-banking::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 100%;
  height: var(--band-top-space);
  background: #f4f6f8;
  pointer-events: none;
  z-index: -1;
}
.hfb-mobile-banking *, .hfb-mobile-banking *::before, .hfb-mobile-banking *::after { box-sizing: border-box; }
.hfb-mobile-banking__inner {
  display: grid;
  gap: 24px;
  max-width: 1280px;
  padding-inline: 24px;
  margin-inline: auto;
}
.hfb-mobile-banking__copy { padding-top: 48px; }
@media (max-width: 767px) {
  .hfb-mobile-banking { --band-top-space: 0px; margin-block-start: 0; }
}
.hfb-mobile-banking__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .25em;
}
.hfb-mobile-banking h2 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.hfb-mobile-banking h2 span { color: var(--band-highlight); }
.hfb-mobile-banking__description {
  margin: 18px 0 22px;
  max-width: 52ch;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}
.hfb-mobile-banking__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 192.40625px;
  height: 42px;
  min-height: 42px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  color: #0033a1;
  background: #feb600;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 16px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms cubic-bezier(.4, 0, .2, 1);
}
.hfb-mobile-banking__apply svg { flex: 0 0 15px; }
.hfb-mobile-banking__apply:hover,
.hfb-mobile-banking__apply:focus-visible { background: #fff; color: #0033a1; }
.hfb-mobile-banking a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hfb-mobile-banking__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hfb-mobile-banking__apply { flex: 0 0 192.40625px; }
.hfb-mobile-banking__stores { display: flex; flex: 0 0 auto; gap: 8px; margin: 0; align-items: center; max-width: 100%; }
.hfb-mobile-banking__store {
  display: flex;
  flex: 0 0 118px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 118px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #aebdd0;
  border-radius: 7px;
  background: #061a36;
  color: #fff;
  text-decoration: none;
}
.hfb-mobile-banking__store small { display: block; font-size: 9px; line-height: 1.3; font-weight: 500; letter-spacing: .02em; }
.hfb-mobile-banking__store strong { display: block; font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.hfb-mobile-banking__store span { white-space: nowrap; }
.hfb-mobile-banking__store-icon { display: block; flex: 0 0 22px; }
.hfb-mobile-banking__store:hover { border-color: #fff; }
.hfb-mobile-banking__phones {
  position: relative;
  top: 40px;
  width: 85%;
  max-width: 560px;
  aspect-ratio: .813;
  margin-inline: auto;
}
.hfb-mobile-banking__phone { display: block; position: absolute; margin: 0; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hfb-mobile-banking__phone img { display: block; width: 100%; height: auto; }
.hfb-mobile-banking__phone--back { top: 4%; left: 0; width: 56%; z-index: 0; }
.hfb-mobile-banking__phone--front { top: 0; right: 0; width: 61%; z-index: 1; }
@media (min-width: 768px) {
  .hfb-mobile-banking__inner { gap: 32px; }
  .hfb-mobile-banking__copy { max-width: 660px; margin-inline: auto; }
  .hfb-mobile-banking h2 { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .hfb-mobile-banking { --band-top-space: 96px; margin-block: 96px 112px; }
  .hfb-mobile-banking__inner { grid-template-columns: minmax(452px, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; min-height: var(--band-height); }
  .hfb-mobile-banking__copy { padding-block: 32px; max-width: none; margin: 0; }
  .hfb-mobile-banking h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.04; }
  .hfb-mobile-banking__description { margin-block: 16px 20px; }
  .hfb-mobile-banking__phones { top: 0; width: 100%; height: var(--band-height); aspect-ratio: auto; margin: 0 0 0 auto; }
  .hfb-mobile-banking__phone--back { top: -40px; left: 0; width: calc((var(--band-height) + 90px) * 374 / 755); }
  .hfb-mobile-banking__phone--front { top: -50px; right: 0; width: calc((var(--band-height) + 120px) * 406 / 819); }
}
/* Clip sideways motion without clipping the phones above or below the band. */
.hfb-mobile-banking { overflow-x: clip; }
@keyframes hfb-phone-slide-in {
  from { opacity: 0; transform: translateX(var(--phone-entry-distance, 64px)); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hfb-mobile-banking__phone img {
    animation: hfb-phone-slide-in 850ms cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--phone-entry-delay);
  }
  .hfb-mobile-banking__phone--back { --phone-entry-distance: 56px; --phone-entry-delay: 60ms; }
  .hfb-mobile-banking__phone--front { --phone-entry-distance: 88px; --phone-entry-delay: 260ms; }
  /* Where supported, reveal as the phone group enters the viewport, even
     though the promo sits below the first screen. The front phone follows. */
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
    .hfb-mobile-banking__phones { view-timeline-name: --hfb-phone-entry; view-timeline-axis: block; }
    .hfb-mobile-banking__phone {
      animation: hfb-phone-slide-in auto cubic-bezier(.22, 1, .36, 1) both;
      animation-timeline: --hfb-phone-entry;
    }
    .hfb-mobile-banking__phone--back { animation-range: entry 0% entry 70%; }
    .hfb-mobile-banking__phone--front { animation-range: entry 20% entry 95%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hfb-mobile-banking, .hfb-mobile-banking * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
