/* Shared by the JOS Compositor pages: index.html and docs/. */
:root{
  --bg:#0e0f13; --bg-2:#14161c; --card:#181a21; --line:rgba(255,255,255,.08);
  --text:#e7e9ee; --muted:#9aa0ac; --dim:#6b717d;
  --brand:#0b67a7; --accent:#4aa3e8; --blue:#4f8fd8; --orange:#f5a623; --green:#47b39a; --purple:#8b6cc9; --red:#c8604a;
  --radius:12px; --font:'Noto Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; --max:1160px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font:500 16px/1.6 var(--font);-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.mono{font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}

/* header */
/* The band is the logo's own blue, so the square icon runs on into it at any width. */
header{position:sticky;top:0;z-index:10;background:var(--brand);color:#fff}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:80px;gap:16px}
.brand{display:block;height:100%}
.brand img{height:100%;width:auto}
/* fills the space between the logo and the menu, centred in it */
.title{flex:1;text-align:center;text-decoration:none;font-weight:700;font-size:1.25rem}
nav{display:flex;gap:26px}
nav a{text-decoration:none;color:rgba(255,255,255,.82);font-size:.95rem;font-weight:600}
nav a:hover{color:#fff}

/* hero */
.hero{position:relative;padding:88px 0 56px;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(700px 360px at 80% -10%,rgba(11,103,167,.30),transparent 70%),
  radial-gradient(600px 400px at 0% 20%,rgba(74,163,232,.10),transparent 70%);pointer-events:none}
.hero .wrap{position:relative}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--bg-2)}
.badge i{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
h1{font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.04;letter-spacing:-.02em;font-weight:700;margin:22px 0 18px;max-width:17ch}
h1 span{color:var(--accent)}
.lede{font-size:clamp(1.05rem,1.6vw,1.25rem);color:var(--muted);max-width:60ch}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:10px;text-decoration:none;font-weight:600;font-size:.95rem;border:1px solid var(--line);transition:transform .15s,background .15s}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--brand);color:#fff;border-color:#2a82c4}
.btn.primary:hover{background:#0d74bd}
.btn.ghost{background:var(--bg-2)}
.btn.ghost:hover{background:#1c1f27}

.shot{margin-top:56px;border-radius:var(--radius);border:1px solid var(--line);overflow:hidden;background:#000;box-shadow:0 30px 80px -20px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.02)}
.shot-bar{display:flex;gap:6px;padding:10px 12px;background:#1b1d24;border-bottom:1px solid var(--line)}
.shot-bar i{width:10px;height:10px;border-radius:50%;background:#2c2f38}
.caption{color:var(--dim);font-size:.85rem;margin-top:12px;text-align:center}

/* sections */
section{padding:84px 0;border-top:1px solid var(--line);scroll-margin-top:80px}
.eyebrow{color:var(--accent)}
h2{font-size:clamp(1.7rem,3.4vw,2.5rem);letter-spacing:-.015em;line-height:1.15;margin:10px 0 14px;font-weight:700}
.intro{color:var(--muted);max-width:62ch;margin-bottom:44px}

.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;position:relative}
.card::before{content:"";position:absolute;left:24px;top:0;width:36px;height:3px;border-radius:0 0 3px 3px;background:var(--c,var(--accent))}
.card h3{font-size:1.06rem;margin:6px 0 8px;letter-spacing:-.01em}
.card p{color:var(--muted);font-size:.94rem}
.card ul{color:var(--muted);font-size:.92rem;margin-top:10px;padding-left:18px}
.card li{margin:3px 0}
kbd{font-family:var(--font);font-weight:600;font-size:.78em;background:#252833;border:1px solid #333744;border-bottom-width:2px;border-radius:5px;padding:1px 6px;color:var(--text)}

code{font-family:Consolas,ui-monospace,monospace;font-size:.88em;color:var(--text);background:#22252e;border-radius:4px;padding:0 4px}

/* what's different: small extras under the cards */
.card a{color:var(--accent);text-decoration:none}
.card a:hover{text-decoration:underline}
.compare{display:grid;gap:14px}
.compare-row{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;display:grid;grid-template-columns:minmax(180px,1fr) 1.3fr 1.6fr;gap:6px 28px;align-items:start}
.compare-row h3{font-size:1.04rem;letter-spacing:-.01em}
.compare-row p{font-size:.93rem;color:var(--muted)}
.compare-row .was{color:var(--dim)}
.compare-row b{color:var(--text);font-weight:600}
.compare-row .was b{color:var(--muted)}
@media (max-width:860px){.compare-row{grid-template-columns:1fr}}
.more{margin-top:28px;padding:24px 26px;border:1px dashed #2c303b;border-radius:var(--radius)}
.more h3{font-size:1rem;margin-bottom:10px}
.more ul{columns:2 300px;column-gap:32px;color:var(--muted);font-size:.94rem;padding-left:18px}
.more li{margin:4px 0;break-inside:avoid}

/* status */
.status{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.col{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px}
.col h3{display:flex;align-items:center;gap:10px;font-size:1.05rem;margin-bottom:14px}
.dot{width:10px;height:10px;border-radius:50%;flex:none}
.col ul{list-style:none}
.col li{padding:9px 0;border-top:1px solid var(--line);color:var(--muted);font-size:.94rem}
.col li:first-child{border-top:0}
.col li b{color:var(--text);font-weight:600}

/* contact */
.contact{text-align:center}
.contact .intro{margin:0 auto 30px}
.contact .cta{justify-content:center}
#jos-beta{max-width:440px;margin:0 auto;text-align:left}
#jos-beta label{display:block;font-size:.85rem;font-weight:600;color:var(--muted);margin:0 0 6px}
#jos-beta input{width:100%;padding:11px 12px;margin:0 0 16px;border-radius:10px;border:1px solid #2c303b;
  background:var(--bg-2);color:var(--text);font:inherit}
#jos-beta input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(74,163,232,.25)}
#jos-beta .btn{width:100%;justify-content:center;cursor:pointer;font-family:inherit}
#jos-beta .btn:disabled{opacity:.55;cursor:default;transform:none}
#jos-beta .jos-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#jos-beta .jos-error{color:#f07a6a;min-height:1.5em;margin:12px 0 0;font-size:.92rem}
#jos-beta .jos-note{color:var(--dim);font-size:.85rem;margin:4px 0 0}
#jos-beta .jos-done{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--green);
  border-radius:var(--radius);padding:18px 20px;color:var(--text)}
#jos-beta .spots{text-align:center;margin:0 0 26px}
#jos-beta .spots-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:10px}
#jos-beta .spots-dots i{width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px rgba(74,163,232,.45)}
#jos-beta .spots-dots i.taken{background:#2a2e38;box-shadow:none}
#jos-beta .spots-text{font-weight:600;color:var(--text)}
#jos-beta .jos-full{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--orange);
  border-radius:var(--radius);padding:18px 20px;color:var(--text);text-align:left;margin:0 0 22px}
#jos-beta .jos-full a{color:var(--accent)}
.contact-mail{margin-top:36px;color:var(--dim);font-size:.9rem}
.contact-mail a{color:var(--muted)}

footer{border-top:1px solid var(--line);padding:30px 0;color:var(--dim);font-size:.85rem}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
footer a{color:var(--muted);text-decoration:none}
footer a:hover{color:var(--text)}
footer .about{flex-basis:100%;margin:0;color:var(--muted)}
footer .legal{flex-basis:100%;margin:0;font-size:.72rem;color:var(--dim);opacity:.8}

@media (max-width:720px){
  nav{display:none}
  header .wrap{height:64px}
  .hero{padding:56px 0 40px}
  section{padding:60px 0}
  .wrap{padding:0 16px}
}

/* ─── Documentation (docs/) ─── */
nav a.active{color:#fff;text-decoration:underline;text-underline-offset:6px}
.docs{display:grid;grid-template-columns:240px minmax(0,1fr);gap:56px;padding:56px 24px 96px}
.docs-side{align-self:start;font-size:.92rem}
.docs-side p{color:var(--dim);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:22px 0 8px}
.docs-side p:first-child{margin-top:0}
.docs-side ul{list-style:none}
.docs-side li{margin:2px 0}
.docs-side a{display:block;padding:5px 10px;border-radius:7px;color:var(--muted);text-decoration:none}
.docs-side a:hover{background:var(--bg-2);color:var(--text)}
.docs-side a.here{background:var(--bg-2);color:#fff;box-shadow:inset 2px 0 0 var(--accent)}
.docs-side span{display:block;padding:5px 10px;color:var(--dim)}
.docs-side span::after{content:" · soon";font-size:.8em}
/* The description: its own scrollbar, in view while the page's scrollbar moves the whole page (sidebar too). */
.doc{max-width:760px;position:sticky;top:104px;align-self:start;max-height:calc(100vh - 120px);overflow-y:auto;overscroll-behavior:contain;padding-right:14px;scrollbar-width:thin;scrollbar-color:#3a3f47 transparent}
.doc::-webkit-scrollbar{width:8px}
.doc::-webkit-scrollbar-thumb{background:#3a3f47;border-radius:4px}
.doc::-webkit-scrollbar-track{background:transparent}
.doc h1{font-size:clamp(2rem,4vw,2.8rem);line-height:1.1;letter-spacing:-.015em;margin:8px 0 16px}
.doc h2{font-size:1.45rem;margin:44px 0 12px}
.doc h3{font-size:1.1rem;margin:28px 0 8px}
.doc p,.doc li{color:var(--muted)}
.doc p{margin:0 0 14px}
.doc ol,.doc ul{margin:0 0 16px;padding-left:22px}
.doc li{margin:6px 0}
.doc b,.doc strong{color:var(--text)}
.doc a{color:var(--accent)}
.doc .lead{font-size:1.15rem;color:var(--muted);margin-bottom:28px}
.doc pre{background:#0a0b0e;border:1px solid var(--line);border-radius:10px;padding:14px 16px;overflow-x:auto;margin:0 0 18px}
.doc pre code{background:none;padding:0;font-size:.88rem;color:#d7dae2}
.doc table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:.92rem;display:block;overflow-x:auto}
.doc th,.doc td{border-bottom:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top;color:var(--muted)}
.doc th{color:var(--text);font-weight:600;border-bottom-color:#3a4050}
.doc img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:10px;margin:6px 0 18px}
.doc blockquote{border-left:3px solid var(--accent);background:var(--card);border-radius:0 10px 10px 0;padding:10px 16px;margin:0 0 18px}
.doc blockquote p:last-child{margin:0}
.doc kbd,.doc code{white-space:nowrap}
.doc h2[id],.doc h3[id]{scroll-margin-top:110px}
.note{border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--card);border-radius:10px;padding:14px 18px;margin:0 0 18px}
.note p:last-child{margin:0}
.topics{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));margin-top:10px}
.topics a,.topics div{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;text-decoration:none}
.topics a:hover{border-color:#3a4050}
.topics b{display:block;color:var(--text);margin-bottom:4px}
.topics small{color:var(--dim);font-size:.85rem}
.topics div{opacity:.6}
@media (max-width:820px){
  .docs{grid-template-columns:1fr;gap:28px;padding:36px 16px 72px}
  .docs-side{position:static}
  .docs-search{position:static}
  .doc{position:static;max-height:none;overflow:visible;padding-right:0}
}

/* The docs' search (docs/search.js). */
.docs-search{display:block;margin:0 0 18px;position:sticky;top:96px;z-index:2;background:var(--bg);padding:8px 0}
.docs-search input{width:100%;padding:8px 12px;border-radius:8px;border:1px solid var(--line,#2a2f37);background:var(--bg-2,#171a1f);color:var(--text,#e8e8e8);font:inherit;font-size:.9rem}
.docs-search input:focus{outline:none;border-color:var(--accent)}
.search-hit{border-top:1px solid var(--line,#2a2f37);padding-top:6px;margin-top:22px}
.search-hit h2{margin-top:6px}
.search-from{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;margin:0 0 4px}
.search-from a{color:var(--dim);text-decoration:none}
.search-from a:hover{color:var(--text)}
.doc mark{background:rgba(74,163,232,.35);color:inherit;border-radius:2px;padding:0 1px}
