:root {
  --bg: #FAFAFA; --card: #ffffff; --muted-bg: #F4F4F5;
  --border: #E7E7EA; --text: #09090B; --muted: #6B6B73;
  --accent: #0F766E; --accent-fg: #ffffff;
  --accent-soft: #E6F4F2;
  --radius: 12px; --radius-sm: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090B; --card: #18181B; --muted-bg: #27272A;
    --border: #27272A; --text: #FAFAFA; --muted: #A1A1AA;
    --accent: #2DD4BF; --accent-fg: #09090B;
    --accent-soft: #11463F;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: .875em; }
:not(pre) > code { background: var(--muted-bg); border: 1px solid var(--border); border-radius: 6px; padding: .1em .35em; }
pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; line-height: 1.5; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 5px 5px 5px; border-left: 3px solid var(--accent-fg);
  border-bottom: 3px solid var(--accent-fg); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--muted-bg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.btn:hover { background: var(--muted-bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; }

/* landing */
.hero { padding: 72px 0 32px; text-align: center; }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); border: 1px solid var(--border);
  background: var(--card); border-radius: 999px; padding: 4px 12px; }
.pill b { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 20px auto 16px; max-width: 820px; font-weight: 700; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.shot { margin: 48px auto 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 48px -24px rgb(0 0 0 / .18); }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
h2.section-title { font-size: clamp(28px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 12px; }
p.section-lead { color: var(--muted); max-width: 680px; margin: 0 0 36px; font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 18px; height: 18px; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.gallery figcaption b { color: var(--text); }
.palette { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.swatch .chip { height: 64px; }
.swatch .meta { padding: 10px 12px; font-size: 13px; }
.swatch .meta code { background: none; border: 0; padding: 0; font-size: 12px; color: var(--text); }
.swatch .meta span { display: block; color: var(--muted); font-size: 12px; }
.palette .chip-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .palette .chip-light { display: none !important; } .palette .chip-dark { display: block !important; } }
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { color: var(--muted); padding-bottom: 16px; }
.faq .answer p { margin: 0; }
.cta { text-align: center; }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 24px 80px; max-width: 1120px; margin: 0 auto; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; }
.toc p { font-weight: 600; margin: 0 0 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--text); }
.toc a.l3 { padding-left: 14px; font-size: 13px; }
.prose { min-width: 0; }
.prose h1 { font-size: 36px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 16px; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 48px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 18px; margin: 32px 0 8px; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; left: -1.1em; color: var(--muted); text-decoration: none; opacity: 0; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--card); }
  .nav a.hide-sm { display: none; }
  .hero { padding-top: 48px; }
}
