.discount-showcase {
  margin-top: 28px;
}

.discount-layout {
  display: grid;
  grid-template-columns: minmax(0, .49fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.discount-first {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding-block: 14px;
}

.discount-first-figure {
  position: relative;
  isolation: isolate;
  width: max-content;
  flex: none;
}

.discount-first-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -32% -6%;
  background: radial-gradient(ellipse 46% 46%,
    rgb(255 106 26 / 26%), rgb(255 106 26 / 16%) 30%, rgb(255 106 26 / 5%) 62%, transparent);
  opacity: .88;
  pointer-events: none;
}

.discount-first-rate {
  display: block;
  padding-inline-end: .075em;
  font-size: clamp(85px, 11vw, 164px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.075em;
  color: transparent;
  background:
    linear-gradient(112deg, transparent 43%, #ffb47c 50%, transparent 57%) 100% 50% / 250% 100% no-repeat,
    var(--accent);
  background-clip: text;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.discount-first p {
  margin: 0;
}

.discount-first p b {
  display: block;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.025em;
}

.discount-first p span {
  display: block;
  margin-top: 8px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.55;
}

.discount-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.discount-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(70px, 9vw, 106px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  min-height: 72px;
  padding: 10px clamp(12px, 1.5vw, 22px) 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #211f1e;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.discount-row--referral {
  border-color: rgb(255 106 26 / 45%);
  background: #27221e;
}

.discount-rate {
  display: grid;
  place-items: center;
  min-height: 49px;
  padding: 4px;
  border: 1px solid rgb(255 106 26 / 32%);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--accent-text);
  font-size: clamp(23px, 2.3vw, 33px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.discount-row--referral .discount-rate {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.discount-row h3 {
  margin: 0;
  font: 700 clamp(16px, 1.65vw, 22px)/1.24 var(--text);
  letter-spacing: -.02em;
  text-transform: none;
}

.discount-conditions {
  margin: 22px 0 0;
  padding-inline-start: 14px;
  border-inline-start: 2px solid #ff6a1a78;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
}

@media (hover: hover) and (pointer: fine) {
  .discount-row:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
  }
  .discount-row:hover .discount-rate {
    border-color: #27170e;
    background: #27170e;
    color: #ffb27b;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .discount-row {
    transition: scale .17s ease-out, translate .17s ease-out, box-shadow .22s ease, border-color .22s ease;
  }
  .discount-row::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -40%;
    background: linear-gradient(112deg, transparent 40%, rgb(255 224 196 / 27%) 50%, transparent 60%);
    transform: translateX(-58%);
    pointer-events: none;
  }
  .discount-row:hover {
    z-index: 1;
    scale: 1.015 1.07;
    box-shadow: inset 0 1px 0 rgb(255 224 196 / 24%), 0 6px 22px rgb(255 106 26 / 19%);
  }
  .discount-row:has(~ .discount-row:hover) { translate: 4px -4px; }
  .discount-row:hover ~ .discount-row { translate: 4px 4px; }
  .discount-row:hover::after {
    transform: translateX(58%);
    transition: transform .6s ease-out;
  }
}

@media (max-width: 740px) {
  .discount-layout { grid-template-columns: minmax(0, 1fr); }
  .discount-first { flex-direction: row; align-items: center; justify-content: flex-start; }
  .discount-first-rate { font-size: clamp(86px, 15vw, 118px); }
  .discount-desktop-break { display: none; }
}

@media (max-width: 480px) {
  .discount-first { flex-direction: column; align-items: flex-start; gap: 12px; }
  .discount-first-rate { font-size: clamp(96px, 27vw, 122px); }
  .discount-row { min-height: 64px; grid-template-columns: 67px minmax(0, 1fr); }
  .discount-rate { min-height: 43px; }
  .discount-conditions { font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .discount-list.is-revealed .discount-row {
    animation: discount-enter .48s cubic-bezier(.2, .65, .25, 1) both;
    animation-delay: calc(var(--row, 0) * 55ms);
  }
  .discount-first.is-revealed {
    animation: discount-enter .55s ease-out both;
  }
  .discount-first-figure {
    animation: discount-float 4.8s ease-in-out infinite paused;
  }
  .discount-first-figure::before {
    animation: discount-glow 5.8s ease-in-out infinite paused;
  }
  .discount-first-rate {
    animation: discount-shine 6.8s linear infinite paused;
  }
  .discount-first.is-ambient .discount-first-figure,
  .discount-first.is-ambient .discount-first-figure::before,
  .discount-first.is-ambient .discount-first-rate {
    animation-play-state: running;
  }
}

@keyframes discount-enter {
  from { opacity: .6; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes discount-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes discount-shine {
  0%, 13% { background-position: 100% 50%, 0 0; }
  28%, 100% { background-position: 0 50%, 0 0; }
}

@keyframes discount-glow {
  0%, 100% { transform: scale(.96); opacity: .76; }
  50% { transform: scale(1.06); opacity: 1; }
}

@media (forced-colors: active) {
  .discount-first-rate { color: CanvasText; }
}
