/* faq.css — FAQ page styles */
/* Owns: accordion, section layout, CTA block for /faq */
/* Does NOT own: nav, footer, theme variables (those live in theme.css) */

/* Nav overrides (reuse vs.css pattern) */
.nav-link { color: var(--fg-dim); font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: color 0.2s; }
.nav-link:hover { color: var(--fg); }
.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(240,237,232,0.3); }
.btn-sm { font-size: 13px; padding: 6px 14px; }

/* Page wrapper */
.faq-main {
  position: relative;
  z-index: 10;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero */
.faq-hero {
  padding: 72px 0 56px;
  text-align: center;
}
.faq-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.faq-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.faq-headline .accent { color: var(--accent); }
.faq-lede {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Section headers */
.faq-section {
  margin-bottom: 56px;
}
.faq-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.faq-section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Accordion group */
.faq-group {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

/* Question button */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  transition: background 0.15s;
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q[aria-expanded="true"] { background: rgba(245,166,35,0.05); }

/* Chevron indicator */
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  background: var(--fg-dim);
  border-radius: 2px;
  transition: background 0.2s;
}
/* + icon: horizontal bar */
.faq-chevron::before {
  width: 8px;
  height: 1.5px;
}
/* + icon: vertical bar */
.faq-chevron::after {
  width: 1.5px;
  height: 8px;
  transition: transform 0.2s, background 0.2s;
}
/* Rotate vertical bar when open → becomes – */
.faq-q[aria-expanded="true"] .faq-chevron::after {
  transform: rotate(90deg);
}
.faq-q[aria-expanded="true"] .faq-chevron {
  border-color: var(--accent);
}
.faq-q[aria-expanded="true"] .faq-chevron::before,
.faq-q[aria-expanded="true"] .faq-chevron::after {
  background: var(--accent);
}

/* Answer panel */
.faq-a {
  padding: 0 24px 24px;
  background: var(--bg-alt);
}
.faq-a[hidden] { display: none; }
.faq-a p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-top: 16px;
}
.faq-a p:first-child { margin-top: 8px; }
.faq-a a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,166,35,0.3);
  transition: border-color 0.2s;
}
.faq-a a:hover { border-color: var(--accent); }
.faq-a strong { color: var(--fg); }

/* CTA block */
.faq-cta {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 52px 32px;
  margin-top: 8px;
}
.faq-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.faq-cta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.faq-cta-lede {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0E0E0F;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.faq-cta-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
}
.footer-tag {
  font-size: 13px;
  color: var(--fg-dim);
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover {
  color: var(--fg);
  border-color: rgba(240,237,232,0.3);
}
.footer-copy {
  margin-left: auto;
  font-size: 12px;
  color: var(--fg-dim);
}

/* Mobile */
@media (max-width: 640px) {
  .faq-main { padding: 0 16px 60px; }
  nav { padding: 16px 20px; }
  .faq-hero { padding: 48px 0 36px; }
  .faq-q { padding: 16px 18px; font-size: 14px; }
  .faq-a { padding: 0 18px 20px; }
  .faq-cta { padding: 36px 20px; }
  footer { padding: 24px 20px; }
  .footer-copy { margin-left: 0; }
}
