:root {
  --bg: #ffffff;
  --bg-alt: #f6f6fb;
  --surface: #ffffff;
  --text: #171a2b;
  --muted: #5c6178;
  --border: #e3e4ef;
  --accent: #6a4cf5;
  --accent-hover: #5636e6;
  --accent-soft: #efebff;
  --ok: #17a05d;
  --bad: #e5484d;
  --code-bg: #f3f3f8;
  --grad: linear-gradient(120deg, #7c5cff 0%, #2f8cf6 100%);
  --shadow: 0 1px 2px rgba(20, 20, 50, .05), 0 8px 24px rgba(20, 20, 50, .07);
  --shadow-lg: 0 24px 60px rgba(20, 20, 60, .18);
  --radius: 14px;
  --max: 1160px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e17;
    --bg-alt: #12131f;
    --surface: #171828;
    --text: #e8e9f3;
    --muted: #a0a3bd;
    --border: #272940;
    --accent: #9b85ff;
    --accent-hover: #b4a3ff;
    --accent-soft: #221d45;
    --code-bg: #1c1d2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .9em; }
:not(pre) > code { background: var(--code-bg); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.08rem; white-space: nowrap; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
}
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: .94rem; font-weight: 500; }
.site-nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a.nav-cta { background: var(--grad); color: #fff; font-weight: 650; margin-left: 6px; box-shadow: 0 6px 18px rgba(106, 76, 245, .35); }
.site-nav a.nav-cta:hover { filter: brightness(1.08); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 18px; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: .98rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(106, 76, 245, .32);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 12px 28px rgba(106, 76, 245, .42); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: #fff; background: #090a18; padding: 72px 0 84px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero::before { width: 620px; height: 620px; left: -160px; top: -260px; background: #6a4cf5; animation: drift 16s ease-in-out infinite alternate; }
.hero::after { width: 560px; height: 560px; right: -180px; bottom: -280px; background: #1f7ef0; animation: drift 19s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(90px, 60px) scale(1.12); } }
.hero .grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero { padding: 44px 0 60px; } }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #dcdcf5;
  font-size: .88rem;
}
.pill:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); }
.pill b { flex: none; background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .75rem; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); margin: 22px 0 18px; letter-spacing: -.025em; font-weight: 800; }
.hero h1 .grad-text { background: linear-gradient(120deg, #b6a6ff 0%, #6fc3ff 100%); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: #c3c5e0; max-width: 620px; margin: 0 0 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero .fine { margin-top: 22px; color: #9093b5; font-size: .9rem; }

/* animated call ladder */
.ladder-card {
  background: rgba(20, 21, 42, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 92, 255, .15);
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
}
.bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #a9abc9; font-size: .78rem; white-space: nowrap; overflow: hidden; }
.bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.ladder { position: relative; padding: 14px 18px 18px; }
.ladder .ends { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-weight: 700; margin-bottom: 8px; font-size: .74rem; }
.ladder .ends span:last-child { text-align: right; }
.ladder .lanes { position: relative; }
.ladder .lanes::before, .ladder .lanes::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .18); }
.ladder .lanes::before { left: 0; }
.ladder .lanes::after { right: 0; }
.msg { position: relative; height: 27px; color: #e3e4ff; }
.msg .lbl { position: absolute; left: 0; right: 0; top: 1px; text-align: center; font-size: .74rem; white-space: nowrap; }
.msg .line { position: absolute; left: 2px; right: 2px; bottom: 6px; height: 2px; background: #8d76ff; }
.msg .line::after { content: ""; position: absolute; top: -4px; border: 5px solid transparent; }
.msg.r .line::after { right: -2px; border-left: 8px solid #8d76ff; border-right: 0; }
.msg.l .line { background: #4aa6ff; }
.msg.l .line::after { left: -2px; border-right: 8px solid #4aa6ff; border-left: 0; }
.msg.rtp .line { background: repeating-linear-gradient(90deg, #2bd88f 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: flow .7s linear infinite; }
.msg.rtp .line::after { display: none; }
.msg.rtp .lbl { color: #7af0be; }
@keyframes flow { to { background-position: 28px 0; } }
.ladder-result { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ladder-result span { border-radius: 6px; padding: 3px 8px; background: rgba(255, 255, 255, .07); color: #c7c9e6; font-size: .74rem; }
.ladder-result .pass { background: #17a05d; color: #fff; font-weight: 700; }
.js .ladder.anim .msg, .js .ladder.anim .ladder-result { opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.js .ladder.anim .msg.on, .js .ladder.anim .ladder-result.on { opacity: 1; transform: none; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 56px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .08); }
.stats div { background: rgba(14, 15, 32, .78); padding: 18px 14px; text-align: center; }
.stats b { display: block; font-size: 1.45rem; color: #fff; }
.stats span { color: #9a9cc0; font-size: .85rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; } .stats div:last-child { grid-column: span 2; } }

/* ------------------------------------------------------------ sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-alt); }
@media (max-width: 700px) { section.block { padding: 60px 0; } }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.feature { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(106, 76, 245, .3); }
.icon svg { width: 24px; height: 24px; }
.feature .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; }
.new-list .card { padding: 18px 20px; }
.new-list .card h3 { font-size: 1rem; margin-bottom: 4px; }
.new-list .card p { font-size: .92rem; }

/* showcase tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 auto 32px; width: max-content; max-width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 15px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 44px; align-items: center; }
.panel[hidden] { display: none; }
@media (max-width: 900px) { .panel { grid-template-columns: minmax(0, 1fr); gap: 24px; } .panel .shot { order: 2; } }
.panel h3 { font-size: 1.6rem; margin: 0 0 12px; }
.panel p { color: var(--muted); margin: 0 0 14px; }
.panel ul, .checks { margin: 0 0 18px; padding: 0; list-style: none; }
.panel li, .checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.panel li::before, .checks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 800; display: grid; place-items: center; }
.shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.shot img { display: block; width: 100%; }
.panel .shot img { max-height: 540px; object-fit: cover; object-position: top left; }

/* terminal */
.term { background: #0c0d1a; border: 1px solid #262842; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.term .bar { background: #15162a; }
.term pre { margin: 0; padding: 18px; color: #d7d9f2; font-size: .78rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; min-height: 330px; }
.term .p { color: #7af0be; }
.term .k { color: #b6a6ff; }
.term .ok { color: #2bd88f; font-weight: 700; }
.term .cursor { display: inline-block; width: 8px; height: 1.1em; background: #b6a6ff; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 14px; }
.split > div > p { color: var(--muted); font-size: 1.05rem; }

/* comparison */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .95rem; }
.compare thead th { font-size: 1rem; background: var(--bg-alt); }
.compare thead th.us { background: var(--grad); color: #fff; }
.compare td.us { background: color-mix(in srgb, var(--accent) 7%, transparent); font-weight: 550; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--muted); font-weight: 600; width: 26%; }
@media (max-width: 640px) {
  /* On a phone every row of the comparison is a small card: the question, then both answers with their names */
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--border); padding: 6px 0 10px; }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { display: block; border: 0; padding: 4px 16px; }
  .compare td:first-child { width: auto; color: var(--text); font-size: 1rem; padding-top: 10px; }
  .compare td.us { background: none; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .compare td.us::before { color: var(--accent); }
}
.yes { color: var(--ok); font-weight: 800; margin-right: 4px; }
.no { color: var(--bad); font-weight: 800; margin-right: 4px; }
.footnote { color: var(--muted); font-size: .86rem; margin-top: 14px; }

/* call to action */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 56px 24px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(124, 92, 255, .9), transparent 50%), radial-gradient(circle at 85% 80%, rgba(47, 140, 246, .9), transparent 50%), #0f1028;
}
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 12px; }
.cta p { color: #d4d6f2; margin: 0 auto 26px; max-width: 560px; }
.cta .btn-row { justify-content: center; }
.cta .btn { background: #fff; color: #2d1d8f; box-shadow: none; }
.cta .btn:hover { color: #2d1d8f; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .ladder.anim .msg, .js .ladder.anim .ladder-result { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------ inner pages */
.page-head { position: relative; overflow: hidden; background: #0b0c1d; color: #fff; padding: 56px 0 48px; }
.page-head::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -300px; border-radius: 50%; background: #6a4cf5; filter: blur(90px); opacity: .5; }
.page-head::after { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -330px; border-radius: 50%; background: #1f7ef0; filter: blur(90px); opacity: .45; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.page-head p { margin: 0; color: #c3c5e0; max-width: 760px; }
.page-head a { color: #c4b8ff; }

.shots { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.shots figure { margin: 0; }
.shots a.shot { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.shots a.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s ease; }
.shots a.shot:hover img { transform: scale(1.03); }
.shots figcaption { margin-top: 10px; font-size: .94rem; }
.shots figcaption b { display: block; }
.shots figcaption span { color: var(--muted); }
details.older { margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 6px 20px; }
details.older summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
details.older .shots { padding: 10px 0 20px; }
details.older h3 { margin: 18px 0 14px; }

.lightbox { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 5, 15, .92); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { margin: 14px 0 4px; font-size: 1.05rem; }
.video-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.release { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; }
@media (max-width: 700px) { .release { grid-template-columns: minmax(0, 1fr); } }
.release h3 { margin: 0 0 4px; font-size: 1.35rem; }
.release .meta { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.release ul { margin: 0; padding-left: 20px; }
.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; vertical-align: middle; }
.badge.grey { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }

.price-card { display: flex; flex-direction: column; gap: 12px; }
.price-card .price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; }
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card form { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.price-card label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-card input[type="text"] { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; }
.price-card input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.prose { max-width: 780px; }
.prose p { margin: 0 0 1em; }
.notes h3 { font-size: 1.05rem; margin: 26px 0 6px; }
.notes ul { margin: 0 0 8px; padding-left: 22px; }
.notes li { margin: 4px 0; }
.notes pre { background: var(--code-bg); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }

/* ------------------------------------------------------------ manual */
.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 52px; padding-top: 32px; padding-bottom: 72px; }
.docs-side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 6px; font-size: .92rem; }
.docs-side .chap { margin: 18px 0 6px; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.docs-side ul { list-style: none; margin: 0; padding: 0; }
.docs-side a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--text); }
.docs-side a:hover { background: var(--bg-alt); text-decoration: none; }
.docs-side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.docs-side .pdf { margin-top: 18px; width: 100%; }
.docs-toggle { display: none; width: 100%; margin-bottom: 18px; }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; }
  .docs-toggle { display: inline-flex; }
  .docs-side { display: none; position: static; max-height: none; margin-bottom: 24px; padding: 8px 16px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .docs-side.open { display: block; }
}
.search input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; }
.search-results li a { display: block; padding: 8px 10px; border-radius: 8px; }
.search-results li a:hover { background: var(--bg-alt); text-decoration: none; }
.search-results small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.search-results mark { background: var(--accent-soft); color: inherit; }
.article { min-width: 0; }
.article .crumb { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.article h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 0 0 18px; }
.article h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.article h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.article p, .article li { max-width: 820px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 5px 0; }
.article pre.code { position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; font-size: .84rem; }
.copy { position: absolute; top: 8px; right: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 6px; font: inherit; font-size: .75rem; padding: 3px 8px; cursor: pointer; }
.copy:hover { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.table-wrap th, .table-wrap td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--bg-alt); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap code { overflow-wrap: normal; }
.table-wrap code.nw { white-space: nowrap; }
.table-wrap td > code { background: none; padding: 0; }
.side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-bottom: 14px; }
.side pre.code { margin: 0; height: 100%; }
.fig { margin: 22px 0; text-align: center; }
.fig a { display: inline-block; max-width: 100%; }
.fig img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.fig figcaption, .caption { color: var(--muted); font-size: .88rem; font-style: italic; margin-top: 8px; text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; max-width: 48%; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: .8rem; }
.pager .next { margin-left: auto; text-align: right; }
.onpage { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); font-size: .94rem; }
.onpage b { display: block; margin-bottom: 4px; }
.onpage ul { margin: 0; padding-left: 18px; }
.chapters .card ul { margin: 10px 0 0; padding-left: 18px; }
.chapters .card li { margin: 4px 0; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--muted); font-size: .92rem; padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: span 2; } }
.site-footer h4 { margin: 0 0 10px; color: var(--text); font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; }
