/* Reusable building blocks: buttons, terminal, panels, status pills,
   feature rows, and the pipeline diagram. */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  color: var(--bg);
  background: var(--purple-300);
  border: none;
  font-weight: 500;
}
.btn--primary:hover { background: var(--purple-100); }
.btn--primary .btn__icon { opacity: 0.7; }

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

/* Small link-style pill button (README / CONTRIBUTING / ROADMAP) */
.linkpill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--line-btn);
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.linkpill:hover { border-color: var(--purple); }

/* ---- Terminal ---- */
.terminal {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-panel);
}

.terminal--hero {
  max-width: 660px;
  margin: 0 auto 32px;
  text-align: left;
  box-shadow: 0 24px 60px -24px var(--term-shadow),
    0 0 0 1px rgba(101, 79, 240, 0.06);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-elev);
}
.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--term-dot);
}
.terminal__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
}
.terminal__body {
  margin: 0;
  padding: 18px 18px 20px;
  /* Pre-sized to the finished transcript so the box doesn't grow line-by-line. */
  min-height: 352px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-code);
  white-space: pre-wrap;
}
.terminal__caret {
  color: var(--purple-300);
  animation: blink 1s step-end infinite;
}

/* ---- Code panel (install / cli cards) ---- */
.codecard {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
}
.codecard__label {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.codecard__body {
  margin: 0;
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-code);
  line-height: 1.7;
  overflow-x: auto;
}
.codecard__prompt { color: var(--text-faint); }

/* ---- Panels ---- */
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
}

/* ---- Status pills ---- */
.pill {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.pill--done { color: var(--green); background: var(--pill-done-bg); }
.pill--partial { color: var(--amber); background: var(--pill-partial-bg); }
.pill--planned { color: var(--text-muted); background: var(--pill-planned-bg); }
.pill--none { color: var(--red); background: var(--pill-none-bg); }

/* ---- Inline status tags (conformance legend) ---- */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
}
.tag--pass { background: rgba(154, 209, 126, 0.14); color: var(--green); }
.tag--partial { background: rgba(101, 79, 240, 0.16); color: var(--purple-200); }
.tag--blocked { background: var(--fill-chip); color: var(--text-muted); }
.tag--fail { background: rgba(224, 98, 94, 0.14); color: var(--red); }

/* Legend row */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 36px;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.legend__item--done { color: var(--green); }
.legend__item--partial { color: var(--amber); }
.legend__item--planned { color: var(--text-muted); }
.legend__item--none { color: var(--red); }

/* ---- Feature rows ---- */
.feature-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.feature-group__title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}
.feature-group__note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 10px;
}
.feature-group__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
}

.feature-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
  overflow: hidden;
  margin: 0 0 40px;
}
.feature-list:last-child { margin-bottom: 0; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line-faint);
}
.feature-row__name {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-code);
}
.feature-row__sub {
  color: var(--text-faint);
  margin-left: 10px;
}
