/* FAQ accordion */
.faq {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--border-subtle);
}

.faq__title {
  margin: 0 auto 40px;
  max-width: 680px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.faq__item {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq__item.is-open {
  border-color: rgba(111, 231, 200, 0.22);
  box-shadow:
    0 0 0 1px rgba(111, 231, 200, 0.06) inset,
    0 0 32px -12px rgba(111, 231, 200, 0.12);
}

.faq__question {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 18px 22px;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq__trigger:hover {
  color: var(--mint);
}

.faq__trigger:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.faq__trigger-text {
  flex: 1;
  min-width: 0;
  text-wrap: balance;
}

.faq__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq__chevron svg {
  width: 18px;
  height: 18px;
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
  color: var(--mint);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel[hidden] {
  display: none !important;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__answer {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq__item.is-open .faq__answer {
  background: rgba(111, 231, 200, 0.04);
  border-top: 1px solid rgba(111, 231, 200, 0.1);
  padding: 20px 22px 22px;
  border-radius: 0 0 15px 15px;
}

.faq__answer p {
  margin: 0 0 1em;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.faq--no-motion .faq__item,
.faq--no-motion .faq__panel,
.faq--no-motion .faq__chevron {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .faq__item,
  .faq__panel,
  .faq__chevron {
    transition: none;
  }
}

@media (max-width: 640px) {
  .faq {
    margin-top: 64px;
    padding-top: 48px;
  }

  .faq__title {
    margin-bottom: 28px;
  }

  .faq__trigger {
    min-height: 48px;
    padding: 16px 18px;
    font-size: 1rem;
  }

  .faq__answer,
  .faq__item.is-open .faq__answer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .faq__item.is-open .faq__answer {
    padding-bottom: 18px;
  }
}
