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

.mt-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mt-toggle {
  position: relative;
  display: flex;
  width: min(220px, 78vw);
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.06);
  padding: 4px;
  box-sizing: border-box;
}

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

.mt-option {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  text-align: center;
  padding: 8px 0;
  border-radius: 999px;
  cursor: pointer;
  color: #17141a;
  font: 600 12px/1 -apple-system, "Segoe UI", sans-serif;
}

.mt-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 4px * 2);
  border-radius: 999px;
  background: #0a4fe8;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#mt-yearly:checked ~ .mt-indicator {
  transform: translateX(100%);
}

#mt-yearly:checked ~ .mt-option[for=mt-yearly] {
  color: #fff7e6;
}

#mt-monthly:checked ~ .mt-option[for=mt-monthly] {
  color: #fff7e6;
}

.mt-price {
  font: 700 26px/1 -apple-system, "Segoe UI", sans-serif;
  color: #17141a;
}

.mt-price__unit {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.6;
}

@keyframes mt-slide {
  0%, 40% {
    transform: translateX(0);
  }
  60%, 100% {
    transform: translateX(100%);
  }
}
.mt-toggle.is-demo .mt-indicator {
  animation: mt-slide 900ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mt-indicator,
  .mt-toggle.is-demo .mt-indicator {
    animation: none !important;
    transition: none !important;
  }
}
