/* Noul website. Tokens come from resources/noul in the IDE repo:
   background #0B0D10, tile #15181E (dark) / #F4F1EA (light), text grey #8A919C,
   blue #7CC8FF, mint #8EF0C4, white. Wordmark: JetBrains Mono 700 "noul" + 300 " IDE". */

:root {
  --bg: #0B0D10;
  --surface: #15181E;
  --card: #10131A;
  --line: #262B33;
  --line-strong: #343A44;
  --text: #FFFFFF;
  --muted: #8A919C;
  --blue: #7CC8FF;
  --mint: #8EF0C4;
  --mark-top: #FFFFFF;
  --tile: #15181E;
  --tile-line: #262B33;
  --btn-bg: #FFFFFF;
  --btn-fg: #0B0D10;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --page: 1080px;
  --gutter: 16px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F1EA;
    --surface: #FFFFFF;
    --card: #EDE9E0;
    --line: #DDD7CA;
    --line-strong: #C9C2B3;
    --text: #15181E;
    --muted: #6B7280;
    --blue: #2A8FD6;
    --mint: #1FA86F;
    --mark-top: #15181E;
    --tile: #F4F1EA;
    --tile-line: #DDD7CA;
    --btn-bg: #15181E;
    --btn-fg: #FFFFFF;
  }
}

:root[data-theme="light"] {
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --card: #EDE9E0;
  --line: #DDD7CA;
  --line-strong: #C9C2B3;
  --text: #15181E;
  --muted: #6B7280;
  --blue: #2A8FD6;
  --mint: #1FA86F;
  --mark-top: #15181E;
  --tile: #F4F1EA;
  --tile-line: #DDD7CA;
  --btn-bg: #15181E;
  --btn-fg: #FFFFFF;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark { letter-spacing: -0.04em; }
.wordmark-icon { width: 24px; height: 24px; flex: none; }
/* Header lockup: the tile is the n, "oul" sits tight against it. */
.wordmark-lockup { gap: 0; }
.wordmark-lockup b { margin-left: -5px; }
.wordmark-lockup .wordmark-icon { width: 26px; height: 26px; }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 300; color: var(--muted); }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 14px;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.site-header .btn { margin-left: 4px; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}
.btn-primary:hover { border-color: var(--btn-bg); opacity: 0.92; }

.btn-lg { font-size: 15px; padding: 15px 22px; }

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

.hero {
  padding: 48px 0 48px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  max-width: 22ch;
}

.hero .lede {
  margin-top: 20px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* Cards: a tinted stage that product windows sit on and run off ------------ */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.hero-card { padding: 40px 40px 0; max-height: 640px; }
.hero .race-card { margin-top: 32px; padding: 32px 40px 28px; }
.hero .race-card .race-head h2 { font-size: 22px; }
.hero .race-card .race { margin-top: 24px; gap: 22px; }
.hero-card .win { margin: 0; border-bottom: 0; border-radius: 12px 12px 0 0; }

.feature {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) 3fr;
  min-height: 520px;
}
.feature .copy { padding: 56px 40px 56px 48px; align-self: center; }
.feature .copy h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.2; max-width: 16ch; }
.feature .copy h2 .lead { display: block; color: var(--muted); font-weight: 500; }
.feature .copy p { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 34ch; }

.feature .shot { position: relative; padding: 48px 0 0 24px; overflow: hidden; min-width: 0; }
.feature .shot .win { margin: 0; width: 680px; max-width: none; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.feature.flip { grid-template-columns: 3fr minmax(280px, 2fr); }
.feature.flip .copy { order: 2; padding: 56px 48px 56px 40px; }
.feature.flip .shot { order: 1; padding: 48px 24px 0 0; display: flex; justify-content: flex-end; }
.feature.flip .shot .win { border-right: 1px solid var(--line); border-left: 0; border-radius: 0 12px 0 0; }
.feature .shot.inset { padding: 48px 32px 48px 0; overflow: visible; align-items: center; }
.feature .shot.inset .win { width: 100%; border: 1px solid var(--line); border-radius: 12px; }

.feature .shot.stack { min-height: 520px; }
.feature .shot.stack .win { position: absolute; width: 440px; border: 1px solid var(--line); border-radius: 12px; }
.feature .shot.stack .win-a { left: 24px; top: 48px; }
.feature .shot.stack .win-b { right: 24px; top: 250px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature .copy, .feature.flip .copy { padding: 36px 24px 8px; order: 1; }
  .feature .shot, .feature.flip .shot { order: 2; padding: 24px 0 0 24px; justify-content: flex-start; max-height: 420px; }
  .feature.flip .shot .win { border-left: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 0; }
  .feature .shot.inset { padding: 24px 24px 32px; max-height: none; }
  .feature .shot.stack { min-height: 560px; }
  .feature .shot.stack .win { width: min(440px, 88%); }
  .feature .shot.stack .win-a { left: 24px; right: auto; top: 24px; }
  .feature .shot.stack .win-b { left: 60px; right: auto; top: 240px; }
  .hero-card { padding: 24px 0 0 24px; max-height: 520px; }
  .hero-card .win { border-right: 0; border-radius: 12px 0 0 0; }
}

/* Windows ------------------------------------------------------------------ */

.win {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.win-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-bar .dot + .dot { margin-left: -4px; }
.win-bar .title { color: var(--text); }
.win-bar .dot + .dot + .dot + .title { margin-left: auto; }
.win-bar .meta { margin-left: auto; }
.win-bar .meta + .meta { margin-left: 0; }
.mint { color: var(--mint); }
.dim { color: var(--muted); }

.statusbar {
  display: flex;
  gap: 18px;
  padding: 6px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}
.statusbar .right { margin-left: auto; }

/* Hero IDE: explorer, editor, chat */

.ide-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 360px; min-height: 520px; }
.tree {
  border-right: 1px solid var(--line);
  padding: 12px 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 40%, var(--surface));
}
.tree-head { padding: 0 16px 8px; font-size: 11.5px; color: var(--muted); }
.tree .t { padding: 2px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .d { color: var(--text); }
.tree .d::before { content: "▾ "; color: var(--muted); }
.tree .i1 { padding-left: 28px; }
.tree .i2 { padding-left: 40px; }
.tree .i3 { padding-left: 52px; }
.tree .sel { color: var(--text); background: color-mix(in srgb, var(--mint) 12%, transparent); }
.tree .score { float: right; color: var(--mint); }
.tree-foot { margin-top: 10px; padding: 8px 16px 0; border-top: 1px solid var(--line); font-size: 11.5px; }

.editor { min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tab { padding: 8px 16px; color: var(--muted); border-right: 1px solid var(--line); }
.tab.on { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--blue); }
.crumbs { padding: 6px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }

.chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.chat .trace-body { flex: 1; }
.chat-input { display: flex; justify-content: space-between; margin: 0 12px 12px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12.5px; }
.chat-input .send { color: var(--muted); }

.trace-body { padding: 16px 16px 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.trace-body > * { min-width: 0; }

.turn-user {
  color: var(--text);
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
}
.turn-user::before { content: "you "; color: var(--muted); }

.decision { display: grid; gap: 4px; }
.decision .stage { color: var(--muted); font-size: 12px; }
.decision .chips { display: flex; flex-wrap: wrap; gap: 6px 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  white-space: nowrap;
  font-size: 12.5px;
}
.chip .p { color: var(--muted); }
.chip.ok { border-color: color-mix(in srgb, var(--mint) 55%, transparent); }
.chip.ok .p { color: var(--mint); }
.chip.info { border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.chip.info .p { color: var(--blue); }
.chip.warn { border-color: color-mix(in srgb, #F2C14E 60%, transparent); }
.chip.warn .p { color: #F2C14E; }
.chip.warn .bar i { background: #F2C14E; }
.chip.stop { border-color: color-mix(in srgb, #FF7A7A 60%, transparent); color: #FF9A9A; }
.chip.stop .p { color: #FF9A9A; }

.chip .bar { width: 44px; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.chip .bar i { position: absolute; inset: 0; right: auto; background: var(--mint); border-radius: 2px; }

.turn-answer { color: var(--text); padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.turn-answer .who { color: var(--muted); }

@media (max-width: 1000px) { .ide-body { grid-template-columns: 180px minmax(0, 1fr) 320px; } }
@media (max-width: 860px) {
  .ide-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .tree { display: none; }
}
@media (max-width: 640px) {
  .ide-body { grid-template-columns: 1fr; }
  .editor { display: none; }
  .chat { border-left: 0; }
  .chip { white-space: normal; }
}

/* Agent steps in the chat */

.steps { display: grid; gap: 6px; }
.step { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text); min-width: 0; }
.step::before { content: "●"; color: var(--mint); font-size: 8px; margin-right: 8px; align-self: center; }
.step .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .t { color: var(--muted); white-space: nowrap; }
.step .t.mint { color: var(--mint); }

/* The race: two timelines for the same task */

.race-card { padding: 48px 48px 40px; }
.race-head h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.2; max-width: 22ch; }
.race-head h2 .lead { display: block; color: var(--muted); font-weight: 500; }
.race-head p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 48ch; }
.race { margin-top: 40px; font-family: var(--mono); font-size: 12.5px; display: grid; gap: 28px; }
.lane { display: grid; gap: 8px; }
.lane-head { display: flex; justify-content: space-between; }
.lane-head .who { color: var(--text); font-weight: 500; }
.lane-head .clock { color: var(--muted); }
.track { display: flex; height: 34px; gap: 2px; width: 100%; }
.seg {
  --w: 0;
  flex: 0 0 auto;
  width: calc(var(--sec) / 118 * 100%);
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 8px;
  line-height: 34px;
  color: var(--bg);
  font-size: 11.5px;
  position: relative;
  isolation: isolate;
}
.seg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform-origin: left; transform: scaleX(var(--p, 1)); }
.seg { background: color-mix(in srgb, var(--fill) 18%, transparent); }
.seg.find { --fill: var(--blue); }
.seg.read, .seg.search { --fill: var(--muted); }
.seg.edit { --fill: var(--text); }
.seg.test { --fill: var(--mint); }
.seg.check { --fill: var(--blue); }
.lane.noul .seg { color: var(--bg); }
.lane .seg { color: transparent; }
.lane .seg.labelled { color: var(--bg); }
.lane .seg.tight { color: transparent !important; }
.lane-foot { display: flex; gap: 20px; color: var(--muted); }
.lane-foot .done { margin-left: auto; color: var(--text); opacity: 0; transition: opacity 0.3s; }
.lane-foot .done.shown { opacity: 1; }
.lane.noul .lane-foot .done { color: var(--mint); }
.race-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: -8px; width: calc(90 / 118 * 100%); }
@media (max-width: 700px) {
  .race-card { padding: 32px 20px 28px; }
  .seg { padding: 0 4px; font-size: 10.5px; }
}

/* Code */

pre.code {
  margin: 0;
  padding: 14px 16px 18px;
  font: inherit;
  line-height: 1.7;
  color: var(--text);
  overflow: hidden;
  flex: 1;
}
pre.code .ln { display: inline-block; width: 34px; color: var(--muted); user-select: none; }
pre.code .kw { color: var(--blue); }
pre.code .fn { color: var(--mint); }
pre.code .st { color: #F2C14E; }
pre.code .cm { color: var(--muted); }
pre.code .add { background: color-mix(in srgb, var(--mint) 14%, transparent); }
pre.code .del { background: color-mix(in srgb, #FF7A7A 16%, transparent); text-decoration: line-through; color: var(--muted); }
pre.code .ghost { color: var(--muted); opacity: 0.8; }
pre.code .ghost::before { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--text); vertical-align: -2px; margin-right: 1px; }

/* Gather: the ranked list */

.scores { list-style: none; margin: 0; padding: 12px 0 0; }
.scores li {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 2fr) 44px auto;
  gap: 16px;
  align-items: center;
  padding: 7px 20px;
  color: var(--muted);
}
.scores li.in { color: var(--text); }
.scores .sbar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scores .sbar i { display: block; height: 100%; background: var(--line-strong); border-radius: 2px; }
.scores li.in .sbar i { background: var(--mint); }
.scores .n { text-align: right; }
.scores li.in .n { color: var(--mint); }
.scores .tag { font-size: 12px; color: var(--blue); }
.scores li.cut { grid-template-columns: 1fr; padding: 6px 20px; margin: 6px 0; font-size: 12px; border-top: 1px dashed var(--line-strong); }
.scores li.more { grid-template-columns: 1fr; font-size: 12px; padding: 10px 20px 16px; }

/* Gate cards */

.gate { padding: 16px 18px 18px; display: grid; gap: 12px; }
.gate .proposal { color: var(--text); }
.gate .tool { color: var(--blue); margin-right: 6px; }
.gate .verdict { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.gate .ask { color: var(--muted); font-size: 12.5px; }
.gate .ask.stop { color: #FF9A9A; }
.gate .quote {
  padding: 10px 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--text);
  font-size: 12.5px;
  background: color-mix(in srgb, var(--bg) 40%, var(--surface));
}
.gate .buttons { display: flex; gap: 8px; }
.fbtn { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--text); }
.fbtn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/* Verify: before, after, summary */

.delta { display: grid; grid-template-columns: 1fr 1fr; }
.delta .col { padding: 14px 20px 18px; }
.delta .col + .col { border-left: 1px solid var(--line); }
.delta .col-head { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.delta .row { padding: 4px 0; color: var(--text); }
.delta .row.bad { color: #FF9A9A; }
.delta .row.bad::before { content: "✕ "; }
.delta .row.good { color: var(--mint); }
.delta .row.good::before { content: "✓ "; }
.delta .row.dim::before { content: "✕ "; }
.delta-sum { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 14px 20px 20px; border-top: 1px solid var(--line); }

/* Autonomy: picker plus live action list */

.auto-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.picker { padding: 8px; display: grid; gap: 2px; align-content: start; border-right: 1px solid var(--line); }
.picker .opt {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.picker .opt:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.picker .opt .name { color: var(--text); }
.picker .opt .what { font-size: 12px; }
.picker .opt.on { background: color-mix(in srgb, var(--mint) 14%, transparent); }
.picker .opt.on .name::after { content: " ✓"; color: var(--mint); }

.actions { list-style: none; margin: 0; padding: 10px 0; }
.actions li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 28px auto;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
  color: var(--text);
}
.actions .tool { color: var(--blue); }
.actions code { background: none; border: 0; padding: 0; font-size: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions .risk { color: var(--muted); text-align: right; }
.actions .state { font-size: 12px; padding: 2px 8px; min-width: 96px; border-radius: 999px; border: 1px solid var(--line-strong); text-align: center; color: var(--muted); white-space: nowrap; }
.actions li.runs .state { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 55%, transparent); }
.actions li.waits .state { color: #F2C14E; border-color: color-mix(in srgb, #F2C14E 55%, transparent); }
.actions li.refused .state { color: #FF9A9A; border-color: color-mix(in srgb, #FF7A7A 55%, transparent); }
.actions li.refused code { text-decoration: line-through; color: var(--muted); }
@media (max-width: 640px) {
  .auto-body { grid-template-columns: 1fr; }
  .picker { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .actions li { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .actions .risk { display: none; }
}

/* Two-up: window on top, heading beneath */

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.mini { min-width: 0; }
.mini h2 { margin-top: 22px; font-size: 24px; line-height: 1.2; }
.mini p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card.crop { padding: 32px 0 0 32px; height: 340px; }
.card.crop .win { border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; height: 100%; }
.search { margin: 10px 16px 4px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 12.5px; }
.ext { list-style: none; margin: 0; padding: 4px 0; }
.ext li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; }
.ext-name { color: var(--text); }
.ext-by { color: var(--muted); font-size: 12.5px; }
@media (max-width: 800px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Hero playback */

.win-bar .replay {
  margin-left: 12px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}
.win-bar .replay:hover { color: var(--text); border-color: var(--text); }
.ide.playing [data-step] { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.ide.playing pre.code [data-step] { transform: none; }
.ide.playing [data-step].shown { opacity: 1; transform: none; }
.ide.playing .chip .bar i { width: 0 !important; transition: width 0.6s ease-out; }
.ide.playing .shown .chip .bar i { width: var(--w) !important; }
.ide.playing .tree .sel { background: none; color: var(--muted); transition: background 0.35s, color 0.35s; }
.ide.playing .tree .sel .score { visibility: hidden; }
.ide.playing.gathered .tree .sel { background: color-mix(in srgb, var(--mint) 12%, transparent); color: var(--text); }
.ide.playing.gathered .tree .sel .score { visibility: visible; }
.turn-user .caret { display: inline-block; width: 2px; height: 1em; background: var(--text); vertical-align: -2px; margin-left: 1px; }

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

.section {
  padding: 32px 0;
}
#pricing, #resources { padding-top: 80px; }

.section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  max-width: 24ch;
}

.section .intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

/* Three workers: a table-like row with clear roles, not a card kit */

.roles {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.role {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.role + .role { padding-left: 24px; border-left: 1px solid var(--line); }
.role h3 { font-size: 20px; }
.role h3 small { display: block; font-weight: 300; color: var(--muted); font-size: 14px; margin-top: 4px; }
.role p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.role p b { color: var(--text); font-weight: 500; }

@media (max-width: 760px) {
  .roles { grid-template-columns: 1fr; }
  .role + .role { padding-left: 0; border-left: 0; }
}

/* The loop: an ordered sequence, so numbering is meaningful */

.loop {
  margin-top: 48px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  counter-reset: stage;
}
.loop li {
  counter-increment: stage;
  padding: 20px 18px 24px 0;
  border-top: 2px solid var(--line-strong);
  position: relative;
}
.loop li::before {
  content: counter(stage);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.loop li:nth-child(3) { border-top-color: var(--blue); }
.loop li:nth-child(2), .loop li:nth-child(4), .loop li:nth-child(5), .loop li:nth-child(6), .loop li:nth-child(1) { border-top-color: var(--mint); }
.loop h3 { font-size: 17px; margin-top: 6px; }
.loop p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.loop .owner { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; }
.loop .owner.jev { color: var(--mint); }
.loop .owner.llm { color: var(--blue); }

.loop-key {
  margin-top: 28px;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.loop-key i { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 8px; }
.loop-key .jev i { background: var(--mint); }
.loop-key .llm i { background: var(--blue); }

@media (max-width: 960px) { .loop { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr 1fr; } }

/* Autonomy */

.levels {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid var(--line);
}
.levels > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.levels .name { font-family: var(--mono); font-weight: 500; }
.levels .what { color: var(--muted); font-size: 16px; padding-left: 16px; }
@media (max-width: 600px) {
  .levels { grid-template-columns: 1fr; }
  .levels .name { padding-bottom: 4px; border-bottom: 0; }
  .levels .what { padding-left: 0; padding-top: 0; }
}

/* Pricing */

.price {
  margin-top: 48px;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  background: var(--surface);
}
.price .amount {
  font-family: var(--mono);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price .amount small { display: block; font-size: 0.34em; font-weight: 300; color: var(--muted); margin-top: 10px; letter-spacing: 0; }
.price .terms {
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
}
.price ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 16px;
}
.price li { display: flex; gap: 12px; align-items: baseline; }
.price li::before {
  content: "";
  flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); position: relative; top: -1px;
}
.price .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Resources / changelog */

.posts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.post {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.post time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 5px;
}
.post h3 { font-size: 20px; line-height: 1.3; }
.post h3 a:hover { text-decoration: underline; }
.post p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.post .body { margin-top: 14px; color: var(--text); font-size: 16px; }
.post .body p { color: var(--text); }
.post .body ul { margin: 10px 0 0; padding-left: 20px; max-width: var(--measure); }
.post .body li + li { margin-top: 6px; }
.post .tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}
@media (max-width: 600px) {
  .post { grid-template-columns: 1fr; gap: 6px; }
}

.more { margin-top: 28px; font-family: var(--mono); font-size: 14px; }

/* Page heading for secondary pages */

.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.site-footer .wordmark { font-size: 15px; }
.site-footer .wordmark-icon { width: 20px; height: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .copy { margin-left: auto; }
@media (max-width: 600px) { .site-footer .copy { margin-left: 0; } }

