/* ============================================================
   paperpress landing - one stylesheet, consistent rhythm.

   Spacing scale (8px base):  8 · 12 · 16 · 20 · 28 · 40 · 64 · 96
   Type scale (rem):  0.78 · 0.875 · 1 · 1.125 · 1.25 · 1.5 · 2 · 2.6
   Radii:  4 (chip) · 6 (control) · 10 (card)
   ============================================================ */

:root {
  /* Palette: warm paper. Cream backgrounds, charcoal text, terracotta accent.
     Chosen to feel like a printed document, not a SaaS dashboard. */
  --text: #1c1814;
  --text-soft: #3d352e;
  --muted: #7a716a;
  --rule: #e7e1d4;
  --rule-strong: #d4ccbc;
  --bg: #fbf8f2;
  --bg-alt: #f5efe3;
  --bg-soft: #ede6d4;
  --accent: #1c1814;
  --accent-bright: #c1583c;
  --ok: #5d7c4f;
  --code-bg: #f3ecda;

  --font-display: ui-serif, 'Iowan Old Style', 'Apple Garamond', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   Nav
   ============================================================ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.brand:hover { text-decoration: none; }
.brand .mark,
.brand svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 22px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 6px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

/* ============================================================
   Layout
   ============================================================ */
main { max-width: 1080px; margin: 0 auto; padding: 64px 28px 96px; }

.block { padding: 80px 0; border-top: 1px solid var(--rule); }
.block-head { max-width: 640px; margin-bottom: 32px; }
.block-head h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}
.block-head p {
  font-size: 1rem;
  color: var(--muted);
}
.block h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.15;
}
.block h2 + p,
.block h2 + .lede {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin-top: -20px;
  margin-bottom: 32px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 24px 0 80px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent-bright); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-row.center { justify-content: center; }

/* Hero email signup form */
.signup {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.signup input[type="email"] {
  flex: 1 1 220px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.signup input[type="email"]:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}
.signup input[type="email"]:disabled { background: var(--bg-soft); color: var(--muted); }
.signup button { white-space: nowrap; }
.signup button:disabled { opacity: 0.7; cursor: default; }
.signup-msg {
  font-size: 13.5px;
  margin: 6px 0 4px;
  padding: 6px 10px;
  border-radius: 4px;
  max-width: 460px;
}
.signup-msg.ok { color: #3d5b32; background: #ecf0d8; border: 1px solid #d4dcaa; }
.signup-msg.err { color: #8a3624; background: #f5e1d8; border: 1px solid #e3c2b1; }
.signup-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.signup-note a { color: var(--muted); text-decoration: underline; }
.signup-note a:hover { color: var(--text); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--rule-strong);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 120ms ease, transform 80ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--bg-soft); border-color: var(--text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.primary:hover { background: #1f2937; border-color: #1f2937; }

/* ============================================================
   Hero visual - stacked paper preview
   ============================================================ */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paper {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(10,37,64,0.08), 0 2px 4px rgba(10,37,64,0.04);
}
.paper-back {
  position: absolute;
  width: 75%;
  height: 88%;
  top: 8%;
  right: 0;
  transform: rotate(3deg);
  z-index: 1;
  background: #f9fafb;
}
.paper-front {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 1 / 1.18;
  padding: 24px 26px 18px;
  display: flex;
  flex-direction: column;
}
.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}
.paper-logo { width: 32px; height: 10px; background: var(--accent); border-radius: 2px; }
.paper-title {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.paper-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bar { background: #e9ecf1; border-radius: 2px; }
.bar.h1 { height: 13px; width: 70%; background: var(--accent); margin-bottom: 6px; }
.bar.h2 { height: 9px; width: 38%; background: var(--text); margin-top: 8px; }
.bar.p { height: 5px; }
.bar.p.short { width: 60%; }
.paper-table {
  margin: 6px 0 2px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.paper-table .row { display: flex; }
.paper-table .row + .row { border-top: 1px solid var(--rule); }
.paper-table .row span { flex: 1; height: 14px; padding: 4px 8px; }
.paper-table .row span + span { border-left: 1px solid var(--rule); }
.paper-table .row.head { background: var(--bg-soft); }
.paper-table .row.head span { height: 12px; }
.paper-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Try-it widget (anonymous demo on the landing)
   ============================================================ */
.try-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.try-form input[type="url"] {
  flex: 1 1 260px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.try-form input[type="url"]:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(28, 24, 20, 0.08);
}
.try-form input[type="url"]:disabled { background: var(--bg-soft); color: var(--muted); }
.try-form button { white-space: nowrap; }
.try-form button:disabled { opacity: 0.7; cursor: default; }

.try-msg {
  font-size: 13.5px;
  margin: 6px 0 4px;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 560px;
}
.try-msg.err { color: #8a3624; background: #f5e1d8; border: 1px solid #e3c2b1; }
.try-msg.ok { color: #3d5b32; background: #ecf0d8; border: 1px solid #d4dcaa; }

.try-result {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
}
.try-kit { display: flex; flex-direction: column; gap: 12px; }
.try-kit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.try-kit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 50px;
  flex-shrink: 0;
}
.try-kit-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.try-kit-logo {
  max-width: 80px;
  max-height: 28px;
  object-fit: contain;
}
.try-kit-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-word;
}
.try-kit-mono {
  font-family: var(--font-mono);
  font-size: 12px;
}
.try-kit-empty { color: var(--muted); font-style: italic; }
.try-elapsed {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.try-output { display: flex; flex-direction: column; gap: 12px; }
/* IMG starts hidden via JS toggle. When it loads we reveal it, so visitors
   never see a beige placeholder box with the alt text peeking through. */
.try-card-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  object-fit: cover;
}
.try-card-preview[hidden] { display: none; }
.try-card-loading[hidden] { display: none; }
.try-card-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: 8px;
  border: 1px dashed var(--rule);
  color: var(--muted);
  font-size: 13.5px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(193, 88, 60, 0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: try-shimmer 1.4s ease-in-out infinite;
}
@keyframes try-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.try-actions { margin: 0; }
.try-pdf-link { font-size: 14px; }
.try-final-cta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.try-final-cta a { color: var(--muted); text-decoration: underline; }
.try-final-cta a:hover { color: var(--text); }

@media (max-width: 720px) {
  .try-result { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
}

/* ============================================================
   Steps (How it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step { padding: 0; }
.step .step-n {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* "When you'd use this" — concrete use cases right after the hero. */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.use-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
}
.use-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.use-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.use-card em { font-style: italic; color: var(--text-soft); }

/* ============================================================
   Gallery (theme + brand-kit thumbnails)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.gallery-card:hover {
  text-decoration: none;
  border-color: var(--rule-strong);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
  transform: translateY(-2px);
}
.gallery-thumb {
  display: block;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 595 / 842;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.gallery-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
}
.gallery-meta strong { font-weight: 600; font-size: 14px; }
.gallery-meta .sub { font-size: 12px; color: var(--muted); }
.gallery-meta .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

/* ============================================================
   Code blocks
   ============================================================ */
.code, pre.code {
  background: var(--code-bg);
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  border: 1px solid var(--rule);
}
.code.response { background: #eef1de; border-color: #d4dcaa; }
:not(pre) > code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  border: 1px solid var(--rule);
}

/* ============================================================
   Pricing
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.tiers.tiers-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}
.tier {
  border: 1px solid var(--rule);
  padding: 28px 24px;
  border-radius: 10px;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border: 1px solid var(--text);
  box-shadow: 0 8px 24px rgba(10,37,64,0.08);
}
.tier-pill {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
}
.tier h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.tier .price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.tier .price .per { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.tier .for { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 1.4em; }
.tier ul { list-style: none; margin-top: 20px; padding: 0; }
.tier li {
  font-size: 14px;
  color: var(--text-soft);
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.tier li:first-child { border-top: 0; padding-top: 4px; }
.pricing-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: 96px 0 32px;
  border-top: 1px solid var(--rule);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  line-height: 1.2;
}
.final-cta .cta-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 40px 28px 56px;
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
  color: var(--muted);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .brand { color: var(--muted); font-weight: 600; font-size: 15px; }
.footer-inner .brand .mark,
.footer-inner .brand svg { color: var(--muted); width: 20px; height: 20px; flex: 0 0 20px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-fineprint {
  max-width: 1080px;
  margin: 24px auto 0;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   Docs pages (rendered from docs/*.md by scripts/build-docs.ts)
   ============================================================ */
main.doc { max-width: 760px; padding-bottom: 96px; }
main.doc article { padding-top: 8px; }
main.doc h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
main.doc h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
main.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
main.doc h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
main.doc h2 a, main.doc h3 a, main.doc h1 a { color: inherit; text-decoration: none; }
main.doc p { margin: 12px 0; color: var(--text-soft); }
main.doc ul, main.doc ol { margin: 12px 0 12px 24px; }
main.doc li { margin: 6px 0; }
main.doc pre {
  background: var(--code-bg);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--rule);
}
main.doc pre code { background: transparent; padding: 0; font-size: 13px; border: 0; }
main.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
main.doc th, main.doc td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; }
main.doc th { background: var(--bg-alt); font-weight: 600; }
main.doc blockquote {
  border-left: 3px solid var(--rule);
  padding: 4px 16px;
  margin: 16px 0;
  color: var(--muted);
}
main.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

/* Docs: top-of-page table of contents */
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  padding: 14px 18px;
  margin: 18px 0 28px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 13.5px;
}
.doc-toc a {
  display: inline-block;
  padding: 4px 10px;
  color: var(--text-soft);
  border-radius: 4px;
  text-decoration: none;
}
.doc-toc a:hover { background: var(--bg); color: var(--text); text-decoration: none; }

/* Docs: inline image gallery (theme/brand-kit samples shown inside the doc).
   Thumbnails crop the top of each PDF (header + h1 + first lines) instead of
   showing the full page. At ~220px wide a full A4 page is unreadable; the
   header crop shows the visual identity of each theme at a glance and keeps
   cards compact enough for labels to sit on-screen with the image. */
.doc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.doc-gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.doc-gallery-card:hover {
  text-decoration: none;
  border-color: var(--rule-strong);
  box-shadow: 0 6px 16px rgba(28, 24, 20, 0.08);
  transform: translateY(-2px);
}
.doc-gallery-card img {
  display: block;
  width: 100%;
  height: auto;          /* override the HTML height="842" attribute */
  aspect-ratio: 4 / 3;   /* then let CSS govern the box shape */
  object-fit: cover;
  object-position: 50% 0%;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.doc-gallery-card strong {
  display: block;
  padding: 12px 14px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.doc-gallery-card .sub {
  display: block;
  padding: 2px 14px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Docs: generic image (anything else inside the article) */
main.doc article > p > img,
main.doc article > img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--rule);
  margin: 16px 0;
}

ul.doc-index { list-style: none; margin: 24px 0; padding: 0; }
ul.doc-index li { margin: 0 0 12px; }
ul.doc-index a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--text);
}
ul.doc-index a:hover { border-color: var(--text); text-decoration: none; }
ul.doc-index strong { display: block; font-weight: 600; margin-bottom: 4px; }
ul.doc-index span { color: var(--muted); font-size: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 16px 0 64px;
  }
  .hero h1 { font-size: 2.6rem; }
  .hero-visual { min-height: 320px; max-width: 420px; margin: 0 auto; }
  .tiers { grid-template-columns: 1fr; }
  .block { padding: 64px 0; }
}
@media (max-width: 600px) {
  main { padding: 40px 20px 64px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lede { font-size: 1rem; }
  .block { padding: 48px 0; }
  .block h2,
  .block-head h2,
  .final-cta h2 { font-size: 1.5rem; }
  .nav { padding: 14px 18px; }
  .nav-links a:not([href="/docs/"]):not([href*="github.com"]) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  main.doc h1 { font-size: 1.6rem; }
}
