/* Workstation Guard site. One stylesheet for every page. No external fonts, no trackers. */
:root {
  --base: #0A0A0A; --surface: #121212; --raised: #1A1A1A; --border: rgba(255,255,255,.1); --border-strong: rgba(255,255,255,.2);
  --text: #EDEDED; --muted: #A3A3A3; --accent: #4CC777; --accent-soft: rgba(76,199,119,.12); --on-accent: #04210F;
  --critical: #EC7079; --high: #E5944A; --medium: #D9B44C;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px; --max: 1120px;
}
@media (prefers-color-scheme: light) {
  :root { --base: #F5F5F5; --surface: #FFFFFF; --raised: #FAFAFA; --border: rgba(0,0,0,.12); --border-strong: rgba(0,0,0,.25);
    --text: #111111; --muted: #5C5C5C; --accent: #15703A; --accent-soft: rgba(21,112,58,.1); --on-accent: #FFFFFF;
    --critical: #B3261E; --high: #A8500C; --medium: #7D5A00; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--base); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.muted { color: var(--muted); }
.c { color: var(--critical); } .h { color: var(--high); } .m { color: var(--medium); } .ok { color: var(--accent); }

/* nav */
header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
header.nav .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .nav-links { display: none; } header.nav .btn { margin-left: auto; } }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: 600 16px var(--sans);
  border: 1px solid var(--border); color: var(--text); background: var(--surface); cursor: pointer; transition: transform .15s, background .15s, filter .15s; }
.btn:hover { text-decoration: none; background: var(--raised); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); background: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* hero */
.hero { padding: 84px 0 56px; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft), transparent 70%); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font: 13px/1 var(--mono); color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; margin-bottom: 26px; background: var(--surface); }
h1 { font-size: clamp(38px, 6.4vw, 70px); line-height: 1.02; letter-spacing: -.04em; margin: 0 auto 22px; max-width: 920px; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* mac window mockup (used by every demo) */
.win { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; text-align: left; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--raised); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: block; }
.win-bar span { margin-left: 8px; font: 12px var(--mono); color: var(--muted); }
.win-body { padding: 20px; }
.demo-hero { max-width: 880px; margin: 52px auto 0; }
.scan-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.scan-grid > * { min-width: 0; }
@media (max-width: 760px) { .scan-grid, .scan-grid[style] { grid-template-columns: minmax(0, 1fr) !important; } }
.btn { white-space: nowrap; }
@media (max-width: 420px) { .brand span { display: none; } }
.log { font: 13px/1.75 var(--mono); min-height: 230px; }
.log div { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log div.in { opacity: 1; transform: none; }
.dial-wrap { display: grid; place-items: center; align-content: center; gap: 10px; }
.dial { width: 150px; height: 150px; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 11; }
.dial .track { stroke: var(--raised); }
.dial .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray .9s cubic-bezier(.2,.7,.2,1), stroke .4s; }
.dial-num { font: 700 38px/1 var(--mono); margin-top: -104px; margin-bottom: 52px; }
.dial-label { font: 12px var(--mono); color: var(--muted); }

/* sections + chapters */
section { padding: 96px 0; border-top: 1px solid var(--border); }
.chap { font: 13px/1 var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.chap::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
h2 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 16px; max-width: 760px; }
.section-lede { color: var(--muted); max-width: 680px; margin: 0 0 44px; font-size: 18px; }
h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--raised);
  border: 1px solid var(--border); margin-bottom: 16px; color: var(--accent); }
.icon svg { width: 19px; height: 19px; }
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1.25fr; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* chips + tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font: 13px var(--mono); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.where { min-height: 168px; }
.where h3 { font-size: 17px; }
.codeline { font: 13.5px/1.6 var(--mono); background: var(--base); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0; overflow-x: auto; white-space: pre; }

/* workflow pipeline */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
@media (max-width: 860px) { .pipe { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pipe { grid-template-columns: 1fr; } }
.node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; transition: border-color .4s, background .4s, transform .4s; }
.node b { font: 600 12px var(--mono); color: var(--muted); display: block; margin-bottom: 12px; transition: color .4s; }
.node.on { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }
.node.on b { color: var(--accent); }
.node p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.beam { height: 3px; background: var(--border); border-radius: 3px; margin-top: 22px; overflow: hidden; }
.beam i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s linear; }
.never { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 14px var(--mono); color: var(--muted); }
.never s { text-decoration: none; padding: 4px 10px; border: 1px dashed var(--border-strong); border-radius: 999px; }
.never s::before { content: "✕ "; color: var(--critical); }

/* receipt */
.receipt { font-family: var(--mono); font-size: 14px; }
.receipt .head { text-align: center; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.receipt .row { display: flex; gap: 10px; align-items: baseline; padding: 7px 6px; cursor: pointer; border-radius: 6px; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.receipt .row:hover { background: var(--raised); }
.receipt .row.fixed { opacity: .45; text-decoration: line-through; }
.receipt .what { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--border); transform: translateY(-4px); }
.receipt .total { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; font-weight: 700; }
.hint { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* fix demo */
.file { font: 13.5px/1.8 var(--mono); background: var(--base); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.file div { white-space: pre; padding: 0 6px; border-radius: 4px; transition: background .3s, opacity .3s; }
.file .bad { background: color-mix(in srgb, var(--critical) 16%, transparent); }
.file .gone { display: none; }
.sheet { border: 1px solid var(--border-strong); background: var(--raised); border-radius: 12px; padding: 16px; margin-top: 14px; }
.sheet p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.sheet ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status { font: 13px var(--mono); margin-top: 12px; min-height: 20px; color: var(--muted); }
[hidden] { display: none !important; }

/* agent demo */
.agent-chat { display: grid; gap: 12px; }
.bubble { padding: 12px 14px; border-radius: 12px; font-size: 15px; max-width: 94%; }
.bubble.you { background: var(--accent-soft); justify-self: end; border: 1px solid var(--border); font-family: var(--mono); font-size: 13.5px; word-break: break-word; }
.bubble.guard { background: var(--raised); border: 1px solid var(--border-strong); }
.bubble.guard b { color: var(--accent); font: 600 12px var(--mono); display: block; margin-bottom: 4px; }
.bubble.warn b { color: var(--high); }
.bubble.stop b { color: var(--critical); }
.agent-out { min-height: 160px; }
pre { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; font: 13px/1.6 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-word; }
pre .k { color: var(--accent); } pre .d { color: var(--muted); }

/* timeline */
.timeline { display: grid; gap: 0; position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl { position: relative; padding: 0 0 30px 34px; opacity: .35; transition: opacity .5s; }
.tl.in { opacity: 1; }
.tl::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--base); border: 2px solid var(--border-strong); transition: all .4s; }
.tl.in::before { border-color: var(--accent); background: var(--accent); }
.tl b { display: block; font: 600 12px var(--mono); color: var(--accent); margin-bottom: 4px; }
.tl p { margin: 0; color: var(--muted); }
.notice { border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px 16px; background: var(--raised); display: flex; gap: 12px; align-items: flex-start; font-size: 15px; max-width: 420px; margin-top: 8px; }
.notice svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.notice small { display: block; color: var(--muted); }

/* compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare th { font-weight: 600; background: var(--surface); }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare .us { background: var(--accent-soft); color: var(--text); }
.yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.no::before { content: "– "; }

.limits { columns: 2 320px; column-gap: 40px; color: var(--muted); padding-left: 20px; margin: 0; }
.limits li { break-inside: avoid; margin-bottom: 12px; }
.limits strong { color: var(--text); }

details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 760px; }

.download { text-align: center; }
.download .section-lede, .download h2 { margin-left: auto; margin-right: auto; }
.install { text-align: left; max-width: 660px; margin: 36px auto 0; }
.install ol { color: var(--muted); padding-left: 22px; margin: 12px 0 0; }
.install li { margin-bottom: 10px; }
.install strong { color: var(--text); }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* legal pages */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 8px; text-align: left; max-width: none; }
.prose .meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.tldr { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 8px; }
.tldr p { color: var(--text); margin: 0 0 8px; }
.tldr p:last-child { margin: 0; }

/* scroll reveal: only when JS is on and motion is allowed */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .log div, .node, .tl, .dial .arc, .beam i, .btn { transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .tl { opacity: 1; }
}
