/* =========================================================
   Externalsight — FAQ  |  Operator Console  v20260510
   Design tokens mirror landing.v20260509
   ========================================================= */

:root {
  --ob-bg:          #07090C;
  --ob-bg-alt:      #0B0E13;
  --ob-panel:       #10141B;
  --ob-panel2:      #161B23;
  --ob-ink:         #E8ECF2;
  --ob-ink-soft:    #B6BFCE;
  --ob-ink-mute:    #6B7689;
  --ob-ink-dim:     #48505F;
  --ob-line:        rgba(255,255,255,0.055);
  --ob-line-strong: rgba(255,255,255,0.12);
  --ob-accent:      #5EE9F0;
  --ob-accent-soft: rgba(94,233,240,0.13);
  --ob-accent-glow: rgba(94,233,240,0.07);
  --ob-success:     #4ADE80;
  --ob-warn:        #FBBF24;
  --ob-danger:      #FB7185;
  --ob-purple:      #A78BFA;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--ob-bg);
  color: var(--ob-ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── Reading progress bar ─────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--ob-accent), var(--ob-purple) 60%, transparent);
  z-index: 300;
  pointer-events: none;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(94,233,240,0.5);
}

/* =========================================================
   NAV — mirrors landing.v20260509 ob-nav
   ========================================================= */
.ob-nav {
  position: sticky;
  top: 0; z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  background: rgba(7,9,12,0.92);
  border-bottom: 1px solid var(--ob-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ob-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ob-nav-brand-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--ob-line-strong);
  background: var(--ob-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ob-nav-brand-icon img { display: block; }

.ob-nav-brand-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ob-ink);
  letter-spacing: -0.005em;
}

.ob-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 40px;
}

.ob-nav-links a {
  font-size: 13px;
  color: var(--ob-ink-soft);
  font-weight: 450;
  transition: color 150ms;
}
.ob-nav-links a:hover { color: var(--ob-ink); }
.ob-nav-links a.active {
  color: var(--ob-accent);
  font-weight: 500;
}

.ob-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ob-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.07);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ob-success);
  letter-spacing: 0.01em;
}

.ob-nav-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ob-success);
  box-shadow: 0 0 8px var(--ob-success);
}

.ob-nav-signin {
  font-size: 13px;
  color: var(--ob-ink-soft);
  transition: color 150ms;
}
.ob-nav-signin:hover { color: var(--ob-ink); }

.ob-nav-cta {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ob-accent);
  color: #03252A;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 150ms;
  display: inline-block;
}
.ob-nav-cta:hover { opacity: 0.88; }

/* =========================================================
   SHELL
   ========================================================= */
.faq-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* =========================================================
   HERO
   ========================================================= */
.faq-hero {
  position: relative;
  text-align: center;
  padding: 80px 0 56px;
  overflow: hidden;
}

/* Grid decoration */
.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ob-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ob-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* Glow */
.faq-hero::after {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(94,233,240,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--ob-accent-soft);
  color: var(--ob-accent);
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 24px;
}
.faq-eyebrow svg { width: 13px; height: 13px; }

.faq-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ob-ink);
  position: relative;
}

.faq-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ob-ink-soft);
  margin: 0 auto 36px;
  max-width: 540px;
  position: relative;
}

/* ── Search ─────────────────────────────────────────────── */
.faq-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.faq-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ob-ink-mute);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.faq-search-icon svg { width: 15px; height: 15px; }

.faq-search-input {
  width: 100%;
  padding: 13px 44px 13px 42px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-line-strong);
  border-radius: 8px;
  color: var(--ob-ink);
  font-size: 14px;
  font-family: 'Geist', sans-serif;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.faq-search-input:focus {
  border-color: rgba(94,233,240,0.5);
  box-shadow: 0 0 0 3px rgba(94,233,240,0.08);
}
.faq-search-input::placeholder { color: var(--ob-ink-mute); }

.faq-search-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--ob-ink-mute);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  display: none;
  transition: color 150ms;
}
.faq-search-clear.visible { display: block; }
.faq-search-clear:hover { color: var(--ob-ink); }

/* =========================================================
   CATEGORY FILTER TABS
   ========================================================= */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--ob-line);
  margin-bottom: 44px;
}

.faq-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--ob-line);
  background: transparent;
  color: var(--ob-ink-mute);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
}
.faq-cat-btn:hover {
  color: var(--ob-ink-soft);
  border-color: var(--ob-line-strong);
  background: rgba(255,255,255,0.03);
}
.faq-cat-btn.active {
  color: var(--ob-accent);
  border-color: rgba(94,233,240,0.35);
  background: var(--ob-accent-soft);
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  min-width: 20px;
}
.faq-cat-btn.active .cat-count {
  background: rgba(94,233,240,0.2);
}

/* =========================================================
   NO RESULTS
   ========================================================= */
.faq-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  gap: 14px;
  color: var(--ob-ink-mute);
}
.faq-no-results.visible { display: flex; }
.faq-no-results svg { width: 36px; height: 36px; opacity: 0.4; }
.faq-no-results p { font-size: 14px; margin: 0; }

/* =========================================================
   FAQ GROUP
   ========================================================= */
.faq-group {
  margin-bottom: 48px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

/* IntersectionObserver adds in-view */
.faq-group:not(.in-view) {
  opacity: 0;
  transform: translateY(14px);
}

.faq-group[data-hidden="true"] { display: none; }

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-line);
  border-radius: 10px;
  margin-bottom: 6px;
}

.faq-group-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ob-accent-soft);
  border: 1px solid rgba(94,233,240,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ob-accent);
  flex-shrink: 0;
}
.faq-group-icon svg { width: 16px; height: 16px; }

.faq-group-meta { flex: 1; }

.faq-group-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ob-ink);
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.faq-group-desc {
  font-size: 12px;
  color: var(--ob-ink-mute);
  margin: 0;
}

.faq-group-count {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--ob-ink-dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================================================
   FAQ LIST + ACCORDION
   ========================================================= */
.faq-list {
  list-style: none;
  padding: 0; margin: 0;
  border: 1px solid var(--ob-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ob-bg-alt);
}

.faq-item {
  border-bottom: 1px solid var(--ob-line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item[data-hidden="true"] { display: none; }

.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 150ms;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-item.is-open .faq-question {
  background: rgba(94,233,240,0.04);
  border-bottom: 1px solid var(--ob-line);
}

.faq-q-number {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ob-ink-dim);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 24px;
}

.faq-q-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ob-ink);
  line-height: 1.45;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--ob-ink-mute);
  transition: transform 250ms cubic-bezier(0.16,1,0.3,1), color 150ms;
  display: flex;
  align-items: center;
}
.faq-chevron svg { width: 16px; height: 16px; }
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--ob-accent);
}

/* Accordion answer panel */
.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 280ms cubic-bezier(0.16,1,0.3,1);
}

.faq-answer-inner {
  padding: 0 20px 20px 58px;
}

.faq-answer-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ob-ink-soft);
  margin: 12px 0 0;
}
.faq-answer-body p:first-child { margin-top: 8px; }
.faq-answer-body p:last-child { margin-bottom: 0; }

.faq-answer-body strong { color: var(--ob-ink); font-weight: 600; }

.faq-answer-body code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.84em;
  background: rgba(94,233,240,0.07);
  color: var(--ob-accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(94,233,240,0.14);
}

.faq-answer-body ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.faq-answer-body ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ob-ink-soft);
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--ob-line);
  border-radius: 6px;
  line-height: 1.5;
}

.faq-answer-body ul li::before {
  content: "→";
  color: var(--ob-accent);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  flex-shrink: 0;
}

/* Plan pills */
.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  vertical-align: middle;
}
.plan-pill--recon    { background: rgba(148,163,184,0.1); color: #94a3b8; border-color: rgba(148,163,184,0.2); }
.plan-pill--sentinel { background: var(--ob-accent-soft); color: var(--ob-accent); border-color: rgba(94,233,240,0.22); }
.plan-pill--fortress { background: rgba(79,209,197,0.1); color: #4fd1c5; border-color: rgba(79,209,197,0.22); }

/* =========================================================
   BOTTOM CTA
   ========================================================= */
.faq-cta {
  margin-top: 72px;
  padding: 48px 52px;
  background: var(--ob-panel);
  border: 1px solid var(--ob-line-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

/* Subtle glow behind the CTA */
.faq-cta::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(94,233,240,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.faq-cta-text { flex: 1; position: relative; }

.faq-cta-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ob-accent);
  margin-bottom: 12px;
}

.faq-cta h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ob-ink);
  margin: 0 0 12px;
}

.faq-cta p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ob-ink-soft);
  margin: 0;
  max-width: 460px;
}

.faq-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 150ms, background 150ms, border-color 150ms, box-shadow 150ms;
  cursor: pointer;
}

.faq-cta-btn--primary {
  background: var(--ob-accent);
  color: #03252A;
  border: 1px solid transparent;
}
.faq-cta-btn--primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 20px rgba(94,233,240,0.25);
}

.faq-cta-btn--secondary {
  background: transparent;
  color: var(--ob-ink-soft);
  border: 1px solid var(--ob-line-strong);
}
.faq-cta-btn--secondary:hover {
  color: var(--ob-ink);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 720px) {
  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 28px;
  }
  .faq-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .faq-cta-btn { flex: 1; }
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(94,233,240,0.08);
  border: 1px solid rgba(94,233,240,0.2);
  color: var(--ob-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 250ms, transform 250ms, background 150ms, box-shadow 150ms;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#back-to-top svg { pointer-events: none; }
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover {
  background: rgba(94,233,240,0.16);
  border-color: var(--ob-accent);
  box-shadow: 0 0 20px rgba(94,233,240,0.2);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  .faq-shell { padding: 0 20px 80px; }
  .ob-nav { padding: 0 20px; }
  .ob-nav-links { display: none; }
  .ob-nav-status { display: none; }
  .faq-hero { padding: 60px 0 40px; }
  .faq-cats { gap: 4px; }
  .faq-cat-btn { font-size: 11.5px; padding: 5px 10px; }
  .faq-group-header { padding: 14px 16px; }
  .faq-answer-inner { padding: 0 16px 16px 16px; }
  .faq-q-number { display: none; }
}
