/* ============================================================
   Indexwright v2 — Commerce Agent Lab
   Extends style.css. Adds diagram plates, agent scorecards,
   launch offers and the autonomy ladder.
   ============================================================ */

.section__head--wide { max-width: 22ch; }
.section__head--xwide { max-width: 28ch; }
.section__lede--tight { margin-bottom: 0; }

/* ---------- Hero scorecard ---------- */
.hero__headline--v2 { max-width: 13ch; }
.agent-reply {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
}
.agent-reply b { color: var(--ink); font-weight: 600; }
.agent-check-list li.is-fail { border-color: var(--fail); background: rgba(161, 51, 36, 0.05); }
.agent-check-list__main { display: grid; gap: 0.15rem; min-width: 0; }
.agent-check-list__note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fail); }
.specimen-widget__foot--v2 { align-items: center; }

/* ---------- Diagram plates ---------- */
.dg {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  margin-top: 2.25rem;
}
.dg__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px dashed var(--line-strong);
}
.dg__body { overflow-x: auto; padding: 1.1rem 1.25rem 0.5rem; }
.dg__body svg { min-width: 760px; width: 100%; height: auto; }
.dg__cap {
  padding: 0.7rem 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 82ch;
}

.dgm text { font-family: var(--font-body); fill: var(--ink); }
.dgm .m { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-soft); }
.dgm .t { font-size: 12.5px; font-weight: 600; }
.dgm .tb { font-size: 14px; font-weight: 600; }
.dgm .c { text-anchor: middle; }
.dgm .box { fill: var(--paper-raised); stroke: var(--line-strong); stroke-width: 1.2; }
.dgm .hi { stroke: var(--accent); stroke-width: 2; }
.dgm .dash { stroke-dasharray: 5 4; }
.dgm .acc { fill: rgba(122, 91, 10, 0.08); }
.dgm .solid { fill: var(--ink); stroke: var(--ink); }
.dgm text.on { fill: var(--paper); }
.dgm text.on.m { fill: var(--paper); opacity: 0.8; }
.dgm .ln { stroke: var(--ink-soft); stroke-width: 1.3; fill: none; }
.dgm .lnA { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 6 4; }
.dgm .ah { fill: var(--ink-soft); }
.dgm .tag { fill: var(--accent); }

/* ---------- Launch offers ---------- */
.launch-grid { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 700px) { .launch-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .launch-grid { grid-template-columns: repeat(4, 1fr); } }
.launch { display: flex; flex-direction: column; gap: 0.6rem; }
.launch h3 { font-size: 1.25rem; }
.launch p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.launch__proof {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}
.launch__proof b { color: var(--ink); font-weight: 500; }
.next-lab { margin-top: 2rem; }
.next-lab > p { margin: 0 0 0.25rem; }

/* ---------- Plate notes ---------- */
.plate-notes { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .plate-notes { grid-template-columns: repeat(3, 1fr); } }
.plate-notes div { border-top: 2px solid var(--accent); padding-top: 0.7rem; }
.plate-notes h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.plate-notes p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* ---------- Specimen extras ---------- */
.specimen__label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.specimen__quote {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 0.6rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 0.9rem;
}
.specimen__quote b { color: var(--ink); font-weight: 600; }
.failgrid { display: grid; gap: 1rem; margin-top: 0.4rem; }
@media (min-width: 760px) { .failgrid { grid-template-columns: 1fr 1fr 1fr; } }
.failgrid > div { display: grid; gap: 0.35rem; align-content: start; }
.failgrid .specimen__quote { margin: 0; }
.failgrid .is-bad { border-color: var(--fail); background: rgba(161, 51, 36, 0.05); }
.failgrid .is-good { border-color: var(--pass); background: rgba(27, 99, 88, 0.06); }
.specimen.specimen--wide.specimen--stack { display: block; }
.specimen--stack .specimen__action { margin-top: 1.1rem; }
.specimen-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Search foundation (the 10%) ---------- */
.foundation { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foundation .section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.mini-steps { display: grid; gap: 0.75rem 1.5rem; margin: 1.5rem 0 1.25rem; counter-reset: ms; }
@media (min-width: 760px) { .mini-steps { grid-template-columns: repeat(4, 1fr); } }
.mini-steps li {
  counter-increment: ms;
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-strong);
  padding-top: 0.6rem;
}
.mini-steps li::before {
  content: counter(ms);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.mini-steps b { color: var(--ink); font-weight: 600; display: block; }
.foundation__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.93rem; }
.foundation__links a { border-bottom: 1px solid var(--accent); }
.foundation__links a:hover { color: var(--accent); }

/* ---------- Autonomy ladder ---------- */
.ladder-grid { display: grid; gap: 1rem; padding: 0 1.25rem 0.5rem; }
@media (min-width: 700px) { .ladder-grid { grid-template-columns: repeat(4, 1fr); } }
.ladder-grid div { font-size: 0.88rem; color: var(--ink-soft); border-top: 1px solid var(--line-strong); padding-top: 0.55rem; }
.ladder-grid b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Offers ---------- */
.pricing-card__addon {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.pricing-card__addon strong { color: var(--ink); font-weight: 500; }
.founding-line { margin-top: 2rem; font-size: 0.95rem; color: var(--ink-soft); max-width: 70ch; }
.founding-line strong { color: var(--ink); }

/* ---------- Footer: seven links wrap on narrow screens ---------- */
.footer__links { flex-wrap: wrap; gap: 0.6rem 1.5rem; }

.dgm { overflow: visible; }
