/* tamag0 — informational pages */
:root {
  --bg: #fafaf9;
  --bg-soft: #f6f6f4;
  --card: #ffffff;
  --border: #e2e2df;
  --border-def: #c6c6c2;
  --text: #131311;
  --muted: #61615b;
  --accent: #6a3fd6;
  --accent-2: #8b5cf6;
  --accent-hover: #5a2fbf;
  --accent-orchid: #b56ab0;
  --accent-soft: rgba(106,63,214,.06);
  --accent-bord: rgba(106,63,214,.22);
  --ok: #16a34a;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.12), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --radius: 12px;
  --maxw: 1120px;
  --maxw-read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(106,63,214,.06), transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -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 clamp(24px, 4vw, 40px); }

header {
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 28px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 13.5px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.lang-switch {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border-def);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.page-hero { padding: 74px 0 48px; max-width: 860px; }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-bord);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.25px;
  margin: 0 0 20px;
  font-weight: 700;
}
h1 .grad {
  background: linear-gradient(95deg, var(--accent-orchid), var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin: 0; max-width: var(--maxw-read); }
.lead strong { color: var(--text); font-weight: 600; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 6vw, 72px); align-items: start; }
.main-copy { max-width: var(--maxw-read); }
.section { padding: 34px 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: 0; padding-top: 0; }
h2 { font-size: 26px; line-height: 1.18; letter-spacing: -.45px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.card, .side-card, details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card { padding: 24px 22px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.side-card { padding: 22px 20px; }
.page-grid > aside { position: sticky; top: 24px; align-self: start; }
.side-card + .side-card { margin-top: 16px; }
.side-card h2, .side-card h3 { font-size: 15px; margin-bottom: 10px; }
.side-card p, .side-card li { font-size: 13.5px; color: var(--muted); }
.side-card ul { padding-left: 18px; }
.side-card .btn-link { margin-top: 8px; display: inline-block; }

.faq-list { display: grid; gap: 12px; }
details { padding: 0; overflow: hidden; }
summary { cursor: pointer; padding: 20px 22px; font-weight: 600; color: var(--text); }
summary::-webkit-details-marker { color: var(--accent); }
details > div { padding: 0 22px 22px; color: var(--muted); }
details p:last-child { margin-bottom: 0; }

.legal-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 10px; }
.legal-list { padding-left: 20px; color: var(--muted); }
.legal-list strong { color: var(--text); }

.founder-quote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
.founder-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--muted);
}
.creds { list-style: none; padding-left: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.creds li { padding-left: 22px; position: relative; font-size: 14.5px; color: var(--muted); }
.creds li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.creds strong { color: var(--text); font-weight: 600; }

.cta-band {
  margin: 44px 0 0;
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.cta-band h2 { margin-bottom: 10px; }
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }

footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer .brand-sm { font-family: var(--mono); }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-grid > aside { position: static; }
}
@media (max-width: 620px) {
  header { align-items: flex-start; }
  .header-actions { gap: 12px; }
  .site-nav { order: 2; width: 100%; justify-content: flex-end; gap: 14px; }
  .page-hero { padding: 48px 0 34px; }
  .cards { grid-template-columns: 1fr; }
  footer { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 12px; }
}

/* ---- Rendered documentation (markdown → HTML, built from docs/*.md) ---- */
.doc-content { max-width: var(--maxw-read); }
.doc-content > :first-child { margin-top: 0; }
.doc-content h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.6px; margin: 40px 0 16px; }
.doc-content h2 { font-size: 24px; margin: 40px 0 14px; padding-top: 26px; border-top: 1px solid var(--border); }
.doc-content h3 { font-size: 18px; margin: 28px 0 8px; }
.doc-content p, .doc-content li { color: var(--text); }
.doc-content ul, .doc-content ol { margin: 0 0 16px; padding-left: 22px; }
.doc-content a { text-decoration: underline; }
.doc-content code {
  font-family: var(--mono); font-size: .86em;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: .12em .4em;
}
.doc-content pre {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; overflow: auto;
  box-shadow: var(--shadow-sm); margin: 0 0 18px;
}
.doc-content pre code { background: none; border: 0; padding: 0; font-size: 13px; }
.doc-content blockquote {
  margin: 18px 0; padding: 12px 18px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
}
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-content table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14px; }
.doc-content th, .doc-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc-content th { background: var(--bg-soft); font-weight: 600; }
.doc-content hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.doc-content img { max-width: 100%; height: auto; }
