/* Process Runner page (/process-runner): what it is, how it works, examples. Builds on site.css and agent-payments.css. */

.pr-brand { gap: 10px; }
.pr-brand img { width: 28px; height: 28px; border-radius: 7px; }
.pr-shot { border-radius: 10px; overflow: hidden; }
.pr-shot img { display: block; width: 100%; height: auto; }

/* gate kinds: one color each, used on the cards and in the example flows */
.pr-kind { display: inline-block; flex: none; min-width: 64px; text-align: center; font: 600 11.5px/1 var(--font-body);
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border: 1px solid; border-radius: 6px; }
.pr-ai { color: #8cc4ff; background: rgba(11, 123, 255, .14); border-color: rgba(47, 143, 255, .45); }
.pr-person { color: #ffd08a; background: rgba(245, 181, 68, .12); border-color: rgba(245, 181, 68, .45); }
.pr-agent { color: #7ee8d6; background: rgba(45, 212, 191, .12); border-color: rgba(45, 212, 191, .45); }
.pr-process { color: #d8b4fe; background: rgba(192, 132, 252, .12); border-color: rgba(192, 132, 252, .45); }
.pr-parallel { color: #f9a8d4; background: rgba(244, 114, 182, .12); border-color: rgba(244, 114, 182, .45); }
.ap-card .pr-kind { margin-bottom: 12px; }
/* five gate kinds: 5 across when there is room, 3 + 2 in the middle, 1 column on phones */
.pr-gates { grid-template-columns: 1fr; }
@media (min-width: 700px) { .pr-gates { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .pr-gates { grid-template-columns: repeat(5, 1fr); } }
/* six cards: 3 + 3, never 4 + 2 */
.pr-six { grid-template-columns: 1fr; }
@media (min-width: 640px) { .pr-six { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pr-six { grid-template-columns: repeat(3, 1fr); } }

/* examples: each one a flow of gates, top to bottom */
.pr-examples { display: grid; gap: 16px; }
@media (min-width: 1000px) { .pr-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pr-example h3 { font-size: 21px; margin-bottom: 8px; }
.pr-example > p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.pr-flow { list-style: none; margin: 18px 0; padding: 0; }
.pr-flow li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 15px;
  color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.pr-flow li + li { margin-top: 20px; }
.pr-flow li + li::before { content: ""; position: absolute; left: 43px; top: -21px; height: 15px; border-left: 2px solid var(--line-2); }
.pr-flow li + li::after { content: ""; position: absolute; left: 39px; top: -7px; border: 5px solid transparent;
  border-top-color: var(--line-2); border-bottom: 0; }
/* a fork: the run takes one of two paths */
.pr-flow li.pr-fork { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; padding: 0; background: none; border: 0; }
.pr-fork > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14.5px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.pr-checks { display: grid; gap: 2px; margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.pr-checks span::before { content: "\2713\00a0"; color: #3ddc97; font-weight: 700; }
@media (max-width: 560px) { .pr-flow li.pr-fork { grid-template-columns: 1fr; } }
.pr-example .pr-out { margin: 0; color: var(--text); font-size: 15px; }
.pr-out::before { content: "\2713\00a0"; color: #3ddc97; font-weight: 700; }

/* a process, gate by gate, set like a script (plain words, not the process file format) */
.pr-script { margin: 0; overflow-x: auto; padding: 22px; color: #e6edf7; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; }
.pr-script code { font: inherit; }
.pr-script .t-k { color: #7ee8d6; font-weight: 700; }
.pr-script .t-l { color: #8cc4ff; }
.pr-script .t-c { color: var(--muted); }

/* products built on it */
.pr-built { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pr-built a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; font-weight: 600;
  color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.pr-built a:hover { border-color: var(--accent); }
.pr-built img { width: 34px; height: 34px; margin-left: -10px; border-radius: 8px; }

/* any AI model: the tagline and the model names */
.pr-tagline { margin: 14px 0 0; font: 700 clamp(19px, 2vw, 23px)/1.35 var(--font-head); color: var(--accent-bright); }
.pr-models { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pr-models li { font-size: 14px; font-weight: 600; color: #cfe1f3; background: var(--tag-bg); border: 1px solid #17385a;
  border-radius: 999px; padding: 6px 14px; }

/* cost your processes: a sample run cost */
.pr-cost-grid { align-items: start; }
.pr-cost table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pr-cost th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.pr-cost td { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--text); }
.pr-cost th:nth-child(n+3), .pr-cost td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.pr-cost tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line-2); }
@media (max-width: 520px) { .pr-cost th:nth-child(2), .pr-cost td:nth-child(2) { display: none; } }
