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

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

.bp {
  box-sizing: border-box;
  width: min(312px, 92vw);
  padding: 12px;
  border: 1px solid rgb(94.6139607843%, 46.2061176471%, 32.3309803922%);
  border-radius: 16px;
  background: rgb(92.7215686275%, 28.4078431373%, 12%);
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.bp__pick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bp__opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.bp__r {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.bp__opt-b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 26px;
  border-radius: 999px;
  background: rgb(93.7405490196%, 37.9915294118%, 22.9474509804%);
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.bp__opt-i {
  display: inline-flex;
  width: 13px;
  height: 13px;
}

.bp__r:checked + .bp__opt-b {
  background: #fff7e6;
  color: #c93000;
}

.bp__r:focus-visible + .bp__opt-b {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

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

.bp__s {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  counter-increment: bps;
  padding: 4px 0 0;
  border-top: 3px solid rgb(94.6139607843%, 46.2061176471%, 32.3309803922%);
}

.bp__s::before {
  content: counter(bps);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(93.7405490196%, 37.9915294118%, 22.9474509804%);
  color: #17141a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.bp__l {
  color: #17141a;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.bp__s[aria-current=step] {
  border-top-color: #fff7e6;
}

.bp__s[aria-current=step]::before {
  background: #fff7e6;
  color: #c93000;
}

.bp__s[aria-current=step] .bp__l {
  color: #17141a;
  font-weight: 700;
}

.bp__note {
  margin: 8px 0 0;
  color: #17141a;
  font-size: 10px;
  line-height: 1.3;
}

@keyframes bp-cols {
  0%, 29% {
    grid-template-columns: repeat(3, 1fr);
  }
  30%, 69% {
    grid-template-columns: repeat(4, 1fr);
  }
  70%, 100% {
    grid-template-columns: repeat(3, 1fr);
  }
}
@keyframes bp-biz {
  0%, 29% {
    display: none;
  }
  30%, 69% {
    display: grid;
  }
  70%, 100% {
    display: none;
  }
}
@keyframes bp-biz-in {
  0%, 30% {
    transform: translateX(-12px) scaleX(0.72);
  }
  44%, 69% {
    transform: translateX(0) scaleX(1);
  }
  70%, 100% {
    transform: translateX(-12px) scaleX(0.72);
  }
}
@keyframes bp-pick-p {
  0%, 29% {
    background: #fff7e6;
    color: #c93000;
  }
  30%, 69% {
    background: rgb(93.7405490196%, 37.9915294118%, 22.9474509804%);
    color: #17141a;
  }
  70%, 100% {
    background: #fff7e6;
    color: #c93000;
  }
}
@keyframes bp-pick-b {
  0%, 29% {
    background: rgb(93.7405490196%, 37.9915294118%, 22.9474509804%);
    color: #17141a;
  }
  30%, 69% {
    background: #fff7e6;
    color: #c93000;
  }
  70%, 100% {
    background: rgb(93.7405490196%, 37.9915294118%, 22.9474509804%);
    color: #17141a;
  }
}
@keyframes bp-pop-b {
  0%, 30% {
    transform: scale(1);
  }
  37% {
    transform: scale(1.07);
  }
  47%, 100% {
    transform: scale(1);
  }
}
@keyframes bp-pop-p {
  0%, 70% {
    transform: scale(1);
  }
  77% {
    transform: scale(1.07);
  }
  87%, 100% {
    transform: scale(1);
  }
}
.bp.is-demo .bp__steps {
  animation-name: bp-cols;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.bp.is-demo .bp__s--biz {
  animation-name: bp-biz, bp-biz-in;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.bp.is-demo .bp__opt-b[data-opt=personal] {
  animation-name: bp-pick-p, bp-pop-p;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.bp.is-demo .bp__opt-b[data-opt=business] {
  animation-name: bp-pick-b, bp-pop-b;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}

@media (max-width: 340px) {
  .bp {
    padding: 8px;
    font-size: 11px;
  }
  .bp__pick {
    gap: 4px;
  }
  .bp__opt-b {
    gap: 0;
    font-size: 10px;
  }
  .bp__note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bp.is-demo .bp__steps,
  .bp.is-demo .bp__s--biz,
  .bp.is-demo .bp__opt-b {
    animation: none !important;
    transform: none !important;
  }
  .bp.is-demo .bp__steps {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .bp.is-demo .bp__s--biz {
    display: grid !important;
  }
  .bp.is-demo .bp__opt-b[data-opt=business] {
    background: #fff7e6 !important;
    color: #c93000 !important;
  }
  .bp.is-demo .bp__opt-b[data-opt=personal] {
    background: rgb(93.7405490196%, 37.9915294118%, 22.9474509804%) !important;
    color: #17141a !important;
  }
}
