/* cyborg's skin: black, silver and gold. Loaded after levada.css and cyborg.css, it only re-points
   their tokens and reshapes the surfaces: chamfered gold-edged panels, rectangular controls, a
   fine grid in place of the contour lines. Type: Chakra Petch for headings, Inter for text,
   JetBrains Mono for labels. Fonts are bundled (SIL OFL, see fonts/LICENSES.txt). Dark only. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/chakra-petch-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, :root:not([data-theme="light"]) {
  color-scheme: dark;
  --basalt: #0e0c08; --basalt-deep: #070605; --on-basalt: #eceef1; --on-basalt-muted: #b6b4ab;
  --basalt-chip: #131109; --sprout: #d9b04a; --ochre: #cfd3d9;
  --bg: #0a0907; --card: #131109; --text: #eceef1; --muted: #a8a69c; --line: #2c2616;
  --accent: #d9b04a; --accent-text: #120e03; --chip: #1e1a0e; --code: #1e1a0e;
  --gold-edge: linear-gradient(135deg, #e6c15c 0%, #3a3017 42%, #c79f3a 100%);
  --gold-fill: linear-gradient(180deg, #f6dc8c, #c79f3a);
  --bad: #ff8a6b;
  --shadow: none;
  --radius: 0;
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.welcome { background: radial-gradient(ellipse at 78% 0%, rgba(217, 176, 74, .12), transparent 46%), var(--bg); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 { line-height: 1.12; }
.hero h1 { max-width: 16ch; }
.hero h1 em { background: linear-gradient(180deg, #f6dc8c 0%, #d9b04a 55%, #a67f1d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .hero h1 em { background: none; color: CanvasText; } }
a { color: var(--on-basalt); }
::selection { background: rgba(217, 176, 74, .35); }

/* Labels read like a console line. */
.eyebrow::before { content: "// "; }
.brand b { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f2d27c; }

/* The header and the sections: flat black, thin gold-brown rules. */
.site-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head nav a { border-radius: 0; color: var(--on-basalt-muted); }
@media (hover: hover) { .site-head nav a:hover { color: #f2d27c; background: none; } }
.site-head nav a.btn-sprout { color: #120e03; }
@media (hover: hover) { .site-head nav a.btn-sprout:hover { color: #120e03; } }
.section.on-basalt { border-block: 1px solid var(--line); }
.hero.on-basalt { border-top: 0; background: radial-gradient(ellipse at 78% 6%, rgba(217, 176, 74, .14), transparent 46%), var(--bg); }
.hero .lines { opacity: 1; color: transparent;
  background-image: linear-gradient(rgba(217, 176, 74, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 176, 74, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%); mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%); }
.hero .lines svg { display: none; }

/* Buttons: the main one is a gold plate with cut corners, the quiet one a plain silver line. */
a.btn, button, .cy-chipbtn, .cy-input, .cy-actions .btn, .cy-send .btn, .cy-row .btn, .cy-setup .btn { border-radius: 0; }
a.btn-sprout, a.btn-primary { background: var(--gold-fill); color: #120e03; font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
a.btn-sprout:focus-visible, a.btn-primary:focus-visible { outline-offset: -5px; outline-color: #120e03; }
@media (hover: hover) { a.btn-sprout:hover, a.btn-primary:hover { background: linear-gradient(180deg, #fff0b8, #d9b04a); } }
a.btn-ghost { color: #e3e5e8; border-color: #6f6a58; }
@media (hover: hover) { a.btn-ghost:hover { border-color: #d9b04a; color: #f2d27c; } }
.cy-chipbtn { border-color: #6f6a58; background: transparent; }
.cy-chipbtn[aria-pressed="true"] { background: var(--gold-fill); color: #120e03; border-color: transparent; font-weight: 700; }
.cy-actions .btn-primary, .cy-send .btn-primary, .cy-row .btn-primary, .cy-setup .btn-primary { background: var(--gold-fill); color: #120e03; border-color: transparent; }
.cy-input { background: var(--bg); }

/* Panels: a gold-edged plate with two cut corners. The edge is the element's own gradient; the
   ::before is the fill, inset 1px, so the stroke stays even along the cuts. */
.demo-card, .feature, .tile, .hero-teaser, .steps li {
  --cut: 22px; position: relative; isolation: isolate; border: 0; box-shadow: none; background: var(--gold-edge);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.demo-card::before, .feature::before, .tile::before, .hero-teaser::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--card);
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px)); }
.steps li::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--card); width: auto; border: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px)); }
.steps li:last-child::after, #pipeline .steps li::after { display: block; }
.demo-card { padding: 24px; }
@media (max-width: 640px) { .demo-card, .feature, .tile, .hero-teaser, .steps li { --cut: 14px; } .demo-card { padding: 16px; } }

/* The pipeline: six plates, a big gold numeral and the status chip on each. */
.steps { gap: 18px; }
#pipeline .steps { grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { #pipeline .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { #pipeline .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
#pipeline .steps li { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; column-gap: 12px; padding: 22px; }
.steps li::before { position: static; width: auto; height: auto; border-radius: 0; background: none; display: block;
  font: 600 1.7rem/1 var(--display); color: var(--accent); place-items: initial; }
.steps h3, .steps p { grid-column: 1 / -1; }
.steps h3 { margin: 14px 0 6px; font-size: 1.2rem; }
.steps p { color: var(--on-basalt-muted); }
.steps .when { margin: 0; border-radius: 0; font-weight: 700; justify-self: end; }
.steps .when.built { background: var(--gold-fill); color: #120e03; }
.steps .when.partly { border: 1px solid var(--accent); color: #f2d27c; font-weight: 500; }
.steps .when.next { border: 1px dashed #cfd3d9; color: #e3e5e8; font-weight: 500; }

/* Cards, tiles, the built list. */
.feature h3, .tile strong { color: #f2d27c; }
.feature p { color: var(--muted); }
.tile { color: var(--on-basalt); }
.tile::before { transition: background-color 160ms ease-out; }
@media (hover: hover) { .tile:hover { box-shadow: none; } .tile:hover::before { background: var(--chip); } }
.build-list li { border-radius: 0; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); box-shadow: none; }
.build-list li b { color: #f2d27c; }
.build-list .next { border: 1px dashed #8d929a; border-left: 3px dashed #cfd3d9; background: transparent; }
.build-list .next b { color: #e3e5e8; }

/* The sheet and the replay: flat inner parts with a gold bar. */
.sh-text, .cy-bot pre, .cy-office, .cy-how pre { border-radius: 0; background: var(--bg); border-color: var(--line); }
.sh-block, .cy-row { border-radius: 0; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.sh-block.warn, .cy-row.proposed { border-left-color: #cfd3d9; border-left-style: dashed; }
.cy-row.approved { border-left-color: var(--accent); }
.sh-badge, .cy-chip { border-radius: 0; background: rgba(217, 176, 74, .14); border: 1px solid #5b4a1c; color: #f2d27c; }
.cy-chip { color: #d6d9de; background: transparent; }
.cy-thread, .cy-side { border-radius: 0; background: var(--bg); border: 1px solid var(--line); box-shadow: none; }
.cy-in span { border-radius: 0; background: #1e1a0e; border: 1px solid #3a3017; color: #e3e5e8; }
.cy-bot { border-radius: 0; background: var(--basalt); border-left: 3px solid var(--accent); }
.cy-bot.cy-none { border-left-color: #cfd3d9; border-left-style: dashed; }
.cy-req { border-radius: 0; background: var(--chip); box-shadow: inset 3px 0 0 var(--accent); }
.cy-status.bad, .cy-prob { color: var(--bad); }
.cy-how summary, .cy-prompt summary { color: #f2d27c; }
.cy-mode { margin: 0 0 8px; font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #f2d27c; }
.cy-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cy-outcome { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--chip); color: var(--on-basalt-muted); font-size: .92rem; }
.cy-meta, .cy-how h4, .sh-col h3, .sh-block b, .cy-side h3 { color: var(--muted); }

/* "What it does": the scrubber demo, the toasts, the self-checks. */
.demo-card textarea.cy-input { min-height: 170px; resize: vertical; font: .9rem/1.55 var(--mono); }
.demo-card label { color: inherit; }
.sh-found { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-found li { padding: 2px 10px; background: rgba(217, 176, 74, .14); border: 1px solid #5b4a1c; color: #f2d27c; font: .78rem var(--mono); }
mark.hit { background: rgba(255, 138, 107, .22); color: #ffd2c6; border-bottom: 2px solid var(--bad); padding: 0 1px; }
.verdict { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg); font-size: .95rem; }
.verdict.stop { border-left-color: var(--bad); }
.verdict.stop::before { content: "STOPPED · "; font: 700 .75rem var(--mono); letter-spacing: .12em; color: var(--bad); }
.verdict.pass::before { content: "PASSED · "; font: 700 .75rem var(--mono); letter-spacing: .12em; color: var(--accent); }
.verdict.replaced::before { content: "REPLACED · "; font: 700 .75rem var(--mono); letter-spacing: .12em; color: var(--accent); }
.verdict pre { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .8rem/1.6 var(--mono); color: var(--on-basalt-muted); }
.toast-row { display: grid; gap: 16px; }
@media (min-width: 760px) { .toast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--bad); padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toast-head b { font: 600 1.05rem var(--display); color: var(--on-basalt); }
.toast-mode { margin-left: auto; font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toast-body { margin: 8px 0 12px; color: var(--on-basalt-muted); }
.toast-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toast-btn { padding: 8px 14px; border: 1px solid #6f6a58; color: #e3e5e8; font-weight: 600; font-size: .9rem; }
.toast-btn:first-child { background: var(--gold-fill); color: #120e03; border-color: transparent; }
/* "When a person is needed": the five-step strip. */
.flow { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); padding: 16px; }
.flow-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-dot { min-width: 40px; min-height: 40px; background: transparent; border: 1px solid #6f6a58; color: #e3e5e8; font: 600 .95rem var(--mono); cursor: pointer; }
.flow-dot.on { background: var(--gold-fill); color: #120e03; border-color: transparent; }
.flow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-head b { font: 600 1.1rem var(--display); color: var(--on-basalt); }
.flow-tag { font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--accent); color: #f2d27c; }
.flow-tag.wazaa, .flow-tag.partly { border-style: dashed; border-color: #cfd3d9; color: #e3e5e8; }
.flow-wa small { display: block; font: .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.flow-bubble { margin: 0; display: inline-block; max-width: 36rem; padding: 10px 14px; background: #1d2a1c; border: 1px solid #38503a; color: #eaf3e6; overflow-wrap: anywhere; }
.flow-bot { margin: 0; color: var(--on-basalt-muted); }
.flow-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow-pane h4 { margin: 0 0 8px; font: .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.flow-none { margin: 0; padding: 12px 14px; border: 1px dashed #4a4a44; color: var(--on-basalt-muted); }
.flow-card { margin: 0; padding: 12px 14px; background: #0d0d0b; border: 1px solid var(--line); border-left: 3px solid var(--accent); font: .8rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--on-basalt-muted); }
.flow-note { margin: 0; font-size: .92rem; color: var(--on-basalt-muted); }
.flow-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-ctl button:disabled { opacity: .45; cursor: default; }
.dot { width: 10px; height: 10px; display: inline-block; transform: rotate(45deg); flex: none; }
.dot.red { background: var(--bad); } .dot.yellow { background: var(--accent); } .dot.green { background: #8fd0a0; }
.legend { list-style: none; margin: 18px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--on-basalt-muted); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend b { color: var(--on-basalt); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: chk; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checks li { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); counter-increment: chk; }
.checks li::before { content: counter(chk, decimal-leading-zero); display: block; font: 600 1.4rem/1 var(--display); color: var(--accent); }
.checks h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.checks p { margin: 0; color: var(--on-basalt-muted); font-size: .98rem; }
.hero-teaser pre { color: var(--on-basalt-muted); }
.hero-teaser:empty { display: none !important; }
code { background: rgba(217, 176, 74, .12); color: #f2d27c; padding: 1px 6px; font-family: var(--mono); font-size: .88em; }
.audit-plan { margin-top: 26px; padding: 22px 24px; border: 1px dashed #8d929a; border-left: 3px dashed #cfd3d9; }
.audit-plan .eyebrow { margin-bottom: 8px; }
.audit-plan h3 { margin: 0 0 8px; font-size: 1.3rem; }
.audit-plan p { max-width: 70ch; }
.audit-plan .status { margin: 12px 0 0; color: var(--on-basalt); }
