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);
}

.panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hint {
  margin: 0;
  padding: 0 8px;
  text-align: center;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.72);
}

.switchRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switchLabel {
  font-weight: 500;
  font-size: 12px;
  color: #fff7e6;
}

.switchCtl {
  position: relative;
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.24);
  padding: 0;
  cursor: pointer;
  transition: background 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switchCtl[aria-checked=true] {
  background: #0a4fe8;
}

.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translateX(0);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switchCtl[aria-checked=true] .knob {
  transform: translateX(18px);
}

.cards {
  display: flex;
  gap: 12px;
  width: 100%;
}

.card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.08);
  text-align: center;
}

.card--mid {
  background: rgba(10, 79, 232, 0.3);
}

.planName {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: #fff7e6;
}

.price {
  margin: 0;
  display: flex;
  align-items: baseline;
}

.priceNum {
  font-weight: 700;
  font-size: 26px;
  color: #fff7e6;
}

.priceUnit {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 247, 230, 0.72);
}

.badge {
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: #c93000;
  color: #fff7e6;
  font-weight: 700;
  font-size: 9px;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.badge:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 340px) {
  .panel {
    max-width: 300px;
    gap: 8px;
  }
  .hint {
    font-size: 9px;
  }
  .cards {
    gap: 4px;
  }
  .card {
    padding: 4px 4px;
  }
  .planName {
    font-size: 11px;
  }
  .priceNum {
    font-size: 17px;
  }
  .priceUnit {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .switchCtl,
  .knob,
  .badge {
    transition: none;
  }
}
