/*
 * Needs /_mirror/destination-pages.css (tokens, fonts). One row per campaign; sizes scale
 * linearly with the list width (cqi) from 335px (375px phone) up to a cap at 1100px.
 */
.dp-offers {
  width: min(1100px, calc(100% - 40px));
  margin: clamp(32px, 20px + 2.4vw, 56px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 8px + 1.2vw, 24px);
  list-style: none;
  container: dp-offers / inline-size;
}

.dp-offer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(122px, 52.8px + 20.65cqi, 280px) minmax(0, 1fr);
  min-height: clamp(116px, 88px + 8.37cqi, 180px);
  border: 1.5px solid rgba(40, 244, 255, .72);
  border-radius: clamp(18px, 14.5px + 1.05cqi, 26px);
  background:
    radial-gradient(ellipse 45% 95% at 0% 110%, rgba(40, 244, 255, .26), transparent 70%),
    linear-gradient(100deg, rgba(18, 105, 110, .32), rgba(14, 22, 21, .2) 55%),
    #0e1615;
  box-shadow: inset 0 0 30px rgba(40, 244, 255, .06), 0 14px 40px rgba(0, 0, 0, .3);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dp-offer:hover {
  transform: translateY(-2px);
  border-color: var(--dp-green);
  box-shadow: inset 0 0 30px rgba(40, 244, 255, .09), 0 20px 50px rgba(0, 0, 0, .4), 0 0 0 4px rgba(40, 244, 255, .06);
}

.dp-offer__media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(14px, 7.9px + 1.83cqi, 28px) clamp(12px, 4.1px + 2.35cqi, 30px) clamp(14px, 7.9px + 1.83cqi, 28px) clamp(16px, 9px + 2.09cqi, 32px);
}

.dp-offer__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-radius: clamp(9px, 6.8px + .65cqi, 14px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 22px rgba(0, 0, 0, .35);
}

.dp-offer__brand {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  padding: 6px;
  border: 1px solid var(--dp-line);
  border-radius: clamp(9px, 6.8px + .65cqi, 14px);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: FuturaPTWebBold, Futura, sans-serif;
  font-size: clamp(14px, 10.5px + 1.05cqi, 22px);
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

/*
 * Must NOT be positioned: the CTA hit area (.dp-offer__cta:after) stretches over the
 * nearest positioned ancestor, which has to be the whole card (.dp-offer).
 */
.dp-offer__body {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.3px + 2.61cqi, 32px);
  padding: clamp(14px, 9.6px + 1.31cqi, 24px) clamp(14px, 2.6px + 3.4cqi, 40px) clamp(14px, 9.6px + 1.31cqi, 24px) clamp(18px, 6.6px + 3.4cqi, 44px);
}

/* Divider between logo and copy. */
.dp-offer__media:after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  border-left: 1px solid rgba(40, 244, 255, .38);
  pointer-events: none;
}

.dp-offer__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dp-offer__label {
  margin: 0 0 clamp(4px, 2.2px + .52cqi, 8px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--dp-green);
  font-family: FuturaPTWebBold, Futura, sans-serif;
  font-size: clamp(11px, 8.8px + .654cqi, 16px);
  line-height: 1.25;
  letter-spacing: clamp(.4px, -.2px + .2cqi, 1.9px);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dp-offer__usp {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* Safety net for unusually long USPs only; normal USPs must never be cut. */
  -webkit-line-clamp: 5;
  overflow: hidden;
  color: #fff;
  font-family: FuturaPTWebBold, Futura, sans-serif;
  font-size: clamp(16px, 10.74px + 1.57cqi, 28px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.dp-offer__value {
  color: var(--dp-yellow);
  font-size: 1.3em;
  font-weight: 400;
  line-height: 1;
}

.dp-offer__cta {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(46px, 34.6px + 3.4cqi, 72px);
  height: clamp(46px, 34.6px + 3.4cqi, 72px);
  border-radius: 50%;
  color: #0b1514;
  background: var(--dp-green);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Stretch the CTA hit area over the whole card. */
.dp-offer__cta:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dp-offer__cta svg {
  width: 46%;
  height: 46%;
  transition: transform .18s ease;
}

/*
 * Never transform the <a> itself: a transformed element becomes the containing
 * block of its ::after, which would shrink the full-card hit area to the button
 * exactly while the card is hovered. Animate the ring and the arrow instead.
 */
.dp-offer:hover .dp-offer__cta {
  box-shadow: 0 0 0 7px rgba(40, 244, 255, .12), 0 10px 26px rgba(40, 244, 255, .18);
}

.dp-offer:hover .dp-offer__cta svg {
  transform: translateX(2px);
}

.dp-offer__cta:focus-visible {
  outline: 3px solid var(--dp-yellow);
  outline-offset: 4px;
}

@container dp-offers (max-width: 300px) {
  .dp-offer {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .dp-offer__media {
    padding: 12px 8px 12px 12px;
  }

  .dp-offer__body {
    gap: 10px;
    padding: 12px 12px 12px 14px;
  }

  .dp-offer__usp {
    font-size: 14px;
  }

  .dp-offer__cta {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dp-offer {
    animation: dp-enter .55s ease-out both;
  }

  .dp-offer:nth-child(2) { animation-delay: .06s; }
  .dp-offer:nth-child(3) { animation-delay: .12s; }
  .dp-offer:nth-child(4) { animation-delay: .18s; }
  .dp-offer:nth-child(n+5) { animation-delay: .24s; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-offer,
  .dp-offer__cta {
    transition: none;
  }
}
