/* FAQ page — a plain, scrollable document.
   Deliberately NOT part of the scene in styles.css: no pinned stage, no scroll
   hijacking, no marquee. Someone who lands here from a search result wants to
   read an answer, not drive a horizontal animation. It borrows only the brand
   tokens (:root) and the @font-face rules from styles.css.

   Square corners throughout — same brutalist rule as the app. */

.faq-page {
  background: var(--bg);
  color: var(--text);
  /* styles.css clips overflow for the scene; this page scrolls normally. */
  overflow-x: hidden;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.faq-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.faq-home { text-decoration: none; display: block; }

/* The two marks are separate SVGs (as everywhere else on the site) — flex keeps
   the baseline gap between them consistent at any size. */
.faq-wordmark {
  display: flex;
  align-items: center;
  gap: 5px;
}
.faq-wordmark svg { display: block; }

.faq-back {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
}
.faq-back:hover { color: var(--text); border-color: var(--muted); }

/* ── Body ────────────────────────────────────────────────────────────────── */
.faq-main {
  max-width: 720px;          /* ~75 characters — a comfortable reading measure */
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.faq-title {
  font-family: var(--head);
  font-size: clamp(48px, 12vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: var(--accent);
}

.faq-intro {
  font-size: 17px;
  line-height: 1.6;
  color: #bdbdbd;
  margin: 0 0 56px;
  max-width: 56ch;
}

.faq-group { margin-bottom: 56px; }

.faq-group-title {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid #1c1c1c;
}
.faq-item:last-child { border-bottom: 0; }

.faq-item h3 {
  font-family: var(--head);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: var(--text);
}

.faq-item p {
  font-size: 16px;
  line-height: 1.65;
  color: #c9c9c9;
  margin: 0;
}

.faq-item strong { color: var(--text); font-weight: 700; }

.faq-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-main a:hover { text-decoration-thickness: 2px; }

.faq-foot {
  margin: 8px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: #bdbdbd;
}

@media (max-width: 480px) {
  .faq-head  { padding: 14px 18px; }
  .faq-main  { padding: 40px 18px 72px; }
  .faq-intro { margin-bottom: 40px; }
  .faq-item h3 { font-size: 23px; }
}

/* ── Shared modal, viewport-anchored ─────────────────────────────────────
   .modal is position:absolute in styles.css, which is right on the home page:
   there it sits inside a FIXED stage, so inset:0 means "the viewport". This
   page scrolls normally, so absolute resolved against the document instead —
   open a link from the footer and the dialog rendered back at the top of the
   page, out of sight. Fixed pins it to the viewport wherever the reader is. */
.faq-page .modal { position: fixed; }
