/* ═══════════════════════════════════════════
   ReviewLens — FAQ section
   Scope: .faq-main
═══════════════════════════════════════════ */

main {
  flex: 1;
  padding: 60px 72px 120px;
  min-width: 0;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

/* ── Page header ── */
.faq-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(10,10,15,0.09);
}

.faq-eyebrow {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8431a;
  margin-bottom: 14px;
}

.faq-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #0a0a0f;
  margin-bottom: 14px;
}

.faq-header p {
  font-size: 1rem;
  color: #7a7972;
  max-width: 480px;
  line-height: 1.75;
}

/* ── Section ── */
.faq-section {
  margin-bottom: 64px;
  scroll-margin-top: 32px;
}

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.faq-section-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #0a0a0f;
}

.faq-section-lead {
  font-size: 0.88rem;
  color: #7a7972;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 520px;
}

/* ── Accordion list ── */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(10,10,15,0.09);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

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

.faq-item:last-child {
  border-bottom: none;
}

/* trigger */
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.faq-trigger:hover {
  background: rgba(10,10,15,0.025);
}

.faq-item.open .faq-trigger {
  background: rgba(10,10,15,0.025);
}

.faq-question {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.915rem;
  font-weight: 500;
  color: #0a0a0f;
  line-height: 1.4;
  flex: 1;
}

.faq-item.open .faq-question {
  font-weight: 600;
}

/* chevron */
.faq-chevron {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(10,10,15,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.25s;
  flex-shrink: 0;
}

.faq-chevron svg {
  display: block;
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
  background: #0a0a0f;
}

.faq-item.open .faq-chevron svg {
  transform: rotate(180deg);
}

.faq-item.open .faq-chevron path {
  stroke: #f5f3ee;
}

/* answer panel */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.875rem;
  color: #7a7972;
  line-height: 1.75;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.3);
  transition: border-color 0.15s;
}

.faq-answer a:hover {
  border-color: #2563eb;
}

.faq-answer code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.82em;
  background: rgba(10,10,15,0.07);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e8431a;
}

/* callout inside answer */
.faq-answer .faq-callout {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 0.845rem;
  line-height: 1.6;
}

.faq-answer .faq-callout.tip {
  background: rgba(22,163,74,0.07);
  border: 1px solid rgba(22,163,74,0.14);
  color: #14532d;
}

.faq-answer .faq-callout.warn {
  background: rgba(232,67,26,0.07);
  border: 1px solid rgba(232,67,26,0.14);
  color: #7a1a00;
}

.faq-answer .faq-callout.info {
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.14);
  color: #1e3a5f;
}

/* ── Divider between sections ── */
.faq-divider {
  border: none;
  border-top: 1px solid rgba(10,10,15,0.08);
  margin: 0 0 64px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
   .faq-main{ 
    padding: 36px 24px 80px; 
  }
}

/* ── Fix: force light theme — override any dark parent ── */
.faq-list,
.faq-item,
.faq-trigger,
.faq-body-inner,
.faq-answer {
  background-color: #ffffff;
  color: #0a0a0f;
}

.faq-item {
  border-bottom-color: rgba(10,10,15,0.07);
}

.faq-trigger {
  background: #ffffff;
}

.faq-trigger:hover,
.faq-item.open .faq-trigger {
  background: rgba(10,10,15,0.025);
}

/* When inside a dark section (e.g. insights-section), still stay light */
.insights-section .faq-list,
.who-section .faq-list,
.export-section .faq-list {
  background: #ffffff;
  color: #0a0a0f;
}
section{
  padding: 0;
}
.faq-trigger{
  background-color: white!important;
}
.faq-header{
  padding-top: 60px;
}