/* ==========================================================================
   Payment method picker
   Used by the invest, installment and "Invest Now" modals. Wallet and gateway
   get their own accent so the active option is obvious at a glance, and the
   radio input is hidden behind a styled card so the choice also works with
   keyboard navigation.
   ========================================================================== */

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method {
  display: block;
  margin: 0;
  cursor: pointer;
}

.payment-method__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid hsl(var(--gray) / 0.35);
  border-radius: 8px;
  background-color: hsl(var(--white));
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-method__body:hover {
  border-color: hsl(var(--gray) / 0.6);
}

.payment-method input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-method__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.payment-method__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.payment-method__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 120%;
  color: hsl(var(--black-two));
}

.payment-method__sub {
  font-size: 0.8125rem;
  line-height: 120%;
  color: hsl(var(--gray));
}

.payment-method__check {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid hsl(var(--gray) / 0.45);
  border-radius: 50%;
  font-size: 0.6875rem;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.payment-method input[type="radio"]:focus-visible + .payment-method__body {
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.25);
}

/* Wallet keeps the brand accent */
.payment-method--balance .payment-method__icon {
  background-color: hsl(var(--base) / 0.12);
  color: hsl(var(--base-d-200));
}

.payment-method--balance input[type="radio"]:checked + .payment-method__body {
  border-color: hsl(var(--base));
  background-color: hsl(var(--base) / 0.06);
  box-shadow: inset 0 0 0 1px hsl(var(--base));
}

.payment-method--balance input[type="radio"]:checked + .payment-method__body .payment-method__icon {
  background-color: hsl(var(--base));
  color: hsl(var(--white));
}

.payment-method--balance input[type="radio"]:checked + .payment-method__body .payment-method__title {
  color: hsl(var(--base-d-300));
}

.payment-method--balance input[type="radio"]:checked + .payment-method__body .payment-method__check {
  background-color: hsl(var(--base));
  border-color: hsl(var(--base));
  color: hsl(var(--white));
}

/* Gateway uses a neutral ink accent so it never reads as the active wallet */
.payment-method--gateway .payment-method__icon {
  background-color: hsl(var(--black-two) / 0.08);
  color: hsl(var(--black-two));
}

.payment-method--gateway input[type="radio"]:checked + .payment-method__body {
  border-color: hsl(var(--black-two));
  background-color: hsl(var(--black-two) / 0.04);
  box-shadow: inset 0 0 0 1px hsl(var(--black-two));
}

.payment-method--gateway input[type="radio"]:checked + .payment-method__body .payment-method__icon {
  background-color: hsl(var(--black-two));
  color: hsl(var(--white));
}

.payment-method--gateway input[type="radio"]:checked + .payment-method__body .payment-method__title {
  color: hsl(var(--black-two));
}

.payment-method--gateway input[type="radio"]:checked + .payment-method__body .payment-method__check {
  background-color: hsl(var(--black-two));
  border-color: hsl(var(--black-two));
  color: hsl(var(--white));
}

/* ================================================================
   Homepage banner slider with Ken Burns effect
   ================================================================ */

.banner--slider {
  position: relative;
  /* Reset the theme .banner padding; the slide height defines the hero. */
  padding: 0;
  overflow: hidden;
}

/* The slide height defines the hero; the write-up overlays on top of it. */
.banner--slider__media {
  position: relative;
  z-index: 0;
  height: clamp(520px, 78vh, 820px);
  overflow: hidden;
}

.banner-slider,
.banner-slider .slick-list,
.banner-slider .slick-track,
.banner-slider .slick-slide,
.banner-slider .slick-slide > div {
  height: 100%;
}

.banner-slider__slide {
  position: relative;
  height: 100%;
}

/*
 * The write-up sits inside the slide so Slick's fade transitions the copy
 * and the photograph together, with no separate JS state to keep in sync.
 */
.banner-slider__writeup {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Keep the button clickable even though the wrapper ignores pointers. */
.banner-slider__writeup .btn {
  pointer-events: auto;
}

.banner-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Start slightly oversized so the pan never exposes an edge. */
  transform: scale(1.04);
  will-change: transform;
}

/* Only the visible slide animates; it re-runs on every slide change. */
.slick-active .banner-slider__img {
  animation: bannerKenBurns 9s linear forwards;
}

@keyframes bannerKenBurns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.17) translate3d(-1.6%, -1.2%, 0);
  }
}

/* Contrast scrim so the headline stays readable over any image. */
.banner--slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(4, 8, 20, 0.94) 0%, rgba(4, 8, 20, 0.82) 42%, rgba(4, 8, 20, 0.45) 70%, rgba(4, 8, 20, 0.16) 100%),
    linear-gradient(0deg, rgba(4, 8, 20, 0.5) 0%, rgba(4, 8, 20, 0) 60%);
}

.banner-content__text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Light-on-dark overrides for the overlaid content. */
.banner--slider .banner-content__subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.banner--slider .banner-content__title,
.banner--slider .banner-content__title span {
  color: hsl(var(--white));
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/*
 * The stat row (9K+ / 3K+ / 20%) belongs to the original banner above the
 * slider, so it deliberately has no rules here.
 */

/* Slick controls, matched to the theme button styling. */
.banner-slider .slick-dots {
  bottom: 34px;
  z-index: 3;
}

.banner-slider .slick-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.banner-slider .slick-dots .slick-active button {
  background: hsl(var(--base));
}

.banner-slider__arrows {
  position: absolute;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.banner-slider__arrows button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: hsl(var(--white));
  transition: background 0.25s ease, border-color 0.25s ease;
}

.banner-slider__arrows button:hover {
  background: hsl(var(--base));
  border-color: hsl(var(--base));
}

@media (max-width: 991px) {
  .banner--slider__media {
    height: clamp(460px, 66vh, 560px);
  }
}

@media (max-width: 767px) {
  .banner--slider__media {
    height: 460px;
  }

  .banner-content__text {
    font-size: 0.95rem;
  }

  .banner-slider .slick-dots {
    bottom: 20px;
  }

  .banner-slider__arrows {
    bottom: 14px;
  }
}

/* Respect users who ask the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .slick-active .banner-slider__img {
    animation: none;
    transform: scale(1.06);
  }
}