/* ============================================================
 * Workflow v2 — believable product fragments per cell
 * ============================================================ */
.wf2 {
  padding: 120px 0 120px;
  background: var(--bg-app);
}
.wf2__head {
  max-width: 920px;
  margin: 0 auto 64px;
  text-align: center;
}
.wf2__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 660;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg-1);
  margin: 16px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.wf2__dot {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.7em;
}
.wf2__lede {
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 64ch;
  text-wrap: pretty;
}

/* Cell grid */
.wf2__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .wf2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .wf2__grid { grid-template-columns: 1fr; } }

.wf2__cell {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: transform var(--motion-standard) var(--ease-standard),
              box-shadow var(--motion-standard) var(--ease-standard),
              border-color var(--motion-standard) var(--ease-standard);
}
.wf2__cell:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-floating);
}

.wf2__cell-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wf2__cell-step {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
.wf2__cell-name {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.005em;
  color: var(--fg-1);
  margin: 0;
}
.wf2__cell-mock {
  flex: 1;
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #0E1117;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}
.wf2__cell-caption {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
 * Mini-product fragments (.wfx) — dark, glassy, mono-tight
 * ============================================================ */
.wfx {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #E8EAEF;
  font-family: var(--font-sans);
}

/* ---------- 01 · Ask ---------- */
.wfx--ask {
  padding: 14px;
  gap: 12px;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(33,214,199,0.08), transparent 70%),
    #0E1117;
}
.wfx__composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.wfx__beam { color: var(--accent); display: inline-flex; align-items: center; }
.wfx__composer-text {
  font-size: 11.5px;
  color: rgba(232, 234, 239, 0.85);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.wfx__send {
  width: 18px; height: 18px;
  border-radius: 9999px;
  background: var(--accent);
  color: #07111F;
  font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Agent bubble */
.wfx__bubble {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wfx__bubble-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
}
.wfx__bubble-pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(33,214,199,0.2);
}
.wfx__bubble-name {
  font-weight: 600;
  color: rgba(232, 234, 239, 0.9);
}
.wfx__bubble-time {
  margin-left: auto;
  font-size: 10px;
  color: rgba(232, 234, 239, 0.4);
}
.wfx__bubble-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(232, 234, 239, 0.85);
  letter-spacing: -0.005em;
}
.wfx__bubble-body b { color: #FFFFFF; font-weight: 600; }
.wfx__hl {
  display: inline-block;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(33,214,199,0.18);
  color: var(--accent);
  font-weight: 600;
}
.wfx__bubble-cite {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: rgba(232, 234, 239, 0.55);
}
.wfx__bubble-cite-k {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(232, 234, 239, 0.7);
}

/* ---------- 02 · Map ---------- */
.wfx--map { padding: 0; background: #0F141C; }
.wfx--map svg { display: block; width: 100%; height: 100%; }

/* ---------- 03 · Monitor ---------- */
.wfx--mon {
  padding: 14px;
  gap: 10px;
  background: #0E1117;
}
.wfx__mon-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wfx__mon-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 234, 239, 0.85);
}
.wfx__mon-meta {
  margin-left: auto;
  font-size: 10px;
  color: rgba(232, 234, 239, 0.5);
}
.wfx__mon-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wfx__mon-row {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.wfx__mon-bar {
  display: block;
  width: 3px; height: 28px;
  border-radius: 2px;
}
.wfx__mon-bar--running { background: #6FD9C0; }
.wfx__mon-bar--alert   { background: #E0A85F; box-shadow: 0 0 8px rgba(224,168,95,0.5); }
.wfx__mon-bar--queued  { background: rgba(232, 234, 239, 0.3); }

.wfx__mon-body { min-width: 0; }
.wfx__mon-name {
  font-size: 11.5px;
  font-weight: 540;
  color: rgba(232, 234, 239, 0.92);
  letter-spacing: -0.005em;
}
.wfx__mon-note {
  font-size: 10.5px;
  color: rgba(232, 234, 239, 0.55);
  margin-top: 1px;
}
.wfx__mon-row--alert .wfx__mon-note { color: #E0A85F; }
.wfx__mon-cad {
  font-size: 10px;
  color: rgba(232, 234, 239, 0.55);
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 04 · Evidence pack ---------- */
.wfx--ev {
  padding: 16px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 30%),
    #0E1117;
}
.wfx__ev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wfx__ev-doctype {
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(232, 234, 239, 0.5);
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
}
.wfx__ev-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(232, 234, 239, 0.7);
}
.wfx__ev-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.wfx__ev-rows {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wfx__ev-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  font-size: 11px;
}
.wfx__ev-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(232, 234, 239, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wfx__ev-row dd {
  margin: 0;
  color: rgba(232, 234, 239, 0.92);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wfx__ev-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wfx__ev-dot--ok   { background: #6FD9C0; }
.wfx__ev-dot--warn { background: #E0A85F; }
.wfx__ev-signed { color: #6FD9C0; }
.wfx__ev-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}
.wfx__ev-pdf {
  font-size: 10px;
  color: rgba(232, 234, 239, 0.5);
}
.wfx__ev-export {
  font-size: 11px;
  color: var(--accent);
  font-weight: 540;
}
