/* ==========================================================================
   Brilliant Business 360 — site styles
   Tokens mirror the Business360 app (b360.brilliantlabs.io):
   Helvetica Neue, neutral greys, 6px radii, indigo accent #4b4bcc.
   ========================================================================== */

:root {
  --font: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'SF Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;

  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-muted: #f3f4f6;
  --bg-page: #f5f5f5;

  --accent: #4b4bcc;
  --accent-hover: #3a3ab0;
  --accent-soft: #f0f0ff;
  --accent-line: #c7d2fe;
  --accent-2: #7b7bf0;
  --navy: #1a1a2e;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px -24px rgba(26, 26, 46, 0.35);

  --header-h: 64px;
  --wrap: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font: 600 15px/1 var(--font);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: #222; color: #fff; }
.btn--secondary { background: #fff; color: #333; border-color: #ddd; box-shadow: var(--shadow-sm); font-weight: 500; }
.btn--secondary:hover { border-color: var(--line-strong); background: var(--bg-soft); color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent-soft); color: var(--navy); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header--docs .wrap { max-width: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name span { color: var(--muted); font-weight: 500; }
@media (max-width: 480px) { .brand__name span { display: none; } }
.brand__tag {font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 2px 8px; border-radius: 999px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius); }
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg-muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { margin-left: 12px; }

.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,.15);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 8px; }
  .site-nav .btn { margin: 12px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__note { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 15px; height: 15px; color: var(--accent); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Chat mock (hero visual) ---------- */
.chat-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.chat-mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chat-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.chat-mock__bar b { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chat-mock__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 92%; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.msg--ai { align-self: flex-start; display: flex; gap: 10px; }
.msg--ai .avatar { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.msg--ai .bubble { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 14px; color: var(--text); }
.msg--ai p { margin: 0 0 12px; }
.mini-chart { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 10px; height: 120px; padding: 8px 4px 0; border-bottom: 1px solid var(--line-strong); }
.mini-chart div { position: relative; border-radius: 4px 4px 0 0; background: var(--accent-line); height: var(--h); }
.mini-chart div.is-top { background: var(--accent); }
.mini-chart div span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink); }
.mini-chart-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-size: 11px; color: var(--muted); text-align: center; padding: 6px 4px 0; }
.mock-sections { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mock-sections span { font-size: 11px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }
.mock-followup { margin-top: 10px; font-size: 12.5px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.mock-actions { display: flex; gap: 6px; margin-top: 10px; }
.mock-actions span { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 4px; padding: 3px 8px; background: var(--accent-soft); }
.chat-mock__input {display: flex; align-items: center; gap: 10px; margin: 0 20px 20px; padding: 10px 12px; border: 1px solid #ddd; border-radius: var(--radius); color: var(--faint); }
.chat-mock__input span { flex: 1; }
.chat-mock__input svg { width: 18px; height: 18px; color: var(--muted); }
.chat-mock__input .send { width: 30px; height: 30px; border-radius: var(--radius); background: #000; display: grid; place-items: center; }
.chat-mock__input .send svg { color: #fff; width: 15px; height: 15px; }
.mock-caption { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 0 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; }
.section__head p { font-size: 18px; color: var(--muted); margin: 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 18px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin: 0; }
.step .icon { position: absolute; top: 24px; right: 24px; }

.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 20px; height: 20px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: #fff; padding: 32px; }
.feature .icon { margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 960px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .features { grid-template-columns: 1fr; } }

/* Data sources strip */
.sources { padding: 56px 0; border-bottom: 1px solid var(--line); }
.sources h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: center; font-weight: 600; margin-bottom: 24px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.sources li { font-weight: 600; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px; background: #fff; }

/* Question chips */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; }
.split p { font-size: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--ink); box-shadow: var(--shadow-sm); }
.chips li::before { content: "“"; color: var(--accent); font-weight: 700; margin-right: 2px; }
.chips li::after { content: "”"; color: var(--accent); font-weight: 700; margin-left: 2px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-right: 40px; margin: -6px 0 22px; }

/* CTA band */
.cta-band { background: var(--navy); color: #c9cbe0; padding: 88px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -320px; background: radial-gradient(circle, rgba(123,123,240,.35), transparent 65%); }
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 18px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn--ghost-light:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a, .link-button { color: var(--muted); }
.site-footer a:hover, .link-button:hover { color: var(--ink); }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.link-button:hover { text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer .brand { margin-bottom: 12px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }
.site-footer--compact { padding: 24px 0; }
.site-footer--compact .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: none; }

/* ==========================================================================
   Docs layout
   ========================================================================== */
.docs { display: grid; grid-template-columns: 264px minmax(0, 1fr) 220px; min-height: calc(100vh - var(--header-h)); }
.docs-sidebar { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-soft); padding: 28px 16px 40px 24px; }
.docs-sidebar h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin: 24px 0 8px; padding: 0 10px; }
.docs-sidebar h5:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar a { display: block; padding: 6px 10px; border-radius: var(--radius); color: var(--text); font-size: 14px; }
.docs-sidebar a:hover { background: var(--bg-muted); color: var(--ink); text-decoration: none; }
.docs-sidebar a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.docs-main { padding: 48px 56px 80px; min-width: 0; }
.doc-content { max-width: 760px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.doc-content h1 { font-size: 36px; letter-spacing: -0.02em; margin-bottom: 12px; }
.doc-content .doc-lede { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.doc-content h2 { font-size: 24px; margin: 48px 0 12px; padding-top: 8px; }
.doc-content h3 { font-size: 18px; margin: 32px 0 8px; }
.doc-content h2, .doc-content h3 { position: relative; }
.doc-content .anchor { position: absolute; left: -22px; color: var(--faint); opacity: 0; font-weight: 400; }
.doc-content h2:hover .anchor, .doc-content h3:hover .anchor, .doc-content .anchor:focus { opacity: 1; text-decoration: none; }
.doc-content p, .doc-content li { line-height: 1.7; }
.doc-content ul, .doc-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc-content li { margin-bottom: 4px; }
.doc-content code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.doc-content pre { position: relative; background: var(--navy); color: #e5e7f5; border-radius: var(--radius-lg); padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 0 0 1.5em; }
.doc-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 600 12px var(--font); color: #c9cbe0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 4px 8px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.doc-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 1.5em; display: block; overflow-x: auto; }
.doc-content th, .doc-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-content th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.doc-content kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: #fff; }

.callout { display: flex; gap: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-lg); padding: 14px 16px; margin: 0 0 1.5em; font-size: 15px; }
.callout::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 12px/20px Georgia, serif; text-align: center; margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout--warn { border-color: #fcd34d; background: #fffbeb; }
.callout--warn::before { content: "!"; background: #d97706; font-family: var(--font); }

.card-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.5em; }
.card-links a { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.card-links a:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); text-decoration: none; }
.card-links strong { display: block; color: var(--ink); margin-bottom: 4px; }
.card-links span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .card-links { grid-template-columns: 1fr; } }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 760px; }
.docs-pager a { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; color: var(--ink); font-weight: 600; }
.docs-pager a:hover { border-color: var(--accent-line); text-decoration: none; }
.docs-pager small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.docs-pager .next { grid-column: 2; text-align: right; }

.docs-toc { position: sticky; top: var(--header-h); align-self: start; padding: 48px 24px 24px 0; font-size: 13px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.docs-toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin: 0 0 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); }
.docs-toc a.lvl-3 { padding-left: 24px; }
.docs-toc a:hover { color: var(--ink); text-decoration: none; }
.docs-toc a.is-active { color: var(--accent); border-left-color: var(--accent); }

.docs-menu-btn { display: none; }

@media (max-width: 1200px) { .docs { grid-template-columns: 248px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .docs-sidebar { position: fixed; top: var(--header-h); left: 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .docs.is-menu-open .docs-sidebar { transform: none; }
  .docs-main { padding: 24px var(--gutter) 64px; }
  .docs-menu-btn { display: inline-flex; margin-bottom: 20px; }
  .doc-content .anchor { display: none; }
}

/* ---------- Simple prose page (privacy etc.) ---------- */
.page-prose { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.page-prose h1 { font-size: 40px; letter-spacing: -0.02em; }

/* ==========================================================================
   Consent banner
   ========================================================================== */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.consent__inner { pointer-events: auto; max-width: 760px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 20px 50px -12px rgba(0,0,0,.25); padding: 20px 24px; display: flex; gap: 24px; align-items: center; animation: consent-in .25s ease-out; }
.consent__text { flex: 1; font-size: 14px; color: var(--text); }
.consent__text strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.consent__text p { margin: 0; }
.consent__actions { display: flex; gap: 8px; flex: none; }
.consent__actions .btn { min-width: 96px; }
.consent__status { font-size: 13px; color: var(--muted); margin-top: 6px; }
@keyframes consent-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .consent__inner { animation: none; } }
@media (max-width: 640px) { .consent__inner { flex-direction: column; align-items: stretch; gap: 16px; } .consent__actions .btn { flex: 1; } }

/* Attribution debug panel (?b360_debug=1) */
.b360-debug { position: fixed; top: calc(var(--header-h) + 12px); right: 12px; z-index: 95; width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--navy); color: #e5e7f5; font: 12px/1.5 var(--mono); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-lg); }
.b360-debug b { color: #fff; }
.b360-debug pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-all; }
.b360-debug button { float: right; background: none; border: 0; color: #c9cbe0; cursor: pointer; font-size: 16px; }
