/* Shared feature-demo panels (from homepage feature theater) */
:root {
  --purple: #534AB7;
  --purple-hover: #433b9e;
  --green: #1D9E75;
  --text: #2C2C2A;
  --text-secondary: #5b5b58;
  --text-tertiary: #8a8a86;
  --border: #E5E4DF;
  --surface: #F8F7F3;
  --bg: #fff;
  --light-accent: rgba(83, 74, 183, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(44, 44, 42, 0.08);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.shot-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4d2cb; }
.shot-dot:nth-child(1) { background: #ef4444; }
.shot-dot:nth-child(2) { background: #f59e0b; }
.shot-dot:nth-child(3) { background: #22c55e; }
.shot-title { margin-left: 8px; font-size: 12px; color: var(--text-tertiary); }
.shot img, .shot video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.shot-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: #fff;
}

.feat-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
}
.feat-split.reverse { direction: rtl; }
.feat-split.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .feat-split, .feat-split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
}

.feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feat-title { font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 0 0 10px; line-height: 1.25; }
.feat-desc { color: var(--text-secondary); margin: 0 0 14px; line-height: 1.7; }
.feat-bullets { margin: 0; padding-left: 18px; color: var(--text-secondary); line-height: 1.75; }
.feat-bullets li { margin-bottom: 6px; }

/* Visual regression */
.vr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.vr-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.vr-stat-val { display: block; font-size: 1.25rem; font-weight: 500; color: var(--text); }
.vr-stat-label { display: block; font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
@media (max-width: 560px) { .vr-stats { grid-template-columns: 1fr 1fr; } }

.vr-panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(44, 44, 42, 0.08);
}
.vr-tabs { display: flex; border-bottom: 1px solid var(--border); background: #fff; }
.vr-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.vr-tab:hover { color: var(--text-secondary); }
.vr-tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.vr-tab-content { display: none; padding: 20px; }
.vr-tab-content.active { display: block; }
.vr-alert {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.vr-alert-critical { border-left: 3px solid #ef4444; }
.vr-alert-cosmetic { border-left: 3px solid var(--green); }
.vr-alert-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.vr-alert-body { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.vr-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vr-badge-critical { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.vr-badge-cosmetic { background: rgba(29, 158, 117, 0.1); color: var(--green); }
.vr-badge-type { background: rgba(83, 74, 183, 0.1); color: var(--purple); }
.vr-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 8px; }
.vr-flaky-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid #f59e0b;
}
.vr-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
  margin-bottom: 12px;
}
.vr-spark-bar {
  flex: 1;
  background: var(--border);
  border-radius: 3px 3px 0 0;
}
.vr-spark-flaky { background: #f59e0b; }
.vr-flaky-suggestion {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: var(--light-accent);
  border-radius: 6px;
}
.vr-batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.vr-batch-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.vr-batch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.vr-batch-item .vr-badge { margin-left: auto; }
.vr-batch-action { display: flex; align-items: center; gap: 12px; }
.vr-batch-btn {
  padding: 8px 16px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

/* Performance */
.perf-demo {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(44, 44, 42, 0.08);
}
.perf-scores { margin-bottom: 20px; }
.perf-vitals { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.perf-vital { display: grid; grid-template-columns: 40px 50px 1fr; gap: 10px; align-items: center; text-align: left; }
.perf-vital-label { font-size: 11px; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; }
.perf-vital-val { font-size: 13px; font-weight: 500; }
.perf-vital-val.good { color: var(--green); }
.perf-vital-val.warn { color: #f59e0b; }
.perf-vital-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.perf-vital-fill { height: 100%; border-radius: 3px; }
.perf-trend { padding-top: 12px; border-top: 1px solid var(--border); }

/* Quality Insights */
.qi-demo {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(44, 44, 42, 0.08);
}
.qi-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.qi-demo-tabs { display: flex; gap: 4px; }
.qi-demo-tab {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-tertiary);
}
.qi-demo-tab.active { background: var(--light-accent); color: var(--purple); }
.qi-demo-body { padding: 16px; }
.qi-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.qi-strip-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}
.qi-strip-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 4px; }
.qi-strip-val { font-size: 22px; font-weight: 500; line-height: 1.1; }
.qi-strip-sub { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.qi-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #fed7aa;
  background: #fff7ed;
  margin-bottom: 12px;
}
.qi-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.qi-metric {
  text-align: center;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}
.qi-metric-val { font-size: 16px; font-weight: 600; }
.qi-metric-label { font-size: 9px; color: var(--text-tertiary); text-transform: uppercase; margin-top: 2px; }
.qi-issues { display: flex; flex-direction: column; gap: 6px; }
.qi-issue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  background: var(--bg);
}
.qi-issue-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.qi-tag-a11y { background: #fef3c7; color: #b45309; }
.qi-tag-sec { background: #fee2e2; color: #b91c1c; }

/* API demo */
.api-demo {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(44, 44, 42, 0.08);
}
.api-import-bar { display: flex; border-bottom: 1px solid var(--border); background: #fff; }
.api-import-tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.api-import-tab:hover { color: var(--text-secondary); }
.api-import-tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.api-tab-panel { display: none; padding: 16px; }
.api-tab-panel.active { display: block; }
.api-upload-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.api-result-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.api-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.api-method {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.api-method.post { background: rgba(83, 74, 183, 0.1); color: var(--purple); }
.api-method.get { background: rgba(29, 158, 117, 0.1); color: var(--green); }
.api-method.put { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.api-gen { margin-left: auto; font-size: 11px; color: var(--green); font-weight: 500; }
.api-summary-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.api-coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 560px) { .api-coverage-grid, .qi-metrics { grid-template-columns: 1fr 1fr; } }
.api-cov-item {
  text-align: center;
  padding: 10px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.api-cov-val { font-size: 1.25rem; font-weight: 500; color: var(--text); }
.api-cov-label { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.impact-severity {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.impact-severity.high { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.impact-severity.med { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.impact-severity.low { background: rgba(107, 107, 104, 0.1); color: var(--text-tertiary); }
