:root {
  --ink: #161a16;
  --paper: #f4f3e9;
  --lime: #d3f681;
  --rule: #42483d;
  --muted: #bcc4b7;
  --mono: ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.55 Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #729735; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, p, figure, pre { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.01; letter-spacing: -.04em; }
h1 { font-size: clamp(3.3rem, 7vw, 6rem); margin-bottom: 1.5rem; }
h1 em { color: var(--lime); font-style: normal; }
h2 { font-size: clamp(2.6rem, 4.8vw, 4.5rem); margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-bottom: .65rem; }
p { color: var(--muted); max-width: 60ch; }
.wrap { width: min(90%, 1400px); margin-inline: auto; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: 1.25rem; }
.header { border-bottom: 1px solid var(--rule); }
.footer { border-top: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.4rem; font-weight: 700; }
.brand i { width: 24px; height: 24px; display: inline-block; background: repeating-linear-gradient(153deg,var(--lime) 0 5px,transparent 5px 8px); clip-path: polygon(0 22%,100% 0,100% 64%,32% 78%,32% 100%,0 100%); }
.brand small, footer small { color: var(--muted); font-size: .75rem; font-weight: 400; }
nav, .actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
nav { font-size: .875rem; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-block; background: var(--lime); color: var(--ink); border: 1px solid transparent; border-radius: 3px; padding: .65rem 1.1rem; font-weight: 700; }
.button:hover { background: #e7ffa9; }
.button.secondary { border-color: #858d7e; background: transparent; color: var(--paper); font-size: .875rem; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 2vw; padding-block: clamp(2.5rem, 5vw, 5rem); }
.hero p { max-width: 44ch; font-size: 1.125rem; }
.actions { margin-top: 1.65rem; }
figure img { display: block; width: 100%; height: auto; }
figcaption { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: .6rem; font-size: .8rem; color: var(--muted); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5vw; }
.light, .pilot { color-scheme: light; color: var(--ink); }
.light { background: var(--paper); }
.light p, .pilot p { color: #47523f; }
.product-list { list-style: none; margin: 0; padding: 0; }
.product-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; border-top: 1px solid #babfb0; padding: 1.4rem 0; }
.step { font: .8rem/1.5 var(--mono); color: #536349; }
.product-list small { display: inline-block; color: #536349; margin-top: .45rem; }
.demo { background: #252c23; }
.trace { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); border: 1px solid #596552; margin-top: 1.6rem; }
.stage-controls { display: grid; }
.stage-controls button { background: none; color: inherit; border: 0; border-bottom: 1px solid var(--rule); padding: 1rem 1.3rem; text-align: left; }
.stage-controls button:hover { box-shadow: inset 0 0 0 1px #859375; }
.stage-controls [aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.trace-output { background: #141711; min-height: 17.5rem; padding: clamp(1.2rem, 4vw, 2.5rem); }
.trace-output h3 { margin: .8rem 0; }
.trace-output pre { margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--lime); font: .875rem/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.trace-line { display: inline-block; max-width: 100%; vertical-align: top; }
@media (prefers-reduced-motion: no-preference) {
  .trace-reveal .trace-line { animation: trace-arrive 160ms cubic-bezier(.23,1,.32,1) backwards; }
  .trace-reveal .trace-line:nth-child(2) { animation-delay: 50ms; }
  .trace-reveal .trace-line:nth-child(3) { animation-delay: 90ms; }
}
@keyframes trace-arrive {
  from { opacity: .35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
details { padding: 1rem 0; border-top: 1px solid #babfb0; }
details p { margin-top: .65rem; }
summary { font-size: 1.25rem; }
.pilot { background: var(--lime); }
form { border-top: 1px solid #7a8f5b; padding-top: 1rem; }
label { display: grid; gap: .35rem; margin: 1rem 0; }
input, textarea { width: 100%; border-radius: 2px; border: 1px solid #778a60; background: #ecffcd; color: var(--ink); padding: .65rem; }
textarea { resize: vertical; }
form .button { background: var(--ink); color: var(--paper); }
form .button:hover { background: #39452a; }
#pilot-status:not(:empty) { margin-top: .7rem; }
@media (max-width: 1000px) {
  .header { flex-wrap: wrap; }
  nav { order: 1; width: 100%; }
}
@media (max-width: 720px) {
  .hero, .split, .trace { grid-template-columns: 1fr; }
  .hero, .split { gap: 1.6rem; }
  .stage-controls { grid-template-columns: 1fr 1fr; }
  .stage-controls button { padding: .75rem 1rem; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  h1 { font-size: clamp(2.8rem, 13vw, 3.4rem); }
}
