/* ============================================================
   BellowAI marketing surface — shared styles (SEO-013/014/015)
   Lightweight, framework-free. Dark theme matched to the app
   (ui/styles.css): bg #0f1117, indigo accent #6366f1 / #818cf8,
   Inter typeface. Self-contained so marketing pages render fast
   and crawl cleanly without loading the SPA bundle.
   ============================================================ */

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #22263a;
  --border: #2e3350;
  --accent: #6366f1;
  --accent2: #818cf8;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; color: var(--muted); }
p.lead { font-size: 1.2rem; color: var(--text); max-width: 60ch; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .hex { color: var(--accent2); font-size: 1.3rem; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 18px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero .note { font-size: 0.9rem; color: var(--dim); margin-top: 18px; }

/* ---------- Sections ---------- */
section { padding: clamp(40px, 7vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 44px) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.card h3 { color: var(--text); }
.card p { margin-bottom: 0; }

/* ---------- Steps (pipeline) ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.step .num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--accent2);
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid var(--border);
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 2px; color: var(--text); }
.step p { margin: 0; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.price-card .amount { font-size: 3rem; font-weight: 700; color: var(--text); }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.price-card li { padding: 8px 0; padding-left: 28px; position: relative; color: var(--text); }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent2); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .card {
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border-color: var(--accent);
  padding: 44px;
}
.cta-band h2 { margin-bottom: 0.3em; }

/* ---------- Related pages / internal linking (SEO-052) ---------- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.related-links a {
  color: var(--text);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
}
.related-links a:hover { border-color: var(--accent2); color: #fff; text-decoration: none; }
.related-links a[aria-current="page"] { border-color: var(--accent); color: var(--accent2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--dim);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.surface-bg { background: var(--surface); }
.hero-tight { padding-bottom: 24px; }
.lead-center { margin-inline: auto; }
.cta-center { justify-content: center; margin-top: 10px; }
.block { display: block; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 28px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (max-width: 560px) {
  .site-header .container { min-height: 56px; }
  .nav { gap: 14px; }
}

/* ============================================================
   docs — SEO-019 public knowledge base
   Two-column layout: sticky local docs sidebar + article body.
   Reuses the shared tokens/chrome above; only docs-specific
   layout + prose styles live here.
   ============================================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 24px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}
.docs-sidebar h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin: 0 0 12px;
}
.docs-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.docs-sidebar nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.docs-sidebar nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.docs-sidebar nav a[aria-current="page"] {
  background: var(--surface2);
  color: var(--text);
  border-left: 2px solid var(--accent2);
}
.docs-article { min-width: 0; }
.docs-article > section { padding: 0 0 28px; }
.docs-article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.docs-article h2 { margin-top: 1.4em; }
.docs-article p { color: var(--muted); max-width: 68ch; }
.docs-article ul, .docs-article ol { color: var(--muted); max-width: 68ch; padding-left: 1.3em; }
.docs-article li { margin-bottom: 8px; }
.docs-article strong { color: var(--text); }
.docs-article code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.docs-breadcrumb { font-size: 0.9rem; color: var(--dim); margin: 0 0 8px; }
.docs-breadcrumb a { color: var(--muted); }
.docs-toc-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 8px;
}
.docs-toc-grid a.card { color: var(--text); }
.docs-toc-grid a.card:hover { border-color: var(--accent2); text-decoration: none; }
.docs-toc-grid a.card h3 { color: var(--text); }
.docs-next {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 820px) {
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-sidebar { position: static; top: auto; }
  .docs-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
}
