/* ============================================================
   Shots — marketing site + docs
   Full-dark developer-tool aesthetic. Inter + system mono.
   ============================================================ */

:root {
  --bg: #0a0d13;
  --bg-soft: #0d1219;
  --surface: #111826;
  --surface-2: #161e2e;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #eef2f7;
  --muted: #9aa7bb;
  --faint: #64748b;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --accent-2: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo,
    Consolas, monospace;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(56, 189, 248, 0.3); }

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

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 13, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #06121d;
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #04121d;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 340px at 18% 8%, rgba(56, 189, 248, 0.13), transparent 65%),
    radial-gradient(720px 380px at 84% 18%, rgba(167, 139, 250, 0.12), transparent 65%),
    radial-gradient(900px 500px at 50% 110%, rgba(56, 189, 248, 0.06), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(760px 420px at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(760px 420px at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 860px;
  margin: 0 auto;
}
.hero h1 .strike-price { color: var(--faint); }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 680px;
  margin: 22px auto 0;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-micro {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--faint);
}
.hero-micro span { margin: 0 6px; }

/* Code window */
.code-window {
  margin: 56px auto 0;
  max-width: 720px;
  background: #0c1118;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  overflow: hidden;
}
.code-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.code-tabs .tab {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.code-tabs .tab.active { background: var(--surface-2); color: var(--text); }
.code-tabs .dots { display: flex; gap: 6px; margin-right: 10px; }
.code-tabs .dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #2a3444; display: block;
}
.code-tabs .dots i:nth-child(1) { background: #f87171; opacity: 0.75; }
.code-tabs .dots i:nth-child(2) { background: #fbbf24; opacity: 0.75; }
.code-tabs .dots i:nth-child(3) { background: #34d399; opacity: 0.75; }
.code-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  color: #c7d2e0;
}
.code-body .c { color: #5b6b82; }            /* comment */
.code-body .k { color: #7dd3fc; }            /* keyword/flag */
.code-body .s { color: #a5f3c9; }            /* string */
.code-body .f { color: #c4b5fd; }            /* function */
.code-body .n { color: #fbbf24; }            /* number */
.code-body .p { color: #8fa3bd; }            /* punctuation */

/* ---------------- Sections ---------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 640px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------------- Demo ---------------- */
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.demo-tab {
  flex: 1;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 18px;
  cursor: pointer;
  transition: color 0.12s ease;
}
.demo-tab:hover { color: var(--text); }
.demo-tab.active { color: var(--text); border-bottom-color: var(--accent); background: rgba(56, 189, 248, 0.05); }
.demo-panel { display: none; padding: 32px; }
.demo-panel.active { display: grid; grid-template-columns: 380px 1fr; gap: 32px; }
.demo-notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #fde68a;
}
.demo-notice code { font-family: var(--mono); font-size: 12.5px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.field label .max {
  font-weight: 400;
  color: var(--faint);
  font-size: 12px;
  margin-left: 6px;
}
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.field select { appearance: none; cursor: pointer; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.demo-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.demo-result img { width: 100%; height: auto; border-radius: 8px; }
.demo-placeholder { text-align: center; color: var(--faint); padding: 40px; }
.demo-placeholder .big { font-size: 40px; margin-bottom: 12px; }
.demo-placeholder p { font-size: 14.5px; max-width: 320px; margin: 0 auto; }
.demo-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}
.demo-meta b { color: var(--green); font-weight: 600; }
.demo-error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 16px;
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* curl snippet box */
.curl-box { margin-top: 18px; }
.curl-box .curl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.curl-box .curl-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
.curl-pre {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: #0c1118;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  color: #c7d2e0;
}

/* ---------------- Features ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); font-size: 15px; }
.feature-card code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------------- How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------------- Pricing ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.popular {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), var(--surface) 40%);
  box-shadow: 0 16px 48px rgba(56, 189, 248, 0.12);
}
.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #04121d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.price-amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price-amount .per { font-size: 16px; font-weight: 500; color: var(--faint); }
.price-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.price-feats { list-style: none; margin-bottom: 28px; flex: 1; }
.price-feats li {
  font-size: 14.5px;
  color: var(--muted);
  padding: 7px 0 7px 30px;
  position: relative;
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 800;
}
.price-feats li strong { color: var(--text); font-weight: 600; }
.beta-note {
  margin-top: 28px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: #d1fae5;
}
.beta-note .icon { font-size: 22px; flex: none; }
.beta-note strong { color: #fff; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex: none;
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details .answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
}
.faq-list .answer code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.status-dot i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: block;
}

/* ---------------- Templates gallery ---------------- */
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.page-hero p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto; }
.cat-section { margin-bottom: 64px; }
.cat-head { margin-bottom: 22px; }
.cat-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 12px;
  border-radius: 999px;
}
.cat-head p { color: var(--muted); font-size: 15.5px; max-width: 720px; margin-top: 10px; }
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tpl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.tpl-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.tpl-preview {
  aspect-ratio: 1200 / 630;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.tpl-preview img { width: 100%; height: 100%; object-fit: cover; }
.tpl-preview .shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(148,163,184,0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.tpl-preview .tpl-fallback {
  text-align: center;
  color: var(--faint);
  padding: 24px;
}
.tpl-preview .tpl-fallback .glyph { font-size: 34px; margin-bottom: 8px; }
.tpl-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tpl-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tpl-body .desc { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; flex: 1; }
.tpl-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}
.dims {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.tpl-use {
  align-self: flex-start;
  font-weight: 600;
  font-size: 14.5px;
}
.gallery-error {
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fecaca;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14.5px;
  margin-bottom: 32px;
}

/* ---------------- Docs ---------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  padding: 56px 0 96px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 14px;
}
.docs-nav h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 22px 0 8px;
}
.docs-nav h5:first-child { margin-top: 0; }
.docs-nav a {
  display: block;
  color: var(--muted);
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--text); text-decoration: none; }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); }
.docs-content { min-width: 0; }
.docs-content h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.docs-content .lede { color: var(--muted); font-size: 18px; margin-bottom: 40px; max-width: 640px; }
.docs-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.docs-content h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.docs-content p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.docs-content p strong, .docs-content li strong { color: var(--text); }
.docs-content ul, .docs-content ol { color: var(--muted); margin: 0 0 16px 22px; font-size: 15.5px; }
.docs-content li { margin-bottom: 8px; }
.docs-content code.inline {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout p { margin: 0; }
.callout.info { background: rgba(56, 189, 248, 0.07); border: 1px solid rgba(56, 189, 248, 0.3); }
.callout.info p { color: #bae6fd; }
.callout.warn { background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.3); }
.callout.warn p { color: #fde68a; }
.endpoint {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin: 28px 0;
  overflow: hidden;
}
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.method {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 7px;
  flex: none;
}
.method.get { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.method.post { background: rgba(56, 189, 248, 0.14); color: var(--accent); }
.endpoint-path { font-family: var(--mono); font-size: 15px; color: var(--text); }
.endpoint-auth {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--faint);
  font-family: var(--mono);
}
.endpoint-body { padding: 22px; }
.endpoint-body > p { font-size: 15px; }
.param-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 14px; }
.param-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
}
.param-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.param-table td:first-child { font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; }
.param-table tr:last-child td { border-bottom: none; }
.req {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 8px;
}
.req.yes { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.req.no { background: rgba(148, 163, 184, 0.12); color: var(--faint); }

/* code tabs (docs) */
.codeblock { margin: 20px 0 28px; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: #0c1118; }
.codeblock .code-tabs { border-bottom: 1px solid var(--border); }
.codeblock .code-pane { display: none; }
.codeblock .code-pane.active { display: block; }
.copy-btn {
  margin-left: auto;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn.copied { color: var(--green); border-color: rgba(52, 211, 153, 0.4); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .demo-panel.active { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .tpl-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-nav {
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .demo-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- SEO/guide pages (added Oct 2026) ---- */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--muted); line-height: 1.65; margin: 16px 0 32px; max-width: 680px; }
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.compare-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--border-strong); }
.compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.compare-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.compare-table code { font-family: var(--mono); font-size: 13px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 28px; }
.checklist li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); font-size: 15.5px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.fineprint { font-size: 13px; color: var(--faint); margin-top: 8px; }
.cta-band { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 36px; text-align: center; margin: 48px 0 8px; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0 0 20px; }
.cta-band .btn { margin: 4px 6px; }
.code-block { background: #06090e; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 16px 0 24px; }
.code-block code { font-family: var(--mono); font-size: 13.5px; color: #c9d6e8; line-height: 1.6; white-space: pre; }
.field-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.field-row input[type="url"] { background: #06090e; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 15px; min-width: 0; }
.field-row select { background: #06090e; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 14px; }
