/* ==========================================================================
   NEXAFLOW — COMPONENTS
   ========================================================================== */

/* ---------- Generic card ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-normal);
}

.card:hover,
.card:focus-within {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-glow);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.card__title {
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: var(--line-tight);
  margin-bottom: var(--space-2);
}

.card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--line-normal);
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
  max-width: 480px;
  margin: 0 auto;
}

.pricing__card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pricing__card--featured {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
  z-index: 2;
}

.pricing__card--featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing__name {
  font-size: var(--fs-h4);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.pricing__price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: var(--line-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.pricing__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 0.35rem;
}

.pricing__features {
  margin: 0 0 var(--space-4);
  flex: 1;
}

.pricing__features li {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1-5);
}

.pricing__features li svg {
  width: 16px;
  height: 16px;
  fill: var(--color-success);
  flex-shrink: 0;
}

/* "Not included" item: muted circle instead of the green check. */
.pricing__features li.disallowed {
  color: var(--color-text-muted);
}

.pricing__features li.disallowed svg {
  fill: var(--color-text-muted);
  opacity: 0.5;
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-surface));
  border: 1px solid var(--color-border);
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15), transparent 50%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--container-padding);
  color: #fff;
}

/* Flex rows ignore text-align, so center the buttons explicitly. */
.cta__content .hero__actions {
  justify-content: center;
}

.cta__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: var(--line-tight);
  margin-bottom: var(--space-2);
}

.cta__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
