/* Home */
.hero { display: grid; grid-template-columns: minmax(300px, 5fr) 8fr; grid-template-areas: "text stage" "doors doors" "env env";
  column-gap: 40px; row-gap: 14px; align-items: stretch; padding: 0 0 8px; }
.hero .env-slot { grid-area: env; }
.hero-text { grid-area: text; }
.showcase-slot { grid-area: stage; }
.hero .doors { grid-area: doors; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 8px 8px 8px 0; }
.hero h1 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; hyphens: manual; }
.hero .lede { margin-top: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.hero .lede strong { color: var(--royal); font-weight: inherit; }
/* live replay: net + Gantt on the left, decision / policy / confidence / log on the right */
.showcase-slot { min-height: 450px; }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) 280px; background: var(--sim-bg);
  color: var(--sim-text); border: 1px solid var(--sim-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px var(--sim-shadow); transition: background .3s, color .3s; }
.hero-stage { position: relative; padding: 14px; min-width: 0; }
.hero-stage .stage-net { height: 290px; overflow: hidden; }
.stage-net svg { width: 100%; height: 100%; display: block; }
.hero-stage .stage-gantt { background: var(--sim-bg-2); border-radius: 10px; margin-top: 8px; padding: 4px 6px; }
.hero-caption { position: absolute; top: 16px; left: 20px; color: var(--sim-muted); font-size: 12.5px; display: flex; gap: 14px; align-items: center; z-index: 1; }
.hero-caption .clock { color: var(--sim-accent); font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.showcase .inspector { max-height: none; height: 0; min-height: 100%; }   /* follow the stage height, scroll the log */
.showcase .decision { min-height: 200px; }
.showcase .decision .muted { color: var(--sim-muted); font-size: 13px; }
.showcase .chosen-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.show-strip { padding: 8px 18px 10px; border-bottom: 1px solid var(--sim-line); }
.show-strip h3 { font-size: 13px; color: var(--sim-muted); font-weight: 500; margin-bottom: 4px; }
.showcase .dlog button { pointer-events: none; }
@media (max-width: 1180px) {
  .showcase { grid-template-columns: 1fr; }
  .hero-stage .stage-net { height: 330px; }
  .showcase .inspector { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto 1fr;
    border-left: 0; border-top: 1px solid var(--sim-line); height: 300px; min-height: 0; }
  .showcase .decision { grid-row: 1 / 3; min-height: 0; border-bottom: 0; border-right: 1px solid var(--sim-line); }
}
@media (max-width: 640px) {
  .showcase .inspector { display: none; }
}

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 8px 20px; align-items: start;
  padding: 16px 22px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.door:hover { border-color: var(--ink); transform: translateY(-2px); }
.door h2 { font-size: 20px; }
.door p { color: var(--ink-2); max-width: 44ch; grid-column: 1; }
.door .door-icon { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; align-self: center; }
.home-foot { display: flex; gap: 28px; margin-top: 22px; color: var(--ink-3); font-size: 14px; flex-wrap: wrap; }
.home-foot b { color: var(--ink); font-weight: 600; }
.env-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.env-head h2 { font-size: 20px; }
.env-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.env-body { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.env-body p { color: var(--ink-2); font-size: 14px; }
.env-card {
  padding: 16px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.flow small { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.flow-tok { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); }
.flow-tok.agent { background: var(--ink); color: var(--on-ink); }
.flow-tok.rule { background: var(--amber-soft); color: var(--amber-ink); font-weight: 600; }
.flow-tok.job { background: var(--blue-soft); color: var(--blue-ink); }
.flow-arrow { width: 16px; height: 2px; background: var(--ink-3); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 5px solid var(--ink-3); border-right: 0; }
.flow-group { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px dashed var(--ink-3); border-radius: 8px; }
.env-card .flow-tok.agent { animation: agentpulse 1.6s ease-in-out infinite; }
@keyframes agentpulse { 50% { box-shadow: 0 0 0 4px rgba(47, 91, 234, .25); } }
.env-select { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 36px 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-ctl);
  background: var(--surface); color: var(--ink); min-width: 240px; }
.hero-fit { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
