/* JetBrains Mono (SIL Open Font License, see fonts/OFL.txt), served with the page:
   no request to a font service, so a visitor's address goes nowhere else. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/jetbrains-mono-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/jetbrains-mono-latin-800.woff2') format('woff2'); }
/* Shared by every page of the site. Layout: a desktop you scroll. A dotted canvas; every section is a window with a title bar
   named like the app's own (kitchen.exe, chat.log, flows.cron). One monospaced face, as in the app. */
:root {
  --bg: #e6e6e6;
  --dot: #b8b8b8;
  --panel: #ffffff;
  --raised: #f6f6f6;
  --line: #dedede;
  --text: #111111;
  --muted: #5f5f5f;
  --accent: #111111;
  --accent-ink: #ffffff;
  --ok: #2f7d43;
  --warn: #9a6200;
  --err: #b8433f;
  --w-border: #999999;
  --w-shadow: rgba(0, 0, 0, 0.16);
  --w-title: linear-gradient(180deg, #dcdcdc 0%, #cacaca 100%);
  --w-title-text: #1a1a1a;
  --term-bg: #0c0c0c;
  --term-text: #cccccc;
  --term-muted: #8a8a8a;
  --term-cmd: #ffffff;
  --agent-l: 38%;
  --agent-s: 68%;
  --font: 'JetBrains Mono', 'Cascadia Mono', Consolas, 'SF Mono', Menlo, 'Courier New', monospace;
  --t-small: 13px;
  --t-body: 15px;
  --t-lead: 17px;
  --t-h2: clamp(22px, 2.6vw, 30px);
  --t-h1: clamp(30px, 4.6vw, 54px);
  --r: 5px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181818; --dot: #262626; --panel: #1f1f1f; --raised: #252526; --line: #2f2f2f;
    --text: #cccccc; --muted: #9d9d9d; --accent: #2b8de0; --accent-ink: #ffffff;
    --ok: #89d185; --warn: #d7b240; --err: #f16b6b;
    --w-border: #3a3a3a; --w-shadow: rgba(0, 0, 0, 0.45); --w-title: #181818; --w-title-text: #cccccc;
    --agent-l: 70%; --agent-s: 85%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181818; --dot: #262626; --panel: #1f1f1f; --raised: #252526; --line: #2f2f2f;
  --text: #cccccc; --muted: #9d9d9d; --accent: #2b8de0; --accent-ink: #ffffff;
  --ok: #89d185; --warn: #d7b240; --err: #f16b6b;
  --w-border: #3a3a3a; --w-shadow: rgba(0, 0, 0, 0.45); --w-title: #181818; --w-title-text: #cccccc;
  --agent-l: 70%; --agent-s: 85%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* No ligatures anywhere: "-->" must stay three characters, or the ASCII drawings lose their alignment.
   Important, because every "font:" shorthand below resets both settings on its own element. */
*, *::before, *::after { font-variant-ligatures: none !important; font-feature-settings: 'calt' 0, 'liga' 0 !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font: 400 var(--t-body)/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
code, pre { font-family: var(--font); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------------------------------------------------------- the taskbar */
.taskbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid var(--w-border); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(8px); }
.taskbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 46px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.brand .mark { font-weight: 500; }
.brand .beta { align-self: center; padding: 0 5px; border: 1px solid var(--warn); border-radius: 3px; color: var(--warn); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.taskbar nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--w-border); border-radius: 3px; background: var(--raised); color: var(--text); font: 500 var(--t-small) var(--font); text-decoration: none; }
.pill:hover { background: var(--panel); color: var(--text); box-shadow: 0 0 8px var(--w-shadow); }
.pill.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.solid:hover { color: var(--accent-ink); }
.pill[aria-current="page"] { background: var(--panel); border-color: var(--text); font-weight: 700; }
.pill.solid[aria-current="page"] { background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------- windows */
.window { border: 2px solid var(--w-border); border-radius: var(--r); background: var(--panel); box-shadow: 4px 4px 0 var(--w-shadow); overflow: hidden; min-width: 0; }
.title { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-bottom: 1px solid var(--w-border); background: var(--w-title); color: var(--w-title-text); font: 500 var(--t-small) var(--font); user-select: none; }
.title .spacer { flex: 1; }
.title .dots { display: inline-flex; gap: 4px; }
.title .dots span { width: 14px; height: 14px; border: 1px solid var(--w-border); border-radius: 2px; background: var(--raised); }
.body { padding: 22px; }
.term { background: var(--term-bg); color: var(--term-text); }

section { padding-block: 28px; }
.eyebrow { color: var(--muted); font-size: var(--t-small); letter-spacing: 0.06em; }
.eyebrow::before { content: '// '; opacity: 0.6; }
h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lead { max-width: 64ch; color: var(--muted); font-size: var(--t-lead); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 44px 28px; }
.hero h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, hsl(215 var(--agent-s) var(--agent-l)) 30%, transparent) 62%); }
.hero .lead { margin-top: 18px; }
.install { display: flex; align-items: stretch; margin-top: 26px; max-width: 520px; border: 2px solid var(--w-border); border-radius: var(--r); background: var(--term-bg); box-shadow: 4px 4px 0 var(--w-shadow); }
.install code { flex: 1; min-width: 0; padding: 12px 14px; color: var(--term-cmd); font-size: 14px; overflow-x: auto; white-space: nowrap; }
.install code .p { color: var(--term-muted); }
.copy { flex: none; border: 0; border-left: 1px solid #333; padding: 0 14px; background: #1b1b1b; color: #e8e8e8; font: 500 var(--t-small) var(--font); cursor: pointer; }
.copy:hover { background: #262626; }
.hero .fine { margin-top: 12px; color: var(--muted); font-size: var(--t-small); }
.hero .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.kitchen .body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; }
.pot { margin: 0; font: 500 clamp(6.4px, 1.95vw, 12.5px)/1 var(--font); color: var(--text); white-space: pre; cursor: grab; touch-action: none; user-select: none; }
.pot.dragging { cursor: grabbing; }
.kitchen .caption { color: var(--muted); font-size: 12px; text-align: center; }
.ticket { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12px; }
.ticket span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--raised); }
.ticket .done { color: var(--ok); }
.ticket .now { border-color: hsl(188 var(--agent-s) var(--agent-l)); color: hsl(188 var(--agent-s) var(--agent-l)); }

/* ---------------------------------------------------------------- crew */
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 14px; }
.cook { --agent: hsl(var(--h) var(--agent-s) var(--agent-l)); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 14px; border: 1px solid var(--line); border-top: 3px solid var(--agent); border-radius: var(--r); background: var(--raised); text-align: center; cursor: default; }
.cook pre { margin: 0; color: var(--agent); font: 600 9px/1 var(--font); white-space: pre; }
.cook strong { font-size: 15px; }
.cook .face { color: var(--agent); font-size: 12px; }
.cook p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.cook.hire { border-style: dashed; border-top-style: solid; justify-content: center; --h: 0; --agent: var(--muted); }
.cook.hire pre { font-size: 11px; line-height: 1.15; }

/* ------------------------------------------------------- how a run works */
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--w-border); border-radius: 3px; background: var(--raised); font-weight: 700; font-size: 13px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.log { margin: 0; padding: 16px 18px; font: 13px/1.7 var(--font); white-space: pre-wrap; overflow-x: auto; }
.log .you { color: var(--term-cmd); }
.log .chef { color: hsl(215 85% 70%); }
.log .cook-c { color: hsl(188 85% 70%); }
.log .taster { color: hsl(275 85% 74%); }
.log .ok { color: #89d185; }
.log .dim { color: var(--term-muted); }
.log .btns { color: #e8e8e8; }

/* ----------------------------------------------------------- providers */
.routes { margin: 0; padding: 14px 16px; font: 13px/1.9 var(--font); white-space: pre; overflow-x: auto; }
.routes .use { color: #89d185; }
.routes .cool { color: #e0b44c; }
.routes .off { color: var(--term-muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
td:first-child { white-space: nowrap; }
.scroll { overflow-x: auto; }

/* --------------------------------------------------------------- flows */
.ask { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid hsl(215 var(--agent-s) var(--agent-l)); border-radius: var(--r); background: var(--raised); font-size: 14px; }
.ask::before { content: '> '; color: var(--muted); }
.flow { margin: 0; padding: 16px; font: 12.5px/1.45 var(--font); white-space: pre; overflow-x: auto; color: var(--term-text); }
.flow .chk { color: #e0b44c; }
.flow .held { color: var(--term-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--raised); font-size: 12px; color: var(--muted); }
.feature b { display: block; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------- download */
.dl-meta { color: var(--muted); font-size: var(--t-small); }
.dl-btn { height: 38px; padding: 0 16px; font-size: 14px; }
.dl-notes { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.dl-notes b { color: var(--text); }
.note { padding: 12px 14px; border: 1px dashed var(--w-border); border-radius: var(--r); background: var(--raised); font-size: 14px; }
.note b { display: block; margin-bottom: 4px; }

/* -------------------------------------------------------------- safety */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 24px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; font-size: 14px; }
.checks li::before { content: '[x]'; color: var(--ok); font-weight: 700; }
.checks li.warn::before { content: '[!]'; color: var(--warn); }
.checks b { display: block; }
.checks span { color: var(--muted); }

/* -------------------------------------------------------------- themes */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatch { border: 2px solid var(--sw-frame); border-radius: var(--sw-r); background: var(--sw-bg); color: var(--sw-text); overflow: hidden; font-family: var(--sw-font); box-shadow: var(--sw-shadow, none); }
.swatch .bar { height: 22px; padding: 0 8px; border-bottom: 1px solid var(--sw-frame); background: var(--sw-title); font-size: 11px; line-height: 22px; }
.swatch .in { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 12px; font-size: 12px; }
.swatch .btn { align-self: flex-start; padding: 1px 8px; border-radius: var(--sw-r); background: var(--sw-accent); color: var(--sw-ink); font-size: 11px; }
.swatch .muted { color: var(--sw-muted); font-size: 11px; }

/* ----------------------------------------------------------- integrations */
pre.code { margin: 0; padding: 14px 16px; font: 13px/1.6 var(--font); overflow-x: auto; white-space: pre; }

/* ---------------------------------------------------- page heads, home cards */
.page-head { padding-block: 40px 4px; }
.page-head h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-top: 10px; }
.page-head .lead { margin-top: 14px; }
/* The dashboard, drawn in text on the home page. */
.desk { font-size: 12.5px; }
.desk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 10px; border-bottom: 1px solid var(--w-border); background: var(--raised); }
.desk-bar b { margin-right: 8px; }
.desk-bar span { padding: 1px 7px; border: 1px solid var(--w-border); border-radius: 3px; background: var(--panel); color: var(--muted); }
.desk-bar .gap { flex: 1; padding: 0; border: 0; background: none; }
.desk-bar i { width: 1px; height: 16px; margin: 0 3px; background: var(--line); }
.desk-panes { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) minmax(0, 1.1fr); gap: 8px; padding: 8px; background: var(--bg); }
.desk-pane { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0 10px 12px; border: 1px solid var(--w-border); border-radius: 3px; background: var(--panel); }
.desk-head { margin: 0 -10px; padding: 3px 10px; border-bottom: 1px solid var(--w-border); background: var(--w-title); color: var(--w-title-text); font-weight: 500; }
.desk pre { margin: 0; font: inherit; line-height: 1.6; white-space: pre; overflow: hidden; }
.desk .lock { color: hsl(188 var(--agent-s) var(--agent-l)); }
.desk-kitchen { align-items: center; text-align: center; }
.desk-order span { color: var(--muted); }
.desk-crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; }
.desk-crew span { --agent: hsl(var(--h) var(--agent-s) var(--agent-l)); min-width: 56px; padding: 6px 4px; border: 1px solid var(--line); border-top: 2px solid var(--agent); border-radius: 3px; color: var(--agent); line-height: 1.5; }
.desk-crew .busy { background: color-mix(in srgb, var(--agent) 14%, transparent); font-weight: 700; }
.desk-chat p { margin: 0; }
.desk-chat .you { color: var(--muted); }
.desk-chat .chef { color: hsl(215 var(--agent-s) var(--agent-l)); }
.desk-card { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 3px; background: var(--term-bg); color: var(--term-text); }
.desk-card code { color: var(--term-cmd); overflow-wrap: anywhere; }
.desk-card .btns b, .desk-card .btns i { display: inline-block; padding: 0 8px; border: 1px solid #555; border-radius: 3px; font-style: normal; font-weight: 500; }
.desk-card .btns b { background: var(--term-text); color: var(--term-bg); }
@media (max-width: 880px) {
  .desk-panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .desk-files { display: none; }
}
@media (max-width: 560px) {
  .desk-panes { grid-template-columns: minmax(0, 1fr); }
  .desk-bar span:not(:nth-of-type(-n+2)), .desk-bar i { display: none; }
}

/* Three to a row, so the six pages make two full rows; two, then one, on smaller screens. */
.tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 880px) { .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tour { grid-template-columns: minmax(0, 1fr); } }
.tour a.window { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .12s, box-shadow .12s; }
.tour a.window:hover { color: var(--text); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--w-shadow); }
.tour .body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px; }
.tour b { font-size: 16px; }
.tour p { color: var(--muted); font-size: 14px; flex: 1; }
.tour .go { font-size: var(--t-small); font-weight: 700; }
.next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 6px 10px; }
@media (prefers-reduced-motion: reduce) { .tour a.window { transition: none; } .tour a.window:hover { transform: none; } }

/* --------------------------------------------------------------- start */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.keys a { font-weight: 500; }
footer { padding-block: 26px 40px; color: var(--muted); font-size: var(--t-small); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
footer .brand { color: var(--text); }

@media (max-width: 880px) {
  .hero, .start { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 28px 12px; }
}
@media (max-width: 600px) {
  .cook.hire { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .body { padding: 16px; }
  .taskbar nav { margin-left: 0; }
  .pill { height: 26px; padding: 0 8px; }
}
h1.h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
