:root {
  --paper: #f3f1e9;
  --paper-deep: #e7e3d7;
  --ink: #171815;
  --muted: #686961;
  --line: #c9c5b9;
  --signal: #ff5b35;
  --acid: #d8ff55;
  --terminal: #151719;
  --terminal-panel: #1c1f21;
  --terminal-line: #34383a;
  --terminal-text: #edf0e9;
  --terminal-muted: #a9b0b2;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1440px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 20; background: var(--acid); color: var(--ink); padding: 12px 16px; }
.skip-link:focus { top: 16px; }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; font-weight: 720; letter-spacing: -0.025em; }
.brand-mark { width: 25px; height: 25px; border: 1px solid currentColor; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 2px; padding: 4px; }
.brand-mark i { display: block; background: currentColor; height: 35%; }
.brand-mark i:nth-child(2) { height: 70%; }
.brand-mark i:nth-child(3) { height: 100%; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a, .preview-badge { font: 600 .875rem/1.3 var(--mono); letter-spacing: .02em; text-decoration: none; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -6px; background: var(--ink); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.preview-badge { justify-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--muted); }
.licensing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.licensing .button { margin-top: 16px; }
.license-details { font-size: 1rem; line-height: 1.7; min-width: 0; }
.license-details h3 { font-size: 1.5rem; line-height: 1.3; margin-top: 0; }
.license-details ul { padding-left: 1.2em; }
.license-details li { margin-block: 8px; }
.license-details .rights-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.guide { width: min(calc(100% - 48px), 1000px); margin: 0 auto; padding: 72px 0; font-size: 1rem; line-height: 1.75; }
.guide h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.1; letter-spacing: -.05em; margin: 0 0 24px; }
.guide h2 { margin: 52px 0 16px; line-height: 1.3; font-size: 1.75rem; }
.guide h3 { margin: 28px 0 12px; }
.guide .lede { margin: 0 0 32px; }
.guide nav { display: flex; flex-wrap: wrap; gap: 12px 24px; border-block: 1px solid var(--line); padding: 20px 0; }
.guide pre { background: var(--terminal); color: var(--terminal-text); padding: 24px; border-radius: 12px; overflow-x: auto; font: .9375rem/1.7 var(--mono); }
.guide code { font-family: var(--mono); overflow-wrap: anywhere; }
.guide table { border-collapse: collapse; width: 100%; }
.guide th, .guide td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide th { font-weight: 650; }
.guide .table-scroll { overflow-x: auto; }
.guide .note { border-left: 3px solid var(--signal); padding: 12px 20px; background: var(--paper-deep); }
@media (max-width: 760px) { .licensing { grid-template-columns: 1fr; } .license-details { padding-top: 0; } .guide { width: min(calc(100% - 32px), 1000px); padding-top: 40px; } }

.hero {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) 0;
  display: grid;
  grid-template-columns: minmax(380px, .82fr) minmax(570px, 1.18fr);
  gap: clamp(42px, 6vw, 100px);
  align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; font: 650 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { width: 20px; height: 7px; background: var(--signal); }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(3.5rem, 6.3vw, 6.5rem); line-height: 1; letter-spacing: -.065em; font-weight: 760; }
.hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.lede { max-width: 570px; margin: 36px 0 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; letter-spacing: -.016em; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 232px; padding: 16px 18px; text-decoration: none; font-size: 14px; font-weight: 680; border: 1px solid var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.button:hover, .button:focus-visible { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--signal); }
.button.primary { background: var(--ink); color: white; }
.text-link { font: 650 .875rem/1.5 var(--mono); text-underline-offset: 5px; }
.principles { margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.principles dt { font: 680 .875rem/1.4 var(--mono); }
.principles dd { margin: 6px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }

.terminal-window { min-width: 0; overflow: hidden; color: var(--terminal-text); background: var(--terminal); border: 1px solid #363b3d; border-radius: 16px; box-shadow: 0 2px 5px #17181514, 0 24px 60px -20px #17181559; color-scheme: dark; }
.terminal-window :focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.window-bar { min-height: 58px; padding: 14px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--terminal-line); background: var(--terminal-panel); color: var(--terminal-muted); font: 500 .8125rem/1.4 var(--mono); }
.traffic { display: flex; gap: 7px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #ec796b; box-shadow: inset 0 0 0 1px #ffffff15; }
.traffic i:nth-child(2) { background: #dfb960; }
.traffic i:nth-child(3) { background: #96ba86; }
.window-title { justify-self: center; overflow-wrap: anywhere; }
.window-title > span { margin-inline: 6px; color: #6c7477; }
.terminal-badge { padding: 4px 8px; border: 1px solid #4a5140; border-radius: 5px; color: #d4dfbd; background: #d8ff5508; font: 500 .75rem/1.4 var(--mono); white-space: nowrap; }
.snapshot-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 24px; border-bottom: 1px solid var(--terminal-line); background: #ffffff02; }
.snapshot-strip div { display: flex; flex-direction: column; gap: 10px; }
.snapshot-strip div:last-child { text-align: right; }
.snapshot-strip span { color: var(--terminal-muted); font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; }
.snapshot-strip strong { font: 500 .875rem/1.5 var(--mono); }
.snapshot-strip .arrow { color: var(--acid); font-size: 1.25rem; }
.evidence-toolbar { padding: 24px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.evidence-toolbar > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.evidence-toolbar strong { font-size: 1.25rem; letter-spacing: -.025em; }
.evidence-toolbar span { color: var(--terminal-muted); font: 500 .8125rem/1.4 var(--mono); }
.evidence-toolbar #change-count { font: inherit; color: var(--acid); }
.evidence-toolbar b { color: #ff9978; font-weight: 500; }
.periods { display: flex; padding: 4px; gap: 3px; background: #0e1011; border: 1px solid var(--terminal-line); border-radius: 8px; }
.periods button { appearance: none; border: 0; border-radius: 5px; padding: 9px 10px; background: transparent; color: var(--terminal-muted); font: 500 .875rem/1.4 var(--mono); cursor: pointer; transition: color .15s, background .15s; }
.periods button:hover { color: white; background: #ffffff0b; }
.periods button.active { background: #333b28; color: var(--acid); box-shadow: inset 0 0 0 1px #d8ff5526; }
.change-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--terminal-line); }
.change-item { min-height: 90px; padding: 18px 24px; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: start; gap: 14px; border-bottom: 1px solid var(--terminal-line); animation: reveal .2s ease both; }
.change-dot { width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--terminal-muted); }
.change-item.high .change-dot { background: #ff9978; }
.change-item.medium .change-dot { background: #a2c8f1; }
.change-main strong { display: block; margin-bottom: 6px; font-size: .9375rem; line-height: 1.5; font-weight: 600; }
.change-main code { color: var(--terminal-muted); font: 400 .875rem/1.6 var(--mono); overflow-wrap: anywhere; }
.detail-before { color: var(--terminal-muted); }
.detail-arrow { color: #7f8a87; margin-inline: 4px; }
.detail-after { color: #daf1ad; }
.severity { display: inline-block; padding: 4px 7px; border: 1px solid #ffffff18; border-radius: 4px; color: var(--terminal-muted); font: 500 .75rem/1.3 var(--mono); letter-spacing: .02em; }
.change-item.high .severity, .demo-line.high .severity { color: #ffad90; border-color: #ff99782b; background: #ff997809; }
.change-item.medium .severity, .demo-line.medium .severity { color: #acd1fa; border-color: #acd1fa2b; background: #acd1fa09; }
.command-line { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: #101214; color: #e1e6dc; font: 400 .875rem/1.7 var(--mono); }
.command-line code { min-width: 0; overflow-wrap: anywhere; font: inherit; }
.command-line > span { color: var(--acid); }
.command-line strong { color: #d3e99f; font-weight: 500; }
.command-flag { color: #a2c8f1; }
.command-line button { margin-left: auto; border: 1px solid var(--terminal-line); border-radius: 5px; padding: 7px 10px; background: #ffffff05; color: var(--terminal-muted); cursor: pointer; font: inherit; flex-shrink: 0; }
.command-line button:hover, .command-line button:focus-visible { color: white; border-color: #68716d; }

.manifesto { min-height: 106px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto auto auto; gap: clamp(24px, 5vw, 78px); align-items: center; background: var(--acid); border-block: 1px solid var(--ink); }
.manifesto p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.035em; }
.manifesto span { font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: clamp(56px, 6vw, 88px) 0; }
.section h2 { margin: 0; font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.06; letter-spacing: -.05em; }
.automation-benefits { list-style: none; margin: 24px 0; padding: 0; }
.automation-benefits li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; color: var(--muted); }
.automation-benefits strong { color: var(--ink); }
.licensing .platform-note { margin-top: 28px; max-width: 440px; font-size: .875rem; line-height: 1.65; color: var(--muted); }
.product-detail { border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.product-detail:last-of-type { border-bottom: 1px solid var(--line); }
.product-detail summary { padding: 20px 0; cursor: pointer; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.product-detail summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.product-detail p { margin: 0 0 24px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.product-detail code { overflow-wrap: anywhere; }
.guide .product-detail { margin-top: 24px; }
.guide .product-detail summary { font-size: 1.125rem; }
.guide .product-detail pre + p { margin-top: 20px; }
.guide [id] { scroll-margin-top: 24px; }
.quick-start { width: min(calc(100% - 48px), 1120px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; padding-block: 64px; border-bottom: 1px solid var(--line); }
.quick-start h2 { font-size: 2rem; line-height: 1.15; }
.quick-start .section-intro p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.cli-example { min-width: 0; align-self: start; }
.cli-window { border-radius: 8px; box-shadow: none; }
.cli-window .window-bar { min-height: 48px; padding: 8px 20px; }
.terminal-label { margin: 0; color: var(--terminal-muted); font: 500 .75rem/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.cli-command-list { list-style: none; margin: 0; padding: 0 20px; }
.cli-command-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--terminal-line); }
.cli-command-list li:first-child { border-top: 0; }
.cli-step { padding-top: 2px; color: #939e99; font: 400 .75rem/1.6 var(--mono); }
.cli-comment { display: block; color: var(--terminal-muted); font-size: .875rem; line-height: 1.6; }
.cli-command-list code { display: block; margin-top: 6px; font: 500 .875rem/1.6 var(--mono); overflow-wrap: anywhere; }
.cli-command-list code > span { padding-right: 10px; color: #939e99; }
.cli-command-list code strong { color: var(--acid); font-weight: 500; }
.terminal-footnote { padding: 18px 24px; border-top: 1px solid var(--terminal-line); color: var(--terminal-muted); font: .8125rem/1.6 var(--mono); }
.terminal-footnote > span { padding-inline: 8px; color: #63716c; }
.cli-example p { font-size: .875rem; line-height: 1.65; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.demo-section { width: min(calc(100% - 48px), 1120px); display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 48px; padding-block: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.demo-intro { padding-top: 12px; }

.demo-intro .eyebrow { margin-bottom: 20px; }
.demo-intro h2 { font-size: 2rem; line-height: 1.15; }
.demo-intro h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.demo-intro-note > p { margin: 20px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 440px; }
.demo-intro-note .demo-disclosure { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.demo-terminal { min-width: 0; font: 400 .875rem/1.6 var(--mono); }
.demo-terminal button { min-height: 44px; cursor: pointer; font: inherit; border-radius: 5px; border: 1px solid transparent; padding: 8px 12px; background: transparent; color: var(--terminal-text); transition: background .16s, border-color .16s, color .16s; }
.demo-terminal button:hover:not(:disabled) { background: #ffffff08; }
.demo-terminal button:disabled { cursor: default; color: var(--terminal-muted); }
.demo-terminal .window-bar { min-height: 54px; grid-template-columns: minmax(0, 1fr) auto; padding: 5px 24px; gap: 12px; background: #1a1d1f; }
.demo-terminal .window-title { justify-self: start; font-size: .875rem; }
.demo-terminal .demo-terminal-mark { margin: 0 12px 0 0; color: #d6ddd3; }
.window-actions { display: flex; gap: 16px; align-items: center; }
#demo-state { color: var(--terminal-muted); font-size: .75rem; }
.demo-terminal[data-phase="changed"] #demo-state { color: #efb397; }
.demo-terminal .terminal-reset { padding-inline: 8px; color: var(--terminal-muted); font-size: .8125rem; }
.terminal-reset > span { margin-left: 6px; }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 24px; border-bottom: 1px solid var(--terminal-line); }
.demo-steps button { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 12px; border: 0; border-radius: 0; text-align: left; }
.demo-steps button::after { content: ""; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: transparent; }
.demo-steps button:focus-visible { outline-offset: -4px; }
.step-number { color: #969e99; font-size: .8125rem; }
.demo-steps strong { display: block; font: 550 .9375rem/1.4 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #d5dbd2; }
.demo-steps code { display: block; margin-top: 4px; color: var(--terminal-muted); font: .75rem/1.5 var(--mono); }
.demo-steps button[aria-current="step"]::after { background: var(--acid); }
.demo-steps button[aria-current="step"] .step-number, .demo-steps button[aria-current="step"] strong { color: var(--acid); }
.demo-steps button.is-complete .step-number { color: #b7cc8b; }
.demo-scenarios { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 28px; border-bottom: 1px solid #ffffff0c; background: #ffffff02; }
.scenario-label { margin: 0 12px 0 0; color: var(--terminal-muted); font: .8125rem/1.5 var(--mono); }
.demo-scenarios button { display: inline-flex; align-items: center; gap: 16px; padding: 6px 12px; border-color: #454a49; }
.demo-scenarios strong { font-size: .875rem; font-weight: 400; }
.scenario-status { color: #b5bdb2; }
.demo-scenarios button.is-applied { border-color: #68764d; color: #c6d6ab; }
.demo-scenarios button.is-applied .scenario-status { color: #c6d6ab; }
.demo-console { min-width: 0; }
.demo-output { height: 230px; overflow: auto; padding: 26px 32px; scrollbar-width: thin; scrollbar-color: #4a514c transparent; overscroll-behavior: contain; }
.demo-welcome { padding: 0; }
.demo-welcome .terminal-label { font-size: .75rem; letter-spacing: .06em; }
.demo-welcome h3 { margin: 0 0 10px; font: 500 1.125rem/1.4 Inter, ui-sans-serif, sans-serif; letter-spacing: -.015em; }
.demo-welcome > p:not(.terminal-label) { margin: 0; color: var(--terminal-muted); font: .9375rem/1.7 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.demo-welcome .demo-launch { display: inline-flex; align-items: center; gap: 12px; margin: 20px 0 0 -8px; padding: 6px 8px; font-size: .9375rem; }
.demo-launch > span:first-child { color: var(--acid); }
.demo-launch > span:last-child { margin-left: 8px; color: var(--terminal-muted); }
.demo-entry { padding: 18px 0; border-bottom: 1px solid #ffffff0a; animation: reveal .18s ease both; }
.demo-entry:first-child { padding-top: 0; }
.demo-entry:last-child { border-bottom: 0; }
.demo-prompt { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; color: #f0f2ed; font: 500 .9375rem/1.7 var(--mono); }
.demo-prompt > span { color: var(--acid); }
.demo-prompt code { min-width: 0; overflow-wrap: anywhere; font: inherit; }
.demo-lines { font: .875rem/1.8 var(--mono); color: #bdc5c4; }
.demo-line { display: block; min-height: 1.8em; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-line.heading { color: var(--terminal-text); font-weight: 600; margin-bottom: 8px; }
.demo-line.success { color: #c9e2a0; }
.demo-line.hint { margin-top: 8px; color: #cbdcaa; }
.demo-line.note { color: var(--terminal-muted); font-size: .8125rem; }
.demo-line.warning { color: #ffbb96; }
.demo-line.change { display: flex; gap: 14px; align-items: baseline; margin: 12px 0; padding: 8px 0; color: var(--terminal-text); }
.demo-line.change .severity { flex-shrink: 0; }
.demo-line.change .change-text { min-width: 0; }
.demo-input-area { padding: 0 28px; }
.demo-form { display: flex; align-items: center; gap: 14px; padding: 6px 0; border-block: 1px solid #424943; transition: border-color .15s; }
.demo-form:focus-within { border-color: #b9d683; }
.demo-form label { color: var(--acid); }
.demo-form input { flex: 1; width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: #f4f7ee; caret-color: var(--acid); font: 400 1rem/1.5 var(--mono); }
.demo-form input:focus-visible { outline: none; }
.demo-form input::placeholder { color: #9aa691; }
.demo-form button { padding: 8px 16px; background: var(--acid); color: #19200d; font-weight: 650; white-space: nowrap; }
.demo-form button:hover:not(:disabled) { background: #e5ff93; }
.demo-form button > span { margin-left: 10px; }
.demo-hint { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 0; color: var(--terminal-muted); font-size: .75rem; }
.demo-hint > span:last-child { margin-left: auto; }
kbd { font: inherit; color: #d5ddce; }
.demo-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 20px 8px; }
.demo-more { min-width: 0; }
.demo-more summary { display: list-item; width: fit-content; min-height: 44px; padding: 12px 8px; color: var(--terminal-muted); font-size: .875rem; cursor: pointer; }
.demo-more summary:hover { color: var(--terminal-text); }
.demo-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 8px 8px; }
.demo-shortcuts button { padding-inline: 10px; border-color: var(--terminal-line); color: #c4cebe; }
.demo-tools .demo-download { color: var(--acid); font-size: .875rem; }
.demo-download > span { margin-left: 8px; }
.demo-statusbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 12px 28px; border-top: 1px solid var(--terminal-line); color: var(--terminal-muted); font: .75rem/1.6 var(--mono); }
.demo-statusbar > span:first-child { color: #d4ddc6; font-size: .8125rem; }
.demo-statusbar strong { color: #d4ddc6; font-weight: 500; }
.status-separator { margin-inline: 8px; color: #7e8a83; }
.demo-terminal noscript { display: block; padding: 20px; color: #ffbb96; }
.demo-playground { min-width: 0; border: 1px solid var(--terminal-line); border-radius: 8px; box-shadow: none; }
.demo-playground > .window-bar { min-height: 48px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 20px; gap: 12px; background: #1a1d1f; }
.demo-playground .window-title { justify-self: start; font-size: .875rem; }
.demo-modes { display: flex; align-items: center; gap: 16px; }
.demo-modes button { min-height: 48px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--terminal-muted); font: 500 .875rem/1.5 Inter, ui-sans-serif, sans-serif; cursor: pointer; }
.demo-modes button[aria-pressed="true"] { border-bottom-color: #d9dfd0; color: var(--terminal-text); }
.demo-modes button:hover { color: white; }
.story-shell { min-width: 0; }
.story-shell button { min-height: 44px; padding: 9px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--terminal-text); font: 500 .875rem/1.5 Inter, ui-sans-serif, sans-serif; cursor: pointer; }
.story-shell button:hover { background: #ffffff08; }
.story-progress { list-style: none; display: flex; gap: 20px; margin: 0; padding: 12px 20px 0; scroll-margin-top: 16px; }
.story-progress li { color: #929b9a; font: .75rem/1.5 var(--mono); }
.story-progress li[aria-current="step"] { color: var(--acid); }
.story-progress li.is-complete { color: #bec8ae; }
.story-body { padding: 20px; }
.story-body h3 { margin: 0 0 18px; color: #eff3e9; font: 500 1.125rem/1.4 Inter, ui-sans-serif, sans-serif; letter-spacing: -.015em; }
.story-result { min-width: 0; }
.story-result .demo-prompt { margin-bottom: 12px; font-size: .875rem; }
.story-result .demo-lines { font-size: .875rem; line-height: 1.75; }
.story-result .demo-line { min-height: 1.75em; }
.story-footnote { margin: 16px 0 0; color: var(--terminal-muted); font: .875rem/1.5 Inter, ui-sans-serif, sans-serif; }
.story-approval { padding: 0 20px 12px; color: var(--terminal-muted); font: .875rem/1.5 Inter, ui-sans-serif, sans-serif; }
.story-approval p { margin: 0; }
.story-approval label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.story-approval input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--acid); }
.story-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 20px 16px; }
.story-actions .story-primary { background: var(--acid); color: #19200d; font-weight: 650; }
.story-actions .story-primary:hover { background: #e5ff93; }
.story-actions .terminal-reset, .demo-tools .terminal-reset { margin-left: auto; min-width: 44px; color: var(--terminal-muted); font-size: 1.25rem; }
.story-meta { display: flex; align-items: flex-start; gap: 12px; padding: 0 20px; border-top: 1px solid var(--terminal-line); }
.story-details { flex: 1; min-width: 0; color: var(--terminal-muted); font: 1rem/1.6 Inter, ui-sans-serif, sans-serif; }
.story-details p { margin: 0 0 16px; }
.story-details summary, .story-options summary { width: fit-content; min-height: 44px; padding-block: 12px; cursor: pointer; color: var(--terminal-muted); font: .875rem/1.5 Inter, ui-sans-serif, sans-serif; }
.story-details summary:hover, .story-options summary:hover { color: var(--terminal-text); }
.story-meta .story-export { flex-shrink: 0; padding-inline: 0; color: var(--terminal-muted); }
.demo-section > noscript { grid-column: 1 / -1; }
.demo-playground .demo-steps { padding-inline: 10px; }
.demo-playground .demo-steps button { padding: 8px 10px; justify-content: flex-start; min-height: 44px; }
.demo-playground .demo-steps .step-number, .demo-playground .demo-steps code { display: none; }
.demo-playground .demo-steps strong { font-size: .875rem; font-weight: 500; }
.demo-playground .demo-steps button::after { left: 10px; right: 10px; height: 1px; }
.demo-playground .demo-output { padding: 20px; }
.demo-playground .demo-input-area { padding-inline: 20px; }
.demo-playground .demo-scenarios { padding-inline: 20px; }
.demo-playground .demo-statusbar { padding: 10px 20px; }
.workflow { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(60px, 10vw, 170px); }
.section-intro > p:last-child { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.steps { list-style: none; margin: 15px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 27px 0 32px; border-bottom: 1px solid var(--line); }
.steps li > span { padding-top: 4px; color: var(--signal); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.025em; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.coverage { padding-top: 30px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 170px); }
.coverage-copy p:last-child { max-width: 510px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.coverage-index { border-top: 1px solid var(--ink); }
.coverage-index > div { min-height: 82px; display: grid; grid-template-columns: 48px minmax(130px, .7fr) 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.coverage-index span { color: var(--signal); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.coverage-index strong { font-size: 18px; }
.coverage-index small { color: var(--muted); font: 500 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.privacy { width: 100%; max-width: none; padding-inline: max(24px, calc((100vw - var(--max)) / 2)); background: var(--terminal); color: #f5f4ee; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 10vw, 170px); }
.eyebrow.light { color: #c3c6bc; }
.privacy-statement h2 { max-width: 770px; }
.privacy-details { align-self: end; }
.privacy-details > p { max-width: 600px; color: #b1b5ab; font-size: 18px; line-height: 1.68; }
.privacy-details ul { list-style: none; margin: 42px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font: 570 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.privacy-details li span { margin-right: 8px; color: var(--acid); }

.closing { display: grid; grid-template-columns: 1fr 1.15fr; column-gap: clamp(60px, 9vw, 150px); }
.closing > .eyebrow { grid-column: 1 / -1; }
.closing h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.closing > div { align-self: end; }
.closing > div p { max-width: 500px; margin: 0 0 34px; color: var(--muted); font-size: 17px; line-height: 1.6; }

footer { width: min(calc(100% - 48px), var(--max)); min-height: 120px; margin: 0 auto; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; color: var(--muted); font: 540 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.footer-brand { color: var(--ink); font-family: Inter, ui-sans-serif, sans-serif; font-size: 14px; }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem .875rem; font-size: .875rem; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 44px; }
.creator-logo { display: block; width: 9rem; max-width: 100%; height: auto; }
.footer-credit a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
footer p { margin: 0; }
footer a { text-underline-offset: 4px; }

@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .evidence-shell { width: min(100%, 820px); justify-self: end; }
  .workflow, .coverage, .privacy, .closing { grid-template-columns: 1fr; gap: 64px; }
  .closing > .eyebrow { grid-column: auto; }
}
@media (max-width: 720px) {
  .site-header { width: min(calc(100% - 30px), var(--max)); grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero, .section { width: min(calc(100% - 30px), var(--max)); }
  .hero { padding-top: 48px; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(49px, 15vw, 74px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .principles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
  .terminal-window { border-radius: 12px; }
  .window-bar { padding: 12px 14px; gap: 12px; }
  .window-title > span { margin-inline: 0; }
  .window-actions { gap: 4px; }
  .snapshot-strip { padding: 20px; gap: 10px; }
  .evidence-toolbar { align-items: flex-start; flex-direction: column; }
  .periods { width: 100%; }
  .periods button { flex: 1; }
  .change-item { padding: 18px 16px; grid-template-columns: 6px minmax(0, 1fr); gap: 10px; }
  .change-item .severity { grid-column: 2; justify-self: start; }
  .command-line { padding: 16px; gap: 8px; }
  .command-line button { padding-inline: 8px; }
  .cli-command-list { padding-inline: 22px; }
  .cli-command-list li { gap: 10px; grid-template-columns: 20px minmax(0, 1fr); }
  .manifesto { padding: 25px 15px; grid-template-columns: 1fr 1fr; gap: 20px; }
  .manifesto p { grid-column: 1 / -1; margin: 0 0 12px; }
  .manifesto span:last-child { display: none; }
  .section { padding-block: 56px; }
  .section h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .coverage-index > div { grid-template-columns: 35px 1fr; padding: 20px 0; }
  .coverage-index small { grid-column: 2; }
  .privacy { width: 100%; padding-inline: 15px; }
  .privacy-details ul { grid-template-columns: 1fr; }
  footer { width: calc(100% - 30px); padding: 34px 0; grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 720px) {
  .demo-section { width: calc(100% - 30px); grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .demo-intro { padding: 0; }
  .demo-intro h2 { font-size: 1.75rem; }
  .demo-intro h2 br { display: none; }
  .demo-intro h2 em::before { content: " "; }
  .demo-intro-note > p { margin-top: 12px; }
  .demo-playground > .window-bar { padding-inline: 16px; gap: 8px; }
  .demo-playground .window-title > span { margin-inline: 4px 0; font-size: .75rem; }
  .demo-modes { gap: 14px; }
  .story-progress { padding-inline: 16px; gap: 16px; }
  .story-body { padding: 20px 16px 16px; }
  .story-body h3 { font-size: 1rem; margin-bottom: 14px; }
  .story-actions { padding: 0 16px 12px; }
  .story-actions #story-secondary { order: 3; flex-basis: 100%; padding-left: 0; text-align: left; }
  .story-approval { padding-inline: 16px; }
  .story-meta { flex-wrap: wrap; gap: 0 16px; padding-inline: 16px; }
  .story-details { flex-basis: 100%; }
  .story-details:not([open]) { flex-basis: auto; }
  .story-meta .story-export { font-size: .8125rem; }
  .quick-start { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .quick-start h2 { font-size: 1.75rem; }


  .demo-intro .eyebrow { margin-bottom: 16px; }
  .demo-terminal .window-bar { padding-inline: 16px; }
  .demo-terminal .window-title { font-size: .8125rem; }
  .demo-terminal .demo-terminal-mark { margin-right: 6px; }
  .demo-terminal .window-actions { gap: 4px; }
  #demo-state { display: none; }
  .demo-steps { padding-inline: 8px; }
  .demo-steps button { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 12px; }
  .demo-steps button::after { left: 8px; right: 8px; }
  .demo-steps strong { font-size: .875rem; }
  .demo-steps code { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .demo-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px; }
  .scenario-label { grid-column: 1 / -1; }
  .demo-scenarios button { justify-content: center; gap: 0; padding-inline: 6px; }
  .demo-scenarios strong { font-family: Inter, ui-sans-serif, sans-serif; }
  .demo-scenarios .scenario-status { display: none; }
  .demo-output { height: 250px; padding: 20px 16px; }
  .demo-welcome { padding-block: 10px; }
  .demo-input-area { padding-inline: 16px; }
  .demo-form { gap: 10px; }
  .demo-form button { padding-inline: 12px; }
  .demo-form button > span { display: none; }
  .demo-hint { gap: 6px 12px; }
  .demo-hint > span:last-child { flex-basis: 100%; margin: 0; }
  .demo-tools { padding-inline: 8px; flex-wrap: wrap; }
  .demo-line.change { flex-direction: column; gap: 6px; }
  .demo-statusbar { padding-inline: 16px; }
}
@media (max-width: 380px) {
  .demo-steps button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
