/* FAQ page — faq-* prefix */

/* ============ HERO ============ */
.faq-hero {
  padding: 140px 0 80px;
  position: relative;
}
.faq-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.faq-hero-crumb {
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.faq-hero-crumb a { color: var(--fg-muted); transition: color .2s; }
.faq-hero-crumb a:hover { color: var(--fg); }
.faq-hero-crumb .crumb-sep { opacity: .5; }

.faq-hero-head {
  font-size: clamp(52px, 9vw, 140px);
  margin-top: 12px;
  max-width: 90%;
}
/* Match safety/animation pattern from other hero pages */
.faq-hero-head .line > span { white-space: nowrap; }
.faq-hero-head .line { overflow: visible !important; }
.faq-hero-head .line span,
.faq-hero-head .line > span {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.faq-hero-lede {
  margin: 32px 0 28px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 62ch;
}

.faq-hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 56px;
}

.faq-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-strip-item {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--border);
}
.faq-strip-item:last-child { border-right: none; }
.faq-strip-item:first-child { padding-left: 0; }
.faq-strip-item:not(:first-child) { padding-left: 24px; }
.faq-strip-k {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.faq-strip-l {
  color: var(--fg-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ MAIN LAYOUT ============ */
.faq-main {
  padding: 40px 0 120px;
  background: var(--bg);
}
.faq-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

/* ====== SIDEBAR ====== */
.faq-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}
.faq-aside-inner { display: block; }
.faq-aside .eyebrow { margin-bottom: 20px; display: inline-block; }

.faq-catnav {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 4px;
}
.faq-cat-link {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0 14px 0;
  text-decoration: none; color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: padding-left .25s ease, color .2s ease;
  position: relative;
}
.faq-cat-link:hover { padding-left: 6px; }
.faq-cat-link.is-active {
  padding-left: 10px;
}
.faq-cat-link.is-active::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 4px; height: 16px; background: var(--accent); border-radius: 1px;
}
.faq-cat-n {
  color: var(--fg-muted);
  font-size: 11px; line-height: 1.5;
  min-width: 22px;
  padding-top: 3px;
}
.faq-cat-link.is-active .faq-cat-n { color: var(--fg); }
.faq-cat-label { display: block; }
.faq-cat-title {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.faq-cat-sub {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.faq-aside-contact {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.faq-aside-contact .mono {
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.faq-aside-lede {
  font-size: 14px; line-height: 1.5; color: var(--fg-soft);
  margin: 0 0 14px;
}
.faq-aside-btn {
  font-size: 12px !important;
  padding: 8px 12px !important;
  letter-spacing: 0.02em !important;
  width: 100%;
  justify-content: center;
}

/* ====== BODY ====== */
.faq-body { display: block; }

.faq-cat {
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.faq-cat:last-of-type { border-bottom: none; margin-bottom: 32px; }

.faq-cat-head { margin-bottom: 36px; }
.faq-cat-h2 { font-size: clamp(32px, 4.5vw, 56px); max-width: 18ch; }
.faq-cat-meta {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-top: 1px solid var(--border);
  transition: background .25s ease;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item-open { background: color-mix(in oklab, var(--fg) 3%, transparent); }

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  color: var(--fg);
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  transition: padding .25s ease;
}
.faq-q:hover { padding-left: 6px; }
.faq-item-open .faq-q { padding-left: 6px; }

.faq-n {
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.faq-q-text { display: block; }

.faq-plus {
  font-size: 22px;
  line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .25s ease;
  flex-shrink: 0;
}
.faq-item-open .faq-plus {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: rotate(180deg);
}

.faq-a {
  padding: 4px 0 28px 68px;
  animation: faqSlide 0.3s ease;
}
.faq-a p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 72ch;
  margin: 0;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== End CTA ====== */
.faq-end {
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.faq-end .eyebrow { margin-bottom: 16px; display: inline-block; }
.faq-end-h {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 28px;
  max-width: 20ch;
}
.faq-end-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .faq-hero { padding: 110px 0 60px; }
  .faq-hero-head { font-size: clamp(44px, 10vw, 80px); }
  .faq-hero-strip { grid-template-columns: repeat(2, 1fr); }
  .faq-strip-item { padding: 22px 20px 22px 0; border-right: 1px solid var(--border); }
  .faq-strip-item:nth-child(2n) { border-right: none; }
  .faq-strip-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .faq-strip-item:nth-child(odd) { padding-left: 0 !important; }
  .faq-strip-item:nth-child(even) { padding-left: 20px !important; }

  .faq-shell { grid-template-columns: 1fr; gap: 40px; }
  .faq-aside { position: static; }
  .faq-aside-inner {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .faq-catnav {
    flex-direction: row; flex-wrap: wrap;
    border-top: none; padding-top: 0;
    gap: 8px;
  }
  .faq-cat-link {
    flex: 1 1 44%;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .faq-cat-link:hover, .faq-cat-link.is-active { padding: 14px; padding-left: 14px; }
  .faq-cat-link.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }
  .faq-cat-link.is-active::before { display: none; }
  .faq-cat-link.is-active .faq-cat-n,
  .faq-cat-link.is-active .faq-cat-sub { color: var(--accent-ink); opacity: .75; }
  .faq-aside-contact { margin-top: 24px; }
}

@media (max-width: 760px) {
  .faq-hero { padding: 96px 0 48px; }
  .faq-hero-head { font-size: clamp(40px, 12vw, 64px); }
  .faq-hero-ctas { flex-direction: column; align-items: stretch; }
  .faq-hero-ctas .btn { justify-content: center; }

  .faq-hero-strip { grid-template-columns: 1fr; }
  .faq-strip-item,
  .faq-strip-item:nth-child(odd),
  .faq-strip-item:nth-child(even) {
    padding: 20px 0 !important;
    border-right: none !important;
    border-top: 1px solid var(--border) !important;
  }
  .faq-strip-item:first-child { border-top: none !important; }

  .faq-cat-link { flex: 1 1 100%; }

  .faq-q {
    grid-template-columns: 32px 1fr 28px;
    gap: 14px;
    padding: 18px 0;
    font-size: 16px;
  }
  .faq-plus { width: 28px; height: 28px; font-size: 18px; }
  .faq-a { padding-left: 46px; padding-bottom: 22px; }

  .faq-cat { padding-bottom: 48px; margin-bottom: 48px; }
  .faq-cat-h2 { font-size: clamp(28px, 8vw, 40px); }

  .faq-end-ctas { flex-direction: column; align-items: stretch; }
  .faq-end-ctas .btn { justify-content: center; }
}
