/* Cards: a box with a border and a soft shadow.
   Used by the features, the calculator and the pricing plans. */

.card {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.card p {
  color: var(--color-text-muted);
}

/* The colored square behind a feature icon. */
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}

/* The features grid: 1 column on phones, 2 on tablets, 3 on wide screens. */
.feature-grid {
  display: grid;
  gap: var(--space-4);
}

.feature-grid .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* A small lift on hover makes the cards feel alive. */
.feature-grid .card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}
