/* Traction — deck-aligned: title + 3-card row + full-width chart */
.traction { background: var(--bg-section-alt-1); border-top: 1px solid var(--line-1); }

.traction__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.traction__copy { max-width: 720px; }
.traction__copy .section-title { margin-bottom: 16px; }
.traction__copy .section-sub { margin-bottom: 0; }

.traction__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.traction__facts li {
  padding: 24px 26px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  justify-content: space-between;
}
.traction__fact-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  color: var(--accent-data);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.traction__fact-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.traction__source {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
}
.traction__source a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--line-3); }

.traction__chart-card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  /* Cap the width so the bar chart doesn't stretch horizontally when the
     section-inner is wide. The chart reads cleaner with a moderate aspect. */
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}
.traction__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.traction__chart-axis { color: var(--text-dim); }
.traction__chart {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 340;
  overflow: visible;
  display: block;
}
.traction__chart rect {
  cursor: crosshair;
}
.traction__chart-axis-x {
  /* Superseded by SVG-rendered month labels drawn directly in the chart,
     but kept in DOM for accessibility / fallback. */
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hover tooltip for bars */
.trac-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  padding: 8px 12px;
  background: rgba(12, 12, 24, 0.96);
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.trac-tooltip__date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.trac-tooltip__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .traction__facts { grid-template-columns: 1fr; }
}
