/* Deals in Focus. The section's own classes keep the rest of the page independent. */
#deals.deals-showcase {
  --deals-cyan: #00e9ef;
  --deals-white: #f5f8fa;
  --deals-font: Arial, Helvetica, sans-serif;
  padding: 1.12% 0 1.4%;
  color: var(--deals-white);
  background: #030f11;
}

/* Every size in the section is a share of this box (cqw). Capping its width keeps the frame in line with the
   other sections instead of running almost edge to edge, which made it compete with the hero. */
.deals-scale {
  container-type: inline-size;
  max-width: 1232px;
  margin-inline: auto;
}

#deals.deals-showcase::before {
  content: none;
}

.deals-frame {
  position: relative;
  isolation: isolate;
  margin-inline: 1.32cqw;
  padding-block: 5.69cqw 2.7cqw;
  border: 1px solid #316069;
  border-radius: 2.1cqw;
  background:
    radial-gradient(ellipse 32% 23% at 78% 100%, #04bfca30, transparent 93%),
    radial-gradient(ellipse 36% 48% at 21% 58%, #0833378c, transparent 94%),
    linear-gradient(140deg, #041316 4%, #020e10 71%, #031719);
  font-family: var(--deals-font);
}

.deals-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2cqw;
  margin: 0 7cqw 3.62cqw 6.23cqw;
}

#deals .deals-heading h2 {
  display: flex;
  align-items: center;
  flex: none;
  gap: 1.32cqw;
  margin: 0;
  padding: 0;
  color: var(--deals-white);
  font: italic 900 3.5cqw / .9 var(--deals-font);
  letter-spacing: -.034em;
  white-space: nowrap;
  text-transform: uppercase;
}

#deals .deals-heading h2::before {
  content: "";
  position: static;
  display: block;
  width: .76cqw;
  height: 2.86cqw;
  margin-left: .48cqw;
  flex: none;
  background: var(--deals-cyan);
  transform: skewX(-21deg);
}

.deals-tabs {
  --deals-tab: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  isolation: isolate;
  width: 34cqw;
  min-height: max(40px, 3.16cqw);
  border: 1px solid #386972;
  border-radius: 100vmax;
  background: #020d10a6;
}

.deals-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px auto -1px -1px;
  width: calc(100% / 3 + 2px);
  border: 1px solid transparent;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 62% 119% at 0 8%, #10cbd15e, transparent 100%) padding-box,
    linear-gradient(180deg, #06252b, #041416 55%, #064950) padding-box,
    linear-gradient(105deg, #e0ffff, #03f7fe 28%, #007f87) border-box;
  box-shadow: 0 0 1.15cqw #00ecf587, inset 0 0 .7cqw #00e2ea64;
  transform: translateX(calc(var(--deals-tab) * 100% - var(--deals-tab) * 1px));
  transition: transform 260ms cubic-bezier(.22, .75, .25, 1);
}

.deals-tabs button {
  min-width: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: inherit;
  color: var(--deals-white);
  background: none;
  font: italic 700 max(14px, 1.43cqw) / 1.1 var(--deals-font);
  white-space: nowrap;
  text-shadow: 0 2px 6px #000b;
  transition: color 160ms ease;
}

.deals-tabs button:hover {
  color: #b4ffff;
}

.deals-carousel {
  position: relative;
}

.deals-stage {
  position: relative;
  isolation: isolate;
  touch-action: pan-y;
  width: 67.51cqw;
  min-height: max(206px, 21.2cqw);
  margin-left: 11.17cqw;
}

.deals-material-defs {
  position: absolute;
}

.deals-card {
  position: relative;
  min-height: inherit;
}

.deals-card[hidden] {
  display: none;
}

.deals-card--front {
  isolation: isolate;
}

/* Light sweep and rim flash over the front card while the deal changes. */
.deals-scan {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: polygon(1.4% 0, 98.6% 0, 100% 6%, 100% 94%, 98.6% 100%, 1.4% 100%, 0 94%, 0 6%);
  box-shadow: inset 0 0 0 1px #b4ffff, inset 0 0 2.2cqw #00e9ef73;
}

.deals-scan i {
  position: absolute;
  inset: -10% auto -10% 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, #00f2ff1f 30%, #c8ffff70 50%, #00f2ff1f 70%, transparent);
  transform: translateX(-110%) skewX(-22deg);
}

/* Own compositor layers so a change of deal only moves them and never repaints the glass. */
.deals-stage .deals-card {
  will-change: transform, opacity;
}

/* Copy of the outgoing card that slides away during a change of deal. */
.deals-card--ghost {
  position: absolute;
  z-index: 2;
  inset: 0;
  min-height: 0;
  pointer-events: none;
}

.deals-card--rear {
  --deals-left-light: 0;
  --deals-sweep-opacity: .36;
  position: absolute;
  right: -4.28cqw;
  left: 4.28cqw;
  top: 6.75%;
  bottom: 6.2%;
  min-height: 0;
  filter: drop-shadow(-2px 8px 12px #000b);
}

.deals-card--rear[data-depth="2"] {
  --deals-sweep-opacity: .22;
  right: -8.23cqw;
  left: 8.23cqw;
  top: 12.9%;
  bottom: 12.3%;
  opacity: .73;
}

.deals-glass {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.deals-rim {
  fill: none;
  stroke: url(#deals-edge);
  stroke-width: 1.45px;
}

.deals-glint,
.deals-bloom {
  fill: none;
  stroke: url(#deals-edge-glint);
}

.deals-glint {
  stroke-width: 1.95px;
}

.deals-bloom--outer {
  stroke-width: 15;
  filter: blur(1cqw);
  opacity: .94;
}

.deals-bloom--inner {
  stroke-width: 7;
  filter: blur(.24cqw);
}

.deals-card--rear .deals-rim {
  stroke: url(#deals-rear-edge);
}

.deals-card--rear :is(.deals-glint, .deals-bloom) {
  display: none;
}

.deals-left-light {
  opacity: var(--deals-left-light, 1);
}

.deals-sweep {
  fill: none;
  stroke: url(#deals-reflection);
  opacity: var(--deals-sweep-opacity, .64);
}

.deals-sweep--haze {
  stroke-width: 41;
  filter: blur(.9cqw);
  opacity: calc(var(--deals-sweep-opacity, .64) * .52);
}

.deals-sweep--soft {
  stroke-width: 11;
  filter: blur(.32cqw);
}

.deals-sweep--core {
  stroke-width: 1.8;
}

.deals-card-content {
  display: grid;
  grid-template-columns: 47.65% minmax(0, 1fr);
  align-content: stretch;
  min-height: inherit;
  padding: 2.8cqw 4.46cqw 2.63cqw 4cqw;
  text-shadow: 0 2px .36cqw #000a;
}

.deals-summary h3 {
  margin: 0;
  font: italic 800 2.6cqw / 1 var(--deals-font);
  letter-spacing: -.023em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deals-focus {
  margin: .59cqw 0 0;
  font-size: max(13px, 1.16cqw);
  line-height: 1.2;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.deals-discount {
  display: flex;
  align-items: baseline;
  gap: .5cqw;
  margin: 1.45cqw 0 0;
  width: max-content;
  line-height: 1;
  white-space: nowrap;
}

.deals-discount strong {
  font: italic 900 8.1cqw / .88 "Arial Black", var(--deals-font);
  letter-spacing: -.095em;
  color: var(--deals-cyan);
}

.deals-discount span {
  margin-left: .29cqw;
  font-size: 1.89cqw;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.deals-details {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-left: 2.64cqw;
  border-left: 1px solid #6cebf0ab;
}

.deals-details dl,
.deals-details dd {
  margin: 0;
}

.deals-details dl > div + div {
  margin-top: 1.02cqw;
}

.deals-details dt {
  font-size: max(13px, 1.29cqw);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.deals-account {
  padding-top: .23cqw;
  font: italic 900 max(24px, 2.34cqw) / 1.1 var(--deals-font);
  letter-spacing: -.035em;
}

.deals-code,
.deals-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  line-height: 1.1;
}

.deals-code {
  gap: 1.48cqw;
  min-height: max(40px, 3.27cqw);
  margin-top: .38cqw;
  padding: 0 1.2cqw;
  border: 1px solid #a3b9bd;
  border-radius: max(4px, .32cqw);
  background: linear-gradient(150deg, #030d10f0, #030c0e9e);
  box-shadow: inset 0 0 .45cqw #69979b34, 0 2px 9px #0005;
  color: inherit;
  font-size: max(14px, 1.47cqw);
  font-weight: 800;
  white-space: nowrap;
}

.deals-code:hover,
.deals-code[data-copied] {
  color: #9affff;
  border-color: #69e9ee;
}

.deals-code svg,
.deals-actions svg {
  width: .94em;
  height: .94em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deals-actions {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  margin-top: auto;
  padding-top: 1.35cqw;
}

.deals-actions button {
  gap: .45em;
  border: 0;
  white-space: nowrap;
  font-weight: 800;
  font-style: italic;
  transition: background 160ms ease, color 160ms ease;
}

.deals-offer {
  min-height: max(40px, 3.45cqw);
  padding: 0 2cqw;
  border-radius: max(6px, .55cqw);
  transform: skewX(-16deg);
  color: #001113;
  background: #00e7ec;
  box-shadow: 0 2px 8px #0007;
  font-size: max(14px, 1.47cqw);
}

.deals-offer span {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  transform: skewX(16deg);
}

.deals-offer:hover {
  background: #80faff;
}

.deals-actions .deals-submit {
  min-height: 44px;
  padding: .24em 0 .28em;
  border-bottom: 1px solid #cad5d9;
  color: var(--deals-white);
  background: transparent;
  font-size: max(15px, 1.7cqw);
  text-shadow: inherit;
}

.deals-submit:hover {
  color: #8cfdff;
}

.deals-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  top: max(101px, 10.25cqw);
  z-index: 1;
  width: max(44px, 4.57cqw);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(ellipse at 39% 70%, #031215, #061a1e) padding-box,
    linear-gradient(90deg, var(--deals-cyan), #005359 82%) border-box;
  color: var(--deals-white);
  transition: box-shadow 180ms ease, opacity 180ms ease;
}

.deals-arrow--previous {
  left: 3.23cqw;
}

.deals-arrow--next {
  right: 2.99cqw;
  background:
    radial-gradient(ellipse at 61% 70%, #031215, #061a1e) padding-box,
    linear-gradient(270deg, var(--deals-cyan), #005359 82%) border-box;
}

.deals-arrow svg {
  width: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px #000);
}

.deals-arrow:hover:not(:disabled) {
  box-shadow: 0 0 15px #00ecf54d, inset 0 0 12px #00ecf532;
}

.deals-arrow:disabled {
  opacity: .32;
  cursor: default;
}

.deals-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.32cqw;
}

.deals-pagination button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  width: 2.55cqw;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}

.deals-pagination button::before {
  content: "";
  width: max(10px, 1.16cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #30545c;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.deals-pagination button:hover::before {
  background: #6ab1bb;
}

.deals-pagination button[aria-current="true"]::before {
  background: var(--deals-cyan);
  box-shadow: 0 0 10px #00edf242;
}

.deals-showcase button:focus-visible {
  outline: 2px solid #cbffff;
  outline-offset: 3px;
}

.deals-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 701px) and (max-width: 1000px) {
  .deals-card-content {
    padding-inline: 3cqw;
  }

  .deals-details {
    padding-left: 1.9cqw;
  }

  .deals-actions {
    gap: 1.25cqw;
  }

  .deals-offer {
    padding-inline: 1.3cqw;
  }
}

@media (max-width: 700px) {
  #deals.deals-showcase {
    padding: 12px 0 18px;
  }

  .deals-frame {
    margin-inline: 10px;
    padding-block: 32px 18px;
    border-radius: 22px;
  }

  .deals-heading {
    display: grid;
    gap: 22px;
    margin: 0 16px 25px;
  }

  #deals .deals-heading h2 {
    gap: 10px;
    font-size: clamp(27px, 7.9cqw, 45px);
  }

  #deals .deals-heading h2::before {
    width: .21em;
    height: .83em;
    margin-left: .2em;
  }

  .deals-tabs {
    width: 100%;
    min-height: 44px;
  }

  .deals-tabs::before {
    box-shadow: 0 0 12px #00ecf55c, inset 0 0 8px #00e2ea64;
  }

  .deals-stage {
    width: auto;
    min-height: 0;
    margin-inline: 16px;
  }

  .deals-card--rear {
    display: none;
  }

  #deals-contour {
    d: path("M78 1H1202Q1221 1 1236 6L1264 16Q1279 21 1279 27V375Q1279 381 1264 386L1236 396Q1221 401 1202 401H78Q59 401 44 396L16 386Q1 381 1 375V27Q1 21 16 16L44 6Q59 1 78 1Z");
  }

  #deals-lit-edge {
    d: path("M348 1H78Q59 1 44 6L16 16Q1 21 1 27V375Q1 381 16 386L44 396Q59 401 78 401H895");
  }

  .deals-bloom--outer {
    filter: blur(10px);
  }

  .deals-bloom--inner {
    filter: blur(4px);
  }

  .deals-sweep--haze {
    filter: blur(9px);
  }

  .deals-card-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    padding: 23px clamp(14px, 4.2cqw, 25px) 22px;
  }

  .deals-summary h3 {
    font-size: clamp(19px, 6.1cqw, 37px);
  }

  .deals-focus {
    margin-top: 5px;
  }

  .deals-discount {
    gap: 5px;
    margin-top: 15px;
  }

  .deals-discount strong {
    font-size: clamp(56px, 16.5cqw, 103px);
  }

  .deals-discount span {
    font-size: clamp(16px, 4.7cqw, 24px);
  }

  .deals-details {
    padding: 14px 0 0;
    border-top: 1px solid #6cebf065;
    border-left: 0;
  }

  .deals-details dl {
    display: grid;
    grid-template-columns: 1fr max-content;
    gap: 10px;
    width: 100%;
  }

  .deals-details dl > div + div {
    margin-top: 0;
  }

  .deals-account {
    padding-top: 7px;
  }

  .deals-code {
    min-height: 44px;
    margin-top: 4px;
    gap: 10px;
    padding-inline: 9px;
  }

  .deals-actions {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 15px;
  }

  .deals-offer {
    min-height: 44px;
    padding-inline: clamp(7px, 2.9cqw, 20px);
  }

  .deals-submit {
    font-size: clamp(14px, 3.6cqw, 21px);
  }

  .deals-arrow {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .deals-arrow--previous {
    left: 16px;
  }

  .deals-arrow--next {
    right: 16px;
  }

  .deals-pagination {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deals-showcase *,
  .deals-showcase *::before {
    transition: none;
  }
}
