/* JustFair Modern Design System (White Canvas + True Purple Primary Accent + Full-Bleed Hero + Motion) */
/* Built in accordance with Director Order 007.2 & desktop design-skill specifications */

:root {
  /* Color Palette - Light Base Canvas */
  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --bg-card-subtle: #f4f4f5;
  --bg-card-highlight: #f5f3ff;
  --bg-hover: #fafafa;

  /* Borders */
  --border-light: #e4e4e7;
  --border-medium: #d4d4d8;
  --border-focus: #7c3aed;

  /* Typography Colors - Dark Slate / Near-Black */
  --text-primary: #09090b;
  --text-secondary: #27272a;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;

  /* True Purple Primary Accent */
  --accent-primary: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #8b5cf6;
  --accent-surface: #f5f3ff;
  --accent-border: #ddd6fe;
  --accent-text: #6d28d9;

  /* Status Colors */
  --status-neutral-bg: #fafafa;
  --status-neutral-border: #d4d4d8;
  --status-neutral-text: #27272a;

  --status-fair-bg: #ecfdf5;
  --status-fair-border: #a7f3d0;
  --status-fair-text: #065f46;

  --status-caution-bg: #fffbeb;
  --status-caution-border: #fde68a;
  --status-caution-text: #92400e;

  --status-bad-bg: #fef2f2;
  --status-bad-border: #fecaca;
  --status-bad-text: #991b1b;

  --status-closed-bg: #fdf4ff;
  --status-closed-border: #f5d0fe;
  --status-closed-text: #86198f;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(9, 9, 11, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(9, 9, 11, 0.06), 0 1px 2px -1px rgba(9, 9, 11, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(9, 9, 11, 0.07), 0 2px 4px -2px rgba(9, 9, 11, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(9, 9, 11, 0.08), 0 4px 6px -4px rgba(9, 9, 11, 0.04);
  --shadow-purple: 0 4px 14px 0 rgba(124, 58, 237, 0.28);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Base Wrapper */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================================== */
/* Navigation Bar                             */
/* ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
}

.brand-text-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
  background-color: var(--accent-surface);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.nav-link {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  background-color: #ffffff;
  color: var(--accent-primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================== */
/* Buttons                                    */
/* ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 18px 0 rgba(124, 58, 237, 0.38);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--text-muted);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================== */
/* Main Body & Layout                         */
/* ========================================== */
.main-body {
  flex: 1;
}

.view-section {
  width: 100%;
}

/* ========================================== */
/* ========================================== */
/* DASHBOARD VIEW STYLES & SPLIT WHITE HERO   */
/* ========================================== */
.hero-split-white {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  padding: 48px 24px 0 24px;
}

.hero-split-container {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  min-height: 0;
}

.hero-content-col {
  padding: 64px 0 72px 0;
  z-index: 2;
}

.hero-split-white .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-surface);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-split-white .hero-headline {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-split-white .hero-subheadline {
  font-size: 17.5px;
  color: var(--text-secondary);
  line-height: 1.58;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-split-white .hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art-col {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  height: 100%;
  padding-right: 0;
}

.hero-art-wrapper {
  position: relative;
  display: inline-block;
  max-width: 520px;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  /* Natural soft fade ONLY on the left edge into white */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 5%, black 16%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 5%, black 16%, black 100%);
}

.hero-art-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  transform-origin: bottom right;
}

.hero-art-fade-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(to right, #ffffff, transparent);
  pointer-events: none;
}

/* Dashboard Content Sections */
.dashboard-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================== */
/* Strong Reactive Scroll Reveal Motion       */
/* ========================================== */
.reveal-section,
.reveal-item,
.stock-card-standalone {
  opacity: 0;
  transform: translateY(64px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-section.is-revealed,
.reveal-item.is-revealed,
.stock-card-standalone.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-item:nth-child(1) { transition-delay: 120ms; }
.reveal-item:nth-child(2) { transition-delay: 240ms; }
.reveal-item:nth-child(3) { transition-delay: 360ms; }
.reveal-item:nth-child(4) { transition-delay: 480ms; }

.stock-card-standalone:nth-child(1) { transition-delay: 80ms; }
.stock-card-standalone:nth-child(2) { transition-delay: 200ms; }
.stock-card-standalone:nth-child(3) { transition-delay: 320ms; }
.stock-card-standalone:nth-child(4) { transition-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reveal-item,
  .stock-card-standalone {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ========================================== */
/* 2. Key Differentiation & Comparison Grid   */
/* ========================================== */
.diff-main-title {
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.diff-framing-box {
  margin-top: 18px;
  display: inline-block;
  background-color: var(--accent-surface);
  border: 1px solid var(--accent-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.diff-framing-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}

.comparison-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.comparison-card:hover {
  box-shadow: var(--shadow-md);
}

.wallet-check-card {
  border-color: var(--border-medium);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.justfair-check-card {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  box-shadow: 0 4px 20px -2px rgba(124, 58, 237, 0.08);
}

.justfair-check-card:hover {
  border-color: var(--accent-primary);
}

.comparison-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon-box {
  background-color: #f4f4f5;
  color: var(--text-secondary);
}

.justfair-icon-box {
  background-color: var(--accent-surface);
  color: var(--accent-primary);
}

.comparison-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.comparison-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon.muted {
  color: #71717a;
}

.check-icon.purple {
  color: var(--accent-primary);
}

/* ========================================== */
/* 3. Illustrative $500 Example Card          */
/* ========================================== */
.example-card {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.example-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.example-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.example-disclaimer {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.example-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1fr;
  gap: 18px;
  padding: 24px;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.example-metric-box {
  display: flex;
  flex-direction: column;
}

.example-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.example-metric-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.example-metric-val.purple {
  color: var(--accent-primary);
}

.example-metric-val.diff-neg {
  color: #dc2626;
}

.example-metric-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.example-pills-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.example-footer {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.example-quote {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.example-subtext {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.example-cta-wrap {
  display: flex;
  justify-content: center;
}

/* ========================================== */
/* 4. How It Works (5-Step Grid)              */
/* ========================================== */
.steps-container-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-primary);
  background-color: var(--accent-surface);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-heading {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================== */
/* 5. Truthfulness / No-Guessing Callout      */
/* ========================================== */
.truthfulness-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.truth-icon-box {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  color: var(--accent-primary);
  border: 1px solid #d8b4fe;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.truth-text-wrap {
  flex: 1;
}

.truth-title {
  font-size: 15px;
  font-weight: 700;
  color: #581c87;
  margin-bottom: 4px;
}

.truth-desc {
  font-size: 14px;
  color: #6b21a8;
  line-height: 1.45;
  margin: 0;
}

/* Demoted Compact API Section */
.api-compact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.api-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.api-compact-content {
  flex: 1;
  min-width: 280px;
}

.api-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-text);
  background-color: var(--accent-surface);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid var(--accent-border);
}

.api-compact-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.api-compact-desc {
  font-size: 14.5px;
  color: var(--text-muted);
}

.api-compact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-code-collapse {
  margin-top: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #27272a;
  background-color: #09090b;
}

.code-topbar {
  background-color: #18181b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #27272a;
}

.code-method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  background-color: rgba(192, 132, 252, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.code-endpoint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #a1a1aa;
}

.code-body {
  padding: 14px 16px;
  overflow-x: auto;
}

.code-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #e4e4e7;
  line-height: 1.5;
  white-space: pre;
}

/* Step 2 adapter example only: wrap instead of scroll so the left edge
   never clips and no horizontal scrolling is needed. Scoped to
   .code-wrap; all other code blocks keep global pre + scroll behavior. */
.code-body.code-wrap {
  overflow-x: visible;
}

.code-body.code-wrap code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Dashboard Bottom CTA */
.dashboard-cta {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 80px 24px;
  text-align: center;
}

.cta-headline {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ========================================== */
/* APPLICATION WORKSPACE: STANDALONE STOCK UX */
/* ========================================== */
.app-workspace {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 80px 20px;
}

/* Safety Banner */
.safety-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  white-space: nowrap;
  margin-top: 1px;
}

.safety-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* App Header */
.app-feed-header {
  margin-bottom: 24px;
}

.app-feed-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.app-feed-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* Stock Filter & Search Controls */
.feed-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  position: sticky;
  top: 70px;
  z-index: 20;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.feed-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.feed-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.feed-search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  font-size: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-surface);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: var(--radius-full);
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-card-subtle);
}

.category-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill,
.trade-category-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover,
.trade-category-pill:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.category-pill.active,
.trade-category-pill.active {
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

/* Empty Search State */
.search-empty-state {
  text-align: center;
  padding: 56px 24px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  margin: 16px 0;
}

.search-empty-state.hidden {
  display: none;
}

.empty-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

/* Standalone Stock Cards Feed */
.stock-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stock-card-standalone {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  will-change: transform, box-shadow, border-color;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-card-standalone.search-hidden {
  display: none !important;
}

/* Desktop Hover Microinteraction */
@media (hover: hover) and (pointer: fine) {
  .stock-card-standalone:not(.is-expanded):hover {
    transform: translateX(10px);
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 10px 24px -4px rgba(124, 58, 237, 0.09), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  }

  .stock-card-standalone:not(.is-expanded):hover .stock-logo-wrap {
    transform: scale(1.05);
    border-color: var(--accent-primary);
  }

  .stock-card-standalone:not(.is-expanded):hover .stock-toggle-btn {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateX(3px);
  }
}

/* Active / Expanded Stock State */
.stock-card-standalone.is-expanded {
  border-color: var(--accent-primary);
  background-color: #FAF8FF;
  box-shadow: 0 16px 36px -4px rgba(124, 58, 237, 0.14), 0 0 0 1px var(--accent-primary);
  transform: none !important;
}

.stock-card-standalone.is-expanded .stock-card-header {
  background-color: #FAF8FF;
  border-bottom: 1px solid var(--accent-border);
}

/* Inner Staggered Animations on Expansion */
.stock-card-standalone.is-expanded .form-row-grid {
  animation: stockFormSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stock-card-standalone.is-expanded .exact-sim-wrap {
  animation: stockFormSlideIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.stock-card-standalone.is-expanded .submit-trade-btn {
  animation: stockFormSlideIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}

/* CHECK TRADE gating (013.5): disabled until asset + amount are explicit */
.submit-trade-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.submit-gating-hint {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* Optional Exact Simulation disclosure (013.7): quiet secondary entry */
.exact-sim-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.exact-sim-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
}

.exact-sim-body {
  margin-top: 10px;
}

.exact-sim-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exact-sim-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.exact-sim-connected {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.exact-sim-connect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exact-sim-manual-box {
  margin-top: 10px;
}

.exact-address-error {
  font-size: 12.5px;
  color: var(--status-bad-text);
  margin-top: 6px;
}

.exact-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-card-subtle);
}

.exact-upsell-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.exact-upsell-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exact-upsell-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.exact-upsell-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Trade form intro: what exact trade is being checked */
.trade-form-intro {
  margin-bottom: 16px;
}

.trade-form-title {
  margin: 0 0 2px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.trade-form-sub {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.trade-form-rep {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.trade-form-rep strong {
  color: var(--accent-primary);
}

/* Dominant primary CTA */
.submit-trade-btn {
  font-size: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Pre-check live preview is hidden from the consumer flow (functionality kept
   for polling/tests). The check itself is the explicit snapshot moment. */
.live-preview-box {
  display: none;
}

/* Plain-English result summary: first thing read after a check */
.result-summary-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-summary-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.result-summary-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.result-summary-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-summary-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.result-summary-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.expl-heading {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

@keyframes stockFormSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stock Card Header */
.stock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.18s ease;
}

.stock-card-header:hover {
  background-color: var(--bg-card-subtle);
}

.stock-card-header:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -2px;
}

.stock-card-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stock-card-brand .stock-logo-wrap {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-toggle-btn {
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-card-brand .stock-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stock-brand-info {
  display: flex;
  flex-direction: column;
}

.stock-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.stock-ticker-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-surface);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 6px;
}

.stock-canonical-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.stock-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.stock-header-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-toggle-btn .toggle-icon {
  transition: transform 0.25s ease;
}

.stock-card-standalone.is-expanded .stock-toggle-btn .toggle-icon {
  transform: rotate(180deg);
}

/* Stock Card Body */
.stock-card-body {
  padding: 0 24px 28px 24px;
  border-top: 1px solid var(--border-light);
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stock-trade-form {
  margin-top: 20px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-col .form-label-row .form-label {
  margin-bottom: 0;
}

.label-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Payment Tabs */
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.payment-tab:hover {
  background-color: var(--bg-card-highlight);
  border-color: var(--accent-border);
}

.payment-tab:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.payment-tab.active {
  background-color: var(--accent-surface);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.token-icon-wrap {
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid var(--border-light);
}

.token-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.token-symbol {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.token-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.form-input.font-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  padding-left: 14px;
}

/* Amount Presets */
.amount-presets {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.preset-btn {
  flex: 1;
  padding: 5px 2px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background-color: var(--bg-card-highlight);
  color: var(--text-primary);
}

.preset-btn.active {
  background-color: var(--accent-surface);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Wallet connected dot (reused by the Exact Simulation panel) */
.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-dim);
}

.wallet-dot.connected {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.btn-link:hover {
  color: var(--accent-hover);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Inline Loading */
.inline-loading-state {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  margin-top: 20px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

.loading-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.loading-step-text {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Inline Error */
.inline-error-state {
  border: 1px solid var(--status-bad-border);
  background-color: var(--status-bad-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-top: 20px;
}

.error-icon-box {
  color: var(--status-bad-text);
  margin-bottom: 8px;
}

.error-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--status-bad-text);
  margin-bottom: 4px;
}

.error-message {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Inline Result Container */
.inline-result-container {
  margin-top: 24px;
  animation: resultReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Verdict Banner */
.verdict-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--status-neutral-border);
  background-color: var(--status-neutral-bg);
}

.verdict-banner.verdict-measured {
  border-color: var(--status-neutral-border);
  background-color: var(--status-neutral-bg);
}

.verdict-banner.verdict-closed {
  border-color: var(--status-closed-border);
  background-color: var(--status-closed-bg);
}

.verdict-banner.verdict-fair {
  border-color: var(--status-fair-border);
  background-color: var(--status-fair-bg);
}

.verdict-banner.verdict-caution {
  border-color: var(--status-caution-border);
  background-color: var(--status-caution-bg);
}

.verdict-banner.verdict-bad {
  border-color: var(--status-bad-border);
  background-color: var(--status-bad-bg);
}

.verdict-icon-box {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.verdict-banner.verdict-closed .verdict-icon-box {
  color: var(--status-closed-text);
}

.verdict-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.verdict-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* Big 3 Numbers Card */
.plain-money-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  gap: 12px;
}

.money-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.money-stat.highlight {
  background-color: var(--accent-surface);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
}

.money-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.money-stat.highlight .money-label {
  color: var(--accent-text);
}

.money-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 3px 0 2px 0;
}

.money-stat.highlight .money-value {
  color: var(--accent-primary);
}

.money-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.money-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  padding: 0 4px;
}

/* Explanation Box */
.explanation-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.explanation-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Simulation Banner */
.simulation-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.sim-icon-box {
  color: var(--accent-primary);
}

.sim-content {
  display: flex;
  flex-direction: column;
}

.sim-content strong {
  font-size: 13.5px;
  color: var(--accent-text);
}

.sim-content span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Better Option & Routing Discovery Card */
.better-option-container {
  margin-bottom: 16px;
}

.better-option-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.better-option-card.is-optimal {
  border-color: #e9d5ff;
  background-color: #faf5ff;
}

.better-option-card.is-alternative-found {
  border-color: #86efac;
  background-color: #f0fdf4;
}

.better-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.better-option-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.better-option-card.is-optimal .better-option-status-badge {
  background-color: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.better-option-card.is-alternative-found .better-option-status-badge {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.better-option-summary-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.better-option-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.better-option-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.route-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.route-box.alternative-box {
  border-color: #86efac;
  background-color: #ffffff;
}

.route-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.route-box.alternative-box .route-box-title {
  color: #15803d;
}

.route-box-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 3px 0 2px 0;
}

.route-box.alternative-box .route-box-value {
  color: #16a34a;
}

.route-box-diff {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.route-box.alternative-box .route-box-diff {
  color: #15803d;
}

.route-box-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.route-box-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.better-option-improvement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.improvement-label {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.improvement-value {
  font-size: 12.5px;
  font-weight: 800;
}

.better-option-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Handoff Revalidation (015): compact stacked comparison, mobile-safe */
.handoff-revalidate-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.revalidate-hint {
  margin-top: 0;
}

.revalidation-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.revalidation-result {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reval-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reval-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.reval-timestamp {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.reval-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reval-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.reval-label {
  color: var(--text-muted);
}

.reval-row strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.reval-warning {
  font-size: 12.5px;
  color: var(--text-secondary);
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 0;
}

.reval-amount-note {
  margin-top: 0;
}

.reval-copy-amount-btn {
  align-self: flex-start;
}

.reval-disclosure {
  margin-top: 0;
}

.revalidation-error {
  width: 100%;
  border: 1px solid var(--status-bad-border);
  background-color: var(--status-bad-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.revalidation-error .error-title,
.revalidation-error .error-message {
  margin: 0;
}

.reval-fallback-row {
  display: flex;
}

/* Evidence Details Accordion */
.evidence-accordion {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  outline: none;
  list-style: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
}

.accordion-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.evidence-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 14px 16px;
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-light);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.evidence-item {
  display: flex;
  flex-direction: column;
}

.ev-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ev-val {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2px;
  word-break: break-all;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ========================================== */
/* Site Footer                                */
/* ========================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 32px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 520px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================== */
/* Responsive Styles                          */
/* ========================================== */
@media (max-width: 960px) {
  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-art-col {
    justify-content: center;
  }

  .hero-art-wrapper {
    max-width: 360px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .example-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .steps-container-5 {
    grid-template-columns: 1fr 1fr;
  }

  .api-compact-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-split-white {
    padding: 32px 16px 0 16px;
  }

  .hero-split-white .hero-headline {
    font-size: 32px;
  }

  .hero-split-white .hero-subheadline {
    font-size: 15px;
  }

  .diff-main-title {
    font-size: 26px;
  }

  .header-container {
    padding: 12px 16px;
  }

  .nav-menu {
    display: none;
  }

  .example-card {
    padding: 20px 16px;
  }

  .example-metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .example-quote {
    font-size: 16.5px;
  }

  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-container-5 {
    grid-template-columns: 1fr;
  }

  .truthfulness-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .plain-money-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .better-option-grid {
    grid-template-columns: 1fr;
  }

  .route-box-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .money-divider {
    transform: rotate(90deg);
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   Continuous Market Streaming & Live Preview (Order 009.6)
   ========================================== */
.live-preview-box {
  margin: 16px 0;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-preview-box.is-live {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.08);
}

.live-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.live-preview-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  display: inline-block;
  animation: livePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.live-pulse-dot.closed {
  background-color: #94A3B8;
  animation: none;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.live-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-live {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-closed {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.badge-reconnecting {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.live-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.live-preview-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-preview-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.live-preview-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.live-benchmark-context {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Post-Check Live Movement Notice */
.live-movement-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: stockFormSlideIn 0.24s ease both;
}

.live-movement-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #6B21A8;
}

.btn-refresh-check {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn-refresh-check:hover {
  opacity: 0.9;
}

/* Snapshot Freeze Header */
.snapshot-freeze-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.snapshot-freeze-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.snapshot-freeze-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  background: #F3F4F6;
  color: #374151;
  border-radius: var(--radius-full);
}

/* Subtle Numeric Flash */
.price-flash-up {
  color: #10B981 !important;
  animation: flashGreen 0.6s ease;
}

.price-flash-down {
  color: #EF4444 !important;
  animation: flashRed 0.6s ease;
}

@keyframes flashGreen {
  0% { background-color: rgba(16, 185, 129, 0.15); border-radius: 4px; }
  100% { background-color: transparent; }
}

@keyframes flashRed {
  0% { background-color: rgba(239, 68, 68, 0.15); border-radius: 4px; }
  100% { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pulse-dot {
    animation: none !important;
  }
  .price-flash-up, .price-flash-down {
    animation: none !important;
  }
  .live-movement-banner {
    animation: none !important;
  }
}

/* ========================================================================== */
/* PHASE 14: PRODUCT PREFLIGHT CONSUMER UX & GUIDED 4-STEP WORKFLOW          */
/* ========================================================================== */

/* Two Mistakes Story Section */
.section-badge-sm {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.mistake-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mistake-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.mistake-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #F4F4F5;
  color: #52525B;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.mistake-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.mistake-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.mistake-solution {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.solution-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.solution-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.mistakes-bottom-bar {
  background: linear-gradient(135deg, #F5F3FF 0%, #FAF5FF 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bottom-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #EDE9FE;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bottom-bar-text {
  font-size: 14.5px;
  color: #4C1D95;
  line-height: 1.5;
}

/* ========================================== */
/* Step Progress Tracker Bar                  */
/* ========================================== */
.preflight-step-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}

.step-tracker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.step-tracker-item:hover {
  color: var(--text-primary);
  background: var(--bg-card-subtle);
}

.step-tracker-item.active {
  color: var(--accent-primary);
  background: var(--accent-surface);
}

.step-tracker-item.completed {
  color: #059669;
}

.step-tracker-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.step-tracker-item.active .step-tracker-num {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.step-tracker-item.completed .step-tracker-num {
  background: #D1FAE5;
  color: #065F46;
}

.step-tracker-divider {
  flex-grow: 1;
  height: 1px;
  background: var(--border-light);
  margin: 0 10px;
  min-width: 16px;
}

/* Step Container Utility */
.step-content-container {
  display: flex;
  flex-direction: column;
  animation: stepFadeIn 0.25s ease both;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

/* ========================================== */
/* Step 1: Underlying Company Grid            */
/* ========================================== */
.underlying-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.underlying-company-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.underlying-company-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  background: #FAFAFE;
}

.underlying-company-card.is-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-border), var(--shadow-md);
  background: var(--accent-surface);
}

.underlying-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.underlying-card-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.underlying-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.underlying-card-brand {
  flex-grow: 1;
}

.underlying-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.underlying-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.underlying-ticker {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #F4F4F5;
  color: #3F3F46;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.underlying-fullname {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.underlying-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.underlying-reps-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-surface);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.underlying-category-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ========================================== */
/* Step 2: What Matters to You?               */
/* ========================================== */
.selected-company-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.selected-company-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.selected-company-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.selected-company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-company-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-company-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.selected-company-ticker {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-surface);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.selected-company-count {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.selected-company-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.expectations-header {
  margin-bottom: 20px;
}

.expectations-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.expectations-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 680px;
}

.expectations-guidance-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F4F4F5;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-secondary);
}

.expectations-guidance-box svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.expectations-section-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.expectations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.expectation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.expectation-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.expectation-card.priority-must-have {
  border-color: var(--accent-primary);
  background: #FAF8FF;
}

.expectation-card.priority-nice-to-have {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.expectation-header {
  margin-bottom: 12px;
}

.expectation-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.expectation-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.expectation-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-must-have {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.badge-nice-to-have {
  background: #2563EB;
  color: #FFFFFF;
}

.expectation-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.expectation-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.btn-priority {
  flex: 1;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-priority:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-medium);
}

.btn-priority.active-must-have {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
}

.btn-priority.active-nice-to-have {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.btn-priority-clear {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-priority-clear:hover {
  color: #DC2626;
  background: #FEF2F2;
}

/* Secondary Expectations Accordion */
.secondary-expectations-wrap {
  margin-top: 10px;
  margin-bottom: 24px;
}

.secondary-expectations-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-expectations-toggle:hover {
  background: var(--bg-card-subtle);
  border-color: var(--accent-border);
}

.toggle-text-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.toggle-count-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.secondary-expectations-body {
  margin-top: 14px;
  animation: stepFadeIn 0.2s ease both;
}

.step-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 20px;
}

/* ========================================== */
/* Step 3: See Verified Products              */
/* ========================================== */
.preflight-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.context-company-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.context-company-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.context-company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 8px;
}

.context-musthaves-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Product Result Summary Banner */
.product-result-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.product-result-banner.status-match {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.product-result-banner.status-conditional {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.product-result-banner.status-mismatch {
  background: #FEF2F2;
  border-color: #FECACA;
}

.product-result-banner.status-warning {
  background: #FDF4FF;
  border-color: #F5D0FE;
}

.result-banner-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-match .result-banner-icon-box {
  background: #D1FAE5;
  color: #065F46;
}

.status-conditional .result-banner-icon-box {
  background: #FEF3C7;
  color: #92400E;
}

.status-mismatch .result-banner-icon-box {
  background: #FEE2E2;
  color: #991B1B;
}

.status-warning .result-banner-icon-box {
  background: #F5D0FE;
  color: #86198F;
}

.result-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.result-banner-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Side-by-Side Representation Cards Grid (Equal Prominence) */
.representation-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.representation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.representation-card:hover {
  box-shadow: var(--shadow-md);
}

.rep-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.rep-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rep-symbol {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.rep-issuer {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.rep-match-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.rep-badge-match {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.rep-badge-conditional {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.rep-badge-mismatch {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.rep-capabilities-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rep-cap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.rep-cap-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rep-cap-icon.icon-true {
  color: #059669;
}

.rep-cap-icon.icon-conditional {
  color: #D97706;
}

.rep-cap-icon.icon-false {
  color: #DC2626;
}

.rep-cap-icon.icon-unknown {
  color: #6B7280;
}

.rep-cap-text-wrap {
  flex-grow: 1;
}

.rep-cap-label {
  font-weight: 600;
  color: var(--text-primary);
}

.rep-cap-note {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.rep-explanation-box {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Expandable Solana Verified Drawer */
.rep-solana-drawer {
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
  margin-bottom: 18px;
}

.rep-solana-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.rep-solana-toggle:hover {
  color: var(--accent-primary);
}

.rep-solana-content {
  margin-top: 10px;
  padding: 12px;
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.solana-fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.solana-fact-label {
  color: var(--text-muted);
  font-weight: 600;
}

.solana-fact-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mint-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-primary);
  padding: 2px;
  border-radius: 4px;
}

.mint-copy-btn:hover {
  background: var(--accent-surface);
}

.rep-action-wrap {
  margin-top: auto;
  padding-top: 14px;
}

.btn-rep-supported {
  width: 100%;
}

.btn-rep-unsupported {
  width: 100%;
  background: #F4F4F5;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  cursor: not-allowed;
}

.unsupported-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  line-height: 1.35;
}

/* Differences Matrix Card */
.differences-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.diff-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.diff-header-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-surface);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.diff-card-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.diff-table-responsive {
  overflow-x: auto;
}

.diff-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.diff-matrix-table th,
.diff-matrix-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.diff-matrix-table th {
  background: #F9FAFB;
  font-weight: 700;
  color: var(--text-primary);
}

.diff-matrix-table td.diff-factor-cell {
  font-weight: 600;
  color: var(--text-secondary);
  width: 25%;
}

/* Scenarios Card */
.scenarios-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.scenarios-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.scenarios-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scenarios-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.scenarios-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FAFAFA;
}

.scenario-toggle {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.scenario-toggle:hover {
  background: #F4F4F5;
}

.scenario-body {
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Dividend Safety Card */
.dividend-safety-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.dividend-safety-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: #DBEAFE;
  color: #1D4ED8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dividend-safety-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 4px;
}

.dividend-safety-text {
  font-size: 13.5px;
  color: #1E3A8A;
  line-height: 1.5;
}

/* ========================================== */
/* Why JustFair 3 Pillars Grid                */
/* ========================================== */
.why-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.why-pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.why-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.08);
}

.why-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-pillar-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.why-pillar-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ========================================== */
/* Product Proof & Trust Section              */
/* ========================================== */
.proof-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.proof-metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.proof-metric-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.proof-metric-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.proof-metric-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.proof-metric-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ========================================== */
/* Enhanced Footer Layout                     */
/* ========================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 48px 24px 24px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.footer-left {
  max-width: 480px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-right {
  display: flex;
  gap: 48px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom-bar {
  max-width: 1240px;
  margin: 24px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================== */
/* Mobile Responsiveness (Down to 375px)     */
/* ========================================== */
@media (max-width: 768px) {
  .mistakes-grid {
    grid-template-columns: 1fr;
  }
  .why-pillars-grid {
    grid-template-columns: 1fr;
  }
  .proof-metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  .footer-right {
    flex-direction: column;
    gap: 24px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .preflight-step-tracker {
    padding: 6px 10px;
  }
  .step-tracker-item {
    padding: 6px 8px;
    font-size: 12px;
  }
  .representation-cards-grid {
    grid-template-columns: 1fr;
  }
  .selected-company-bar,
  .preflight-context-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}




/* ==========================================
   PHASE 3: NEW PRODUCT SURFACES (TEST / REPLAY / DBC)
   Reuses existing tokens, cards, buttons, type.
   ========================================== */
.jf-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 64px 24px;
}

.jf-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.jf-title {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.jf-sub {
  margin: 0 0 24px 0;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.jf-steps {
  margin: 0 0 24px 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
}

.jf-steps code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 8px;
}

.jf-step-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.jf-details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  padding: 12px 16px;
}

.jf-details-summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.jf-details-body {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.jf-details-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
}

.replay-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.replay-upload-hint {
  font-size: 13.5px;
  color: var(--text-muted);
}

.replay-samples-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.replay-error {
  color: var(--status-bad-text);
  font-size: 14px;
}

.replay-run-header {
  margin-bottom: 16px;
}

.replay-sample-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px dashed var(--border-light);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.replay-run-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.replay-run-meta,
.replay-run-counts {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.replay-no-applicable {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e0b04b;
  border-radius: var(--radius-md);
  background: #fff8e6;
  color: #704f00;
  font-size: 13px;
}

.replay-no-applicable strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.replay-scenario-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.replay-scenario-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.replay-status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: var(--bg-card-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-fail .replay-status-badge {
  background-color: #fdecec;
  color: var(--status-bad-text);
}

.status-pass .replay-status-badge {
  background-color: #e9f9ef;
  color: #15803d;
}

.replay-scenario-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.replay-scenario-detail {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.replay-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.replay-detail-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.replay-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.replay-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 0;
}

.replay-field > span:not(.replay-field-label) {
  overflow-wrap: anywhere;
}

.replay-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.replay-timeline-title {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.replay-timeline {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.replay-event {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
}

.replay-event-at {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent-primary);
  min-width: 74px;
}

.replay-event-io {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.dbc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.dbc-field {
  display: flex;
  flex-direction: column;
}

.dbc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dbc-result {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dbc-sweep-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.dbc-sweep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dbc-sweep-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: var(--bg-card-subtle);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
}

.dbc-sweep-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.dbc-sweep-table tbody tr:last-child td {
  border-bottom: none;
}

.dbc-raw-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.dbc-result code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .dbc-sweep-table {
    font-size: 12px;
  }

  .dbc-sweep-table th,
  .dbc-sweep-table td {
    padding: 6px 8px;
  }
}

@media (max-width: 640px) {
  .jf-page {
    padding: 32px 16px 48px 16px;
  }

  .jf-title {
    font-size: 25px;
  }

  .dbc-field-row {
    grid-template-columns: 1fr;
  }

  .replay-scenario-detail,
  .dbc-result {
    padding: 16px;
  }
}

/* ==========================================
   DEVELOPER ONBOARDING 5-STEP JOURNEY (UX-003)
   ========================================== */
.onboarding-steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.onboarding-step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-step-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.06);
}

.onboarding-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.onboarding-step-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-light, #f3e8ff);
  color: var(--accent-primary, #7c3aed);
}

.onboarding-step-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.onboarding-step-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.code-snippet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 12px 0;
  gap: 16px;
}

.code-snippet-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  color: #38bdf8;
  white-space: nowrap;
  overflow-x: auto;
}

.copy-snippet-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.onboarding-step-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 6px 0 0 0;
}

.onboarding-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.mental-model-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0;
  overflow-x: auto;
}

.mental-model-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  white-space: nowrap;
}

.mm-node {
  padding: 4px 10px;
  background: #1e293b;
  color: #94a3b8;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.mm-node.highlight {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
}

.mm-node.status {
  background: #164e63;
  color: #38bdf8;
  font-weight: 600;
}

.mm-arrow {
  color: #64748b;
  font-weight: bold;
}

.onboarding-points-list {
  margin: 10px 0 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.onboarding-points-list li {
  margin-bottom: 6px;
}

/* ==========================================
   REPLAY LAB EMPTY STATE (UX-003)
   ========================================== */
.replay-empty-state {
  margin: 24px 0;
}

.replay-empty-card {
  background: #ffffff;
  border: 1px dashed var(--border-medium, #cbd5e1);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.replay-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card-subtle, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.replay-empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.replay-empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
}

.replay-run-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
