/* Janus — site styles
   Layout: the site wears the program's own interface. Window black, panel navy and the
   ImGui blue, with the orange of the date marker as the only warm accent. Sections are
   separated by rows of pixels, the same cells the logo's hair and beard are made of. */

:root {
  --win: #0F0F0F;        /* ImGui window */
  --win-2: #15161A;      /* raised window */
  --panel: #1C2A3C;      /* ImPlot frame */
  --frame: #1F2E4B;      /* widget frame */
  --title: #294A7A;      /* active title bar */
  --blue: #4296FA;       /* ImGui accent */
  --blue-hi: #6AADFF;
  --pale: #CEE3FF;       /* tab text */
  --text: #E6E6E6;
  --mute: #A0A7B2;
  --rule: #262A31;
  --rule-2: #33405A;
  --date: #F29A38;       /* date marker */

  --f-display: "IBM Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.15rem + 1vw, 1.8rem);
  --step-3: clamp(2.3rem, 1.5rem + 3vw, 3.9rem);
  --step-4: clamp(3.2rem, 1.6rem + 6.4vw, 7.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--win); color: var(--text);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: var(--f-mono); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: var(--win); padding: 8px 12px; font-family: var(--f-mono); }
.skip:focus { left: 8px; }

.eyebrow, .tag, .spec, figcaption, .btn, .term-tabs button, .file, .tool-list span, .figures dd, .nav nav a { font-family: var(--f-mono); }
.eyebrow { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }

/* ---------- buttons (ImGui-like) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border: 1px solid transparent; border-radius: 3px;
  transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #08111D; }
.btn-primary:hover { background: var(--blue-hi); }
.btn-ghost { background: var(--frame); color: var(--pale); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--title); }
.btn-small { padding: 7px 12px; font-size: .75rem; background: var(--frame); color: var(--pale); border-color: var(--rule-2); }
.btn-small:hover { background: var(--title); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15,15,15,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.nav-in { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 1px; text-decoration: none; }
.brand-mark { height: 25.6px; width: auto; } /* the symbol at the scale of the name beside it */
.brand-name { height: 28px; width: auto; }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav nav a { color: var(--mute); text-decoration: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.nav nav a:hover { color: var(--pale); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 300; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; }
.lede { font-size: var(--step-1); line-height: 1.55; color: #C9CED6; max-width: 38ch; margin-top: 28px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
/* The brand as the page's title: the symbol and the name, large, centred, at one scale */
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: clamp(4px, .66vw, 8px); margin: 0 0 clamp(20px, 3vw, 36px); }
.hero-mark { width: clamp(105.6px, 18.36vw, 219.4px); height: auto; }
.hero-name { width: clamp(230px, 40vw, 478px); height: auto; }
.hero-in .eyebrow { margin-bottom: 0; }
.hero-in .lede { margin-inline: auto; max-width: 52ch; }
.hero-in .cta { justify-content: center; }
.hero-in .term { margin-inline: auto; width: 100%; text-align: left; }
@media (max-width: 560px) {
  .hero-brand { flex-direction: column; gap: 6px; }
  .hero-mark { width: min(36vw, 138px); }
  .hero-name { width: min(78vw, 300px); }
}
.hero-art { margin: 0; width: 100%; display: flex; justify-content: center; }
.hero-art img { width: min(100%, 380px); }

.term { margin-top: 40px; max-width: 560px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--win-2); overflow: hidden; }
.term-tabs { display: flex; background: var(--win); border-bottom: 1px solid var(--rule-2); }
.term-tabs button { flex: 1; background: none; border: 0; color: var(--mute); cursor: pointer; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 10px 8px; }
.term-tabs button:hover { color: var(--pale); }
.term-tabs button[aria-selected="true"] { color: var(--pale); background: var(--title); }
.term-body > div { display: flex; align-items: center; gap: 12px; padding: 16px; min-width: 0; }
.term-body code { font-size: .9rem; color: var(--text); overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; }
.term-body code::before { content: "$ "; color: var(--blue); }
.copy { background: var(--frame); border: 1px solid var(--rule-2); border-radius: 3px; color: var(--pale); cursor: pointer; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.copy:hover { background: var(--title); }
.term-note { font-size: .92rem; color: var(--mute); padding: 0 16px 14px; }
.term-note code { font-size: .85rem; color: var(--text); }

/* ---------- pixel row divider ---------- */
.pixrow { height: 20px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='20'%20viewBox='0%200%2010%2020'%3E%3Crect%20x='1.2'%20y='1.2'%20width='7.6'%20height='7.6'%20rx='1'%20fill='%234296FA'%20fill-opacity='.55'/%3E%3Crect%20x='1.2'%20y='11.2'%20width='7.6'%20height='7.6'%20rx='1'%20fill='%234296FA'%20fill-opacity='.22'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; background-size: 10px 20px; opacity: .9; }

/* ---------- screenshot ---------- */
.shot { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.shot figure { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--rule-2); border-radius: 4px; }
.shot figcaption, .cube-fig figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 14px; }

/* ---------- section heads ---------- */
section.how, section.features, section.tools, section.install, section.cli, section.faq { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 780px; }
.sec-head h2 { font-size: var(--step-3); line-height: 1.02; }
.sec-head p:not(.eyebrow) { margin-top: 20px; color: var(--mute); max-width: 62ch; }
.sec-head a { color: var(--blue-hi); }

/* ---------- how it works ---------- */
.how { background: var(--win-2); border-block: 1px solid var(--rule); }
.cube-fig { margin: clamp(32px, 5vw, 60px) 0 0; }
.cube-scroll { overflow-x: auto; }
.cube { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .cube { min-width: 660px; } }
.cube .slab { fill: #11161E; }
.cube .cells path { fill: var(--blue); }
.cube .cells .hl { fill: var(--date); fill-opacity: 1; }
.cube .edge { fill: none; stroke: #5E7FAE; stroke-width: 1; }
.cube text { font-family: var(--f-mono); font-size: 11px; fill: var(--mute); }
.cube .note { fill: var(--date); }
.cube .col { stroke: var(--date); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cube .plotbg { fill: var(--panel); }
.cube .grid { stroke: #2C3E57; }
.cube .series { fill: none; stroke: var(--text); stroke-width: 1.4; }
.cube .dot { fill: var(--text); }
.cube .fit { fill: none; stroke: var(--blue); stroke-width: 2.4; }
.cube .brk { stroke: var(--date); stroke-dasharray: 4 4; }
.cube .chart .series { stroke-dasharray: 1400; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cube.drawn .chart .series { animation: draw 2.4s ease-out both; }
  .cube.drawn .chart .fit { animation: fade .6s 2.2s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--rule-2); }
.figures > div { padding: 20px 20px 0 0; border-right: 1px solid var(--rule); min-width: 0; }
.figures > div + div { padding-left: 20px; }
.figures > div:last-child { border-right: 0; }
.figures dt { font-family: var(--f-display); font-weight: 300; font-size: var(--step-3); line-height: 1; color: var(--pale); font-variant-numeric: tabular-nums; }
.figures dd { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--mute); }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 60px); }
.feat-grid article { background: var(--win-2); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 20px 22px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.feat-grid h3 { font-size: var(--step-2); line-height: 1.1; color: var(--pale); }
.feat-grid p:not(.tag):not(.spec) { font-size: .95rem; color: var(--mute); }
.spec { font-size: .72rem; color: var(--text); margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }

/* ---------- tools (panel navy) ---------- */
.tools { background: var(--panel); }
.tools .eyebrow { color: var(--pale); }
.tools .sec-head p:not(.eyebrow) { color: #B8C4D6; }
.tool-list { list-style: none; padding: 0; margin: clamp(36px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.tool-list li { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--rule-2); display: grid; gap: 8px; align-content: start; min-width: 0; }
.tool-list li:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--rule-2); }
.tool-list h3 { font-size: var(--step-2); line-height: 1.1; color: var(--pale); }
.tool-list p { font-size: .95rem; color: #B8C4D6; }
.tool-list span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--date); }

/* ---------- install ---------- */
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 60px); }
.os { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--win-2); }
.os h3 { font-size: var(--step-1); background: var(--frame); color: var(--pale); padding: 10px 20px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .04em; }
.os.is-yours { border-color: var(--blue); }
.os.is-yours h3 { background: var(--title); }
.os h3 small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-left: 6px; }
.os-body { padding: 18px 20px 20px; display: grid; gap: 16px; align-content: start; }
.os p { font-size: .95rem; color: #C9CED6; }
.os code { font-size: .85em; color: var(--text); }
.os pre { margin: 0; padding: 12px; background: var(--win); border: 1px solid var(--rule); border-radius: 3px; overflow-x: auto; font-size: .78rem; }
.os .btn { justify-self: start; }
.file { font-size: .72rem !important; color: var(--mute) !important; overflow-wrap: anywhere; }
.src { margin-top: 28px; color: var(--mute); font-size: .95rem; }
.src a { color: var(--blue-hi); }

/* ---------- cli ---------- */
.cli { background: var(--win-2); border-block: 1px solid var(--rule); }
.cli-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.code-wrap { min-width: 0; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; }
.code-bar { background: var(--title); color: var(--pale); font-family: var(--f-mono); font-size: .75rem; padding: 6px 12px; letter-spacing: .04em; }
.code { margin: 0; background: var(--win); color: var(--text); padding: 22px 24px; overflow-x: auto; font-size: .86rem; line-height: 1.75; }
.code .c { color: #7D8794; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.qa { border-top: 1px solid var(--rule-2); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.3; color: var(--pale); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 1.2rem; color: var(--blue); }
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 0 20px; color: var(--mute); max-width: 62ch; }

/* ---------- guides (index): a card per guide ---------- */
section.guides { padding-block: clamp(64px, 9vw, 120px); }
.guide-list { list-style: none; padding: 0; margin: clamp(36px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-list a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 20px 20px 22px; background: var(--win-2); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; transition: border-color .15s, background-color .15s; }
.guide-list a:hover { border-color: var(--blue); background: #181B22; }
.guide-list span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--date); }
.guide-list h3 { font-size: var(--step-2); line-height: 1.1; color: var(--pale); }
.guide-list p { font-size: .95rem; color: var(--mute); }
@media (max-width: 1020px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- guide pages (validation.html): a contents column and a reading column ---------- */
.guide-hero { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.guide-hero h1 { font-size: var(--step-3); font-weight: 300; line-height: 1.02; max-width: 18ch; }
.guide-hero .lede { max-width: 60ch; }
.crumbs { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.crumbs a { color: var(--blue-hi); text-decoration: none; }
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-family: var(--f-mono); font-size: .78rem; }
.toc p { letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--rule-2); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--mute); text-decoration: none; line-height: 1.4; margin-left: -1px; border-left: 1px solid transparent; }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: #5E6878; }
.toc a:hover { color: var(--pale); }
.toc a[aria-current="true"] { color: var(--pale); border-left-color: var(--date); }
.article { min-width: 0; max-width: 820px; }
.article > section { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.article > section:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: var(--step-2); line-height: 1.15; color: var(--pale); margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.article h2 .n { font-family: var(--f-mono); font-size: .8rem; color: var(--date); letter-spacing: .08em; flex: none; }
.article h3 { font-size: var(--step-1); color: var(--pale); margin: 30px 0 10px; }
.article p, .article li { color: #C9CED6; }
.article p + p, .article p + ul, .article ul + p, .article p + ol, .article ol + p { margin-top: 14px; }
.article ul, .article ol { padding-left: 1.3em; margin: 14px 0 0; }
.article li + li { margin-top: 6px; }
.article a { color: var(--blue-hi); }
.article strong { color: var(--text); font-weight: 500; }
.article code { font-size: .86em; color: var(--text); background: var(--win-2); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; }
.ui { font-family: var(--f-mono); font-size: .86em; color: var(--pale); background: var(--frame); border: 1px solid var(--rule-2); border-radius: 3px; padding: 1px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
kbd { font-family: var(--f-mono); font-size: .8em; color: var(--text); background: var(--win-2); border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.fig { margin: 26px 0; }
.fig a { display: block; }
.fig img { width: 100%; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--win-2); }
.fig.narrow img { width: auto; max-width: 100%; margin-inline: auto; }
.fig figcaption { font-family: var(--f-mono); font-size: .75rem; line-height: 1.55; color: var(--mute); margin-top: 10px; }
.fig figcaption b { color: var(--pale); font-weight: 500; }
.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fig-pair .fig { margin: 0; }
.note { margin: 22px 0; padding: 14px 18px; border: 1px solid var(--rule-2); border-left: 3px solid var(--blue); border-radius: 3px; background: var(--win-2); }
.note.warn { border-left-color: var(--date); }
.note p { color: #C9CED6; font-size: .95rem; }
.note .h { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.note.warn .h { color: var(--date); }
.steps { list-style: none; padding: 0 !important; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps li { counter-increment: st; margin: 0 !important; background: var(--win-2); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; font-size: .92rem; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--date); letter-spacing: .1em; margin-bottom: 4px; }
.steps li b { color: var(--pale); font-weight: 500; display: block; }
.terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 18px 0 0; }
.terms dt { font-family: var(--f-mono); font-size: .85rem; color: var(--pale); padding-top: 2px; }
.terms dd { margin: 0; color: #C9CED6; font-size: .95rem; }
.terms + p, .tbl-wrap + p { margin-top: 18px; }
.tbl { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: .92rem; }
.tbl-wrap { overflow-x: auto; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.tbl td { color: #C9CED6; }
.tbl.keys td:first-child { white-space: nowrap; }
.tbl td.num { font-family: var(--f-mono); font-size: .86rem; color: var(--text); white-space: nowrap; }
.refs { font-size: .9rem; }
.refs li { color: var(--mute) !important; }
@media (max-width: 960px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; background: var(--win-2); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .steps, .fig-pair { grid-template-columns: minmax(0, 1fr); }
  .terms { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .terms dd { margin-bottom: 10px; }
}

/* ---------- lightbox: a guide's figure, larger, over the page (main.js) ---------- */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 12, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px 16px; gap: 12px; }
.lightbox[hidden] { display: none; }
.lb-scroll { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-scroll img { max-width: 100%; max-height: 100%; width: auto; height: auto; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--win-2); cursor: zoom-in; }
.lightbox.actual .lb-scroll { overflow: auto; display: block; text-align: center; }
.lightbox.actual .lb-scroll img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-caption { flex: none; max-width: 900px; font-family: var(--f-mono); font-size: .78rem; line-height: 1.55; color: var(--mute); text-align: center; }
.lb-caption:empty { display: none; }
.lb-close { position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; border-radius: 3px; border: 1px solid var(--rule-2); background: var(--frame); color: var(--pale); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: var(--title); }

/* ---------- footer ---------- */
.foot { background: #0B0B0B; color: var(--mute); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.coin { width: 72px; height: 72px; }
.foot-name { margin-bottom: 8px; }
.foot-name img { height: 30px; width: auto; }
.foot p { font-size: .95rem; max-width: 50ch; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.foot a { color: var(--pale); text-decoration: none; }
.foot a:hover { color: var(--blue); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav ul { gap: 18px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .tool-list li:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--rule-2); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(2) { border-right: 0; }
  .figures > div:nth-child(3) { padding-left: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 20px; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero-grid, .cli-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .hero-art img { width: min(52vw, 230px); }
  .os-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .feat-grid, .tool-list, .figures { grid-template-columns: minmax(0, 1fr); }
  .tool-list li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .figures > div { border-right: 0; padding-left: 0 !important; }
  .figures > div + div { border-top: 1px solid var(--rule); margin-top: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
