/* DraftStamp site: no external fonts, scripts or trackers. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --fg: #111113;
  --muted: #62626b;
  --faint: #9a9aa3;
  --line: #e7e7e4;
  --line-strong: #d6d6d2;
  --accent: #0e9f6e;
  --accent-soft: rgba(14, 159, 110, 0.1);
  --glow: rgba(14, 159, 110, 0.16);
  --code-bg: #0e0e11;
  --code-fg: #e6e6e9;
  --code-muted: #7d7d87;
  --code-ok: #4fd8a3;
  --code-accent: #8ab4ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 16, 20, 0.04), 0 8px 24px -12px rgba(16, 16, 20, 0.12);
  --shadow-lg: 0 2px 4px rgba(16, 16, 20, 0.04), 0 30px 80px -30px rgba(16, 16, 20, 0.35);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #111114;
    --surface-2: #17171b;
    --fg: #f2f2f4;
    --muted: #a1a1aa;
    --faint: #6b6b74;
    --line: #232328;
    --line-strong: #2f2f35;
    --accent: #34d399;
    --accent-soft: rgba(52, 211, 153, 0.12);
    --glow: rgba(52, 211, 153, 0.13);
    --code-bg: #0c0c0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); }

a { color: inherit; text-decoration: none; }
.prose a, .link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-color: currentColor; }

code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.1em 0.38em; font-size: 0.84em;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.015em; font-size: 16px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; font-size: 14.5px; }
.nav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav .gh { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); border: 1px solid var(--line); background: var(--surface); margin-left: 6px; }
.nav .gh svg { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn svg { width: 17px; height: 17px; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 96px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -380px; height: 760px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0.6;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 25%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 25%, black, transparent 75%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 550; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px 5px 6px; box-shadow: var(--shadow); transition: color .15s;
}
.pill b { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 8px; font-weight: 650; font-size: 12px; }
.pill:hover { color: var(--fg); }
h1 {
  font-size: clamp(40px, 6.6vw, 72px); line-height: 1.02; letter-spacing: -0.045em;
  margin: 26px auto 22px; font-weight: 760; max-width: 900px;
}
h1 .soft { color: var(--faint); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; line-height: 1.55; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fineprint { font-size: 13.5px; color: var(--faint); margin-top: 22px; }
.fineprint span { white-space: nowrap; }
.fineprint span + span::before { content: "·"; margin: 0 10px; color: var(--line-strong); }

/* Terminal */
.terminal-wrap {
  max-width: 860px; margin: 64px auto 0; text-align: left; padding: 1px; border-radius: 17px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 16%, transparent), transparent 75%);
  box-shadow: var(--shadow-lg);
}
.terminal { background: var(--code-bg); color: var(--code-fg); border-radius: 16px; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c32; display: block; }
.terminal-bar span { margin: 0 auto; font: 12px var(--mono); color: var(--code-muted); padding-right: 40px; }
.terminal pre { margin: 0; padding: 20px 24px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; }
.terminal .p { color: var(--code-muted); user-select: none; }
.terminal .cmd { color: #ffffff; }
.terminal .c { color: var(--code-muted); }
.terminal .ok { color: var(--code-ok); }
.terminal .id { color: var(--code-accent); }
.terminal .who { display: block; margin: 16px 0 4px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.1); color: var(--code-muted); font-size: 12px; letter-spacing: 0.02em; }

/* Sections */
section { padding: 104px 0; }
section.flush { padding-top: 0; }
.label { display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 16px; font-weight: 720; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.015em; font-weight: 650; }

/* Steps */
.pipeline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 6px;
  margin: 0 auto 28px; padding: 14px; max-width: 920px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 13.5px;
}
.pipeline span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-weight: 550; white-space: nowrap; }
.pipeline span.btc { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pipeline i { color: var(--faint); font-style: normal; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.step .icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
}
.step .icon svg { width: 20px; height: 20px; }
.step .n { position: absolute; top: 26px; right: 26px; font: 600 12px var(--mono); color: var(--faint); }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Install */
.install { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.install-head { padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab {
  font: 550 13.5px var(--sans); color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 7px 12px;
  transition: color .15s, background .15s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.install-body { padding: 18px; }
.panel[hidden] { display: none; }
.panel > p { margin: 4px 4px 2px; color: var(--muted); }
.panel > p.panel-note { margin-top: 12px; }
.install-foot { padding: 0 22px 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.install-foot p { margin: 6px 0 0; }

.codeblock { position: relative; }
.codeblock pre {
  margin: 0; background: var(--code-bg); color: var(--code-fg);
  border-radius: 12px; padding: 18px 20px; padding-right: 96px;
  font-size: 13.5px; line-height: 1.75;
  white-space: pre-wrap; overflow-wrap: break-word; /* wraps on screen; copies as one line */
}
.codeblock .c { color: var(--code-muted); }
.copy {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px var(--sans); color: var(--code-fg); cursor: pointer;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 6px 10px; transition: background .15s;
}
.copy:hover { background: rgba(255,255,255,0.14); }
.copy svg { width: 13px; height: 13px; }

/* Verify */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 0; }
ul.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
ul.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); font-size: 15.5px; }
ul.checks li strong { color: var(--fg); font-weight: 600; display: block; }
ul.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.mock-wrap { padding: 1px; border-radius: 17px; background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 16%, transparent), transparent 75%); box-shadow: var(--shadow-lg); }
.mock { background: var(--code-bg); color: var(--code-fg); border-radius: 16px; overflow: hidden; }
.mock-title { padding: 14px 18px 0; font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--code-muted); }
.mock-files { display: flex; gap: 10px; padding: 12px 18px 0; }
.file {
  display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 10px 12px; font: 12.5px var(--mono); color: var(--code-fg);
}
.file svg { width: 18px; height: 18px; flex: none; color: var(--code-muted); }
.file.ots svg { color: var(--code-ok); }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock pre { margin: 0; padding: 18px; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: break-word; }
.mock .p { color: var(--code-muted); }
.mock .ok { color: var(--code-ok); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { color: var(--muted); margin: -6px 2px 22px; }
.more { text-align: center; color: var(--muted); font-size: 15px; margin-top: 28px; }

/* CTA band */
.cta-band { padding: 0 0 104px; }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 60px 24px; box-shadow: var(--shadow);
}
.cta-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: -220px; height: 420px; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); }
.cta-card h2 { margin-bottom: 10px; }
.cta-card p { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer .brand { font-size: 14.5px; color: var(--fg); }
.site-footer .brand img { width: 20px; height: 20px; border-radius: 5px; }
.site-footer .right { margin-left: auto; display: flex; gap: 22px; }
.site-footer a:hover { color: var(--fg); }

/* Docs */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding: 56px 0 96px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc p { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--muted); border-left: 1px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); font-weight: 550; }
.prose { min-width: 0; max-width: 760px; }
.prose > h1 { font-size: 44px; text-align: left; margin: 0 0 14px; }
.prose .intro { font-size: 18px; }
.prose h2 { font-size: 26px; margin: 0 0 14px; letter-spacing: -0.025em; }
.doc-section { padding-top: 56px; scroll-margin-top: 40px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p strong, .prose li strong { color: var(--fg); font-weight: 600; }
.prose li { margin: 6px 0; }
.prose .codeblock { margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
td { color: var(--muted); }
td:first-child code { white-space: nowrap; }
.callout {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}
.callout svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.callout p { margin: 0; }

@media (max-width: 900px) {
  .steps, .split { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 40px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .toc { display: none; }
  .nav .hide-sm, .gh-label { display: none; }
  .nav .gh { padding: 7px 9px; }
  .hero { padding-top: 64px; }
  section { padding: 76px 0; }
  .cta-band { padding-bottom: 76px; }
}
