/* FAQ page only. Loads after styles.css and home.css (overlay header, map form,
   colour glows, node network). */

/* ---------- Hero: dark, with searches typing in the background ---------- */

.faq-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(55% 70% at 80% 40%, rgba(29, 79, 216, .5), rgba(29, 79, 216, 0) 70%),
    var(--navy);
  color: #fff;
  padding-block: 7.5rem 5.5rem;
  --v: 40px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--v)), 0 100%);
}
.faq-hero .wrap { position: relative; max-width: 52rem; }
.crumbs { font-size: var(--t-sm); color: var(--on-dark-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--on-dark-muted); }
.faq-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: 18ch; }
.faq-hero .lede { color: var(--on-dark-muted); margin: 1.25rem 0 1.75rem; max-width: 36rem; }
.faq-search {
  display: flex; align-items: center; gap: .6rem;
  max-width: 36rem; padding: .35rem .5rem .35rem 1rem;
  background: #fff; border-radius: 999px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.faq-search svg { width: 1.2rem; height: 1.2rem; color: var(--slate); flex: none; }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: .7rem .2rem; font: 400 var(--t-base) var(--font-body); color: var(--ink); background: none; }
.topic-chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-chips a {
  display: inline-block; padding: .45rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: .8125rem; font-weight: 600; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.topic-chips a:hover { background: rgba(56, 189, 248, .16); border-color: rgba(56, 189, 248, .6); }
.byline { margin-top: 1.5rem; font-size: .8125rem; color: var(--on-dark-muted); }

/* Typed searches: faint lines that type in, get a tick, then fade */
.queries { position: absolute; inset: 0; pointer-events: none; }
.query {
  position: absolute; display: flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5); font-size: .75rem; white-space: nowrap;
  opacity: 0; transition: opacity .6s ease;
}
.query.is-on { opacity: 1; }
.query .tick { width: 1rem; height: 1rem; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: .625rem; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.query.is-answered .tick { transform: scale(1); }
.query.is-answered { color: rgba(255, 255, 255, .75); }
/* Only where the side margins are wide enough to hold them */
@media (max-width: 1250px) { .queries { display: none; } }
@media (max-width: 760px) { .faq-hero { padding-block: 6.5rem 4rem; --v: 20px; } }

/* ---------- Question groups ---------- */

.faq-body { position: relative; overflow: hidden; }
.faq-group { position: relative; padding-block: clamp(3rem, 7vw, 5rem); scroll-margin-top: 4.5rem; }
.faq-group:not(.section-mist) { background: transparent; }
.faq-group.section-mist { background: rgba(242, 246, 251, .7); } /* lets the drifting glows show through */
.faq-group .wrap { max-width: 52rem; }
.faq-group h2 { margin-bottom: 1rem; }
.faq-group .faq { max-width: none; }
.faq-group details { scroll-margin-top: 5.5rem; }
.faq-group summary h3 { font: 600 var(--t-lg)/1.3 var(--font-display); letter-spacing: -.01em; margin: 0; }
.faq-group .answer { padding-bottom: 1.25rem; }
.faq-group .answer p { color: var(--slate); max-width: 42rem; }
.faq-group .answer p + p { margin-top: .75rem; }
.faq-group .faq-link a { font-weight: 600; }
.faq-group details[open] summary h3 { color: var(--ocean); }
.faq-empty { max-width: 52rem; margin: 2rem auto; padding: 0 var(--gutter); color: var(--slate); }

/* ---------- Didn't find it? ---------- */

.faq-ask { background: var(--mist); border-top: 1px solid var(--line); padding-block: 2.5rem; }
.faq-ask .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.faq-ask h2 { font-size: var(--t-xl); }
.faq-ask p { color: var(--slate); margin-top: .35rem; }
.faq-ask .cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Closing band ---------- */

.faq-close {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(29, 79, 216, .45), rgba(29, 79, 216, 0) 70%),
    var(--navy);
  color: #fff; text-align: center;
  padding-block: calc(clamp(4rem, 9vw, 6rem) + 48px) clamp(4rem, 9vw, 6rem);
  --v: 48px;
  clip-path: polygon(0 var(--v), 50% 0, 100% var(--v), 100% 100%, 0 100%);
}
.faq-close .network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; }
.faq-close .wrap { position: relative; }
.faq-close h2 { color: #fff; }
.faq-close p { color: var(--on-dark-muted); margin: .75rem auto 1.75rem; max-width: 30rem; }
.faq-close .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.faq-close .seat-count {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--t-sm); font-weight: 600; color: #fff;
}
.faq-close .seat-count .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
@media (max-width: 760px) { .faq-close { --v: 24px; } }

@media (prefers-reduced-motion: reduce) {
  .query, .query .tick { transition: none; }
}
