/* /faq — sticky-TOC + Q/A stack scoped to the FAQ page.
   Reuses theme tokens from main.css. */

.faq-hero {
  background: var(--bg);
  padding: 56px 24px 40px;
  border-bottom: 1px solid var(--border);
}

.faq-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-hero__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

.faq-hero__headline {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.faq-hero__sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}

/* FAQ GRID — two-column on desktop: sticky TOC + Q/A stack */
.faq-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* STICKY TOC */
.faq-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.faq-toc__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.faq-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: faq-toc;
}

.faq-toc__list li {
  counter-increment: faq-toc;
  margin: 0 0 4px;
}

.faq-toc__list li::before {
  content: counter(faq-toc) ". ";
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.faq-toc__link {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
  margin-left: -10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.faq-toc__link:hover {
  color: var(--text);
  border-color: var(--border);
}

.faq-toc__link--active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* Q/A ITEMS */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  scroll-margin-top: 80px;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--accent-dark);
}

.faq-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-item__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 10px;
}

.faq-item__q {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}

.faq-item__a {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
}

.faq-item__a p {
  margin: 0 0 14px;
}

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

.faq-item__back {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.faq-item__back:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* BOTTOM CTA */
.faq-cta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px 64px;
}

.faq-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
}

.faq-cta__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.faq-cta__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

/* MOBILE */
@media (max-width: 900px) {
  .faq-hero {
    padding: 40px 20px 28px;
  }
  .faq-hero__headline {
    font-size: 1.9rem;
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 32px 20px;
  }
  .faq-toc {
    position: static;
    top: auto;
    align-self: stretch;
    padding: 14px 18px;
  }
  .faq-toc__heading {
    margin-bottom: 10px;
  }
  .faq-toc__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .faq-toc__list li {
    flex: 0 0 auto;
    margin: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
  }
  .faq-toc__list li::before {
    content: counter(faq-toc) ". ";
  }
  .faq-toc__link {
    padding: 0;
    border-left: none;
    margin-left: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .faq-toc__link--active {
    color: var(--accent);
    border-left: none;
    font-weight: 600;
  }
  .faq-item {
    padding: 22px 20px;
  }
  .faq-item__q {
    font-size: 1.15rem;
  }
  .faq-cta {
    padding: 36px 20px 48px;
  }
}
