/* Homepage photo cards: native scrolling remains available without JavaScript. */
.page-home .why-bank__rail {
  display: flex;
  gap: 24px;
  margin: 12px -4px 4px;
  padding: 20px 4px 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.page-home .why-bank__rail::-webkit-scrollbar { display: none; }
.page-home .why-bank__rail:focus-visible {
  outline: 2px solid var(--blue, #2548af);
  outline-offset: 3px;
  border-radius: var(--radius, 4px);
}
.page-home .why-bank__rail[data-scrollable="true"] { cursor: grab; }
.page-home .why-bank__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.page-home .why-bank__rail.is-dragging a { cursor: grabbing; }
.page-home .why-bank__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  min-height: 420px;
  aspect-ratio: 3 / 4;
  padding: 26px 25px;
  overflow: hidden;
  border-radius: var(--radius, 4px);
  background: #b40821;
  box-shadow: 0 10px 24px rgba(0, 20, 65, .19);
  scroll-snap-align: start;
}
.page-home .why-bank__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 100% center;
  pointer-events: none;
}
.page-home .why-bank__card--everyday .why-bank__photo {
  object-position: 75% center;
  transform: scale(1.3);
  transform-origin: 60% 100%;
}
.page-home .why-bank__card--goals .why-bank__photo {
  transform: scale(1.25);
  transform-origin: 80% 100%;
}
.page-home .why-bank__card--support .why-bank__photo {
  transform: scale(1.1);
  transform-origin: 100% 100%;
}
.page-home .why-bank__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(223, 20, 40, 0) 37%, rgba(223, 20, 40, .05) 44%, rgba(192, 10, 32, .70) 64%, rgba(184, 8, 29, .97) 84%, #b40821 100%);
}
.page-home .why-bank__copy {
  position: relative;
  z-index: 2;
  color: var(--white, #fff);
}
.page-home .why-bank__copy h3 {
  margin: 0 0 12px;
  color: inherit;
  font-size: var(--bridge-subheading-size, 17px);
  font-weight: var(--bridge-subheading-weight, 800);
  line-height: var(--bridge-subheading-line-height, 1.4);
  letter-spacing: -.01em;
}
.page-home .why-bank__copy p {
  margin: 0 0 18px;
  color: inherit;
  font-size: var(--bridge-paragraph-size, 14px);
  font-weight: var(--bridge-paragraph-weight, 500);
  line-height: var(--bridge-paragraph-line-height, 1.65);
}
.page-home .why-bank__link {
  display: inline-block;
  color: inherit;
  font-size: var(--bridge-paragraph-size, 14px);
  font-weight: var(--bridge-subheading-weight, 800);
  line-height: var(--bridge-paragraph-line-height, 1.65);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-home .why-bank__link:hover { color: inherit; text-decoration-thickness: 2px; }
.page-home .why-bank__link:focus-visible {
  outline: 2px solid var(--white, #fff);
  outline-offset: 5px;
  border-radius: 1px;
}
.page-home .why-bank__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .page-home .why-bank__card { flex-basis: 44%; }
}
@media (max-width: 600px) {
  .page-home .why-bank__rail { gap: 18px; margin-top: 8px; margin-bottom: 0; }
  .page-home .why-bank__card { flex-basis: 85%; min-height: 420px; padding: 24px 22px; }
  .page-home .why-bank__card::after {
    background: linear-gradient(180deg, rgba(223, 20, 40, 0) 30%, rgba(223, 20, 40, .1) 38%, rgba(192, 10, 32, .88) 57%, rgba(184, 8, 29, .98) 80%, #b40821 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .why-bank__rail { scroll-behavior: auto; }
}


/* Approved transition: white benefit cards extend into the app-blue surface.
   A continuous painted background keeps both sections in normal document flow. */
.page-home #section-08.banking-benefits {
  padding-bottom: 0;
  background: linear-gradient(to bottom, var(--white, #fff) calc(100% - 112px), var(--fb-credit-blue) 0);
}
.page-home #section-08 .banking-benefits__grid > .card {
  position: relative;
  z-index: 1;
  background: var(--white, #fff);
  box-shadow: 0 14px 30px rgba(0, 20, 65, .16);
}
.page-home #section-08 + #bridgefort-bridgeapp {
  padding-top: 80px;
  padding-bottom: 72px;
}
@media (min-width: 901px) {
  /* All three photos fit at this size; allow their outer shadows to breathe. */
  .page-home .why-bank__rail { overflow: visible; }
}
@media (max-width: 700px) {
  .page-home #section-08.banking-benefits {
    background: linear-gradient(to bottom, var(--white, #fff) calc(100% - 64px), var(--fb-credit-blue) 0);
  }
  .page-home #section-08 + #bridgefort-bridgeapp {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
