/* CLFStack public site. Brand: docs/brand/logo (hexagon around a prompt, monospace wordmark, cyan on ink).
   The site's CSP allows no font files and no script, so type is system stacks: monospace is the brand face, the system sans carries reading text. */
:root {
    --ink: #0f172a;        /* page */
    --deep: #0b1222;       /* sunken bands */
    --panel: #142039;      /* raised surfaces */
    --line: #24324d;
    --text: #e2e8f0;
    --muted: #9aa8bd;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --amber: #fbbf24;
    --green: #4ade80;
    --red: #f87171;
    --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", SFMono-Regular, Menlo, "DejaVu Sans Mono", monospace;
    --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --wrap: 72rem;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 var(--sans); }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
strong { color: #f1f5f9; }
code, pre, .mono, .wordmark { font-family: var(--mono); }
.skip { position: absolute; left: -10000px; top: 0; background: var(--cyan); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* ---- header ---------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 23, 42, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.wordmark { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.top nav.main { display: flex; gap: 4px; margin-right: auto; }
.top nav.main a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 10px; border-radius: 6px; }
.top nav.main a:hover { color: var(--text); background: var(--panel); }
.top nav.main a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.actions { display: flex; align-items: center; gap: 16px; }
.signin { color: var(--text); text-decoration: none; font-size: .95rem; }

/* ---- buttons --------------------------------------------------------------------------------------------- */
.button { display: inline-block; background: var(--cyan); color: var(--ink); border: 1px solid var(--cyan); border-radius: 8px; padding: 11px 20px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: #67e8f9; border-color: #67e8f9; color: var(--ink); }
.button.ghost, .button.secondary { background: transparent; color: var(--text); border-color: #3b4a68; }
.button.ghost:hover, .button.secondary:hover { border-color: var(--cyan); color: var(--text); background: transparent; }
.button.small { padding: 7px 14px; font-size: .9rem; }

/* ---- main column for content pages ----------------------------------------------------------------------- */
main { display: block; }
.prose { max-width: 46rem; margin: 0 auto; padding: 56px 24px 88px; }
.prose.wide { max-width: 52rem; }
.prose h1 { font: 700 clamp(2rem, 4.4vw, 2.9rem)/1.12 var(--display); letter-spacing: -.02em; margin: 0 0 20px; }
.prose h1 + p { font-size: 1.15rem; color: var(--muted); }
.prose h2 { font: 650 1.45rem/1.25 var(--display); margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h3 { font: 650 1.12rem/1.3 var(--display); margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--cyan-deep); }
.prose code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.prose pre { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.meta, .note { color: var(--muted); font-size: .95rem; }

/* ---- forms ----------------------------------------------------------------------------------------------- */
form { display: grid; gap: 6px; max-width: 34rem; margin-top: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
label { font-weight: 600; margin-top: 10px; font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--ink); border: 1px solid #3b4a68; border-radius: 8px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: 2px solid rgba(34, 211, 238, .35); outline-offset: 0; }
button { justify-self: start; margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-left: 3px solid var(--green); background: var(--panel); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.error { border-left: 3px solid var(--red); background: rgba(248, 113, 113, .08); color: #fecaca; padding: 8px 12px; margin: 4px 0; border-radius: 0 6px 6px 0; }

/* ---- tables, pricing comparisons, changelog -------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .95rem; }
caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
aside.compare { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; margin: 20px 0; }
aside.compare .source { color: var(--muted); font-size: .9rem; }
article.release { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }

/* ---- home: hero ------------------------------------------------------------------------------------------ */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font: .85rem var(--mono); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.hero h1 { font: 700 clamp(2.4rem, 5.2vw, 3.9rem)/1.04 var(--display); letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 .dim { display: block; color: var(--cyan); }
.hero .lead { max-width: 34rem; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* the console: the one moving thing on the site */
.console { margin: 0; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 80px -30px rgba(8, 145, 178, .35); overflow: hidden; font: .82rem/1.6 var(--mono); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.console-bar b { margin-left: 10px; font-weight: 400; color: var(--muted); }
.console-body { padding: 16px; }
.shell { margin: 0 0 16px; white-space: pre-wrap; word-break: break-word; color: var(--text); font: inherit; }
.shell i { font-style: normal; color: var(--cyan); }
.shell .ok { color: var(--green); }
.panes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pane { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.pane p { margin: 0; }
.pane-name { color: var(--cyan); margin-bottom: 8px !important; display: flex; justify-content: space-between; gap: 6px; }
.pane-name span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.diff .key { width: 100%; color: var(--text); }
.diff del { color: var(--red); }
.diff ins { color: var(--green); text-decoration: none; }
.review { color: var(--amber); font-size: .74rem; margin-top: 8px !important; }
.log { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.log b { font-weight: 600; margin-right: 6px; }
.inf { color: var(--cyan); }
.wrn { color: var(--amber); }
.rollout { display: flex; align-items: center; gap: 8px; margin-top: 6px !important; }
.track { flex: 1; height: 8px; background: var(--ink); border-radius: 4px; overflow: hidden; }
.fill { display: block; width: 25%; height: 100%; background: var(--cyan); border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) {
    .console .l, .console .pane { opacity: 0; animation: appear .35s ease-out forwards; }
    .console .l1 { animation-delay: .25s; }
    .console .l2 { animation-delay: .9s; }
    .console .l3 { animation-delay: 1.3s; }
    .console .l4 { animation-delay: 2.1s; }
    .console .p-config { animation-delay: 2.5s; }
    .console .p-logs { animation-delay: 2.7s; }
    .console .p-flags { animation-delay: 2.9s; }
    .console .fill { animation: grow 1s 3.2s ease-out both; }
    @keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    @keyframes grow { from { width: 0; } to { width: 25%; } }
}

/* ---- home: what the licence never counts ------------------------------------------------------------------ */
.uncounted { background: var(--deep); border-block: 1px solid var(--line); padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; text-align: center; }
.uncounted h2 { font: 600 1rem var(--sans); color: var(--muted); margin: 0; }
.uncounted ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 0; padding: 0; }
.uncounted li { font: 400 1.1rem var(--mono); color: var(--text); text-decoration: line-through; text-decoration-color: rgba(34, 211, 238, .75); text-decoration-thickness: 1.5px; }
.uncounted p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- home: products ---------------------------------------------------------------------------------------- */
.products, .own, .preview { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px 0; }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2, .own h2, .preview h2 { font: 700 clamp(1.8rem, 3.4vw, 2.5rem)/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.product { padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.product + .product { border-left: 1px solid var(--line); }
.product h3 { margin: 0 0 6px; font: 650 1.2rem/1.3 var(--display); }
.product h3 a { color: var(--text); text-decoration: none; display: block; }
.product h3 a::after { content: ""; position: absolute; inset: 0; }
.product { position: relative; }
.product:hover { background: var(--panel); }
.product h3 .mono { display: block; font-size: .85rem; font-weight: 500; color: var(--cyan); margin-bottom: 6px; }
.product p { color: var(--muted); margin: 0 0 22px; }
.mini { margin-top: auto; background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: .8rem/1.5 var(--mono); display: flex; flex-direction: column; gap: 6px; }
.mini-config .row { display: flex; justify-content: space-between; color: var(--muted); }
.mini-config .row b { font-weight: 400; color: var(--text); }
.mini-config .pending span { color: var(--amber); }
.mini-logs .query { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-logs .bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.mini-logs .bars i { flex: 1; background: #1e3a5f; border-radius: 2px 2px 0 0; height: 30%; }
.mini-logs .bars i:nth-child(3n) { height: 55%; }
.mini-logs .bars i:nth-child(4n+1) { height: 20%; }
.mini-logs .bars i:nth-child(7) { height: 100%; background: var(--red); }
.mini-logs .bars i:nth-child(8) { height: 70%; background: var(--red); }
.mini-flags { flex-direction: row; gap: 4px; }
.mini-flags .step { flex: 1; text-align: center; padding: 6px 0; border-radius: 4px; background: var(--panel); color: var(--muted); }
.mini-flags .step.done { background: rgba(34, 211, 238, .16); color: var(--cyan); }

/* ---- home: your servers, and how to start ------------------------------------------------------------------ */
.own { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.facts li strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 2px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border: 1px solid var(--cyan-deep); border-radius: 50%; display: grid; place-items: center; font: 600 .95rem var(--mono); color: var(--cyan); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: var(--line); }
.steps h3 { margin: 4px 0 4px; font: 650 1.05rem/1.3 var(--display); }
.steps p { margin: 0; color: var(--muted); }

/* ---- home: preview --------------------------------------------------------------------------------------- */
.preview { padding-bottom: 104px; }
.preview > * { max-width: 44rem; }
.preview p { color: var(--muted); font-size: 1.1rem; }
.preview .cta { margin-top: 26px; }

/* ---- footer ---------------------------------------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--line); background: var(--deep); }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot .about p { color: var(--muted); margin: 0 0 8px; max-width: 22rem; font-size: .95rem; }
.foot .brand-line { color: var(--text) !important; display: flex; align-items: center; gap: 8px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot h2 { font: 600 .9rem var(--sans); color: var(--text); margin: 0 0 4px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.foot nav a:hover { color: var(--text); }

/* ---- small screens ---------------------------------------------------------------------------------------- */
@media (max-width: 62rem) {
    .hero, .own { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero { padding-top: 48px; }
    .product-grid { grid-template-columns: minmax(0, 1fr); }
    .product + .product { border-left: 0; border-top: 1px solid var(--line); }
    .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
    .bar { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
    .actions { margin-left: auto; }
    .top nav.main { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; }
    .panes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
    body { font-size: 16px; }
    .actions { gap: 12px; }
    .wordmark { font-size: 1.15rem; }
    .foot { grid-template-columns: minmax(0, 1fr); }
}
