/* ============================================
   MatterMind Walkthrough Demo — demo.css
   Inherits colour tokens and base typography from site.css.
   Reuses production class names (dash-v3-*, aq-*, tf-*) where
   possible so the mock is visually recognisable as the real app.
   ============================================ */

/* --- Page stage --- */
.demo-page {
  background: var(--bg-light);
  min-height: 100vh;
  padding-top: 96px; /* clears site header */
  padding-bottom: 80px;
}
.demo-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.demo-intro .eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}
.demo-intro h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.demo-intro p {
  font-size: 17px;
  color: var(--text-secondary);
}
.demo-disclaimer {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  font-style: italic;
  margin-top: 12px !important;
}

/* --- Progress bar --- */
.demo-progress-bar {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-progress-track {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.demo-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo-progress-dots {
  display: flex;
  gap: 6px;
}
.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.demo-dot:hover { transform: scale(1.4); }
.demo-dot.active { background: var(--primary); }
.demo-dot.visited { background: var(--primary-light); }

/* --- Step viewport --- */
.demo-viewport {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Step layout: mock on left (or full width), caption on right --- */
.demo-step {
  display: none;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
.demo-step.active {
  display: grid;
  animation: demoStepIn 0.4s ease both;
}
@keyframes demoStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-mock {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 520px;
  position: relative;
}

.demo-caption {
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
.demo-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.demo-claim {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}
.demo-narrative {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.demo-narrative strong { color: var(--text); }
.demo-bullet {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.demo-bullet li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.demo-bullet li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Bottom controller --- */
.demo-controls {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 16px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.demo-step-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.demo-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--text-secondary);
}
.demo-btn:hover { background: var(--bg-subtle); color: var(--text); }
.demo-btn.primary {
  background: var(--primary);
  color: #fff;
}
.demo-btn.primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.demo-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.demo-btn.autoplay.active {
  color: var(--primary);
  background: var(--primary-glow);
}

/* ============================================
   MOCK APP SHELL — mirrors production dashboard.css
   ============================================ */

/* App header strip */
.mm-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
.mm-app-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}
.mm-app-logo span {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mm-app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mm-sync-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm-sync-btn.syncing { background: var(--primary-dark); }
.mm-sync-btn .spin {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mmSpin 0.8s linear infinite;
}
@keyframes mmSpin { to { transform: rotate(360deg); } }
.mm-user-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 6px 10px;
  border-radius: 999px;
}

/* KPI strip — mirrors .dash-v3-kpi-strip */
.mm-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}
.mm-kpi-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
}
.mm-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.mm-kpi-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-top: 4px;
  letter-spacing: -0.01em;
  min-height: 28px;
}
.mm-kpi-trend {
  font-size: 11px;
  margin-top: 2px;
  color: var(--text-muted);
}
.mm-kpi-trend.up { color: #059669; }
.mm-kpi-trend.down { color: #d97706; }

/* Tabs — mirrors .dash-v3-tabs */
.mm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 18px 0;
}
.mm-tab {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}
.mm-tab:hover { background: var(--bg-subtle); }
.mm-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.mm-tab-icon { font-size: 16px; }
.mm-tab-title {
  font-size: 13px;
  font-weight: 700;
}
.mm-tab-subtitle {
  font-size: 10px;
  opacity: 0.7;
  display: block;
}
.mm-tab-count {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.mm-tab:not(.active) .mm-tab-count { background: var(--primary-glow); color: var(--primary); }

/* Panel container */
.mm-panel {
  padding: 16px 18px 18px;
}

/* Toast for sync success */
.mm-toast {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--primary);
  border-left-width: 4px;
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s;
  z-index: 5;
}
.mm-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.mm-toast .toast-check {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 11px;
  margin-right: 6px;
}

/* ============================================
   ACTION QUEUE WIDGET — mirrors .aq-item etc.
   ============================================ */
.mm-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mm-section-title .count {
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
}

.aq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.aq-item:hover { box-shadow: var(--shadow-sm); }
.aq-item-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.aq-item-icon { font-size: 16px; }
.aq-item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
}
.aq-item-label.ar { background: rgba(217, 119, 6, 0.1); color: #b45309; }
.aq-item-label.stale { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.aq-item-label.prebill { background: var(--primary-glow); color: var(--primary-dark); }
.aq-item-matter-block { flex: 1; min-width: 0; }
.aq-item-matter {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aq-item-client {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.aq-item-summary {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.aq-item-toggle {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.aq-item.expanded .aq-item-toggle { transform: rotate(90deg); }

/* Last activity line */
.aq-last-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}
.aq-last-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
}
.aq-la-clio_reminder .aq-last-activity-dot { background: #f59e0b; }
.aq-la-mm_sent .aq-last-activity-dot { background: var(--primary); }
.aq-la-inbound_reply .aq-last-activity-dot { background: #10b981; }
.aq-la-queue_action .aq-last-activity-dot { background: #6366f1; }
.aq-la-cadence_advance .aq-last-activity-dot { background: #8b5cf6; }
.aq-last-activity-text strong { color: var(--text); font-weight: 600; }

/* Item body (collapsed by default) */
.aq-item-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border-light);
  display: none;
}
.aq-item.expanded .aq-item-body { display: block; }

.aq-timeline-block {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 12px 0;
}
.aq-timeline-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.aq-tl-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light);
}
.aq-tl-row:last-child { border: none; }
.aq-tl-date {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.aq-tl-label { color: var(--text); font-weight: 500; }
.aq-tl-detail { color: var(--text-muted); display: block; font-size: 11px; }

/* Draft email */
.aq-draft-email {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
}
.aq-draft-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.aq-draft-recipient,
.aq-draft-subject {
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.aq-draft-recipient strong, .aq-draft-subject strong { color: var(--text); }
.aq-draft-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 90px;
  position: relative;
}
.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--primary);
  vertical-align: text-bottom;
  animation: cursorBlink 1s infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.aq-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.aq-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.aq-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.aq-btn.primary.highlight {
  animation: btnPulse 1.2s ease-in-out 2;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,139,139,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,139,139,0); }
}

/* ============================================
   TODAY'S FOCUS MASTER/DETAIL — mirrors .tf-*
   ============================================ */
.tf-master-detail {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 320px;
}
.tf-list { border-right: 1px solid var(--border-light); background: var(--bg-light); }
.tf-list-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.tf-list-row:hover { background: rgba(0, 139, 139, 0.04); }
.tf-list-row.selected {
  background: #f0fdfa;
  border-left: 3px solid var(--primary);
  padding-left: 9px;
}
.tf-list-row-check {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  background: #fff;
}
.tf-list-row.completed .tf-list-row-check {
  background: var(--primary);
  border-color: var(--primary);
}
.tf-list-row.completed .tf-list-row-check::after {
  content: '✓';
  position: absolute;
  inset: -3px 0 0 1px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.tf-list-row-number {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tf-list-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}
.tf-list-row-client {
  font-size: 11px;
  color: var(--text-secondary);
}
.tf-list-row-reason {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.tf-context { padding: 14px 16px; }
.tf-context-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.tf-context-matter-number {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tf-context-matter-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin: 2px 0;
}
.tf-context-client-name {
  font-size: 12px;
  color: var(--text-secondary);
}
.tf-context-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.tf-stat {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}
.tf-stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
}
.tf-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.tf-context-tasks-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 8px 0 6px;
}
.tf-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}
.tf-task-check {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
}
.tf-task-title { flex: 1; color: var(--text); }
.tf-task-due {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.tf-task-due.overdue { background: #fee2e2; color: #dc2626; font-weight: 600; }
.tf-task-due.today { background: #fef3c7; color: #d97706; font-weight: 600; }

/* ============================================
   FINANCIAL TAB — AR aging chart + Trust balances
   ============================================ */
.mm-financial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mm-widget {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.mm-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mm-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.mm-widget-stat {
  font-size: 11px;
  color: var(--text-muted);
}

/* AR aging chart (SVG) */
.ar-aging-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  height: 140px;
  padding: 8px 0;
}
.ar-bucket {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
  height: 100%;
  min-width: 0;
}
.ar-bucket-bar {
  width: 100%;
  background: var(--primary-glow);
  border-radius: 4px 4px 0 0;
  transition: height 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.ar-bucket-bar.b30 { background: linear-gradient(180deg, #c7e7e7, #a3d8d8); }
.ar-bucket-bar.b60 { background: linear-gradient(180deg, #5fb7b7, #3a9a9a); }
.ar-bucket-bar.b90 { background: linear-gradient(180deg, #d97706, #b45309); }
.ar-bucket-bar.b90plus { background: linear-gradient(180deg, #dc2626, #b91c1c); }
.ar-bucket-amount {
  position: absolute;
  bottom: 100%;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.ar-bucket-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  flex-shrink: 0;
}
.ar-bucket-amount {
  text-align: center;
}
.dso-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.dso-value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
}
.dso-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dso-delta {
  font-size: 11px;
  color: #059669;
  margin-top: 2px;
}

/* Trust balances */
.trust-list { display: flex; flex-direction: column; gap: 8px; }
.trust-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 12px;
}
.trust-row.below-threshold {
  background: rgba(220, 38, 38, 0.05);
  border-left: 3px solid #dc2626;
  padding-left: 7px;
}
.trust-client { font-weight: 600; color: var(--text); }
.trust-matter { font-size: 10px; color: var(--text-muted); display: block; }
.trust-amount {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
}
.trust-amount.below-threshold { color: #dc2626; }
.trust-topup {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* ============================================
   FINAL SUMMARY (Step 6)
   ============================================ */
.demo-summary-card {
  padding: 32px;
  text-align: center;
}
.demo-summary-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  animation: summaryPop 0.5s ease;
}
@keyframes summaryPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.demo-summary-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.demo-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.demo-summary-stat {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
}
.demo-summary-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--primary);
}
.demo-summary-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.demo-summary-cta {
  margin-top: 20px;
}
.demo-summary-cta .btn-primary {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.demo-summary-cta-sub {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
}
.demo-summary-cta-sub a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .demo-step { grid-template-columns: 1fr; }
  .demo-caption { position: static; }
  .mm-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .mm-tabs { grid-template-columns: 1fr; }
  .tf-master-detail { grid-template-columns: 1fr; }
  .tf-list { border-right: none; border-bottom: 1px solid var(--border-light); }
  .mm-financial-grid { grid-template-columns: 1fr; }
  .ar-aging-chart { height: 110px; }
  .demo-summary-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-controls { border-radius: var(--radius-sm); flex-wrap: wrap; }
  .demo-intro h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .mm-kpi-strip { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .mm-panel { padding: 12px; }
  .aq-item-header { flex-wrap: wrap; }
  .aq-item-summary { width: 100%; }
}
