.card-credit-promo {
  display: block;
  width: min(100%, 660px);
  margin: 1rem auto 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.card-credit-promo__inner {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 45%, rgba(199, 154, 71, .2), transparent 30%),
    linear-gradient(118deg, #080808 0%, #12100d 58%, #070707 100%);
  border: 1px solid rgba(199, 154, 71, .48);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card-credit-promo:hover .card-credit-promo__inner {
  border-color: rgba(225, 191, 117, .82);
  box-shadow: 0 19px 44px rgba(0, 0, 0, .38);
  transform: translateY(-2px);
}

.card-credit-promo:focus-visible {
  border-radius: 12px;
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.card-credit-promo__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 46%, rgba(225, 191, 117, .08) 46.2%, transparent 46.6%);
}

.card-credit-promo__copy {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.3rem;
}

.card-credit-promo__eyebrow {
  margin: 0 0 .42rem;
  color: #e1bf75;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.card-credit-promo__copy h2 {
  max-width: 360px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.75vw, 1.65rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: left;
}

.card-credit-promo__copy h2 span { color: #e1bf75; }

.card-credit-promo__installments {
  margin: .58rem 0 .2rem;
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
}

.card-credit-promo__installments strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
}

.card-credit-promo__copy > small {
  display: block;
  color: rgba(255, 255, 255, .44);
  font-size: .5rem;
  line-height: 1.35;
}

.card-credit-promo__visual {
  position: relative;
  align-self: stretch;
  min-height: 150px;
}

.card-credit-promo__machine {
  position: absolute;
  right: 16px;
  bottom: -38px;
  width: 102px;
  height: 164px;
  padding: 11px 10px;
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(145deg, #d9a442, #9a671f);
  box-shadow: -12px 17px 28px rgba(0, 0, 0, .38);
  transform: rotate(7deg);
}

.card-credit-promo__screen {
  height: 58px;
  display: grid;
  place-content: center;
  gap: .2rem;
  text-align: center;
  color: #e1bf75;
  background: #111;
  border-radius: 6px;
  box-shadow: inset 0 0 14px rgba(225, 191, 117, .08);
}

.card-credit-promo__screen b {
  font-family: Georgia, serif;
  font-size: 1rem;
}

.card-credit-promo__screen b span,
.card-credit-promo__card b span { color: #c79a47; }

.card-credit-promo__screen small {
  color: rgba(255, 255, 255, .46);
  font-size: .3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.card-credit-promo__keys {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.card-credit-promo__keys i {
  height: 7px;
  border-radius: 2px;
  background: rgba(20, 17, 12, .72);
}

.card-credit-promo__keys i:nth-last-child(3) { background: #a34236; }
.card-credit-promo__keys i:nth-last-child(2) { background: #d3a72f; }
.card-credit-promo__keys i:last-child { background: #2e8461; }

.card-credit-promo__card {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 75px;
  width: 106px;
  height: 66px;
  padding: 9px;
  display: grid;
  align-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 83% 20%, rgba(225, 191, 117, .19), transparent 35%),
    linear-gradient(135deg, #282828, #090909);
  border: 1px solid rgba(225, 191, 117, .28);
  border-radius: 8px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, .4);
  animation: bed-card-tap 3.8s ease-in-out infinite;
}

.card-credit-promo__card b {
  justify-self: end;
  font-family: Georgia, serif;
  font-size: .84rem;
}

.card-credit-promo__card small {
  color: rgba(255, 255, 255, .45);
  font-size: .29rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.card-credit-promo__chip {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(135deg, #e5cc91, #9b793a);
}

.card-credit-promo__signal {
  position: absolute;
  z-index: 3;
  top: 39px;
  right: 51px;
  width: 35px;
  height: 35px;
  opacity: 0;
  animation: bed-signal 3.8s ease-in-out infinite;
}

.card-credit-promo__signal i {
  position: absolute;
  inset: 0;
  border: 1.5px solid #e1bf75;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.card-credit-promo__signal i:nth-child(2) { inset: 7px; }
.card-credit-promo__signal i:nth-child(3) { inset: 14px; }

@keyframes bed-card-tap {
  0%, 16%, 84%, 100% { transform: translate(-11px, -5px) rotate(7deg); }
  38%, 66% { transform: translate(11px, 12px) rotate(11deg); }
}

@keyframes bed-signal {
  0%, 34%, 72%, 100% { opacity: 0; transform: scale(.8); }
  44%, 62% { opacity: 1; transform: scale(1); }
}

@media (max-width: 680px) {
  .card-credit-promo {
    width: 100%;
    margin-top: .9rem;
  }

  .card-credit-promo__inner {
    min-height: 146px;
    grid-template-columns: minmax(0, 1fr) 126px;
    border-radius: 10px;
  }

  .card-credit-promo__copy {
    padding: .9rem .35rem .9rem .9rem;
  }

  .card-credit-promo__copy h2 {
    max-width: 220px;
    font-size: clamp(1.02rem, 4.7vw, 1.28rem);
  }

  .card-credit-promo__installments {
    margin-top: .48rem;
    font-size: .64rem;
  }

  .card-credit-promo__installments strong { font-size: .9rem; }
  .card-credit-promo__copy > small { max-width: 210px; font-size: .43rem; }

  .card-credit-promo__visual { min-height: 146px; }

  .card-credit-promo__machine {
    right: 3px;
    bottom: -42px;
    transform: rotate(7deg) scale(.84);
  }

  .card-credit-promo__card {
    top: 22px;
    right: 48px;
  }

  .card-credit-promo__signal {
    top: 44px;
    right: 29px;
  }
}

@media (max-width: 390px) {
  .card-credit-promo__inner { grid-template-columns: minmax(0, 1fr) 112px; }
  .card-credit-promo__copy { padding-left: .75rem; }
  .card-credit-promo__copy h2 { font-size: .98rem; }
  .card-credit-promo__machine { right: -4px; }
  .card-credit-promo__card { right: 40px; }
  .card-credit-promo__signal { right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-credit-promo__inner { transition: none; }

  .card-credit-promo__card,
  .card-credit-promo__signal {
    animation: none;
  }

  .card-credit-promo__signal { opacity: .8; }
}