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

.stage {
  align-items: flex-start;
}

.fwp {
  position: relative;
  width: 100%;
}

.fwp__bar {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 20, 26, 0.14);
}

.fwp__brand {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #17141a;
}

.fwp__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fwp__link {
  font-size: 12px;
  line-height: 18px;
  color: rgba(23, 20, 26, 0.7);
  text-decoration: none;
  transition: color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fwp__link:hover {
  color: #17141a;
}

.fwp__trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: #17141a;
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fwp__trigger:hover {
  background: rgba(47, 109, 246, 0.12);
}

.fwp__trigger:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
}

.fwp__caret {
  display: block;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fwp__trigger[aria-expanded=true] .fwp__caret {
  transform: rotate(180deg);
}

.fwp__hints {
  display: grid;
  gap: 8px;
  margin: 16px 16px 0;
}

.fwp__hints span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.08);
}

.fwp__hints span:last-child {
  width: 62%;
}

.fwp__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  z-index: 2;
  box-sizing: border-box;
  padding: 16px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 220ms;
}

.fwp:not(.is-demo).is-open .fwp__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.fwp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  column-gap: 24px;
  align-items: start;
}

.fwp__col h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: #17141a;
}

.fwp__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fwp__col li {
  font-size: 11px;
  line-height: 22px;
  color: rgba(23, 20, 26, 0.7);
}

.fwp__col li:hover {
  color: #17141a;
}

.fwp__promo {
  box-sizing: border-box;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #2f6df6;
  color: #ffffff;
}

.fwp__promo-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.fwp__promo-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
  color: #ffffff;
}

.fwp__promo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 11px;
  line-height: 15px;
  color: #fff7e6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fwp__promo-link:hover {
  color: #ffffff;
}

.fwp__promo-link svg {
  display: block;
}

.fwp.is-demo .fwp__panel {
  visibility: visible;
  animation-name: fwp-panel;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.fwp.is-demo .fwp__caret {
  animation-name: fwp-caret;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.fwp.is-demo .fwp__grid > * {
  animation-name: fwp-item;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.fwp.is-demo .fwp__grid > :nth-child(1) {
  animation-delay: 240ms;
}

.fwp.is-demo .fwp__grid > :nth-child(2) {
  animation-delay: 300ms;
}

.fwp.is-demo .fwp__grid > :nth-child(3) {
  animation-delay: 360ms;
}

.fwp.is-demo .fwp__grid > :nth-child(4) {
  animation-delay: 420ms;
}

.fwp.is-demo .fwp__promo-link svg {
  animation-name: fwp-nudge;
  animation-duration: 640ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes fwp-nudge {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2px, -2px);
  }
}
@keyframes fwp-panel {
  0%, 8.4% {
    opacity: 0;
    transform: translateY(-6px);
    clip-path: inset(0 0 100% 0);
  }
  8.5%, 74% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
  86%, 100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(100% 0 0 0);
  }
}
@keyframes fwp-caret {
  0%, 8.4% {
    transform: rotate(0deg);
  }
  8.5%, 74% {
    transform: rotate(180deg);
  }
  86%, 100% {
    transform: rotate(0deg);
  }
}
@keyframes fwp-item {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  4%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .fwp__bar {
    height: 32px;
    padding: 0 8px;
  }
  .fwp__brand {
    font-size: 12px;
    line-height: 16px;
  }
  .fwp__nav {
    gap: 8px;
  }
  .fwp__link {
    font-size: 11px;
    line-height: 16px;
  }
  .fwp__trigger {
    padding: 0 4px;
    font-size: 11px;
    line-height: 16px;
  }
  .fwp__hints {
    gap: 4px;
    margin: 8px 8px 0;
  }
  .fwp__hints span {
    height: 6px;
  }
  .fwp__panel {
    top: 33px;
    padding: 8px;
  }
  .fwp__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .fwp__col h3 {
    margin-bottom: 0;
    font-size: 10px;
    line-height: 13px;
  }
  .fwp__col li {
    font-size: 10px;
    line-height: 14px;
  }
  .fwp__promo {
    padding: 4px;
  }
  .fwp__promo-label {
    font-size: 9px;
    line-height: 12px;
  }
  .fwp__promo-title {
    font-size: 10px;
    line-height: 13px;
  }
  .fwp__promo-link {
    font-size: 9px;
    line-height: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fwp.is-demo .fwp__panel,
  .fwp.is-demo .fwp__caret,
  .fwp.is-demo .fwp__promo-link svg,
  .fwp.is-demo .fwp__grid > * {
    animation: none !important;
  }
  .fwp.is-demo .fwp__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
