/* FAQ search box (inside hero) */
.faq-search {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin-top: 30px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
}
.faq-search svg { width: 20px; height: 20px; color: rgba(255, 255, 255, .7); flex: 0 0 auto; }
.faq-search input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  min-width: 0;
}
.faq-search input::placeholder { color: rgba(255, 255, 255, .6); }

/* Two-column layout */
.faq-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* Sticky sidebar */
.faq-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Topic nav */
.faq-topics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ct-muted);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.faq-topics a:hover { background: var(--ct-paper); color: var(--ct-ink); }
.faq-topics a.is-active { background: var(--ct-ink); color: #fff; }
.faq-topics a .count {
  font-size: .78rem;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}

/* Help card */
.faq-help {
  background: var(--ct-paper);
  border-radius: var(--ct-radius);
  padding: 26px;
}
.faq-help h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
}
.faq-help p {
  margin: 8px 0 0;
  font-size: .9rem;
  color: var(--ct-muted);
  line-height: 1.6;
}
.faq-help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ct-ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.faq-help-btn:hover { opacity: .85; color: #fff; }
.faq-help-btn .arrow { transition: transform .2s; }
.faq-help-btn:hover .arrow { transform: translateX(4px); }

/* Category sections */
.faq-cat {
  scroll-margin-top: 100px;
}
.faq-cat + .faq-cat {
  margin-top: 56px;
}
.faq-cat__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.faq-cat__head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.faq-cat__head .faq-cat__count {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Accordion item */
.faq-qa {
  border-top: 1px solid var(--ct-line);
}
.faq-qa:last-of-type {
  border-bottom: 1px solid var(--ct-line);
}
.faq-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ct-ink);
  list-style: none;
  user-select: none;
}
.faq-qa summary::-webkit-details-marker { display: none; }
.faq-qa__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ct-line);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform .3s, background .3s, color .3s, border-color .3s;
  position: relative;
}
.faq-qa__icon::before,
.faq-qa__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-qa__icon::before { width: 12px; height: 2px; }
.faq-qa__icon::after { width: 2px; height: 12px; transition: transform .3s; }
.faq-qa[open] .faq-qa__icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-qa[open] .faq-qa__icon::after { transform: scaleY(0); }
.faq-qa__body p {
  padding: 0 48px 26px 4px;
  color: var(--ct-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

/* No results */
.faq-no-results {
  display: none;
  padding: 40px 4px;
  color: var(--ct-muted);
  font-size: 1rem;
}
.faq-no-results a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
