/* Sections below the hero: pipeline, gates, run log, statuses, rerun commands, Mozaik facts, team. */

/* ---------- pipeline ---------- */
.flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.flow li { position: relative; padding: 0 18px 0 0; }
.flow li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font: 600 12px var(--mono); color: var(--accent); display: block; margin-bottom: 10px;
}
.flow li::after { content: ""; position: absolute; left: 30px; right: 10px; top: 8px; height: 1px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 18px; }
.flow p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.who { display: inline-block; margin-top: 10px; font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

/* ---------- gates ---------- */
.gates-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
.gates { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.gates li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.gates li:last-child { border-bottom: 0; }
.gates .n { font: 600 13px var(--mono); color: var(--accent); grid-row: span 2; padding-top: 2px; }
.gates .g { font: 600 14px var(--mono); }
.gates .d { color: var(--muted); font-size: 15px; }

.terminal { background: var(--code-bg); color: var(--code-fg); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.terminal .bar { padding: 10px 14px; font: 12px var(--mono); color: var(--code-dim); border-bottom: 1px solid #1f2b26; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.terminal pre { margin: 0; padding: 16px; font: 12.5px/1.65 var(--mono); overflow-x: auto; }
.t-dim { color: var(--code-dim); }
.t-ok { color: var(--code-hit); }
.t-bad { color: var(--code-bad); }
.t-msg { display: block; padding: 6px 10px; margin: 4px 0 6px; border-left: 2px solid var(--code-bad); background: rgb(255 138 115 / .08); color: #ffd3c9; white-space: pre-wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- statuses ---------- */
.statuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.status { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-proven { color: var(--proven); } .s-partial { color: var(--partial); } .s-unproven { color: var(--unproven); } .s-failed { color: var(--failed); }
.status p { margin: 0; color: var(--muted); font-size: 15px; }
.rule {
  margin-top: 28px; padding: 18px 22px; border-radius: 14px; background: var(--accent-soft);
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2;
}

/* ---------- rerun + mozaik ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.cmds { display: flex; flex-direction: column; gap: 12px; }
.cmds .cmd { width: 100%; justify-content: space-between; }
.cmds p { margin: 2px 0 0 2px; font-size: 14px; color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.facts li::before { content: "→"; color: var(--accent); font-family: var(--mono); }
.facts p { margin: 0; color: var(--muted); font-size: 15.5px; }
.facts strong { color: var(--ink); }

/* ---------- team + footer ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.member { border-top: 2px solid var(--ink); padding-top: 14px; }
.member .l { font: 600 12px var(--mono); letter-spacing: .14em; color: var(--accent); }
.member .name { margin-top: 6px; font-size: 22px; }
.member p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- real run (videos) ---------- */
/* Always side by side: on narrow screens both frames shrink together instead of stacking. */
.run-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, .7fr); gap: clamp(10px, 2.4vw, 28px); align-items: end; margin-top: 40px; }
.run-grid figure { margin: 0; min-width: 0; }
.run-video { display: block; width: 100%; height: auto; background: var(--sunk); }
.run-web .run-video { aspect-ratio: 960 / 640; }
.run-phone .phone { max-width: 260px; border-radius: clamp(14px, 3vw, 34px); padding: clamp(4px, 1vw, 9px); }
.run-phone .screen { border-radius: clamp(10px, 2.4vw, 26px); }
.run-grid .frame-label { font-size: clamp(8px, 1.6vw, 11px); }
.run-grid .browser-bar { padding: clamp(5px, 1vw, 10px) clamp(6px, 1.2vw, 12px); }
.run-phone .screen { position: relative; }
.run-phone .run-video { height: 100%; object-fit: cover; }
.run-foot { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; flex-wrap: wrap; }
.run-foot .note { margin: 0; flex: 1; min-width: 0; max-width: 72ch; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
