/* ══════════════════════════════════════════════
   QUESTIONS PAGE
══════════════════════════════════════════════ */

/* ── Page wrapper ── */
.faq-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 110px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ── Header ── */
.faq-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  animation: faqFadeUp 0.55s ease both;
}

.faq-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-header__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: faqFadeUp 0.55s ease both 0.08s;
}

.faq-header__sub {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-ink-soft);
  line-height: 1.6;
  animation: faqFadeUp 0.55s ease both 0.18s;
}

/* ── Accordion list ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Single item ── */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--color-bg);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── Trigger button ── */
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}

.faq-item__question {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-item__trigger:hover .faq-item__question {
  color: var(--color-ink-soft);
}

/* ── + / × icon ── */
.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-ink-muted);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.2s ease,
              border-color 0.2s ease;
  position: relative;
}

/* Draw + via pseudo-elements */
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-ink-muted);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.25s ease,
              background 0.2s ease;
}

.faq-item__icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-item__icon::after {
  width: 1.5px;
  height: 10px;
}

/* Open state — rotate to × */
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after {
  background: var(--color-bg);
}

/* ── Answer body — CSS grid trick for smooth height ── */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.faq-item__body-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item__body-inner p {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-ink-soft);
  line-height: 1.75;
  padding: 0 24px 22px;
}

.faq-item__body-inner p:not(:last-child) {
  padding-bottom: 0;
}

/* ── CTA block ── */
.faq-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.faq-cta__text {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink-muted);
}

/* ── Load animations ── */
@keyframes faqFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.faq-list {
  animation: faqFadeUp 0.55s ease both 0.28s;
}

.faq-cta {
  animation: faqFadeUp 0.55s ease both 0.38s;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .faq-page {
    padding: 90px 16px 60px;
    gap: 40px;
    min-width: 0;
  }

  .faq-header__title {
    font-size: 26px;
  }

  .faq-item__trigger {
    padding: 18px 18px;
  }

  .faq-item__body-inner p {
    padding: 0 18px 18px;
  }

  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
