:root {
  --display-font: "Gowun Dodum", Pretendard, sans-serif;
  --serif-display-font: "Gowun Batang", "Gowun Dodum", Pretendard, sans-serif;
}

.hero h1,
.section-heading h2,
.voucher-intro h2,
.branch-header h2,
.story-copy h2,
.final-cta h2,
.process-heading h2 {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.07em;
}

.story-copy h2 {
  font-family: var(--serif-display-font);
}

.program-card {
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -32px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.emoji-badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  font-size: 21px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(31, 65, 61, 0.09);
  animation: emoji-pop 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.program-card:nth-child(4n + 1) .program-icon {
  color: #147b75;
  background: #e5f5f1;
}

.program-card:nth-child(4n + 2) .program-icon {
  color: #b26714;
  background: #fff1d5;
}

.program-card:nth-child(4n + 3) .program-icon {
  color: #b24d6d;
  background: #fde8ef;
}

.program-card:nth-child(4n + 4) .program-icon {
  color: #4e6fa4;
  background: #e8f1fb;
}

.voucher-item summary {
  font-family: var(--display-font);
}

.voucher-emoji {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 21px;
  line-height: 1;
  filter: saturate(1.12);
}

.voucher-item:nth-child(4n + 1) .voucher-icon {
  color: #147b75;
  background: #e5f5f1;
}

.voucher-item:nth-child(4n + 2) .voucher-icon {
  color: #b26714;
  background: #fff1d5;
}

.voucher-item:nth-child(4n + 3) .voucher-icon {
  color: #b24d6d;
  background: #fde8ef;
}

.voucher-item:nth-child(4n + 4) .voucher-icon {
  color: #4e6fa4;
  background: #e8f1fb;
}

@keyframes emoji-pop {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 720px) {
  .emoji-badge {
    top: 13px;
    right: 13px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 18px;
  }

  .voucher-emoji {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emoji-badge {
    animation: none;
  }
}
