@import url("./site.css");

.earnings-layout {
  display: grid;
  gap: 1.2rem;
}

.example-card,
.summary-panel {
  padding: 1.25rem;
}

.example-card {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.example-card:hover,
.example-card.active {
  transform: translateY(-2px);
  border-color: rgba(90, 124, 255, 0.22);
  box-shadow: var(--shadow);
}

.example-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(90, 124, 255, 0.09);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.example-metric,
.detail-title {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  letter-spacing: -0.05em;
}

.example-metric {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.detail-title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.detail-copy {
  margin: 0 0 1rem;
  color: var(--muted);
}

.range-bar {
  margin-top: 1rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.range-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 700ms ease;
}
