/* Document Studio — marketing/docs site. Self-contained, no external deps. */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef0fe;
  --text: #1f2430;
  --muted: #6b7280;
  --border: #e6e8ec;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #7c74ff;
  --ok: #067647;
  --radius: 12px;
  --maxw: 1080px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 8px 24px rgba(16, 24, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161c;
    --surface: #1b1e27;
    --surface-2: #23244a;
    --text: #e7e9ee;
    --muted: #9aa1ad;
    --border: #2b2f3a;
    --accent: #7c74ff;
    --accent-hover: #948dff;
    --accent-light: #a9a3ff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 750; margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 1.15rem; font-weight: 650; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 550; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 680px) { .nav-links a.hide-sm { display: none; } }

/* buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  font-weight: 650; font-size: 15px; cursor: pointer; border: 0;
  background: var(--accent); color: #fff; box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: none; border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--surface-2); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero p.sub { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.trust b { color: var(--text); }

/* sections */
section { padding: 46px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card .ico { font-size: 22px; margin-bottom: 10px; display: block; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }
.price {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface);
}
.price.pro { border-color: var(--accent); position: relative; }
.price .tag { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.price .amt { font-size: 2.2rem; font-weight: 750; margin: 8px 0 2px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.badge-beta { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { font-weight: 650; cursor: pointer; font-size: 1.02rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* docs layout */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0; }
@media (max-width: 800px) { .doc { grid-template-columns: 1fr; } .doc-nav { position: static; } }
.doc-nav { position: sticky; top: 80px; align-self: start; font-size: 14.5px; }
.doc-nav a { display: block; color: var(--muted); padding: 5px 0; }
.doc-nav a:hover { color: var(--text); text-decoration: none; }
.doc-body { min-width: 0; }
.doc-body h2 { margin-top: 36px; padding-top: 12px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body code { background: var(--surface); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; font-size: 0.9em; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.doc-body th { background: var(--surface); }
.legal { max-width: 780px; margin: 0 auto; padding: 40px 0; }
.legal h2 { margin-top: 30px; }
.legal p, .legal li { font-size: 15px; }
.note { background: var(--surface-2); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 16px 0; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer .links { margin-left: auto; display: flex; gap: 20px; }
footer a { color: var(--muted); font-size: 14px; }
