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

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

.card {
  box-sizing: border-box;
  width: min(100%, 252px);
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(23, 20, 26, 0.08);
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.h {
  font-size: 13px;
  font-weight: 700;
  color: #17141a;
}

.p {
  font-size: 11px;
  color: #475569;
}

.bar {
  position: relative;
  height: 6px;
  margin: 8px 0 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.bar i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2f6df6;
  transform: scaleX(0.5);
  transform-origin: left center;
}

.stage.is-demo .bar i {
  animation: fill 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2f6df6;
  opacity: 0.3;
  transform: scaleX(0.5);
  transform-origin: left center;
}

.stage.is-demo .bar::after {
  animation: fill 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: 120ms;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.box {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #cbd5e1;
}

.box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lb {
  position: relative;
  font-size: 12px;
  color: #17141a;
}

.ln {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #475569;
  transform: scaleX(0);
  transform-origin: left center;
}

.is-done .box {
  color: #2f6df6;
}

.is-done .lb {
  color: #475569;
}

.is-done .ln {
  transform: scaleX(1);
}

.stage.is-demo .r3 .box {
  animation-name: tick, box-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1);
  animation-iteration-count: infinite;
}

.stage.is-demo .r3 .ln {
  animation: strike 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.stage.is-demo .r4 .box {
  animation-name: tick, box-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1);
  animation-iteration-count: infinite;
  animation-delay: calc(2s / 2);
}

.stage.is-demo .r4 .ln {
  animation: strike 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: calc(2s / 2);
}

@keyframes fill {
  0%, 10% {
    transform: scaleX(0.5);
  }
  40%, 55% {
    transform: scaleX(0.75);
  }
  85%, 100% {
    transform: scaleX(1);
  }
}
@keyframes tick {
  0%, 12% {
    color: #cbd5e1;
    transform: scale(1);
  }
  20% {
    color: #2f6df6;
    transform: scale(1.22);
  }
  28% {
    color: #2f6df6;
    transform: scale(0.92);
  }
  34% {
    color: #2f6df6;
    transform: scale(1.06);
  }
  40%, 100% {
    color: #2f6df6;
    transform: scale(1);
  }
}
@keyframes strike {
  0%, 18% {
    transform: scaleX(0);
  }
  44%, 100% {
    transform: scaleX(1);
  }
}
@keyframes box-pop {
  0%, 16% {
    scale: 1;
  }
  20% {
    scale: 1.14;
  }
  28% {
    scale: 0.97;
  }
  36% {
    scale: 1.02;
  }
  42%, 100% {
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .bar i, .stage.is-demo .bar::after,
  .stage.is-demo .r3 .box, .stage.is-demo .r3 .ln,
  .stage.is-demo .r4 .box, .stage.is-demo .r4 .ln {
    animation: none;
  }
  .stage.is-demo .bar i {
    transform: scaleX(1);
  }
  .stage.is-demo .bar::after {
    opacity: 0;
  }
  .stage.is-demo .r3 .box, .stage.is-demo .r4 .box {
    color: #2f6df6;
    scale: 1;
  }
  .stage.is-demo .r3 .ln, .stage.is-demo .r4 .ln {
    transform: scaleX(1);
  }
}
