/* ============ Brand tokens (mirrored 1:1 from the SSIM app) ============ */
:root {
  --bg: #0a0a0f; --panel: #121119; --panel-2: #1e1c29; --line: #2c2937; --line-2: #46424f;
  --text: #f7f7fa; --text-2: #eeedf3; --muted: #928da3; --muted-2: #6b6678;
  --brand: #9333ea; --brand-d: #7e22ce; --brand-l: #c084fc;
  --discord: #5865f2; --discord-d: #4752c4;
  --glow: 0 0 30px -8px rgba(147,51,234,.55); --radius: 14px; --radius-sm: 10px; --maxw: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-feature-settings: "cv02","cv03","cv04","cv11"; }
body {
  /* System stack only, nothing fetched. A page whose argument is that your
     data never leaves your PC should not hand every visitor to a font CDN. */
  font-family: Inter, "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--text); background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 85% -10%, rgba(147,51,234,.12), transparent 60%),
    radial-gradient(900px 600px at -15% 110%, rgba(147,51,234,.07), transparent 55%);
  background-attachment: fixed; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(147,51,234,.35); color: #fff; }
::-webkit-scrollbar { width: 9px; } ::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; } ::-webkit-scrollbar-thumb:hover { background: var(--line-2); }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace; }
:focus-visible { outline: 2px solid var(--brand-l); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* Grid items default to min-width:auto, so one nowrap row inside an
   illustration can widen its whole track and scroll the page sideways
   on a phone. Let every track shrink and leave truncation to the
   ellipsis rules further down. */
.hero-grid > *, .split > *, .feat-grid > *, .sec-grid > *,
.steps > *, .strip-grid > *, .foot-grid > *, .verify > *,
.docs-shell > *, .docs-grid > * { min-width: 0; }
.grad-text { background: linear-gradient(135deg, #fff 0%, var(--brand-l) 55%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--panel-2); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; padding: 12px 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-d) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--glow); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 38px -6px rgba(147,51,234,.8); }
.btn-discord { color: #fff; background: linear-gradient(180deg, var(--discord) 0%, var(--discord-d) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 30px -8px rgba(88,101,242,.6); }
.btn-discord:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 38px -6px rgba(88,101,242,.85); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.03); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn .stack small { font-weight: 500; font-size: 11.5px; opacity: .8; }

.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: #34d399; text-transform: uppercase; padding: 6px 13px; border: 1px solid rgba(52,211,153,.35); border-radius: 999px; background: rgba(52,211,153,.08); }
.badge.brandy { color: var(--brand-l); border-color: rgba(147,51,234,.4); background: rgba(147,51,234,.10); }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5)} 70%{box-shadow:0 0 0 7px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

header { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
header.scrolled { background: rgba(10,10,15,.78); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .3px; flex: none; }
/* The product icon is a shield, not a circular badge: no radius, no crop. */
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 13px rgba(147,51,234,.55)); }
.brand .bt { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a.link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 9px; cursor: pointer; color: var(--text); flex: none; }
.mobile-menu { display: none; }

.sec-pad { padding: 96px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .5px;
  color: var(--brand-l); text-transform: uppercase; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(147,51,234,.07); }
h1 { font-size: clamp(32px, 5.4vw, 57px); line-height: 1.06; font-weight: 900; letter-spacing: -1.5px;
     /* Balance the line lengths instead of filling each line greedily, so a
        heading does not end on a single orphaned word. */
     text-wrap: balance; }
/* Keep the emphasised phrase intact: split across lines it reads as two
   unrelated words rather than one noun. */
h1 .grad-text { white-space: nowrap; }
h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; }
.sec-head { text-align: center; max-width: 730px; margin: 0 auto 56px; }
.sec-head .lead { margin: 16px auto 0; }

.hero { padding: 52px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sub-note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 560px; }
.sub-note b { color: var(--text-2); font-weight: 600; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--brand-l); flex: none; }

/* ---- Interface illustrations, labelled as such wherever they appear ---- */
.figure { margin: 0; }
.mock { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), var(--glow); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.mock-url { margin-left: 12px; font-size: 11.5px; color: var(--muted-2); font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.illus-tag { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase;
  color: var(--brand-l); border: 1px solid rgba(147,51,234,.45); background: rgba(147,51,234,.13); padding: 3px 8px; border-radius: 5px; flex: none; }
.figcap { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--muted-2); font-size: 12.5px; line-height: 1.5; }
.figcap svg { flex: none; margin-top: 3px; }

.app { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.app-side { background: #0d0c14; border-right: 1px solid var(--line); padding: 14px 12px; }
.app-side .lg { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.app-side .lg img { width: 24px; height: 24px; object-fit: contain; }
.app-side .lg b { font-size: 13px; font-weight: 800; }
.app-side .lg small { display: block; font-size: 8px; color: var(--muted-2); letter-spacing: .8px; text-transform: uppercase; }
.navitem { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 8px; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.navitem.on { background: rgba(147,51,234,.14); color: #fff; }
.acc { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 7px 10px; }
.acc i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex: none; }
.app-main { padding: 16px; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-top h4 { font-size: 16px; font-weight: 800; }
.pill { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 7px; }
.pill.brand { background: linear-gradient(180deg, var(--brand), var(--brand-d)); color: #fff; box-shadow: var(--glow); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.stat .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.stat .v { font-size: 18px; font-weight: 800; margin-top: 3px; }
.stat .v.up { color: var(--brand-l); }
.chart-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.chart-card .ch-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart-card .ch-h span { font-size: 11px; color: var(--muted); }
.chart-card .ch-h b { font-size: 13px; color: var(--brand-l); }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; text-align: center; }
.strip .n { font-size: clamp(19px, 2.7vw, 26px); font-weight: 900; letter-spacing: -.5px; }
.strip .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(147,51,234,.45); box-shadow: 0 20px 50px -30px rgba(147,51,234,.6); }
.ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(147,51,234,.13); border: 1px solid rgba(147,51,234,.3); color: var(--brand-l); }
.card h3 { margin-bottom: 8px; } .card p { color: var(--muted); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.feature-list .chk { flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(147,51,234,.15); border: 1px solid rgba(147,51,234,.35); color: var(--brand-l); display: grid; place-items: center; margin-top: 1px; }
.feature-list b { font-weight: 600; } .feature-list small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 30px 70px -40px rgba(0,0,0,.8); }
.panel-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h .t { font-size: 13.5px; color: var(--muted); } .panel-h .big { font-size: 25px; font-weight: 800; } .panel-h .chg { font-size: 13px; color: #34d399; font-weight: 600; }

.ob { display: flex; flex-direction: column; gap: 8px; }
.ob-row { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.ob-row .sq { width: 38px; height: 38px; border-radius: 8px; flex: none; border: 1px solid var(--line-2); background: #15131f; display: grid; place-items: center; color: var(--muted-2); }
.ob-row .nm { flex: 1; min-width: 0; }
.ob-row .nm b { font-size: 13.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-row .nm small { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-row .px { font-size: 14px; font-weight: 700; color: var(--brand-l); white-space: nowrap; }
.tag { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.25); white-space: nowrap; }
.tag.out { background: rgba(192,132,252,.12); color: var(--brand-l); border-color: rgba(147,51,234,.3); }
.tag.lock { background: rgba(251,191,36,.12); color: #fbbf24; border-color: rgba(251,191,36,.28); }

.sec-security { border-top: 1px solid var(--line); background: radial-gradient(800px 400px at 50% 0%, rgba(147,51,234,.08), transparent 60%); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.sec-card:hover { border-color: rgba(147,51,234,.4); transform: translateY(-3px); }
.sec-card .ic { width: 40px; height: 40px; margin-bottom: 14px; }
.sec-card h3 { font-size: 16px; margin-bottom: 7px; } .sec-card p { color: var(--muted); font-size: 13.5px; }
.sec-card code { color: var(--brand-l); font-size: 12.5px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.step .num { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--brand), var(--brand-d)); box-shadow: var(--glow); margin-bottom: 14px; }
.step h3 { font-size: 16px; margin-bottom: 7px; } .step p { color: var(--muted); font-size: 14px; }
.step code { color: var(--brand-l); font-size: 13px; }

/* ---- Verify-your-download blocks ---- */
.verify { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.code { background: #0d0c14; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.code .ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.code .ch b { font-size: 13px; font-weight: 700; }
.code .ch span { font-size: 10px; color: var(--muted-2); font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: .7px; flex: none; }
.code pre { margin: 0; padding: 15px 16px; overflow-x: auto; font-size: 13px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace; color: var(--text-2); }
.code pre .p { color: var(--brand-l); }
.code .cf { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; margin-top: auto; }

.notice { border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.05); border-radius: var(--radius);
  padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; }
.notice svg { flex: none; color: #fbbf24; margin-top: 2px; }
.notice h3 { font-size: 15px; margin-bottom: 5px; color: #fbbf24; }
.notice p { color: var(--muted); font-size: 14px; }
.notice a { color: #fbbf24; text-decoration: underline; text-underline-offset: 2px; }

.legal { max-width: 780px; margin: 0 auto; text-align: center; }
.legal p { color: var(--muted); font-size: 15.5px; }
.legal p + p { margin-top: 14px; }

.faq { max-width: 800px; margin: 0 auto; }
.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: rgba(255,255,255,.015); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { flex: none; color: var(--brand-l); transition: transform .2s; font-size: 22px; line-height: 1; }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.qa .ans a { color: var(--brand-l); text-decoration: underline; text-underline-offset: 2px; }
.qa .ans code { color: var(--brand-l); font-size: 13.5px; }
.qa .ans p + p { margin-top: 10px; }

.cta-band { text-align: center; border: 1px solid rgba(147,51,234,.35); border-radius: 20px; padding: 60px 32px;
  background: radial-gradient(700px 300px at 50% 0%, rgba(147,51,234,.18), transparent 65%), var(--panel); box-shadow: var(--glow); }
.cta-band h2 { margin-bottom: 14px; } .cta-band .lead { margin: 0 auto 28px; } .cta-band .hero-cta { justify-content: center; }
.cta-or { color: var(--muted-2); font-size: 13px; margin: 20px 0 0; }

footer { border-top: 1px solid var(--line); padding: 56px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { margin-bottom: 14px; } .foot-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.foot-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .15s; }
.foot-col a:hover { color: var(--brand-l); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.foot-bottom .ver { font-family: ui-monospace, monospace; }

/* Content is visible by default and the animation is opt-in. The .js class
   is only added when scripting is available, so a failure to run the
   observer leaves the page readable rather than blank. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge .pulse { animation: none; }
  * { transition-duration: .01ms !important; }
}

@media (max-width: 1040px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .hero-grid, .split, .verify { grid-template-columns: 1fr; }
  /* Copy first on a phone. The illustration is supporting material, so leading
     with it means the first screen shows placeholder figures instead of saying
     what SSIM is. The split sections below already order copy first. */
  .hero-vis { order: 2; } .hero-copy { order: 1; }
  .feat-grid, .sec-grid, .steps, .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }   /* keep the brand name clear on phones, the CTAs live in the menu */
  .burger { display: block; }
  .sec-pad { padding: 72px 0; }
  /* Stacked, the copy should lead and the illustration follow it. */
  .split .s-vis { order: 2; } .split .s-copy { order: 1; }
}
@media (max-width: 560px) {
  .feat-grid, .sec-grid, .steps, .strip-grid, .foot-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; } .app-side { display: none; }
  .wrap { padding: 0 18px; }
  .hero { padding: 30px 0 56px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 44px 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .code pre { font-size: 12px; }
  .notice { padding: 18px; }
  .foot-bottom { justify-content: flex-start; }
  .sec-head { margin-bottom: 40px; }
  /* Roomier thumb targets in the footer lists on a phone. */
  .foot-col a { padding: 6px 0; margin-bottom: 6px; }
}
.mobile-menu.show { display: block; background: rgba(10,10,15,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 14px 24px; color: var(--text-2); border-top: 1px solid var(--line); }
.mobile-menu .mm-cta { padding: 16px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.mobile-menu .mm-cta .btn { width: 100%; justify-content: center; }

/* ==================== Docs page ==================== */
.docs-shell { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; padding: 44px 0 96px; }
.toc { position: sticky; top: 96px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin-bottom: 14px; }
.toc a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.toc a:hover { color: var(--brand-l); }
.doc h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; scroll-margin-top: 92px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; scroll-margin-top: 92px; }
.doc section { padding: 34px 0; border-top: 1px solid var(--line); }
.doc section:first-of-type { border-top: 0; padding-top: 0; }
.doc p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.doc p.intro { color: var(--text-2); font-size: 17px; }
.doc ul, .doc ol { color: var(--muted); font-size: 15.5px; margin: 0 0 14px 20px; }
.doc li { margin-bottom: 7px; }
.doc li b, .doc p b { color: var(--text-2); font-weight: 600; }
.doc code { color: var(--brand-l); font-size: 14px; background: rgba(147,51,234,.09);
  border: 1px solid rgba(147,51,234,.18); border-radius: 5px; padding: 1px 5px;
  /* Tokens like username,password,shared_secret have no spaces to break at and
     would otherwise push the page sideways on a phone. */
  overflow-wrap: anywhere; }
.doc a.inline { color: var(--brand-l); text-decoration: underline; text-underline-offset: 2px; }
.doc .code { margin: 14px 0; }
.doc .code code { background: none; border: 0; padding: 0; color: inherit; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc th { color: var(--text-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.doc td b { color: var(--text-2); }
.tablewrap { overflow-x: auto; }
.callout { border: 1px solid var(--line); background: rgba(255,255,255,.02); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 15px 18px; margin: 16px 0; }
.callout p { margin: 0; font-size: 14.5px; }
.callout p + p { margin-top: 8px; }
.callout.warn { border-color: rgba(251,191,36,.3); border-left-color: #fbbf24; background: rgba(251,191,36,.05); }
.callout.warn b { color: #fbbf24; }
.doc-hero { padding: 52px 0 8px; }
.doc-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 16px 0 14px; }
.doc-hero .lead { max-width: 680px; }

/* Cards that link into the docs from the home page */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card { display: block; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.doc-card:hover { transform: translateY(-3px); border-color: rgba(147,51,234,.45); box-shadow: 0 20px 50px -30px rgba(147,51,234,.6); }
.doc-card h3 { font-size: 16px; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.doc-card h3 svg { color: var(--brand-l); flex: none; }
.doc-card p { color: var(--muted); font-size: 14px; }

@media (max-width: 940px) {
  .docs-shell { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .toc { position: static; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 28px; }
  .toc-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .toc a { padding: 3px 0; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .docs-grid { grid-template-columns: 1fr; }
  .doc p, .doc ul, .doc ol { font-size: 15px; }
  .doc section { padding: 28px 0; }
}

/* ==================== A note from the owner ==================== */
.note-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 320px at 50% 0%, rgba(147,51,234,.09), transparent 65%), rgba(255,255,255,.015); }
.note { max-width: 720px; margin: 0 auto; padding: 70px 0; text-align: center; }
.note .mark { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 22px;
  filter: drop-shadow(0 0 18px rgba(147,51,234,.5)); }
.note p { color: var(--text-2); font-size: clamp(16px, 2.1vw, 19px); line-height: 1.7; margin-bottom: 16px; }
.note p:last-of-type { margin-bottom: 0; }
.note .sig { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.note .sig b { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.note .sig span { font-size: 13px; color: var(--muted-2); }
@media (max-width: 560px) { .note { padding: 52px 0; text-align: left; } .note .mark { margin-left: 0; } .note .sig { align-items: flex-start; } }

/* The owner mentions donations in his note; the word links to the Discord,
   which is where donations are actually handled. */
.note a { color: var(--brand-l); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; transition: color .15s; }
.note a:hover { color: #fff; }
