/* =====================================================
   CORE PAGE V2 — Features + Why It Matters refresh
   Drop-in stylesheet, additive to existing core styles
   ===================================================== */

/* ---------- FEATURES (full rewrite — product tour) ---------- */

.ft2 {
  margin-top: 56px;
}

/* Anchor visual frame */
.ft2-anchor {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--bone-300);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 64px;
}
.ft2-anchor .mk-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bone-100);
  border-bottom: 1px solid var(--bone-300);
}
.ft2-anchor .mk-bar .dot { width: 10px; height: 10px; border-radius: 999px; }
.ft2-anchor .mk-bar .url {
  margin-left: 16px;
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 999px; padding: 4px 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.ft2-anchor .mk-bar .url::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--moss-500);
}
.ft2-anchor-cap {
  position: absolute; left: 28px; bottom: 28px; z-index: 5;
  background: var(--ink-900); color: var(--bone-50);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}
.ft2-anchor-cap .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-300);
  margin-bottom: 4px;
}
.ft2-anchor-cap strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 2px;
}

/* Feature row layout — alternating two-column */
.ft2-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--bone-300);
}
.ft2-row:first-of-type { border-top: 0; padding-top: 24px; }
.ft2-row .ft2-copy { padding: 0 8px; }
.ft2-row.reverse .ft2-stage { order: 2; }
.ft2-row.reverse .ft2-copy { order: 1; }

.ft2-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--moss-700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ft2-num::before {
  content: ""; width: 18px; height: 1px;
  background: var(--moss-500);
}
.ft2-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.ft2-line {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0;
  max-width: 38ch;
}

/* Stage chrome shared by all feature visuals */
.ft2-stage {
  background: var(--paper);
  border: 1px solid var(--bone-300);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--font-ui);
  position: relative;
}
.ft2-stage .stage-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--bone-100);
  border-bottom: 1px solid var(--bone-300);
}
.ft2-stage .stage-chrome .d { width: 8px; height: 8px; border-radius: 999px; }
.ft2-stage .stage-chrome .ttl {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-2);
}

/* ---- F1: Workspace close-up ---- */
.ft2-workspace {
  display: grid;
  grid-template-columns: 70px 1fr;
  min-height: 320px;
  background: var(--bone-50);
}
.ft2-workspace .mini-side {
  background: var(--bone-100);
  border-right: 1px solid var(--bone-300);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
}
.ft2-workspace .mini-side .pebble {
  width: 22px; height: 22px; object-fit: contain;
  margin-bottom: 6px;
}
.ft2-workspace .mini-side .ic {
  width: 36px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--fg-2);
  position: relative;
}
.ft2-workspace .mini-side .ic.active {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}
.ft2-workspace .mini-side .ic .lbl {
  position: absolute; bottom: -10px;
  font-size: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ft2-workspace .mini-side .ic.active .lbl { color: var(--moss-700); }
.ft2-workspace .canvas {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.ft2-workspace .canvas .crumb {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3);
  display: flex; align-items: center; gap: 6px;
}
.ft2-workspace .canvas .crumb .sep { color: var(--bone-400); }
.ft2-workspace .canvas h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 2px 0 6px;
}
.ft2-workspace .canvas .files {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.ft2-workspace .canvas .file {
  display: grid; grid-template-columns: 28px 1fr; gap: 9px;
  background: var(--paper);
  border: 1px solid var(--bone-300);
  border-radius: 10px;
  padding: 8px 10px;
  align-items: center;
}
.ft2-workspace .canvas .file .ic {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bone-100);
  color: var(--moss-700);
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  display: grid; place-items: center;
}
.ft2-workspace .canvas .file .meta {
  font-size: 11.5px; color: var(--ink-900); font-weight: 500;
}
.ft2-workspace .canvas .file .meta small {
  display: block; font-weight: 400; font-size: 10px; color: var(--fg-3); margin-top: 1px;
}
.ft2-workspace .canvas .agent-pulse {
  margin-top: auto;
  background: color-mix(in srgb, var(--moss-500) 6%, var(--paper));
  border: 1px solid var(--moss-200);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11px; color: var(--moss-700);
  display: flex; align-items: center; gap: 8px;
}
.ft2-workspace .canvas .agent-pulse .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--moss-500);
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}
.ft2-workspace .canvas .agent-pulse strong { color: var(--ink-900); font-weight: 500; }

/* ---- F2: Shared Memory ---- */
.ft2-mem {
  padding: 18px 22px 22px;
  background: var(--bone-50);
  min-height: 320px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.ft2-mem .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.ft2-mem .head .ttl {
  font-family: var(--font-display); font-weight: 400; font-size: 16px;
  color: var(--ink-900); letter-spacing: -0.01em;
}
.ft2-mem .head .count {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-2);
  background: var(--paper); border: 1px solid var(--bone-300);
  padding: 3px 8px; border-radius: 999px;
}
.ft2-mem .head .count .live {
  width: 5px; height: 5px; border-radius: 999px; background: var(--moss-500);
  display: inline-block; margin-right: 5px;
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}
.ft2-mem .row {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 11px; align-items: center;
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-xs);
  opacity: 0;
  transform: translateY(8px);
  animation: ft2-mem-in 600ms var(--ease-out) forwards;
}
.ft2-mem .row.r1 { animation-delay: 100ms; }
.ft2-mem .row.r2 { animation-delay: 350ms; }
.ft2-mem .row.r3 { animation-delay: 600ms; }
.ft2-mem .row.r4 { animation-delay: 850ms; }
.ft2-mem .row.r5 { animation-delay: 1100ms; }
@keyframes ft2-mem-in {
  to { opacity: 1; transform: translateY(0); }
}
.ft2-mem .row .badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bone-100);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  color: var(--moss-700);
  display: grid; place-items: center;
}
.ft2-mem .row.r2 .badge { background: #FBEFD0; color: #8B6A1A; }
.ft2-mem .row.r3 .badge { background: var(--info-bg); color: var(--info); }
.ft2-mem .row.r4 .badge { background: var(--moss-50); color: var(--moss-700); }
.ft2-mem .row.r5 .badge { background: var(--success-bg); color: var(--success); }
.ft2-mem .row .body { min-width: 0; }
.ft2-mem .row .body .t {
  font-size: 12px; color: var(--ink-900); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ft2-mem .row .body .m {
  font-size: 10.5px; color: var(--fg-2); margin-top: 1px;
}
.ft2-mem .row .use {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 4px;
}
.ft2-mem .row .use::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--moss-500);
}
.ft2-mem .footnote {
  margin-top: auto; padding-top: 8px;
  font-size: 10.5px; color: var(--fg-2);
  display: flex; align-items: center; gap: 6px;
}
.ft2-mem .footnote svg { color: var(--moss-500); }

/* ---- F3: Agents ---- */
.ft2-agents-stage { padding: 20px; background: var(--bone-50); min-height: 320px; }
.ft2-agents-stage .grid4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.ft2-agents-stage .acard {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 10px; padding: 10px 8px 9px;
  text-align: center;
  position: relative;
}
.ft2-agents-stage .acard .av {
  width: 28px; height: 28px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  color: #fff;
}
.ft2-agents-stage .acard.a1 .av { background: var(--tint-coral-fg); }
.ft2-agents-stage .acard.a2 .av { background: var(--tint-sky-fg); }
.ft2-agents-stage .acard.a3 .av { background: var(--ink-900); }
.ft2-agents-stage .acard.a4 .av { background: var(--moss-500); }
.ft2-agents-stage .acard .nm {
  font-size: 11px; font-weight: 600; color: var(--ink-900);
  letter-spacing: -0.005em;
}
.ft2-agents-stage .acard .role {
  font-size: 9.5px; color: var(--fg-2); margin-top: 1px;
}
.ft2-agents-stage .acard .stat {
  position: absolute; top: 6px; right: 6px;
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--bone-300);
}
.ft2-agents-stage .acard.running .stat {
  background: var(--moss-500);
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}

.ft2-agents-stage .runner {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 12px;
  padding: 12px 14px;
}
.ft2-agents-stage .runner .top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ft2-agents-stage .runner .who {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-900); font-weight: 500;
}
.ft2-agents-stage .runner .who .av {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--moss-500); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
}
.ft2-agents-stage .runner .timer {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--moss-700);
  background: var(--moss-50);
  padding: 3px 8px; border-radius: 999px;
}
.ft2-agents-stage .runner .timer .live {
  width: 5px; height: 5px; border-radius: 999px; background: var(--moss-500);
  display: inline-block; margin-right: 5px;
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}
.ft2-agents-stage .runner .steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ft2-agents-stage .runner .step {
  border: 1px solid var(--bone-300);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bone-50);
  font-size: 10.5px;
}
.ft2-agents-stage .runner .step .lbl {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-2); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 3px;
}
.ft2-agents-stage .runner .step .t {
  font-size: 11px; color: var(--ink-900); font-weight: 500;
}
.ft2-agents-stage .runner .step.done .lbl { color: var(--moss-600); }
.ft2-agents-stage .runner .step.done .lbl::before {
  content: "✓ "; color: var(--moss-500); font-family: var(--font-ui); font-weight: 700;
}
.ft2-agents-stage .runner .step.run {
  background: color-mix(in srgb, var(--moss-500) 6%, var(--paper));
  border-color: var(--moss-400);
  animation: ft2-step-pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes ft2-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,110,75,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(79,110,75,0); }
}
.ft2-agents-stage .runner .step.run .lbl { color: var(--moss-700); }
.ft2-agents-stage .runner .step.run .lbl::before {
  content: "● "; color: var(--moss-500); animation: ft2-blink 1s steps(2) infinite;
}
@keyframes ft2-blink {
  50% { opacity: 0.3; }
}
.ft2-agents-stage .runner .step.queue .lbl::before { content: "○ "; }

/* ---- F4: Workflows ---- */
.ft2-flow {
  padding: 22px;
  background: var(--bone-50);
  min-height: 320px;
  position: relative;
}
.ft2-flow svg.connectors {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.ft2-flow svg.connectors path {
  fill: none;
  stroke: var(--moss-400);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  stroke-dashoffset: 0;
  animation: flow 1.4s linear infinite;
}
.ft2-flow .grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ft2-flow .step-card {
  background: var(--paper);
  border: 1px solid var(--bone-300);
  border-radius: 12px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  box-shadow: var(--shadow-xs);
  opacity: 0;
  transform: translateX(-12px);
  animation: ft2-flow-in 500ms var(--ease-out) forwards;
}
.ft2-flow .step-card.s1 { animation-delay: 0ms; }
.ft2-flow .step-card.s2 { animation-delay: 250ms; }
.ft2-flow .step-card.s3 { animation-delay: 500ms; }
.ft2-flow .step-card.s4 { animation-delay: 750ms; }
@keyframes ft2-flow-in {
  to { opacity: 1; transform: translateX(0); }
}
.ft2-flow .step-card .num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bone-100);
  color: var(--moss-700);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  display: grid; place-items: center;
  border: 1px solid var(--bone-300);
}
.ft2-flow .step-card.trigger .num {
  background: var(--ink-900); color: var(--bone-50);
  border-color: var(--ink-900);
}
.ft2-flow .step-card.delivered .num {
  background: var(--moss-500); color: #fff; border-color: var(--moss-500);
}
.ft2-flow .step-card .body .lbl {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 2px;
}
.ft2-flow .step-card .body .t {
  font-size: 12.5px; color: var(--ink-900); font-weight: 500;
}
.ft2-flow .step-card .agent {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--moss-700);
  background: var(--moss-50);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.ft2-flow .step-card.trigger .agent {
  background: var(--bone-100); color: var(--fg-2);
}
.ft2-flow .step-card.delivered .agent {
  background: var(--ink-900); color: var(--bone-50);
}

/* ---- F5: Projects ---- */
.ft2-proj {
  padding: 20px; background: var(--bone-50);
  min-height: 320px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}
.ft2-proj .list {
  display: flex; flex-direction: column; gap: 6px;
}
.ft2-proj .pcard {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 11.5px;
  cursor: default;
  transition: border-color 200ms var(--ease-out);
}
.ft2-proj .pcard.active {
  border-color: var(--moss-500);
  background: color-mix(in srgb, var(--moss-500) 4%, var(--paper));
}
.ft2-proj .pcard .top {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 4px;
}
.ft2-proj .pcard .top .d {
  width: 8px; height: 8px; border-radius: 999px;
}
.ft2-proj .pcard .top .nm { color: var(--ink-900); font-weight: 500; font-size: 11.5px; flex: 1; }
.ft2-proj .pcard .meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9.5px;
}
.ft2-proj .pcard .meta .stat {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--moss-700);
}
.ft2-proj .pcard .meta .stat::before {
  content: ""; width: 4px; height: 4px; border-radius: 999px;
  background: var(--moss-500);
}
.ft2-proj .pcard .meta .stat.risk { color: var(--warn); }
.ft2-proj .pcard .meta .stat.risk::before { background: var(--warn); }
.ft2-proj .pcard .meta .agents-count {
  color: var(--fg-3); font-family: var(--font-mono);
}

.ft2-proj .detail {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-xs);
}
.ft2-proj .detail .lbl {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-2); letter-spacing: 0.08em; text-transform: uppercase;
}
.ft2-proj .detail h6 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink-900); margin: 0;
}
.ft2-proj .detail .row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--fg-1);
  padding: 5px 0; border-top: 1px dashed var(--bone-200);
}
.ft2-proj .detail .row:first-of-type { border-top: 0; padding-top: 2px; }
.ft2-proj .detail .row .ic {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--bone-100); color: var(--moss-700);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
}
.ft2-proj .detail .row strong {
  font-weight: 500; color: var(--ink-900);
}
.ft2-proj .detail .row .av {
  width: 16px; height: 16px; border-radius: 50%;
  font-family: var(--font-display); font-size: 9px;
  display: grid; place-items: center;
  color: #fff;
}
.ft2-proj .detail .agents-row {
  display: flex; gap: 4px; margin-top: 2px;
}

/* ---- F6: Tasks (live timeline) ---- */
.ft2-task {
  padding: 18px 22px 22px;
  background: var(--bone-50);
  min-height: 320px;
}
.ft2-task .header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.ft2-task .header .left .lbl {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-2); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 3px;
}
.ft2-task .header .left h6 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink-900); margin: 0;
}
.ft2-task .header .pill {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--moss-50); color: var(--moss-700);
  padding: 4px 9px; border-radius: 999px;
}
.ft2-task .header .pill .live {
  width: 5px; height: 5px; border-radius: 999px; background: var(--moss-500);
  display: inline-block; margin-right: 5px;
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}
.ft2-task .timeline {
  position: relative;
  padding-left: 28px;
}
.ft2-task .timeline::before {
  content: ""; position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--moss-500) 0%, var(--moss-500) 70%, var(--bone-300) 70%, var(--bone-300) 100%);
  border-radius: 999px;
}
.ft2-task .ev {
  position: relative;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateX(-10px);
  animation: ft2-tl-in 500ms var(--ease-out) forwards;
}
.ft2-task .ev::before {
  content: ""; position: absolute;
  left: -23px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--moss-500);
}
.ft2-task .ev.done::after {
  content: ""; position: absolute;
  left: -19px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss-500);
}
.ft2-task .ev.now::before {
  background: var(--moss-500);
  border-color: var(--moss-500);
  box-shadow: 0 0 0 4px rgba(79,110,75,0.18);
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}
.ft2-task .ev.next::before {
  border-color: var(--bone-400);
}
.ft2-task .ev.e1 { animation-delay: 100ms; }
.ft2-task .ev.e2 { animation-delay: 350ms; }
.ft2-task .ev.e3 { animation-delay: 600ms; }
.ft2-task .ev.e4 { animation-delay: 850ms; }
.ft2-task .ev.e5 { animation-delay: 1100ms; }
@keyframes ft2-tl-in {
  to { opacity: 1; transform: translateX(0); }
}
.ft2-task .ev .ts {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3);
}
.ft2-task .ev.now .ts { color: var(--moss-700); font-weight: 500; }
.ft2-task .ev .what {
  font-size: 12px; color: var(--fg-1);
}
.ft2-task .ev .what strong {
  font-weight: 500; color: var(--ink-900);
}
.ft2-task .ev .what .src {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--moss-700);
  background: var(--moss-50);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}
.ft2-task .ev.next .what { color: var(--fg-3); }

@media (max-width: 900px) {
  .ft2-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .ft2-row.reverse .ft2-stage { order: 0; }
  .ft2-row.reverse .ft2-copy { order: 0; }
  .ft2-anchor-cap { left: 14px; bottom: 14px; max-width: 240px; padding: 10px 12px; }
  .ft2-proj { grid-template-columns: 1fr; }
}

/* ===========================================================
   WHY IT MATTERS — visual switcher
   =========================================================== */

.wim {
  margin-top: 56px;
  background: var(--paper);
  border: 1px solid var(--bone-300);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wim-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bone-100);
  border-bottom: 1px solid var(--bone-300);
}
.wim-tab {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 22px 24px;
  cursor: pointer;
  position: relative;
  border-right: 1px solid var(--bone-300);
  transition: background 220ms var(--ease-out);
  font-family: var(--font-ui);
}
.wim-tab:last-of-type { border-right: 0; }
.wim-tab:hover { background: color-mix(in srgb, var(--moss-500) 4%, var(--bone-100)); }
.wim-tab .tnum {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.wim-tab .tnum::after {
  content: ""; flex: 1; height: 1px;
  background: var(--bone-300);
}
.wim-tab .ttxt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}
.wim-tab.active {
  background: var(--paper);
}
.wim-tab.active .tnum { color: var(--moss-700); }
.wim-tab.active .tnum::after {
  background: var(--moss-500);
}
.wim-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--moss-500);
}

.wim-stage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 460px;
}
.wim-visual {
  background: var(--bone-100);
  border-right: 1px solid var(--bone-300);
  position: relative;
  overflow: hidden;
}
.wim-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 30% 20%, rgba(79,110,75,0.10), transparent 70%),
    radial-gradient(40% 40% at 80% 80%, rgba(205,190,160,0.40), transparent 70%);
  pointer-events: none;
}
.wim-copy {
  padding: 48px 44px;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
}
.wim-copy .pin {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.wim-copy .pin::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--moss-500);
}
.wim-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.wim-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0 0 28px;
  max-width: 42ch;
}
.wim-copy .src {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--bone-200);
  font-size: 11.5px;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 10px;
}
.wim-copy .src strong {
  color: var(--moss-700); font-weight: 600;
}
.wim-copy .src .arrow {
  width: 16px; height: 1px; background: var(--bone-300);
}

.wim-panel {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
  pointer-events: none;
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.wim-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wim-copy .wim-panel-text {
  position: absolute;
  inset: 48px 44px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  pointer-events: none;
  display: flex; flex-direction: column; justify-content: center;
}
.wim-copy .wim-panel-text.active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}

/* --- WIM Panel 1: memory recall --- */
.wim-recall {
  display: flex; flex-direction: column;
  gap: 12px;
}
.wim-recall .query {
  background: var(--ink-900); color: var(--bone-50);
  border-radius: 12px; padding: 12px 16px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  max-width: 80%;
  box-shadow: var(--shadow-md);
}
.wim-recall .query .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--moss-500);
  display: grid; place-items: center; font-size: 12px; flex: 0 0 auto;
}
.wim-recall .pulling {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--moss-700);
  display: flex; align-items: center; gap: 8px;
  padding-left: 8px;
}
.wim-recall .pulling .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--moss-500);
  animation: livepulse 1.6s var(--ease-in-out) infinite;
}
.wim-recall .mem-stack {
  position: relative;
  padding-left: 22px;
}
.wim-recall .mem-stack::before {
  content: ""; position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--moss-300);
  background-image: linear-gradient(to bottom, var(--moss-300) 50%, transparent 50%);
  background-size: 1px 6px;
}
.wim-recall .mitem {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-left: 3px solid var(--moss-500);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  animation: ft2-flow-in 500ms var(--ease-out) forwards;
}
.wim-recall .mitem::before {
  content: ""; position: absolute;
  left: -19px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss-500);
}
.wim-recall .mitem.m1 { animation-delay: 200ms; }
.wim-recall .mitem.m2 { animation-delay: 450ms; }
.wim-recall .mitem.m3 { animation-delay: 700ms; }
.wim-recall .mitem .lbl {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-2); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 2px;
}
.wim-recall .mitem .t {
  font-size: 12px; color: var(--ink-900); font-weight: 500;
}
.wim-recall .mitem .src {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-3); margin-top: 2px;
}
.wim-recall .applied {
  align-self: flex-end;
  background: color-mix(in srgb, var(--moss-500) 8%, var(--paper));
  border: 1px solid var(--moss-300);
  border-radius: 12px; padding: 10px 14px;
  font-size: 12px; color: var(--moss-800);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-xs);
  max-width: 90%;
  opacity: 0;
  animation: ft2-mem-in 500ms var(--ease-out) 1000ms forwards;
}
.wim-recall .applied .ic {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--moss-500); color: #fff;
  display: grid; place-items: center;
  flex: 0 0 auto;
}

/* --- WIM Panel 2: agent reading from memory --- */
.wim-knows {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  height: 100%;
}
.wim-knows .agent-bar {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xs);
}
.wim-knows .agent-bar .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--moss-500);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px;
}
.wim-knows .agent-bar .nm {
  font-size: 12.5px; color: var(--ink-900); font-weight: 500;
}
.wim-knows .agent-bar .role {
  font-size: 10.5px; color: var(--fg-2);
}
.wim-knows .agent-bar .live {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--moss-700);
  background: var(--moss-50);
  padding: 3px 8px; border-radius: 999px;
}
.wim-knows .agent-bar .live::before {
  content: "●"; color: var(--moss-500); margin-right: 5px;
  animation: ft2-blink 1s steps(2) infinite;
}
.wim-knows .applied-banner {
  background: var(--ink-900); color: var(--bone-50);
  border-radius: 12px; padding: 14px 18px;
  font-size: 13px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow-md);
  align-self: flex-start;
  max-width: 90%;
}
.wim-knows .applied-banner .ic {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--moss-500);
  display: grid; place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}
.wim-knows .applied-banner strong {
  font-weight: 500;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.wim-knows .applied-banner .meta {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--moss-300);
  letter-spacing: 0.04em;
}
.wim-knows .knows-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wim-knows .knows-list .kchip {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 999px;
  padding: 6px 10px 6px 28px;
  font-size: 11.5px; color: var(--ink-900);
  position: relative;
  box-shadow: var(--shadow-xs);
  opacity: 0;
  animation: ft2-mem-in 400ms var(--ease-out) forwards;
}
.wim-knows .knows-list .kchip::before {
  content: "✓";
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--moss-500);
  color: #fff;
  font-family: var(--font-ui); font-size: 9px; font-weight: 700;
  display: grid; place-items: center;
}
.wim-knows .knows-list .kchip:nth-child(1) { animation-delay: 200ms; }
.wim-knows .knows-list .kchip:nth-child(2) { animation-delay: 350ms; }
.wim-knows .knows-list .kchip:nth-child(3) { animation-delay: 500ms; }
.wim-knows .knows-list .kchip:nth-child(4) { animation-delay: 650ms; }
.wim-knows .knows-list .kchip:nth-child(5) { animation-delay: 800ms; }
.wim-knows .knows-list .kchip:nth-child(6) { animation-delay: 950ms; }
.wim-knows .knows-list .kchip small {
  display: block; font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-2); margin-top: 1px;
}

/* --- WIM Panel 3: workflow self-running --- */
.wim-auto {
  display: flex; flex-direction: column; gap: 10px;
}
.wim-auto .schedule {
  background: var(--ink-900); color: var(--bone-50);
  border-radius: 12px; padding: 12px 16px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  box-shadow: var(--shadow-md);
}
.wim-auto .schedule .clock {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--moss-500);
  display: grid; place-items: center; flex: 0 0 auto;
}
.wim-auto .schedule strong {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--moss-300);
  display: block;
  letter-spacing: 0.06em;
}
.wim-auto .progress-rail {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
}
.wim-auto .progress-rail .lbl {
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-2); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.wim-auto .progress-rail .stp {
  display: grid; grid-template-columns: 22px 1fr auto;
  gap: 10px; align-items: center;
  padding: 5px 0;
  font-size: 11.5px;
}
.wim-auto .progress-rail .stp + .stp {
  border-top: 1px dashed var(--bone-200);
  padding-top: 8px; margin-top: 3px;
}
.wim-auto .progress-rail .stp .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bone-100); color: var(--fg-2);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
  border: 1px solid var(--bone-300);
}
.wim-auto .progress-rail .stp.done .num {
  background: var(--moss-500); color: #fff; border-color: var(--moss-500);
}
.wim-auto .progress-rail .stp.done .num::before {
  content: "✓"; font-family: var(--font-ui); font-weight: 700; font-size: 10px;
}
.wim-auto .progress-rail .stp.done .num span { display: none; }
.wim-auto .progress-rail .stp.run .num {
  background: var(--moss-50); color: var(--moss-700); border-color: var(--moss-400);
  animation: livepulse 1.8s var(--ease-in-out) infinite;
}
.wim-auto .progress-rail .stp .t { color: var(--fg-1); }
.wim-auto .progress-rail .stp.done .t { color: var(--ink-900); font-weight: 500; }
.wim-auto .progress-rail .stp.run .t { color: var(--ink-900); font-weight: 500; }
.wim-auto .progress-rail .stp .ts {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3);
}
.wim-auto .delivered {
  align-self: flex-end;
  background: color-mix(in srgb, var(--moss-500) 8%, var(--paper));
  border: 1px solid var(--moss-300);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--moss-800);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xs);
  max-width: 90%;
}
.wim-auto .delivered .ic {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--moss-500); color: #fff;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.wim-auto .delivered strong { font-weight: 600; color: var(--moss-800); }
.wim-auto .humanless {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center;
  padding-top: 4px;
}

/* --- WIM Panel 4: audit log --- */
.wim-audit {
  display: flex; flex-direction: column;
  gap: 8px;
  height: 100%;
}
.wim-audit .top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.wim-audit .top .ttl {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-2); letter-spacing: 0.1em; text-transform: uppercase;
}
.wim-audit .top .cnt {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--moss-700);
  background: var(--moss-50);
  padding: 3px 8px; border-radius: 999px;
}
.wim-audit .log {
  background: var(--paper); border: 1px solid var(--bone-300);
  border-radius: 12px;
  padding: 4px 0;
  box-shadow: var(--shadow-xs);
  font-family: var(--font-mono);
  flex: 1;
}
.wim-audit .lrow {
  display: grid;
  grid-template-columns: 60px auto 1fr auto;
  gap: 12px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--fg-1);
  align-items: center;
  border-top: 1px solid var(--bone-200);
}
.wim-audit .lrow:first-child { border-top: 0; }
.wim-audit .lrow .ts { color: var(--fg-3); font-size: 10px; }
.wim-audit .lrow .who {
  font-family: var(--font-ui); font-size: 11px;
  color: var(--moss-700); font-weight: 500;
}
.wim-audit .lrow .who.user { color: var(--ink-900); }
.wim-audit .lrow .what { font-family: var(--font-ui); font-size: 11.5px; color: var(--ink-900); }
.wim-audit .lrow .what em { font-style: normal; color: var(--moss-700); }
.wim-audit .lrow .actions {
  display: flex; gap: 4px;
}
.wim-audit .lrow .actions .b {
  font-family: var(--font-ui); font-size: 9.5px;
  color: var(--fg-2);
  background: var(--bone-100); border: 1px solid var(--bone-300);
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.04em;
  cursor: default;
}
.wim-audit .lrow.flag {
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 8%, var(--paper)), var(--paper));
}
.wim-audit .lrow.flag .who { color: #8B6A1A; }
.wim-audit .lrow.flag .actions .b.review {
  background: var(--gold); color: #2A2110; border-color: var(--gold); font-weight: 600;
}
.wim-audit .footer-hint {
  font-size: 11px; color: var(--fg-2);
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px;
}
.wim-audit .footer-hint .key {
  font-family: var(--font-mono); font-size: 9.5px;
  background: var(--bone-100); border: 1px solid var(--bone-300);
  padding: 2px 6px; border-radius: 4px;
  color: var(--fg-2);
}

/* WIM responsive */
@media (max-width: 900px) {
  .wim-tabs { grid-template-columns: 1fr 1fr; }
  .wim-tab { border-bottom: 1px solid var(--bone-300); }
  .wim-tab:nth-child(2) { border-right: 0; }
  .wim-stage { grid-template-columns: 1fr; min-height: auto; }
  .wim-visual { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--bone-300); }
  .wim-copy { padding: 32px 28px; min-height: 240px; }
  .wim-copy .wim-panel-text { inset: 32px 28px; position: relative; }
  .wim-copy .wim-panel-text:not(.active) { display: none; }
}
