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

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

.empty {
  position: relative;
  box-sizing: border-box;
  width: 240px;
  max-width: 100%;
  height: 128px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.stage.is-demo .edge rect {
  animation: flow 2s linear infinite;
}

.fi {
  display: block;
  width: 24px;
  height: 24px;
  color: #ff9ebb;
  transform-origin: 50% 100%;
}

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

.stage.is-demo .fi {
  animation: fi-pendulum 2s 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) infinite, swing 2s ease-in-out infinite;
}

.stage.is-demo .cta {
  animation: cta-breathe 2s 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) infinite, cta-pop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.2s;
}

.tt {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #17141a;
  text-align: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #17141a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

@keyframes flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -18;
  }
}
@keyframes fi-pendulum {
  0% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(-6deg);
  }
  38% {
    transform: rotate(4deg);
  }
  58% {
    transform: rotate(-2deg);
  }
  78% {
    transform: rotate(1deg);
  }
  92%, 100% {
    transform: rotate(0);
  }
}
@keyframes cta-breathe {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.04);
  }
  55% {
    transform: scale(0.99);
  }
  75%, 100% {
    transform: scale(1);
  }
}
@keyframes swing {
  0% {
    rotate: 0deg;
  }
  8% {
    rotate: 8deg;
  }
  28% {
    rotate: -4.8deg;
  }
  48% {
    rotate: 2.4deg;
  }
  66% {
    rotate: -0.8deg;
  }
  80%, 100% {
    rotate: 0deg;
  }
}
@keyframes cta-pop {
  0% {
    scale: 1;
  }
  6% {
    scale: 1.08;
  }
  16% {
    scale: 0.96;
  }
  28% {
    scale: 1.02;
  }
  38%, 100% {
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .edge rect {
    animation: none;
  }
  .stage.is-demo .fi {
    animation: none;
    transform: none;
    rotate: 0deg;
  }
  .stage.is-demo .cta {
    animation: none;
    transform: none;
    scale: 1;
  }
}
