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

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

.tp {
  width: min(420px, 94vw);
}

.tp__switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tp__switch-label {
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.55);
}

.tp__switch-track {
  position: relative;
  width: 34px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.18);
}

.tp__switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff7e6;
  transform: translateX(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp__switch[aria-checked=true] .tp__switch-knob {
  transform: translateX(18px);
  background: #2f6df6;
}

.tp__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 340px) {
  .tp__cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .tp__switch {
    margin-bottom: 8px;
  }
  .tp__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .tp__card {
    padding: 8px 4px;
  }
  .tp__desc {
    display: none;
  }
  .tp__tier {
    margin-bottom: 4px;
    font-size: 10px;
  }
}
.tp__card {
  position: relative;
  padding: 16px 8px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.06);
  border: 1px solid rgba(255, 247, 230, 0.12);
  text-align: center;
}

.tp__card--pop {
  background: rgba(47, 109, 246, 0.14);
  border-color: #2f6df6;
  animation: tp-glow 2.4s ease-in-out infinite;
}

@keyframes tp-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(47, 109, 246, 0.35);
  }
  50% {
    box-shadow: 0 0 18px 2px rgba(47, 109, 246, 0.35);
  }
}
.tp__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: 9px;
  line-height: 1.6;
  font-family: inherit;
}

.tp__tier {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
}

.tp__price {
  position: relative;
  margin: 0 0 4px;
  min-height: 18px;
}

.tp__price-a, .tp__price-b {
  position: absolute;
  inset: 0;
  font-weight: 800;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp__price-b {
  opacity: 0;
}

.tp__switch[aria-checked=true] ~ .tp__cards .tp__price-a {
  opacity: 0;
}

.tp__switch[aria-checked=true] ~ .tp__cards .tp__price-b {
  opacity: 1;
}

.tp__desc {
  margin: 16px 0 0;
  font-weight: 500;
  font-size: 9px;
  line-height: 1.4;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.55);
}

.tp.is-demo .tp__switch-knob {
  animation: tp-knob 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.tp.is-demo .tp__price-a {
  animation: tp-a 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.tp.is-demo .tp__price-b {
  animation: tp-b 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes tp-knob {
  0%, 40% {
    transform: translateX(0);
    background: #fff7e6;
  }
  55%, 95% {
    transform: translateX(18px);
    background: #2f6df6;
  }
  100% {
    transform: translateX(0);
    background: #fff7e6;
  }
}
@keyframes tp-a {
  0%, 40% {
    opacity: 1;
  }
  55%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tp-b {
  0%, 40% {
    opacity: 0;
  }
  55%, 95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tp__switch-knob, .tp__price-a, .tp__price-b {
    transition: none;
  }
  .tp__card--pop {
    animation: none;
  }
  .tp.is-demo .tp__switch-knob,
  .tp.is-demo .tp__price-a,
  .tp.is-demo .tp__price-b {
    animation: none !important;
  }
}
