.cost-stage-label {
  transition: opacity 220ms ease, transform 220ms ease;
}
.cost-stage-label.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}
/* The repeated tagline label was deleted from every demo, so most panels
   now have only the demo-specific paragraph. Span any pane-label across
   both grid columns so it sits full-width ABOVE the terminal/board row
   instead of stranding next to a tall terminal with empty white space. */
.cd-panes > .cd-pane-label { grid-column: 1 / -1; }

/* Terminal pane */
.cd-terminal {
  background: #1a1a2e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.cd-term-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #12122a;
}

.cd-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cd-term-dot:nth-child(1) { background: #ff5f57; }
.cd-term-dot:nth-child(2) { background: #febc2e; }
.cd-term-dot:nth-child(3) { background: #28c840; }

.cd-term-title {
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.cd-term-body {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.cd-term-body::-webkit-scrollbar { width: 5px; }
.cd-term-body::-webkit-scrollbar-track { background: transparent; }
.cd-term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Terminal line styles */
.cd-term-line {
  margin-bottom: 2px;
  word-wrap: break-word;
}

.cd-term-cmd {
  color: #7aa2f7;
  font-weight: 700;
  font-size: 13px;
}

.cd-term-prompt .cd-term-prompt-marker {
  color: #9ece6a;
  font-weight: 700;
}

.cd-term-prompt .cd-term-prompt-text {
  color: #fff;
}

.cd-term-thinking {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.cd-term-dim {
  color: rgba(255, 255, 255, 0.35);
}

.cd-term-response {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
}

.cd-term-success .cd-term-check {
  color: #9ece6a;
  font-weight: 700;
}

.cd-term-success {
  color: rgba(255, 255, 255, 0.85);
}

.cd-term-final {
  font-size: 13px;
}

/* ── Cost-Routing demo ────────────────────────────────────────── */
#cost-demo-board { position: relative; }
#cost-board-mount {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  position: relative;
}

.cd-term-routing {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cost-route-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}
.cost-route-model {
  font-weight: 600;
  letter-spacing: 0.2px;
}
.cost-route-why {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 11.5px;
}

/* Cost comparison panel — sits ABOVE the routed list, before/after framing */
.cost-meter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 20px 14px;
  margin: 4px 4px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.cost-meter-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.cost-meter-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.cost-meter-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.cost-meter-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1.1;
  transition: color 200ms ease;
}
.cost-meter-sub {
  font-size: 11px;
  color: var(--ink-tertiary, var(--ink-muted));
  margin-top: 3px;
  letter-spacing: 0.2px;
}
.cost-meter-before .cost-meter-value {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(217, 74, 74, 0.55);
  text-decoration-thickness: 2px;
}
.cost-meter-after .cost-meter-value {
  color: #2f9e7e;
}
.cost-meter-arrow {
  color: var(--ink-tertiary, var(--ink-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
.cost-meter-arrow svg { width: 22px; height: 22px; }
.cost-meter-savings {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 0.2px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cost-meter-savings strong {
  color: #2f9e7e;
  font-weight: 800;
}
.cost-meter-savings.cost-meter-savings-reveal {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 640px) {
  .cost-meter-compare { gap: 8px; }
  .cost-meter-value { font-size: 22px; }
  .cost-meter-arrow svg { width: 16px; height: 16px; }
}

.cost-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.cost-controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Segmented [Pause | FF | Replay] pill — playback transport */
.cost-pr-segmented {
  display: inline-flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  overflow: hidden;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cost-pr-btn {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cost-pr-btn:hover { background: rgba(0, 0, 0, 0.05); }
.cost-pr-btn:active { background: rgba(0, 0, 0, 0.09); }
.cost-pr-btn svg { width: 14px; height: 14px; display: block; }
.cost-pr-btn[aria-pressed="true"] { background: rgba(124, 92, 255, 0.12); color: #7C5CFF; }
.cost-pr-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* All Act-progression pills share a single rounded base. Color/style is
   added by per-act selectors below. */
.cost-next-btn,
.cost-act4-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  color: #fff;
}
.cost-next-btn {
  background: linear-gradient(135deg, #7C5CFF, #5b8cff);
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3);
}
.cost-next-btn:hover { transform: translateY(-1px); opacity: 0.95; }
.cost-next-btn-pulse { animation: cost-next-pulse 1.6s ease-in-out infinite; }
@keyframes cost-next-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3); }
  50%      { box-shadow: 0 2px 14px rgba(124, 92, 255, 0.55); }
}

/* ── Act 1: per-task routing detail (inside expanded card) ──── */
.cost-task-routing {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cost-task-routing-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
}
.cost-task-routing-key {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
}
.cost-task-routing-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cost-task-need {
  display: inline-block;
  background: rgba(124, 92, 255, 0.1);
  color: #5b8cff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.2px;
}
.cost-task-routing-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}
.cost-task-routing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cost-task-routing-why {
  color: var(--ink);
  opacity: 0.78;
  line-height: 1.45;
  font-style: italic;
}

/* ── Act 2: Planner stage ─────────────────────────────────────── */
/* When Act 2 is live, the planner takes over the full panel width —
   terminal + pane labels collapse out so the visualization breathes.
   Height becomes auto so all lanes fit without clipping. */
#demos-view-route.cost-act2-mode .cd-panes {
  grid-template-columns: 1fr;
  height: auto;
  min-height: 640px;
}
#demos-view-route.cost-act2-mode .cd-pane-label,
#demos-view-route.cost-act2-mode .cd-terminal {
  display: none;
}
#demos-view-route.cost-act2-mode .cd-board {
  grid-column: 1 / -1;
  overflow: visible;
}

.cost-plan-stage {
  position: relative;
  display: grid;
  /* Balanced left/right with a roomier middle for the router. The 1fr
     columns mirror each other; min-content on the router keeps the
     center node a single beat narrower than the lists either side. */
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  gap: 56px;
  padding: 28px 32px 36px;
  min-height: 640px;
  align-items: start;
}
.cost-plan-col {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.cost-plan-col-router { align-items: center; justify-content: center; min-height: 100%; }
.cost-plan-col-label {
  font-family: 'Space Grotesk', var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  text-align: center;
  opacity: 0.7;
}
.cost-plan-col-tasks .cost-plan-col-label { text-align: left; padding-left: 4px; }
.cost-plan-col-lanes .cost-plan-col-label { text-align: left; padding-left: 4px; }

/* Section 1: source task cards (compact, distinct) */
/* Source-tasks list-card — wraps the 7 Toto tasks so the left column
   reads as a real Toto list, mirroring Act 1's "Launch Plan — Routed".
   Inherits the .list-card chrome (header, body, accent, shadow). */
.cost-plan-source-card {
  margin: 0;
  position: relative;
  z-index: 2;
}
.cost-plan-source-card .list-header {
  cursor: default;
}
.cost-plan-source-card .list-item-count {
  font-family: 'Space Grotesk', var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--ink-muted);
}
.cost-plan-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cost-plan-source-task {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--task-accent, var(--border));
  border-radius: 8px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(-160px) scale(1.04);
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
  will-change: transform, opacity;
}
.cost-plan-source-task-thud {
  animation: cost-task-thud 460ms cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}
.cost-plan-source-task-settled {
  opacity: 1;
  transform: none;
}
@keyframes cost-task-thud {
  0%   { opacity: 0;    transform: translateY(-160px) scale(1.04) rotate(-1deg); }
  55%  { opacity: 1;    transform: translateY(8px)    scale(1.015) rotate(0.4deg); }
  74%  { transform: translateY(-3px) scale(1)        rotate(-0.15deg); }
  90%  { transform: translateY(1px)  scale(1)        rotate(0.05deg); }
  100% { opacity: 1;    transform: translateY(0)     scale(1) rotate(0); }
}
.cost-plan-source-task-active {
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.18);
  transform: translateY(-1px);
  border-left-width: 4px;
}
.cost-plan-source-task-title {
  /* Left pane is Toto's voice — Bricolage Grotesque is the house display
     face, used everywhere else in Toto (list titles, headlines). The
     right pane (lanes) borrows the Anthropic register; the left stays
     home so the pipeline reads as Toto → Anthropic. */
  font-family: 'Bricolage Grotesque', var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.15px;
}
/* Match the wrapping list-card title to Toto's native register too. */
.cost-plan-source-card .list-title {
  font-family: 'Bricolage Grotesque', var(--font-body);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.cost-plan-source-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cost-plan-pill {
  display: inline-block;
  font-family: 'Karla', var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  text-transform: lowercase;
}
.cost-plan-pill-scope {
  background: rgba(124, 92, 255, 0.08);
  color: #5b8cff;
}
.cost-plan-pill-need {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink-muted);
}
.cost-plan-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.cost-plan-router {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 26px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(204, 120, 92, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #fffaf3 0%, var(--surface) 100%);
  border: 1px solid rgba(204, 120, 92, 0.18);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 0 0 1px rgba(124, 92, 255, 0.04),
    0 12px 36px -12px rgba(124, 92, 255, 0.28),
    0 4px 18px -8px rgba(204, 120, 92, 0.18);
  width: 100%;
  min-width: 280px;
  max-width: 340px;
  z-index: 2;
  isolation: isolate;
}
/* Aurora — a soft halo behind the router that pulses with the dotgrid. */
.cost-plan-router::before {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 30% 30%, rgba(204, 120, 92, 0.08) 0%, transparent 50%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
  animation: cost-router-aurora 6s ease-in-out infinite;
}
@keyframes cost-router-aurora {
  0%, 100% { transform: scale(1) rotate(0deg);   opacity: 0.85; }
  50%      { transform: scale(1.04) rotate(2deg); opacity: 1;    }
}
.cost-plan-router-ring {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  animation: cost-router-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cost-router-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.025); opacity: 0.15; }
}
.cost-plan-router-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C5CFF;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.9), rgba(124, 92, 255, 0.06) 70%),
    rgba(124, 92, 255, 0.10);
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.18),
    0 6px 14px -6px rgba(124, 92, 255, 0.45);
  animation: cost-router-icon-spin 24s linear infinite;
}
.cost-plan-router-icon svg { width: 32px; height: 32px; }
@keyframes cost-router-icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cost-plan-router-label {
  font-family: 'Space Grotesk', var(--font-body);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  color: #7C5CFF;
  margin-bottom: 14px;
  position: relative;
}
.cost-plan-router-label::after {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.5), transparent);
  margin: 6px auto 0;
}
.cost-plan-router-eval {
  font-family: 'DM Sans', var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
  min-height: 90px;
  line-height: 1.6;
  width: 100%;
  transition: opacity 240ms ease;
}
.cost-plan-eval-flash { animation: cost-eval-flash 360ms ease; }
@keyframes cost-eval-flash {
  0%   { opacity: 0; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cost-plan-eval-task {
  /* Router headline moment — same serif register as the lane names so
     when the router announces "Plan complete" or names the active task,
     it reads as the same editorial voice. */
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.cost-plan-eval-needs {
  font-size: 13px;
  color: var(--ink-tertiary, var(--ink-muted));
  margin-bottom: 10px;
  line-height: 1.6;
}
.cost-plan-eval-tag {
  display: inline-block;
  background: rgba(124, 92, 255, 0.1);
  color: #5b8cff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  margin-right: 5px;
  margin-top: 3px;
  letter-spacing: 0.2px;
}
.cost-plan-eval-pick {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.4;
}

/* Lane stack — one per model */
.cost-plan-lanes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.cost-plan-lane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lane-color, var(--border));
  border-radius: 8px;
  padding: 10px 14px;
}
.cost-plan-lane-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cost-plan-lane-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cost-plan-lane-name {
  /* Editorial display register — Playfair Display Regular at headline
     size is the closest free analog to Anthropic's Galaxie Copernicus
     Book. Weight restraint is the signal: large serif at 400-500 reads
     as literary, considered, calm. */
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.cost-plan-lane-cost {
  margin-left: auto;
  font-family: 'Space Grotesk', var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.4px;
  opacity: 0.75;
}
.cost-plan-lane-strength {
  font-family: 'DM Sans', var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  font-style: normal;
  color: var(--ink-tertiary, var(--ink-muted));
  margin-top: 3px;
  margin-bottom: 8px;
  line-height: 1.5;
  letter-spacing: 0.05px;
  opacity: 0.8;
}
.cost-plan-lane-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 4px;
}
.cost-plan-task {
  background: var(--surface-subtle, rgba(0,0,0,0.025));
  border-left: 3px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
}
.cost-plan-task-name {
  font-family: 'DM Sans', var(--font-body);
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.1px;
}
.cost-plan-task-why {
  font-family: 'DM Sans', var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  font-style: normal;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.5;
  letter-spacing: 0.05px;
  opacity: 0.8;
}

/* ── Per-provider typography on the right pane ────────────────
   Each lane (and the task cards stacked inside it) borrows the
   typeface family of its provider company so the demo reads as
   a multi-vendor dispatch. Free Google Fonts analogs:
     Anthropic   →  Playfair Display + DM Sans (already in place)
     OpenAI      →  Inter             (Söhne analog)
     Google      →  Plus Jakarta Sans (Google-Sans analog)
     DeepSeek    →  Manrope           (distinctive geometric)
   Each rule covers lane name, strength, and the task cards inside.
   The price ($/task) stays Space Grotesk for cross-vendor consistency
   as the deliberate "data" register. */
[data-model^="claude-"] .cost-plan-lane-strength,
[data-model^="claude-"] .cost-plan-task-name,
[data-model^="claude-"] .cost-plan-task-why { font-family: 'DM Sans', var(--font-body); }

[data-model^="gpt-"] .cost-plan-lane-name {
  font-family: 'Inter', var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.3px;
}
[data-model^="gpt-"] .cost-plan-lane-strength,
[data-model^="gpt-"] .cost-plan-task-name,
[data-model^="gpt-"] .cost-plan-task-why { font-family: 'Inter', var(--font-body); }
[data-model^="gpt-"] .cost-plan-task-name { font-weight: 500; }

[data-model^="gemini-"] .cost-plan-lane-name {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.4px;
}
[data-model^="gemini-"] .cost-plan-lane-strength,
[data-model^="gemini-"] .cost-plan-task-name,
[data-model^="gemini-"] .cost-plan-task-why { font-family: 'Plus Jakarta Sans', var(--font-body); }
[data-model^="gemini-"] .cost-plan-task-name { font-weight: 600; }

[data-model^="deepseek-"] .cost-plan-lane-name {
  font-family: 'Manrope', var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.4px;
}
[data-model^="deepseek-"] .cost-plan-lane-strength,
[data-model^="deepseek-"] .cost-plan-task-name,
[data-model^="deepseek-"] .cost-plan-task-why { font-family: 'Manrope', var(--font-body); }
[data-model^="deepseek-"] .cost-plan-task-name { font-weight: 600; }
@media (max-width: 760px) {
  .cost-plan-stage { grid-template-columns: 1fr; gap: 12px; }
  .cost-plan-router { max-width: none; }
}

/* ── Act 3: metadata-driven routing ─────────────────────────── */
.cost-meta-stage {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 600px;
}
.cost-meta-header { text-align: center; }
.cost-meta-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.cost-meta-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.cost-meta-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.cost-meta-col-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.cost-meta-task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #7C5CFF;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.cost-meta-task-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.cost-meta-task-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.cost-meta-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cost-meta-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 240ms ease, color 240ms ease;
}
.cost-meta-field-key {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-tertiary, var(--ink-muted));
  text-transform: lowercase;
  letter-spacing: 0.2px;
}
.cost-meta-field-val {
  color: var(--ink);
  line-height: 1.4;
}
.cost-meta-field-active {
  background: rgba(124, 92, 255, 0.12);
  outline: 1px solid rgba(124, 92, 255, 0.3);
}
.cost-meta-field-matched {
  background: rgba(47, 158, 126, 0.08);
}
.cost-meta-field-matched .cost-meta-field-key { color: #2f9e7e; }

.cost-meta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-tertiary, var(--ink-muted));
  opacity: 0.6;
}
.cost-meta-arrow svg { width: 60px; height: 18px; }

.cost-meta-router-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cost-meta-router-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C5CFF;
  background: rgba(124, 92, 255, 0.08);
  border-radius: 50%;
}
.cost-meta-router-icon svg { width: 24px; height: 24px; }
.cost-meta-router-readout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  min-height: 100px;
}
.cost-meta-readout-status {
  color: var(--ink-muted);
  font-size: 12.5px;
  font-style: italic;
}
.cost-meta-readout-line {
  display: grid;
  grid-template-columns: 16px 96px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  animation: cost-meta-line-in 240ms ease;
}
@keyframes cost-meta-line-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.cost-meta-readout-mark {
  font-weight: 700;
  text-align: center;
  color: var(--ink-tertiary, var(--ink-muted));
}
.cost-meta-readout-decisive .cost-meta-readout-mark { color: #2f9e7e; }
.cost-meta-readout-key {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  color: var(--ink-tertiary, var(--ink-muted));
}
.cost-meta-readout-decisive .cost-meta-readout-key { color: #2f9e7e; }
.cost-meta-readout-val {
  color: var(--ink);
  line-height: 1.4;
}

.cost-meta-pick-arrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 6px;
  opacity: 0;
  animation: cost-meta-fade-in 360ms ease forwards;
}
.cost-meta-pick-card {
  border: 2px solid;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  opacity: 0;
  animation: cost-meta-fade-in 420ms 120ms ease forwards;
}
@keyframes cost-meta-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.cost-meta-pick-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cost-meta-pick-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cost-meta-pick-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.cost-meta-pick-cost {
  margin-left: auto;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: var(--ink-muted);
}
.cost-meta-pick-strength {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
  font-style: italic;
  line-height: 1.4;
}
.cost-meta-pick-reason {
  font-size: 12.5px;
  color: var(--ink);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  line-height: 1.45;
}

.cost-meta-cycle {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cost-meta-cycle-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.cost-meta-cycle-tab:hover { color: var(--ink); }
.cost-meta-cycle-active {
  background: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.3);
  color: var(--ink);
}
.cost-meta-cycle-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .cost-meta-flow { grid-template-columns: 1fr; }
  .cost-meta-arrow { transform: rotate(90deg); }
}

.cost-act4-btn {
  background: linear-gradient(135deg, #d97706, #cc785c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.cost-act4-btn:hover { transform: translateY(-1px); opacity: 0.95; }

/* ── Act 4: the problem in the wild ──────────────────────────── */
.cost-news-stage {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 600px;
}
.cost-news-header { text-align: center; max-width: 820px; margin: 0 auto; }
.cost-news-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #d97706;
  margin-bottom: 12px;
}
.cost-news-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.18;
  margin-bottom: 14px;
}
.cost-news-subtitle {
  font-size: 16px;
  color: var(--ink);
  opacity: 0.78;
  line-height: 1.55;
  font-weight: 450;
  max-width: 720px;
  margin: 0 auto;
}
.cost-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.cost-news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.cost-news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ink-muted);
}
.cost-news-card-real::before { background: linear-gradient(90deg, #d97706, #cc785c); }
.cost-news-card-pattern::before { background: linear-gradient(90deg, #5b8cff, #7C5CFF); }
.cost-news-card-trend::before { background: linear-gradient(90deg, #2f9e7e, #4d6bfe); }

.cost-news-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin-bottom: 16px;
}
.cost-news-source { color: var(--ink); }
.cost-news-date { color: var(--ink); opacity: 0.5; font-weight: 600; }
.cost-news-pull {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.cost-news-pull-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1;
}
.cost-news-card-real .cost-news-pull-num { color: #d97706; }
.cost-news-card-pattern .cost-news-pull-num { color: #5b8cff; }
.cost-news-card-trend .cost-news-pull-num { color: #2f9e7e; }
.cost-news-pull-label {
  font-size: 12px;
  color: var(--ink);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.cost-news-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -0.1px;
}
.cost-news-blurb {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.78;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  font-weight: 450;
}

.cost-news-footer {
  text-align: center;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cost-news-footer-reveal { opacity: 1; transform: translateY(0); }
.cost-news-footer-line {
  font-size: 16px;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.cost-news-footer-cta {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, #7C5CFF, #5b8cff);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.3);
}

/* ICP block under the news cards */
.cost-icp-section {
  margin: 16px auto 18px;
  max-width: 1080px;
  text-align: left;
}
.cost-icp-eyebrow {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 16px;
}
.cost-icp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cost-icp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.cost-icp-role {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #7C5CFF;
  margin-bottom: 8px;
}
.cost-icp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.cost-icp-body {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.82;
  line-height: 1.55;
  font-weight: 450;
}
.cost-icp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cost-icp-list li {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.82;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
  font-weight: 450;
}
.cost-icp-list li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: #7C5CFF;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.cost-icp-list strong { color: var(--ink); opacity: 1; font-weight: 700; }
@media (max-width: 900px) {
  .cost-icp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cost-news-grid { grid-template-columns: 1fr; }
  .cost-news-title { font-size: 22px; }
}

/* ──────────────────────────────────────────────────────────────────── */
/* Pitch-tokens bridge + landing-specific overrides                     */
/* ──────────────────────────────────────────────────────────────────── */
/*
 * The cost-* CSS above was authored for the main app (app.css) and uses
 * tokens like --surface, --border, --ink-muted, --font-body etc.
 * Pitch-tokens.css uses --cream, --line, --ink-soft, --body, --mono.
 * Bridge them so the demo renders pitch-faithful inside the landing.
 */
.router-demo-slide {
  --surface: var(--cream);
  --surface-elevated: var(--cream-deeper);
  --border: var(--line);
  --ink-muted: var(--ink-soft);
  --ink-tertiary: var(--muted);
  --font-body: var(--body);
  --font-mono: var(--mono);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 4px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 6px 18px rgba(26, 26, 26, 0.08);
}

/* Stage container — sits inside slide-4 grid; let it breathe */
.router-demo-slide .cost-meta-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 1.6vh;
  padding: 24px 28px 28px;
  min-height: 0;
  background: rgba(245, 240, 232, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(2px);
}

.router-demo-slide .cost-meta-header { text-align: left; }
.router-demo-slide .cost-meta-title {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
}
.router-demo-slide .cost-meta-subtitle {
  font-family: var(--body);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 4px 0 0;
}

.router-demo-slide .cost-meta-col-label {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 10px;
  text-transform: uppercase;
}

.router-demo-slide .cost-meta-task-card,
.router-demo-slide .cost-meta-router-card {
  background: var(--cream-deeper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
}
.router-demo-slide .cost-meta-task-card {
  border-left: 4px solid var(--purple);
}
.router-demo-slide .cost-meta-task-title {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.router-demo-slide .cost-meta-task-desc {
  font-family: var(--body);
  color: var(--ink-soft);
  border-bottom-color: var(--line);
}
.router-demo-slide .cost-meta-field {
  font-family: var(--body);
}
.router-demo-slide .cost-meta-field-key {
  font-family: var(--mono);
  color: var(--muted);
}
.router-demo-slide .cost-meta-field-val {
  color: var(--ink);
}
.router-demo-slide .cost-meta-field-active {
  background: var(--purple-soft);
  outline-color: rgba(124, 92, 255, 0.32);
}

.router-demo-slide .cost-meta-arrow {
  color: var(--muted);
  opacity: 0.7;
}

.router-demo-slide .cost-meta-router-icon {
  color: var(--purple);
}
.router-demo-slide .cost-meta-router-readout {
  font-family: var(--mono);
  color: var(--ink);
  font-size: 12px;
}
.router-demo-slide .cost-meta-readout-status {
  color: var(--muted);
}
.router-demo-slide .cost-meta-readout-key {
  color: var(--muted);
}
.router-demo-slide .cost-meta-readout-val {
  color: var(--ink);
}

.router-demo-slide .cost-meta-pick-card {
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.06);
}
.router-demo-slide .cost-meta-pick-name {
  font-family: var(--display);
  color: var(--ink);
}
.router-demo-slide .cost-meta-pick-cost {
  font-family: var(--mono);
  color: var(--muted);
}
.router-demo-slide .cost-meta-pick-strength {
  font-family: var(--body);
  color: var(--ink-soft);
}
.router-demo-slide .cost-meta-pick-reason {
  font-family: var(--body);
  color: var(--ink-soft);
  font-style: italic;
}

/* Cycle tabs — mono labels, pitch palette */
.router-demo-slide .cost-meta-cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.router-demo-slide .cost-meta-cycle-tab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.router-demo-slide .cost-meta-cycle-tab:hover { color: var(--ink); border-color: var(--ink-soft); }
.router-demo-slide .cost-meta-cycle-active {
  color: var(--ink);
  background: var(--cream-deeper);
  border-color: var(--purple);
}
.router-demo-slide .cost-meta-cycle-tab[disabled],
.router-demo-slide .cost-meta-cycle-tab[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Reduce-motion: kill the router pulse + line-fade-in */
@media (prefers-reduced-motion: reduce) {
  .router-demo-slide .cost-meta-router-icon,
  .router-demo-slide .cost-meta-router-card,
  .router-demo-slide .cost-meta-readout-line,
  .router-demo-slide .cost-meta-pick-card { animation: none !important; }
}
