/* ============================================================
   Section heading
   ============================================================ */
.section-heading {
  display: flex;
  flex-direction: column;
  margin: 0 auto 64px;
  gap: 18px;
  text-align: center;
}

.section-heading__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--ink);
  text-wrap: balance;
}

@media (min-width: 641px) {
  .section-heading__title {
    letter-spacing: -3px;
  }
}

.section-heading__subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq {
  padding-block: 120px;
  background: var(--paper-elevated);
  scroll-margin-top: 100px;
}

.faq__inner {
  width: 100%;
  padding-inline: 100px;
}

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

.faq-item {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item__heading {
  margin: 0;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.faq-item__question-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-elevated);
  border: 1px solid var(--border-soft);
  color: var(--ink);
}

.faq-item__icon .icon {
  width: 15px;
  height: 15px;
  transform: rotate(0deg);
  transition: transform 0.25s var(--ease);
}

.faq-item.is-open .faq-item__icon .icon {
  transform: rotate(45deg);
}

/* Height animates via the 0fr → 1fr grid track rather than a JS-measured
   max-height, so it stays smooth even if answer text wraps to a different
   number of lines at another viewport width. */
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease);
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.faq-item.is-open .faq-item__answer-inner {
  opacity: 1;
  transition: opacity 0.26s var(--ease) 0.06s;
}

.faq-item__answer-text {
  margin: 0;
  padding: 0 26px 24px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .faq__inner {
    padding-inline: 24px;
  }

  .faq-item__question {
    padding: 18px 20px;
    gap: 14px;
  }

  .faq-item__answer-text {
    padding: 0 20px 20px;
  }
}

