/* FAQ page — shares tokens/components with shared/site.css. Content-first:
   jump links, accordion items, generous type. No JS needed. */

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.faq-main { position: relative; z-index: 1; padding: 56px 0 48px; }

/* Hero */
.faq-hero { max-width: 760px; margin-bottom: var(--sp-32); }
.faq-hero h1 {
  font-size: clamp(32px, 4vw, var(--fs-display));
  line-height: 1.1;
  margin-bottom: var(--sp-16);
}
.faq-hero .lede { font-size: 17px; line-height: 28px; color: var(--text-muted); margin: 0 0 var(--sp-24); }
.faq-actions { display: flex; gap: var(--sp-12); flex-wrap: wrap; }
.faq-actions .btn { width: auto; }

/* Jump links */
.faq-toc {
  display: flex; flex-wrap: wrap; gap: var(--sp-8);
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-32);
}
.faq-toc a {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.15s, border-color 0.15s;
}
.faq-toc a:hover { color: var(--text); border-color: var(--text-muted); }

/* Sections */
.faq-section { margin-bottom: var(--sp-48); }
.faq-section > h2 {
  font-size: 22px;
  margin-bottom: var(--sp-16);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

/* Accordion items */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-16);
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-a { padding: 18px 20px 22px; }
.faq-a p { font-size: 15px; line-height: 25px; color: var(--text); margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 12px 20px; }
.faq-a li { font-size: 15px; line-height: 25px; color: var(--text); margin-bottom: 6px; }
.faq-a a { color: var(--accent-text); font-weight: 600; }

/* Final CTA */
.faq-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-48) var(--sp-32);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-12);
}
.faq-cta h2 { font-size: 28px; }
.faq-cta p { color: var(--text-muted); font-size: 15px; }
.faq-cta .faq-actions { justify-content: center; margin-top: var(--sp-8); }

@media (max-width: 640px) {
  .faq-hero h1 { font-size: 30px; }
  .faq-item summary { font-size: 15px; padding: 16px; }
  .faq-a { padding: 14px 16px 18px; }
}
