html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.hc-card {
  width: min(220px, 80vw);
  box-sizing: border-box;
  border-radius: 16px;
  padding: 20px;
  background: #17141a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hc-toggle {
  display: flex;
  gap: 8px;
}

.hc-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hc-toggle label {
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: #fff7e6;
  background: rgba(255, 255, 255, 0.08);
  font: 600 11px/1 -apple-system, "Segoe UI", sans-serif;
  transition: background 300ms ease-out;
}

.hc-card:has(.hc-radio--m:checked) label[for=hc-monthly],
.hc-card:has(.hc-radio--y:checked) label[for=hc-yearly] {
  background: #0a4fe8;
}

.hc-price-stack {
  position: relative;
  width: 100%;
  height: 44px;
}

.hc-price {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: #fff7e6;
  font: 700 26px/1 -apple-system, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.hc-price span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
}

.hc-price--monthly {
  opacity: 1;
  transform: none;
}

.hc-card:has(.hc-radio--y:checked) .hc-price--monthly {
  opacity: 0;
  transform: translateY(-8px);
}

.hc-card:has(.hc-radio--y:checked) .hc-price--yearly {
  opacity: 1;
  transform: none;
}

@keyframes hc-cross-a {
  0%, 40% {
    opacity: 1;
    transform: none;
  }
  50%, 90% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes hc-cross-b {
  0%, 40% {
    opacity: 0;
    transform: translateY(8px);
  }
  50%, 90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
.hc-card.is-demo .hc-price--monthly {
  animation: hc-cross-a 1200ms ease-out infinite;
}

.hc-card.is-demo .hc-price--yearly {
  animation: hc-cross-b 1200ms ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hc-price,
  .hc-card.is-demo .hc-price {
    animation: none !important;
    transition: none !important;
  }
}
