/* QREL Nodes — shared site styles
   Single source of truth for the marketing/docs/legal pages.
   Inherited tokens originally drafted in website/index.html (Round prior); this
   file extracts them so all pages share one design system. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep:       #050810;
  --bg-surface:    #0d141c;
  --bg-card:       #121d29;
  --bg-card-hover: #172536;
  --border:        #223241;
  --border-soft:   #172532;
  --text-primary:  #eef4f8;
  --text-secondary:#8fa0ad;
  --text-muted:    #526270;
  --accent:        #89d2e2;
  --accent-bright: #9ee0ee;
  --accent-dim:    #5a9caa;
  --accent-glow:   rgba(137, 210, 226, 0.12);
  --amber:         #d6b36a;
  --mint:          #7fe0b2;
  --lavender:      #b4a0d4;
  --teal:          #5dc0c8;
  --coral:         #e09a62;
  --danger:        #e07b7b;
  --gradient-hero: linear-gradient(168deg, #0a0b0f 0%, #10121c 40%, #0f1520 100%);
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-w:         1180px;
  --max-w-prose:   720px;
  --section-pad:   clamp(4rem, 8vw, 7rem);
  --section-pad-tight: clamp(2.5rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-bright); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-prose { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem 1.25rem; }
ul li, ol li { margin-bottom: 0.4rem; color: var(--text-secondary); }

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
code {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--accent);
}
kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  color: var(--text-primary);
}
pre {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-amber     { color: var(--amber); }
.text-accent    { color: var(--accent); }

/* ── Navigation ───────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

nav.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.nav-logo::before {
  content: '';
  width: 1.65rem;
  height: 1.65rem;
  display: inline-block;
  flex: 0 0 auto;
  background: url('favicon.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(137,210,226,0.18));
}
.nav-logo:has(img)::before { display: none; }
.nav-logo img {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(137,210,226,0.18));
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg-deep) !important;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-bright); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

/* Body spacing so fixed nav doesn't overlap top of page */
main.page { padding-top: 3.5rem; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: var(--gradient-hero);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(137,210,226,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-product-visual {
  width: min(760px, 100%);
  margin-top: 3rem;
  border: 1px solid rgba(137,210,226,0.18);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 44px rgba(137,210,226,0.08);
  background: #050810;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.brand-lockup img {
  width: 2.25rem;
  height: 2.25rem;
}

.mono-callout {
  border: 1px solid rgba(137,210,226,0.18);
  background: linear-gradient(180deg, rgba(18,29,41,0.86), rgba(8,13,20,0.92));
  border-radius: 12px;
  padding: 1.2rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.status-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 0;
}

.status-list li {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: rgba(18,29,41,0.58);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(137,210,226,0.18);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.75rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.hero h1 { max-width: 780px; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.proof-strip {
  display: flex;
  gap: 1.75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.proof-strip li {
  list-style: none;
  margin: 0;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}
.proof-strip li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(137,210,226,0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.03); color: var(--text-primary); }

.btn-amber {
  background: var(--amber);
  color: var(--bg-deep);
}
.btn-amber:hover {
  background: #e7c47e;
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(214,179,106,0.18);
}

/* ── Pull Quote ───────────────────────────────────────────────── */
.pull-quote {
  margin-top: 4rem;
  max-width: 640px;
  text-align: center;
}

.pull-quote blockquote {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.75;
  position: relative;
  padding: 0 1.5rem;
}

.pull-quote blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -1.2rem;
  left: -0.5rem;
  font-style: normal;
  line-height: 1;
}

/* ── Section ──────────────────────────────────────────────────── */
section { padding: var(--section-pad) 0; }
section + section { border-top: 1px solid var(--border); }

section.tight { padding: var(--section-pad-tight) 0; }

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-header-center {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header-center p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── Feature Grid ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.25s, background 0.25s;
}

.feature-card:hover {
  border-color: rgba(137,210,226,0.25);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.feature-icon.blue   { background: rgba(137,210,226,0.12); color: var(--accent); }
.feature-icon.amber  { background: rgba(214,179,106,0.12); color: var(--amber); }
.feature-icon.mint   { background: rgba(127,224,178,0.12); color: var(--mint); }
.feature-icon.lav    { background: rgba(180,160,212,0.12); color: var(--lavender); }
.feature-icon.teal   { background: rgba(93,192,200,0.12); color: var(--teal); }
.feature-icon.coral  { background: rgba(224,154,98,0.12); color: var(--coral); }

.feature-card h3 { color: var(--text-primary); }
.feature-card p  { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ── How It Works (Steps) ─────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Use Cases Grid ───────────────────────────────────────────── */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.use-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.25s;
}

.use-card:hover { border-color: rgba(137,210,226,0.2); }

.use-card .use-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.use-card .use-tag.studio   { background: rgba(137,210,226,0.12); color: var(--accent); }
.use-card .use-tag.live     { background: rgba(214,179,106,0.12); color: var(--amber); }
.use-card .use-tag.post     { background: rgba(180,160,212,0.12); color: var(--lavender); }
.use-card .use-tag.collab   { background: rgba(127,224,178,0.12); color: var(--mint); }

.use-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.use-card p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Compatibility ────────────────────────────────────────────── */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.compat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.compat-item .compat-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.compat-item .compat-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Pricing tiers ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(137,210,226,0.06), var(--bg-card));
  box-shadow: 0 24px 80px rgba(137,210,226,0.08);
}

.tier-card .tier-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.tier-card h3 {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

.tier-card .price {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.tier-card .price .currency { color: var(--text-muted); font-weight: 500; font-size: 0.7em; }
.tier-card .price-suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tier-card ul {
  list-style: none;
  margin: 0 0 2rem 0;
  flex: 1;
}
.tier-card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.tier-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.tier-card ul li.muted { color: var(--text-muted); }
.tier-card ul li.muted::before { content: '\2014'; color: var(--text-muted); }

.tier-card .btn { width: 100%; justify-content: center; }

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary::after { content: '\2212'; transform: rotate(0deg); }
.faq details[open] summary { color: var(--accent); }
.faq details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  line-height: 1.75;
}

/* ── Docs/legal prose ─────────────────────────────────────────── */
.prose {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}
.prose h2 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
}
.prose h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose li { color: var(--text-secondary); margin-bottom: 0.35rem; }
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.prose .note {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.prose .note.warn { border-left-color: var(--amber); }
.prose .note strong { color: var(--text-primary); }

/* Doc-page side ToC */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad-tight) clamp(1.25rem, 4vw, 2.5rem);
}

.docs-nav {
  position: sticky;
  top: 5rem;
  align-self: start;
  font-size: 0.88rem;
}
.docs-nav h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.docs-nav ul { list-style: none; margin: 0; }
.docs-nav li { margin-bottom: 0.4rem; }
.docs-nav a {
  color: var(--text-secondary);
  display: block;
  padding: 0.25rem 0;
}
.docs-nav a:hover, .docs-nav a.active { color: var(--accent); }

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p  { color: var(--text-secondary); max-width: 540px; margin: 0 auto 2rem; }
.cta-actions    { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────────── */
footer.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

footer.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

footer.site-footer .footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

footer.site-footer .footer-col ul { list-style: none; margin: 0; }
footer.site-footer .footer-col li { margin-bottom: 0.5rem; }
footer.site-footer .footer-col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
footer.site-footer .footer-col a:hover { color: var(--text-primary); }
footer.site-footer .footer-brand-blurb {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
  margin-top: 0.75rem;
}

footer.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

footer.site-footer .copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer.site-footer .footer-meta-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

footer.site-footer .footer-meta-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}
footer.site-footer .footer-meta-links a:hover { color: var(--text-secondary); }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.error-page .code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}
.error-page p { color: var(--text-secondary); max-width: 460px; margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 880px) {
  footer.site-footer .footer-cols { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    left: 0; right: 0;
    background: var(--bg-surface);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  footer.site-footer .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .compat-grid { grid-template-columns: 1fr; }
}

/* ── Scroll Animations ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 0; }
