/**
 * b2b-demo.css — B2B Demo Kit: Evidence, Results, Value
 *
 * Components: ProvenanceChain, VerificationBadge, FreshnessIndicator,
 *             ApiPreview, BreakdownBar, CostCompare, RoiTimeline,
 *             BeforeAfterGrid, DemoSection
 *
 * Uses existing --ewm-* tokens from shared-base.css.
 * No images — data visualization IS the design material.
 *
 * Ref: shared-base.css tokens:
 *   --accent (#4338CA), --success (#065F46), --warning (#B45309),
 *   --danger (#B91C1C), --font-display, --font-body, --font-mono,
 *   --r-md, --r-lg, --r-xl, --space-*, --shadow-*, --transition-fast,
 *   --border, --border-md, --text, --text-2, --muted, --subtle,
 *   --bg, --bg-2, --bg-3, --bg-ink
 */

/* ─────────────────────────────────────────────
   B2B SECTION LAYOUT
───────────────────────────────────────────── */

.b2b-section {
  padding: clamp(3rem, 8vw, 6rem) var(--page-gutter);
  border-bottom: 1px solid var(--border);
}

.b2b-section:last-of-type {
  border-bottom: none;
}

.b2b-section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.b2b-section__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.b2b-section__label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.b2b-section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.b2b-section__subheading {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 40px;
}

/* ─────────────────────────────────────────────
   PROVENANCE CHAIN
   Data flows from official source → KV → API
───────────────────────────────────────────── */

.provenance-chain {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.provenance-chain__node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: var(--text-2);
  font-family: var(--font-mono);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.provenance-chain__node:first-child {
  background: rgba(67, 56, 202, 0.06);
  border-color: rgba(67, 56, 202, 0.25);
  color: var(--accent);
}

.provenance-chain__node:last-child {
  background: rgba(6, 95, 70, 0.06);
  border-color: rgba(6, 95, 70, 0.25);
  color: var(--forest);
  font-weight: var(--fw-semibold);
}

.provenance-chain__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
  flex-shrink: 0;
  animation: pulse-dot 3s ease-in-out infinite;
}

.provenance-chain__node:first-child .provenance-chain__dot {
  background: var(--accent);
  animation: pulse-dot-indigo 3s ease-in-out infinite;
}

.provenance-chain__node:last-child .provenance-chain__dot {
  background: var(--success);
  animation: pulse-dot-green 3s ease-in-out infinite;
}

.provenance-chain__connector {
  color: var(--subtle);
  font-size: 0.75rem;
  padding: 0 4px;
  flex-shrink: 0;
  align-self: center;
}

/* Provenance chain full layout */
.provenance-chain-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   FRESHNESS INDICATOR
   Real-time trust signal
───────────────────────────────────────────── */

.freshness-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.freshness-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  position: relative;
}

.freshness-indicator__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(6, 95, 70, 0.2);
  /* Static glow — no animation. Data freshness is shown via text, not motion. */
}

.freshness-indicator--stale .freshness-indicator__dot {
  background: var(--amber-bright);
}

.freshness-indicator--stale .freshness-indicator__dot::after {
  background: rgba(217, 119, 6, 0.2);
}

/* ─────────────────────────────────────────────
   VERIFICATION BADGE GRID
   Multiple official sources verified
───────────────────────────────────────────── */

.verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.verification-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.verification-badge:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-sm);
}

.verification-badge__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 95, 70, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  color: var(--success);
}

.verification-badge__source {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  line-height: 1.4;
}

.verification-badge__source strong {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--text);
  font-family: var(--font-body);
}

.verification-badge__verified {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--success);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   API PREVIEW
   Live JSON response display
───────────────────────────────────────────── */

.api-preview {
  background: #0d1117;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.api-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-preview__dots {
  display: flex;
  gap: 6px;
}

.api-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.api-preview__dot--r { background: #ff5f56; }
.api-preview__dot--y { background: #ffbd2e; }
.api-preview__dot--g { background: #27c93f; }

.api-preview__endpoint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.api-preview__method {
  color: #7ee787;
  font-weight: var(--fw-semibold);
}

.api-preview__url {
  color: rgba(255, 255, 255, 0.5);
}

.api-preview__copy {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.api-preview__copy:hover {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.25);
}

.api-preview__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #e6edf3;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
}

/* JSON syntax highlighting */
.json-key     { color: #79c0ff; }
.json-string  { color: #a5d6ff; }
.json-number  { color: #7ee787; }
.json-boolean { color: #ff7b72; }
.json-null    { color: #8b949e; }
.json-punct   { color: #8b949e; }
.json-emph    { color: #7ee787; font-size: 1.15em; font-weight: var(--fw-bold); }
.json-hint    { color: rgba(255, 255, 255, 0.25); font-style: italic; }
.json-verified {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.08);
  border-radius: 4px;
  padding: 1px 4px;
}

/* ─────────────────────────────────────────────
   BREAKDOWN BAR
   Stacked horizontal bars — no chart library
───────────────────────────────────────────── */

.breakdown-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.breakdown-bar {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  align-items: center;
  gap: 12px;
}

.breakdown-bar__label {
  font-size: 0.8rem;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
}

.breakdown-bar__track {
  height: 32px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
}

.breakdown-bar__fill {
  height: 100%;
  border-radius: var(--r-sm);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.breakdown-bar__fill--federal  { background: #6366f1; }
.breakdown-bar__fill--fica     { background: var(--amber-bright); }
.breakdown-bar__fill--state    { background: var(--purple); }
.breakdown-bar__fill--net      { background: var(--success); }
.breakdown-bar__fill--gross    { background: var(--bg-3); }

.breakdown-bar__value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.breakdown-bar__value--small {
  font-size: 0.72rem;
  font-weight: var(--fw-regular);
  color: var(--text-2);
}

/* ─────────────────────────────────────────────
   BEFORE / AFTER GRID
   Side-by-side comparison
───────────────────────────────────────────── */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 700px;
}

.compare-grid--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.compare-col {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.compare-col:last-child {
  border-right: none;
}

.compare-col__label {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.compare-col--with {
  background: rgba(6, 95, 70, 0.03);
  border-left: 3px solid var(--success);
}

.compare-col--with .compare-col__label {
  color: var(--success);
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row__label {
  color: var(--text-2);
}

.compare-row__value {
  font-weight: var(--fw-semibold);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.compare-row__value--good {
  color: var(--success);
}

.compare-row__value--bad {
  color: var(--danger);
  text-decoration: line-through;
  opacity: 0.6;
}

.compare-row__value--neutral {
  color: var(--text-2);
}

.compare-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
}

.compare-check::before {
  content: '✓';
  font-size: 0.9rem;
}

.compare-cross {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.compare-cross::before {
  content: '✗';
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   COST COMPARE CARDS
   Side-by-side build vs embed
───────────────────────────────────────────── */

.cost-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
}

.cost-card {
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  background: var(--bg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.cost-card--embed {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.03), rgba(6, 95, 70, 0.01));
}

.cost-card--embed::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -1px;
  right: 20px;
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  color: white;
  background: var(--success);
  padding: 3px 10px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.cost-card--embed::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--success), rgba(6, 95, 70, 0.3));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.cost-card__title {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.cost-card--embed .cost-card__title {
  color: var(--success);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.cost-row:last-of-type {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--border);
}

.cost-row--total .cost-row__label {
  font-weight: var(--fw-bold);
  color: var(--text);
  font-size: 0.95rem;
}

.cost-row__label {
  color: var(--text-2);
}

.cost-row__value {
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cost-row__value--big {
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: -0.02em;
}

.cost-row__value--savings {
  color: var(--success);
  font-weight: var(--fw-bold);
}

.cost-row--savings {
  background: rgba(6, 95, 70, 0.05);
  border-radius: var(--r-md);
  padding: 12px 10px;
  margin-top: 8px;
  border: 1px solid rgba(6, 95, 70, 0.15);
}

/* ─────────────────────────────────────────────
   ROI TIMELINE
   Vertical timeline comparison
───────────────────────────────────────────── */

.roi-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  position: relative;
}

.roi-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--success));
  transform: translateX(-50%);
  border-radius: 2px;
}

.roi-timeline__col {
  padding: 0 16px;
}

.roi-timeline__header {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  text-align: center;
}

.roi-timeline__item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
}

.roi-timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--subtle);
}

.roi-timeline__item--milestone::before {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  width: 10px;
  height: 10px;
  top: 5px;
}

.roi-timeline__item--milestone-embed::before {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.roi-timeline__week {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.roi-timeline__item--milestone-embed .roi-timeline__week {
  color: var(--success);
}

.roi-timeline__text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

.roi-timeline__item--milestone .roi-timeline__text {
  color: var(--text);
  font-weight: var(--fw-medium);
}

/* ─────────────────────────────────────────────
   CALCULATOR EMBED PREVIEW
   Inline calculator demo
───────────────────────────────────────────── */

.embed-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 700px;
}

.embed-demo__browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.embed-demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.embed-demo__dot--r { background: #ff5f56; }
.embed-demo__dot--y { background: #ffbd2e; }
.embed-demo__dot--g { background: #27c93f; }

.embed-demo__url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 12px;
  flex: 1;
  text-align: center;
}

.embed-demo__body {
  padding: 24px;
}

/* ─────────────────────────────────────────────
   STAT CALLOUT
   Single big number + context
───────────────────────────────────────────── */

.stat-callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  max-width: 560px;
}

.stat-callout__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(67, 56, 202, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-callout__content {
  flex: 1;
}

.stat-callout__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-callout__number--green { color: var(--success); }
.stat-callout__number--accent { color: var(--accent); }

.stat-callout__label {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   METRIC GRID
   Grid of key metrics
───────────────────────────────────────────── */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
}

.metric-card {
  padding: 20px 20px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.metric-card__icon {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.metric-card__value--green { color: var(--success); }
.metric-card__value--accent { color: var(--accent); }
.metric-card__value--amber { color: var(--amber-bright); }

.metric-card__label {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   CTA STRIP
───────────────────────────────────────────── */

.b2b-cta {
  background: var(--bg-ink);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 700px;
}

.b2b-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.b2b-cta__sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  line-height: 1.6;
}

.b2b-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   CTA BUTTONS
───────────────────────────────────────────── */

.btn-b2b-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--success);
  color: white;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-b2b-primary:hover {
  background: #047857;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
  transform: translateY(-1px);
}

.btn-b2b-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-b2b-primary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.3), 0 0 0 5px var(--success);
}

.btn-b2b-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-b2b-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-b2b-secondary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* Light-background secondary button — for use on var(--bg) sections */
.btn-b2b-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  border: 1px solid rgba(67, 56, 202, 0.3);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.btn-b2b-outline:hover {
  border-color: var(--accent);
  background: rgba(67, 56, 202, 0.04);
}

.btn-b2b-outline:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

/* Light variant */
.btn-b2b-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-b2b-light:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   DATA VERSION TAG
───────────────────────────────────────────── */

.data-version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.data-version-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot-green 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   CALCULATION STEPS (expandable)
───────────────────────────────────────────── */

.calc-steps {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  max-width: 500px;
}

.calc-steps__header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 12px;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.calc-steps__header::-webkit-details-marker { display: none; }

.calc-steps__header::before {
  content: '▶';
  font-size: 0.65rem;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.calc-steps[open] > .calc-steps__header::before {
  transform: rotate(90deg);
}

.calc-steps__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.calc-steps__row:last-child {
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
  font-weight: var(--fw-bold);
  color: var(--success);
}

.calc-steps__row-label {
  color: var(--text-2);
}

.calc-steps__row-value {
  font-weight: var(--fw-semibold);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────
   DIVIDER WITH LABEL
───────────────────────────────────────────── */

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes pulse-dot-indigo {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(67, 56, 202, 0.4); }
  50% { opacity: 0.8; transform: scale(0.9); box-shadow: 0 0 0 4px rgba(67, 56, 202, 0); }
}

@keyframes pulse-dot-green {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 95, 70, 0.4); }
  50% { opacity: 0.8; transform: scale(0.9); box-shadow: 0 0 0 4px rgba(6, 95, 70, 0); }
}

@keyframes fade-slide-up {
  /* Kept for potential future use — not applied to sections */
}

/* Section entrance — kept simple. No scroll-reveal staggering. */
.b2b-section {
  /* Removed: fade-slide-up animation was causing template-y scroll effect */
}

.b2b-section:nth-child(2),
.b2b-section:nth-child(3),
.b2b-section:nth-child(4),
.b2b-section:nth-child(5),
.b2b-section:nth-child(6) {
  /* Removed: animation-delay staggering */
}

@media (prefers-reduced-motion: reduce) {
  .provenance-chain__dot,
  .breakdown-bar__fill {
    animation: none !important;
  }

  .breakdown-bar__fill {
    transition: none;
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */

@media (max-width: 640px) {
  .compare-grid,
  .cost-compare,
  .roi-timeline {
    grid-template-columns: 1fr;
  }

  .roi-timeline::before {
    display: none;
  }

  .breakdown-bar {
    grid-template-columns: 90px 1fr 70px;
  }

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

  .b2b-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .b2b-cta__actions .btn-b2b-primary,
  .b2b-cta__actions .btn-b2b-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
