.banking-mobile-comparison {
  width: 100%;
  aspect-ratio: 1;
  padding: clamp(24px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  overflow: hidden;
  background: #d4f3f6;
}

.banking-mobile-before-after {
  position: relative;
  flex: 1 1 0;
  max-width: 300px;
  aspect-ratio: 375 / 812;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(26, 37, 37, 0.12);
}

.banking-mobile-comparison .banking-mobile-screen,
.banking-mobile-reveal,
.banking-mobile-comparison .banking-mobile-reveal img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.banking-mobile-comparison .banking-mobile-screen,
.banking-mobile-comparison .banking-mobile-reveal img {
  object-fit: contain;
  object-position: center top;
}

.banking-mobile-comparison .banking-mobile-reveal img.banking-mobile-reveal-image--cover {
  object-fit: cover;
}

.banking-mobile-comparison .banking-mobile-screen {
  z-index: 1;
}

.banking-mobile-reveal {
  z-index: 2;
  overflow: hidden;
  background: #f1f6f6;
  clip-path: inset(0 100% 0 0);
  animation: banking-mobile-reveal 3.1s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}

.banking-mobile-comparison .banking-mobile-reveal img {
  z-index: 1;
}

.banking-mobile-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 2px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 14px rgba(31, 45, 44, 0.28);
  opacity: 0;
  transform: translateX(-1px);
  animation: banking-mobile-divider 3.1s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}

@keyframes banking-mobile-reveal {
  0%, 32.26% {
    clip-path: inset(0 100% 0 0);
  }

  67.74%, 100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes banking-mobile-divider {
  0%, 32.26% {
    left: 0;
    opacity: 0;
  }

  33.8% {
    left: 0;
    opacity: 1;
  }

  67.74% {
    left: 100%;
    opacity: 1;
  }

  69.28%, 100% {
    left: 100%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banking-mobile-reveal {
    clip-path: inset(0);
    animation: none;
  }

  .banking-mobile-divider {
    display: none;
    animation: none;
  }
}
