/* ============================================
   FAQ SECTION — two-column layout
   ============================================ */
.faq {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Scanline */
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Accent glow */
.faq::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(100, 220, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Two-column wrapper ───────────────────────── */
.faq-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Left panel ───────────────────────────────── */
.faq-lead {
  position: sticky;
  top: 100px;
}

.faq-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.faq-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.faq-subtitle {
  font-size: 0.8375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── List ─────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
}

/* ── Item ─────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Question button ──────────────────────────── */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
  transition: color 0.18s ease;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q[aria-expanded="true"] {
  color: var(--accent);
}

/* ── Chevron ──────────────────────────────────── */
.faq-chevron {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
  opacity: 0.5;
  /* GPU-composited transform only — no layout thrash */
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.18s ease;
  will-change: transform;
}

.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
  opacity: 1;
}

/* ── Answer panel — grid-rows trick (zero reflow) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: grid-template-rows;
}

.faq-a.is-visible {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.8125rem;
  padding-bottom: 0;
  transition: padding-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a.is-visible .faq-a-inner {
  padding-bottom: 1.125rem;
}

.faq-a-inner p {
  margin: 0;
}

.faq-a-inner strong {
  color: var(--text-primary);
  font-weight: 600;
}

.faq-a-inner em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

.faq-a-inner a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 165, 233, 0.3);
  transition: border-color 0.18s;
}

.faq-a-inner a:hover {
  border-color: var(--accent);
}

/* ── Responsive: collapse to single column ──── */
@media (max-width: 860px) {
  .faq {
    padding: 60px 0;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 28px 0;
    padding: 0 1.5rem;
  }

  .faq-lead {
    position: static;
  }

  .faq-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .faq-subtitle {
    font-size: 0.8125rem;
  }

  .faq-q {
    font-size: 0.8125rem;
    padding: 0.9375rem 0;
  }

  .faq-a-inner {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 0 1.25rem;
  }

  .faq {
    padding: 48px 0;
  }
}
