/* Public website */
body.site { background: var(--bg); }
@media (prefers-color-scheme: dark) { body.site { --bg: #121019; --bg-2: #181521; --surface: #1d1a27; --ink: #f1ecf7; --ink-2: #d5cfe0; --muted: #a29bb2; --line: #2d2939; --line-2: #3a3549; --accent-soft: #3a1f19; --teal: #5cc2b8; --teal-soft: #173230; color-scheme: dark; } }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.sh { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sh .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand i { width: 30px; height: 30px; border-radius: 9px; background: url(/brand/mark.svg) center/cover; }
.sn { display: flex; gap: 4px; flex: 1; } .sn a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: 14.5px; color: var(--ink-2); } .sn a:hover, .sn a.on { background: var(--bg-2); color: var(--ink); }
.sa { display: flex; gap: 8px; align-items: center; } .lang { font-weight: 700; font-size: 13px; text-decoration: none; padding: 6px 8px; color: var(--muted); }
.mb { display: none; margin-left: auto; } .mnav { display: grid; padding: 8px 20px 16px; gap: 2px; border-top: 1px solid var(--line); } .mnav a { padding: 10px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.hero { padding: 64px 0 40px; background: radial-gradient(900px 420px at 85% 10%, var(--accent-soft), transparent 65%), radial-gradient(700px 380px at 0% 100%, var(--teal-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker { font-weight: 650; color: var(--accent); font-size: 14px; margin-bottom: 10px; } .kicker a { color: inherit; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 18px; max-width: 17ch; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 10px; } .fine { font-size: 13px; color: var(--muted); }
/* fan-out graphic */
.fan { display: grid; grid-template-columns: 170px 1fr 170px; align-items: center; min-height: 380px; }
.clip { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 16px; aspect-ratio: 9 / 13; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; box-shadow: 0 30px 60px -25px rgba(23,21,31,.55); transform: rotate(-3deg); }
.clip .play { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 34px solid var(--accent); border-top: 21px solid transparent; border-bottom: 21px solid transparent; transform: translateX(6px); }
.clip .bar { height: 5px; background: color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 9px; overflow: hidden; } .clip .bar i { display: block; width: 62%; height: 100%; background: var(--accent); animation: up 3.5s ease-in-out infinite; }
.clip small { font: 11px var(--mono); opacity: .75; }
@keyframes up { 0% { width: 8%; } 70%, 100% { width: 100%; } }
.wires { width: 100%; height: 360px; } .wires path { fill: none; stroke: var(--line-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; animation: flow 1.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.targets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; height: 360px; align-content: space-between; }
.targets li { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px 10px 5px 5px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  animation: pop .5s ease both; animation-delay: calc(var(--i) * 90ms); } .targets em { margin-left: auto; font-style: normal; font: 11px var(--mono); color: var(--muted); } .targets .pl { width: 24px; height: 24px; font-size: 10px; }
@keyframes pop { from { opacity: 0; transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .clip .bar i, .wires path, .targets li { animation: none; } }
.band { padding: 56px 0; } .band h2, .ph h1 { letter-spacing: -.03em; } .band > h2 { font-size: clamp(24px, 3vw, 34px); max-width: 22ch; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); } .steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pcard { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .15s, border-color .15s; }
.pcard:hover { transform: translateY(-2px); border-color: var(--line-2); } .pcard .pl { grid-row: span 2; } .pcard small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pl.big { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; } .pl.huge { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; margin-bottom: 14px; }
.ink { background: #17151f; color: #f3efe9; padding: 64px 0; } .ink .lead { color: #cfc8dc; } .ink h2 { font-size: clamp(24px, 3vw, 34px); }
.ink .code { background: #0f0d15; border-color: #2d2939; color: #e8e2f0; } .btn.on-ink { color: #f3efe9; border-color: #4a4458; } .btn.on-ink:hover { background: #2a2733; }
.code { font: 13px/1.6 var(--mono); padding: 18px 20px; border-radius: 14px; white-space: pre; overflow-x: auto; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; } .ticks li { padding-left: 24px; position: relative; } .ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.g4c { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .g2c { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); } .tile p { color: var(--ink-2); margin: 0; }
.glyph { display: block; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px; background: conic-gradient(from 210deg, var(--accent), var(--teal), var(--accent)); mask: radial-gradient(circle at 50% 50%, transparent 7px, #000 8px); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.range { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; } .range input { flex: 1; accent-color: var(--accent); } .range output { font-size: 22px; font-weight: 750; }
.calc-out { display: grid; gap: 4px; padding: 22px; border-radius: 16px; background: var(--bg-2); } .calc-out b { font-size: 22px; } .calc-out .big { font-size: 40px; font-weight: 760; letter-spacing: -.03em; line-height: 1.1; }
.cmp { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pplans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pplan { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); } .pplan.hl { border: 2px solid var(--accent); }
.pplan .price span { font-size: 36px; font-weight: 760; letter-spacing: -.03em; } .pplan ul { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; font-size: 14px; flex: 1; }
.pplan li { padding-left: 18px; position: relative; } .pplan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.pplan .btn { margin-top: auto; }
.switch { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-top: 8px; } .switch button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 600 13.5px var(--font); cursor: pointer; color: var(--muted); }
.switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.center { text-align: center; margin-top: 18px; }
.cta { text-align: center; } .cta h2 { margin-left: auto; margin-right: auto; } .cta .lead { margin: 0 auto 18px; }
.ph { padding: 52px 0 26px; } .ph h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; max-width: 20ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--surface); }
.prose { max-width: 760px; padding: 40px 0 60px; } .prose h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; } .prose h2 { margin-top: 1.8em; font-size: 23px; } .prose h3 { margin-top: 1.4em; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); } .prose table { margin: 16px 0; display: block; overflow-x: auto; } .prose pre { margin: 16px 0; }
.prose code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; } .prose pre code { background: none; padding: 0; }
.prose.legal p, .prose.legal li { font-size: 15px; } .prose blockquote { margin: 16px 0; padding: 4px 18px; background: var(--bg-2); border-radius: 12px; }
.cta-box { margin-top: 40px; padding: 26px; border-radius: 18px; background: var(--ink); color: var(--bg); } .cta-box p { color: inherit; opacity: .8; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 60px; }
.post { display: block; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; } .post h2 { font-size: 21px; margin: 8px 0; } .post p { color: var(--ink-2); } .post span { color: var(--accent); font-weight: 650; }
.docs { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding-bottom: 60px; } .toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; } .toc a { text-decoration: none; padding: 6px 10px; border-radius: 8px; } .toc a:hover { background: var(--bg-2); }
.op { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); } .op summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; } .op[open] { padding-bottom: 12px; } .op > :not(summary) { margin-left: 14px; margin-right: 14px; }
.op summary span:last-child { color: var(--muted); font-size: 14px; } .m { font: 700 11px var(--mono); padding: 4px 8px; border-radius: 6px; color: #fff; background: #555; min-width: 56px; text-align: center; }
.m-get { background: #1d6b66; } .m-post { background: #c2410c; } .m-patch { background: #7c3aed; } .m-delete { background: #b91c1c; } .params td { font-size: 13px; }
.sf { border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; background: var(--bg-2); } .grid4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.sf a:not(.brand) { display: block; text-decoration: none; color: var(--ink-2); padding: 3px 0; font-size: 14px; } .sf b { display: block; margin-bottom: 8px; } .sf .fine { margin-top: 26px; }
@media (max-width: 980px) {
  .sn, .sa { display: none; } .mb { display: inline-flex; }
  .hero-grid, .split, .calc { grid-template-columns: 1fr; } .fan { grid-template-columns: 120px 1fr 150px; min-height: 0; } .g4c { grid-template-columns: repeat(2, 1fr); } .pplans { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 36px; } .fan { grid-template-columns: 96px 1fr 138px; } .wires, .targets { height: 300px; } .targets li { font-size: 12px; padding: 4px 8px 4px 4px; } .targets em { display: none; }
  .steps, .g4c, .g2c, .pplans, .posts { grid-template-columns: 1fr; } .pgrid { grid-template-columns: 1fr; } .docs { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; }
  .band { padding: 40px 0; } .calc { padding: 20px; } .grid4 { grid-template-columns: 1fr; } .code { font-size: 12px; }
}
