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

.fq {
  width: min(400px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fq__item {
  background: #fff7e6;
  border-radius: 16px;
  overflow: hidden;
}

.fq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: clamp(11px, 3.2vw, 12px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
  -webkit-tap-highlight-color: transparent;
}

.fq__chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(23, 20, 26, 0.5);
  border-bottom: 2px solid rgba(23, 20, 26, 0.5);
  transform: rotate(-45deg);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fq__item.is-open .fq__chevron {
  transform: rotate(45deg);
}

.fq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fq__item.is-open .fq__a-wrap {
  grid-template-rows: 1fr;
}

.fq__a {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 16px 12px;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.7);
}

.fq.is-demo .fq__item:nth-child(1) .fq__a-wrap {
  animation: fq-open-0 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.fq.is-demo .fq__item:nth-child(1) .fq__chevron {
  animation: fq-chev-0 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.fq.is-demo .fq__item:nth-child(2) .fq__a-wrap {
  animation: fq-open-1 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.fq.is-demo .fq__item:nth-child(2) .fq__chevron {
  animation: fq-chev-1 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.fq.is-demo .fq__item:nth-child(3) .fq__a-wrap {
  animation: fq-open-2 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.fq.is-demo .fq__item:nth-child(3) .fq__chevron {
  animation: fq-chev-2 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes fq-open-0 {
  0%, 15% {
    grid-template-rows: 1fr;
  }
  30%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes fq-open-1 {
  0%, 30% {
    grid-template-rows: 0fr;
  }
  45%, 63% {
    grid-template-rows: 1fr;
  }
  78%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes fq-open-2 {
  0%, 63% {
    grid-template-rows: 0fr;
  }
  78%, 96% {
    grid-template-rows: 1fr;
  }
  100% {
    grid-template-rows: 0fr;
  }
}
@keyframes fq-chev-0 {
  0%, 15% {
    transform: rotate(45deg);
  }
  30%, 100% {
    transform: rotate(-45deg);
  }
}
@keyframes fq-chev-1 {
  0%, 30% {
    transform: rotate(-45deg);
  }
  45%, 63% {
    transform: rotate(45deg);
  }
  78%, 100% {
    transform: rotate(-45deg);
  }
}
@keyframes fq-chev-2 {
  0%, 63% {
    transform: rotate(-45deg);
  }
  78%, 96% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(-45deg);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .fq {
    gap: 4px;
  }
  .fq__q {
    padding: 8px 12px;
    font-size: 11px;
  }
  .fq__a {
    padding: 0 12px 8px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fq__chevron, .fq__a-wrap {
    transition: none;
  }
  .fq.is-demo .fq__item .fq__a-wrap,
  .fq.is-demo .fq__item .fq__chevron {
    animation: none !important;
  }
}
