/* Zeroshot landing page
   Ink on warm paper. Color is reserved for run state: active, accepted, rejected. */

:root {
  --bg: #f6f3ee;
  --bg-raised: #fffdf9;
  --bg-sunk: #eee9e1;
  --ink: #171411;
  --ink-2: #4a443d;
  --ink-3: #6d655b;
  --line: #e0d9ce;
  --line-strong: #c2b9ab;

  --active: #2c5cc5;
  --pass: #217346;
  --fail: #c03a22;

  --code-bg: #171411;
  --code-border: #171411;
  --code-ink: #ece6dc;
  --code-dim: #968c7f;
  --code-str: #e7b97a;
  --code-flag: #a9c3f3;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --header-h: 60px;
  --shadow: 0 1px 0 rgb(23 20 17 / 0.04), 0 28px 56px -32px rgb(23 20 17 / 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171411;
    --bg-raised: #1f1b17;
    --bg-sunk: #120f0d;
    --ink: #f2ede4;
    --ink-2: #c8c0b3;
    --ink-3: #9b9285;
    --line: #2f2924;
    --line-strong: #4a423a;

    --active: #82a5f6;
    --pass: #62c48d;
    --fail: #f07f67;

    --code-bg: #0f0d0b;
    --code-border: #2f2924;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.2), 0 28px 56px -32px rgb(0 0 0 / 0.7);
  }
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

code { font-family: var(--mono); font-size: 0.88em; }

:where(p, li, summary) > code {
  padding: 0.08em 0.36em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-sunk);
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.dim { color: var(--ink-3); }

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 560;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-sm {
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.gh-icon { width: 16px; height: 16px; flex: none; }

.stars {
  margin-left: 2px;
  padding-left: 9px;
  border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  display: none;
  align-items: center;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.js .copy-btn { display: inline-flex; }
.copy-btn:hover { background: var(--bg-sunk); color: var(--ink); }
.copy-btn.is-copied { color: var(--pass); }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.wordmark {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.header-nav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}

.header-nav a:hover { background: var(--bg-sunk); color: var(--ink); }

.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 820px) {
  .header-nav { display: none; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.3vw, 3.55rem);
  font-weight: 680;
  line-height: 1.03;
  letter-spacing: -0.038em;
}

.lede {
  max-width: 34em;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.install {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-raised);
}

.install-cmd {
  display: block;
  min-width: 0;
  padding: 12px 16px;
  overflow-x: auto;
  font-size: 14.5px;
  white-space: nowrap;
  scrollbar-width: none;
}

.install-cmd::-webkit-scrollbar { display: none; }

.install .prompt {
  margin-right: 2px;
  color: var(--ink-3);
  user-select: none;
}

.install .copy-btn {
  flex: none;
  border-left: 1px solid var(--line-strong);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.works-with-label {
  margin-right: 4px;
  color: var(--ink-3);
  font-size: 14px;
}

.chip {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Run card + graph ------------------------------------------------------ */

.run-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .run-card { width: 100%; max-width: 540px; margin-inline: auto; }
}

.run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}

.run-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-meta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.run-round { color: var(--ink-3); }

.run-state {
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--active);
}

.run-state[data-tone="pass"] { color: var(--pass); }
.run-state[data-tone="fail"] { color: var(--fail); }

.graph {
  display: block;
  width: 100%;
  height: auto;
  padding: 20px 20px 8px;
}

@media (max-width: 480px) {
  .graph { padding: 14px 8px 4px; }
}

.graph .n-label {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.graph .n-status {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}

.graph .node rect {
  fill: var(--bg);
  stroke: var(--line-strong);
  stroke-width: 1.25;
  transition: fill 0.35s, stroke 0.35s;
}

.graph .n-dot {
  fill: transparent;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  transition: fill 0.35s, stroke 0.35s;
}

.graph .node[data-state="active"] rect { fill: color-mix(in srgb, var(--active) 8%, var(--bg)); stroke: var(--active); }
.graph .node[data-state="active"] .n-dot { fill: var(--active); stroke: var(--active); animation: dot-pulse 1.1s ease-in-out infinite; }

.graph .node[data-state="done"] rect { stroke: var(--ink-3); }
.graph .node[data-state="done"] .n-dot { fill: var(--ink-3); stroke: var(--ink-3); }

.graph .node[data-state="pass"] rect { fill: color-mix(in srgb, var(--pass) 8%, var(--bg)); stroke: var(--pass); }
.graph .node[data-state="pass"] .n-dot { fill: var(--pass); stroke: var(--pass); }
.graph .node[data-state="pass"] .n-status { fill: var(--pass); }

.graph .node[data-state="fail"] rect { fill: color-mix(in srgb, var(--fail) 8%, var(--bg)); stroke: var(--fail); }
.graph .node[data-state="fail"] .n-dot { fill: var(--fail); stroke: var(--fail); }
.graph .node[data-state="fail"] .n-status { fill: var(--fail); }

@keyframes dot-pulse {
  50% { opacity: 0.3; }
}

.graph .edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.graph .edge-loop { stroke-dasharray: 4 4; }

.graph .arrowhead { fill: var(--line-strong); }

.graph .trace {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  opacity: 0;
  transition: opacity 0.4s, stroke-dashoffset 0s 0.4s;
}

.graph .trace.is-on {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.1s;
}

.graph .trace.is-on.is-past {
  opacity: 0.28;
  transition: opacity 0.5s;
}

.graph .trace[data-tone="fail"] { stroke: var(--fail); }
.graph .trace[data-tone="pass"] { stroke: var(--pass); }
.graph .trace[data-tone="loop"] { stroke: var(--active); }

.run-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.run-caption {
  min-height: 2.8em;
  display: flex;
  align-items: center;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}

.run-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.run-toggle:hover { border-color: var(--ink); color: var(--ink); }
.run-toggle svg { width: 11px; height: 11px; }
.run-toggle .icon-play,
.run-toggle[data-paused="true"] .icon-pause { display: none; }
.run-toggle[data-paused="true"] .icon-play { display: block; }

/* Social proof ---------------------------------------------------------- */

.proof {
  border-block: 1px solid var(--line);
}

.proof p {
  padding: 16px 0;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

.proof a { text-decoration: none; }
.proof a:hover { color: var(--ink); text-decoration: underline; }

/* Sections -------------------------------------------------------------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.proof + .section { border-top: 0; }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.split > .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .section-head { position: static; }
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.link-list a {
  font-weight: 560;
  text-decoration: none;
}

.link-list a::after { content: "\00a0→"; }
.link-list a:hover { text-decoration: underline; }

.panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.panel > p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.panel > p + p { margin-top: 12px; }
.panel .code { margin-top: 18px; }
.panel .link-list { margin-top: 14px; }

.panel-foot { margin-top: 16px; }
.panel > .panel-foot { font-size: 14.5px; }

/* Why ------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.why-copy h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -0.035em;
}

.pull {
  margin: 28px 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--ink);
}

.pull p {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.why-copy > p {
  max-width: 34em;
  color: var(--ink-2);
}

.why-copy > p + p { margin-top: 12px; }

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-weight: 560;
  text-decoration: none;
}

.video-link:hover { text-decoration: underline; }

.video-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
}

.video-play svg { width: 14px; height: 14px; margin-left: 2px; }

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}

.compare-col { padding: 26px 24px 8px; }
.compare-col + .compare-col { border-left: 1px solid var(--line); }

.compare h3 {
  margin-bottom: 20px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-col-zs h3 { color: var(--ink); }

.compare ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare li {
  position: relative;
  padding: 0 0 20px 24px;
  font-size: 15.5px;
  line-height: 1.4;
}

.compare li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-raised);
}

.compare li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(0.42em + 11px);
  bottom: 2px;
  left: 4px;
  width: 1px;
  background: var(--line);
}

.compare-col:not(.compare-col-zs) li { color: var(--ink-2); }
.compare-col-zs li::before { border-color: var(--ink); background: var(--ink); }
.compare-col-zs li:last-child::before { border-color: var(--pass); background: var(--pass); }

.compare .tag {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-col + .compare-col { border-top: 1px solid var(--line); border-left: 0; }
}

/* How it works ---------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12.5px;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.steps p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.note {
  max-width: 820px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
}

.note p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.note strong { color: var(--ink); }

/* Quickstart ------------------------------------------------------------ */

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.start-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.callout {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  background: var(--bg-sunk);
}

.callout p {
  color: var(--ink-2);
  font-size: 15px;
}

.callout strong { color: var(--ink); }

@media (max-width: 900px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-head { position: static; }
}

.qs {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: qs;
}

.qs > li {
  position: relative;
  min-width: 0;
  padding: 0 0 44px 52px;
  counter-increment: qs;
}

.qs > li::before {
  content: counter(qs);
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.qs > li::after {
  content: "";
  position: absolute;
  top: 35px;
  bottom: 6px;
  left: 16px;
  width: 1px;
  background: var(--line);
}

.qs > li:last-child { padding-bottom: 0; }
.qs > li:last-child::after { display: none; }

.qs h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.qs p {
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: 15.5px;
}

@media (max-width: 480px) {
  .qs > li { padding-left: 0; }
  .qs > li::before { position: static; margin-bottom: 12px; }
  .qs > li::after { display: none; }
}

/* Code blocks ----------------------------------------------------------- */

.code {
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-ink);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding-left: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: var(--code-dim);
  font-family: var(--mono);
  font-size: 12px;
}

.code-bar .copy-btn {
  height: 100%;
  color: var(--code-dim);
}

.code-bar .copy-btn:hover { background: rgb(255 255 255 / 0.06); color: var(--code-ink); }
.code-bar .copy-btn.is-copied { color: #8fd6a8; }

.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  tab-size: 2;
  scrollbar-color: #4a423a transparent;
  scrollbar-width: thin;
}

.code pre code { font-size: inherit; }

.code .s { color: var(--code-str); }
.code .p { color: var(--code-dim); }
.code .f { color: var(--code-flag); }
.code .ph { border-radius: 3px; background: rgb(231 185 122 / 0.14); }
.code .cl::before { content: "$ "; color: var(--code-dim); }

/* Customize ------------------------------------------------------------- */

.features { border-top: 1px solid var(--line); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.feature-text > p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.feature-text > p + p { margin-top: 12px; }
.feature-visual { min-width: 0; }
.code-wide pre { font-size: 12px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
}

.pipeline {
  display: grid;
  gap: 22px;
  max-width: 480px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.35;
}

.pipeline li + li::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 50%;
  width: 1px;
  height: 17px;
  background: var(--line-strong);
}

.pipeline li + li::after {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 4px);
  border: 4px solid transparent;
  border-top: 5px solid var(--line-strong);
  border-bottom: 0;
}

.pipeline em {
  flex: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pipeline .is-yours {
  border-style: dashed;
  border-color: var(--active);
}

.pipeline .is-yours em { color: var(--active); }

/* Delivery -------------------------------------------------------------- */

.modes {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}

.modes-scale,
.mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 28px;
  align-items: center;
  padding-inline: 22px;
}

.modes-scale { padding-top: 16px; }

.modes-scale-labels {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode { padding-block: 18px; }
.mode + .mode { border-top: 1px solid var(--line); }

.mode-flag {
  font-size: 14.5px;
  font-weight: 650;
}

.mode:first-child .mode-flag { color: var(--ink-3); font-weight: 500; }

.mode-text p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.mode-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.mode-track i {
  font-size: 0;
  font-style: normal;
}

.mode-track i::before {
  content: "";
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.mode[data-reach="1"] i:nth-child(-n + 1)::before,
.mode[data-reach="2"] i:nth-child(-n + 2)::before,
.mode[data-reach="3"] i:nth-child(-n + 3)::before,
.mode[data-reach="4"] i:nth-child(-n + 4)::before { background: var(--ink); }

@media (max-width: 560px) {
  .modes-scale { display: none; }
  .mode { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .mode-track i {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mode-track i::before { margin-bottom: 6px; }
}

/* Execution ------------------------------------------------------------- */

.exec-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1000px) {
  .exec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Auto-research --------------------------------------------------------- */

.iteration {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}

.iteration-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: it;
}

.iteration-list li {
  position: relative;
  padding: 0 0 20px 40px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
  counter-increment: it;
}

.iteration-list li::before {
  content: counter(it);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.iteration-list li::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 4px;
  left: 12px;
  width: 1px;
  background: var(--line);
}

.iteration-list strong {
  color: var(--ink);
  font-weight: 620;
}

.iteration-loop {
  margin: 0 0 22px;
  padding-left: 40px;
  color: var(--active);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* FAQ ------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--ink-2); }

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Final CTA: the dark palette, regardless of system theme --------------- */

.final {
  --bg: #171411;
  --bg-raised: #221e1a;
  --bg-sunk: #120f0d;
  --ink: #f2ede4;
  --ink-2: #c8c0b3;
  --ink-3: #9b9285;
  --line: #2f2924;
  --line-strong: #4a423a;
  --pass: #62c48d;

  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .final {
    --bg: #0f0d0b;
    --bg-raised: #1c1915;
    border-block: 1px solid var(--line);
  }
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final h2 {
  max-width: 16em;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  letter-spacing: -0.035em;
}

.final-inner > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.1rem;
  text-wrap: balance;
}

.final .install { margin-top: 32px; }
.cta-row-center { justify-content: center; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding: 52px 0 60px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand p {
  max-width: 26em;
  margin-top: 10px;
  color: var(--ink-3);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

/* The real Zeroshot crow next to the wordmark (same on both experiment pages). */
.wordmark { display: inline-flex; align-items: center; gap: 8px; }
.wordmark-crow { width: 22px; height: auto; }
@media (prefers-color-scheme: dark) { .wordmark-crow { filter: invert(1); } }
