/* FAQ page — matches OpenClaw Cheatsheet aesthetic */
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5/files/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --sf: #111;
  --sf2: #191919;
  --bd: #262626;
  --tx: #ededed;
  --dm: #888;
  --ac: #e6533c;
  --gr: #4ade80;
  --bl: #60a5fa;
  --yl: #fbbf24;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.faq-wrap { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 3rem; }

/* Topbar mimic */
.faq-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd);
}
.faq-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 52px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--tx);
  text-decoration: none;
}
.faq-logo em { font-style: normal; color: var(--ac); }
.faq-back { color: var(--dm); text-decoration: none; font-size: .82rem; }
.faq-back:hover { color: var(--tx); }

/* Hero */
.faq-hero { padding: 3rem 0 2rem; text-align: center; }
.faq-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.03em; margin-bottom: .5rem; }
.faq-hero p { color: var(--dm); font-size: .95rem; }

/* Success message */
.faq-success {
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: var(--gr);
}
.faq-success strong { display: block; margin-bottom: .25rem; }

/* Accordion */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 0;
  color: var(--tx);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.faq-q:hover { background: var(--sf2); }
.faq-q::after {
  content: '+';
  flex-shrink: 0;
  margin-left: .75rem;
  font-size: 1.2rem;
  color: var(--dm);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--dm);
  font-size: .9rem;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--bl); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* CTA */
.faq-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--sf2);
  border: 1px solid var(--bd);
  border-radius: 8px;
  text-align: center;
}
.faq-cta p { margin-bottom: 1rem; color: var(--dm); font-size: .9rem; }
.faq-cta a {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: var(--ac);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 6px;
  transition: opacity .15s;
}
.faq-cta a:hover { opacity: .9; }

/* Footer */
.faq-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bd);
  font-size: .8rem;
  color: var(--dm);
}
.faq-footer a { color: var(--bl); text-decoration: none; }
.faq-footer a:hover { text-decoration: underline; }
