/**
 * FAQ — premium accordion expand / collapse
 */

.faq-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.2rem 0.15rem;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s ease;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary:hover .faq-item__question {
  color: var(--mint-deep);
}

.faq-item__question {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.25s ease;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  background: rgba(16, 24, 32, 0.04);
  border: 1px solid rgba(16, 24, 32, 0.06);
  transition:
    transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.faq-item__icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--mint-deep);
  background: rgba(32, 185, 154, 0.12);
  border-color: rgba(32, 185, 154, 0.28);
}

.faq-item.is-open .faq-item__question {
  color: var(--ink);
}

.faq-item__panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 0.48s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.35s ease;
}

.faq-item.is-open .faq-item__panel {
  opacity: 1;
}

.faq-item__panel-inner {
  padding: 0 0.15rem 1.25rem;
}

.faq-item__answer {
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mute);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__icon,
  .faq-item__panel,
  .faq-item__question {
    transition: none;
  }
}
