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

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

.pr {
  box-sizing: border-box;
  width: min(440px, 92vw);
  padding-top: 32px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.pr__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}

.pr__card {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.03);
  color: #17141a;
  font-family: inherit;
  cursor: pointer;
  transform: scale(1);
  transform-origin: 50% 100%;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pr__card--pick {
  border-color: #2f6df6;
  background-color: #2f6df6;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.pr__card--pick .pr__unit {
  opacity: 1;
}

.pr__card:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pr__name {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.pr__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pr__amount {
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
}

.pr__unit {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  opacity: 0.72;
}

.pr__ribbon {
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #17141a;
  color: #fff7e6;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: rotate(-8deg);
  transform-origin: 50% 50%;
}

.pr__row:has(.pr__card:hover) .pr__card,
.pr__row:has(.pr__card:focus-within) .pr__card {
  transform: scale(0.94);
}

.pr__row:has(.pr__card:hover) .pr__card:hover,
.pr__row:has(.pr__card:focus-within) .pr__card:focus-within {
  transform: scale(1.06);
}

.pr.is-demo .pr__card {
  animation-name: pr-lift;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pr.is-demo .pr__card[data-plan=starter] {
  animation-delay: 0ms;
}

.pr.is-demo .pr__card[data-plan=pro] {
  animation-delay: 300ms;
}

.pr.is-demo .pr__card[data-plan=business] {
  animation-delay: 600ms;
}

@keyframes pr-lift {
  0% {
    transform: translateY(0) scale(1);
  }
  14% {
    transform: translateY(-6px) scale(1.05);
  }
  34% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.pr.is-demo .pr__ribbon {
  animation-name: pr-ribbon;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-delay: 300ms;
  animation-fill-mode: backwards;
}

@keyframes pr-ribbon {
  0% {
    transform: rotate(-8deg) scale(1);
  }
  14% {
    transform: rotate(-13deg) scale(1.1);
  }
  34% {
    transform: rotate(-8deg) scale(1);
  }
  100% {
    transform: rotate(-8deg) scale(1);
  }
}
@media (max-width: 340px) {
  .pr__row {
    gap: 4px;
  }
  .pr__card {
    padding: 12px 4px;
    gap: 4px;
  }
  .pr__name {
    font-size: 11px;
    line-height: 16px;
  }
  .pr__amount {
    font-size: 18px;
    line-height: 24px;
  }
  .pr__unit {
    font-size: 10px;
    line-height: 14px;
  }
  .pr__ribbon {
    top: -12px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pr__card {
    transition: none;
  }
  .pr.is-demo .pr__card,
  .pr.is-demo .pr__ribbon {
    animation: none !important;
  }
  .pr.is-demo .pr__ribbon {
    transform: rotate(-8deg);
  }
}
