/* ============================================================
   BLASTseq AI — FAQ page
   Extends styles.css + reuses .toc / .legal-grid from legal.css
   ============================================================ */

.faq-hero { padding-top: 150px; padding-bottom: 30px; position: relative; overflow: hidden; }
.faq-hero .hero-glow { top: -220px; }
.faq-head { max-width: 760px; position: relative; z-index: 1; }
.faq-head h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -0.03em; margin-top: 20px; }
.faq-head .lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; margin-top: 22px; max-width: 640px; }

/* search */
.faq-search { position: relative; max-width: 640px; margin-top: 30px; z-index: 1; }
.faq-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; }
.faq-search input {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px 16px 50px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.faq-search input::placeholder { color: var(--ink-3); }
.faq-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-softer); }

/* body layout (reuses .legal-grid / .toc from legal.css) */
.faq-body { padding-top: 30px; padding-bottom: 110px; }

/* category sections */
.faq-cat { margin-bottom: 52px; scroll-margin-top: 100px; }
.faq-cat:last-of-type { margin-bottom: 0; }
.faq-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.faq-cat-ic {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center;
}
.faq-cat-ic svg { width: 21px; height: 21px; }
.faq-cat-head h2 {
  font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0;
}
.faq-cat-count {
  margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px;
}

/* answer content: support paragraphs + lists inside .faq-a */
.faq-a div p { margin: 0 0 12px; }
.faq-a div p:last-child { margin-bottom: 0; }
.faq-a div ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 6px 0 4px; padding: 0; }
.faq-a div ul li { position: relative; padding-left: 22px; line-height: 1.55; }
.faq-a div ul li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 2px;
  background: var(--brand); transform: rotate(45deg);
}
.faq-a div a { color: var(--brand-ink); font-weight: 500; }
.faq-a div a:hover { text-decoration: underline; }

/* no-results message for search */
.faq-empty { display: none; text-align: center; padding: 60px 20px; color: var(--ink-3); }
.faq-empty.show { display: block; }
.faq-empty .big { font-size: 18px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }

/* still-have-questions card at the end */
.faq-cta-card {
  margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-card); box-shadow: var(--shadow-sm); padding: 30px 32px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.faq-cta-card .txt { flex: 1 1 280px; }
.faq-cta-card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.faq-cta-card p { font-size: 15px; color: var(--ink-2); margin: 0; }

@media (max-width: 920px) {
  .faq-cat-head h2 { font-size: 21px; }
}
@media (max-width: 560px) {
  .faq-cat-head h2 { font-size: 19px; }
  .faq-search input { font-size: 15px; }
  .faq-cta-card { padding: 22px; }
}
