.builder-overview {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.builder-overview__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  align-self: flex-start;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-medium, 500);
  color: var(--text-secondary);
  text-decoration: none;

  &:hover {
    color: var(--primary-color);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

.builder-overview__hero {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.builder-overview__eyebrow {
  margin: 0;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.builder-overview__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold, 700);
}

.builder-overview__subtitle {
  margin: 0;
  font-size: var(--font-size-lg, 1rem);
  color: rgba(255, 255, 255, 0.9);
}

.builder-overview__readiness {
  margin-top: var(--space-sm);
}

.builder-overview__readiness-bar {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.builder-overview__readiness-fill {
  height: 100%;
  background: #fff;
  transition: width 0.3s ease;
}

.builder-overview__readiness-label {
  margin: var(--space-xs) 0 0;
  font-weight: var(--font-weight-semibold, 600);
}

.builder-overview__readiness-hint {
  margin: 2px 0 0;
  font-size: var(--font-size-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.8);
}

.builder-overview__next-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);

  .pi {
    font-size: var(--font-size-2xl, 1.25rem);
  }
}

.builder-overview__next-step-label {
  margin: 0;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.builder-overview__next-step-link {
  color: #fff;
  font-weight: var(--font-weight-semibold, 600);
  font-size: var(--font-size-lg, 1rem);
  text-decoration: underline;
}

.builder-overview__next-step-done {
  margin: 0;
  font-weight: var(--font-weight-semibold, 600);
}

.builder-overview__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);

  h2 {
    margin: 0;
    font-size: var(--font-size-xl, 1.125rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary);
  }
}

.builder-overview__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.builder-overview__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;

  &:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

.builder-overview__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.builder-overview__card-icon {
  font-size: 1.375rem;
  color: var(--primary-color);
}

.builder-overview__card-status {
  font-size: var(--font-size-lg, 1rem);
}

.builder-overview__card-status--complete {
  color: var(--success-color);
}

.builder-overview__card-status--in-progress {
  color: var(--warning-color);
}

.builder-overview__card-status--not-started {
  color: var(--text-light);
}

.builder-overview__card-status--unknown {
  color: var(--text-light);
  opacity: 0.6;
}

.builder-overview__card-title {
  margin: 0;
  font-size: var(--font-size-xl, 1.125rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary);
}

.builder-overview__card-description {
  margin: 0;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary);
  flex: 1 1 auto;
}

.builder-overview__card-cta {
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--primary-color);
}

.builder-overview__checklist {
  list-style: none;
  margin: 0;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm) var(--space-md);
}

.builder-overview__check {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-lg, 1rem);
  color: var(--text-primary);
}

.builder-overview__check--true .pi {
  color: var(--success-color);
}

.builder-overview__check--false .pi {
  color: var(--text-light);
}

.builder-overview__check--unknown .pi,
.builder-overview__check--loading .pi {
  color: var(--text-light);
  opacity: 0.6;
}

.builder-overview__quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.builder-overview__quick-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium, 500);

  &:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-overview__card,
  .builder-overview__readiness-fill {
    transition: none;
  }
}

@media (max-width: 639px) {
  .builder-overview {
    padding: var(--space-md);
  }

  .builder-overview__cards,
  .builder-overview__checklist {
    grid-template-columns: 1fr;
  }
}
