/* ---- 7. Feature cards ----------------------------------------------------- */

/* Scoped to the features section (PARITY B15): this used to be a bare `.grid`,
   which silently gave EVERY `.grid` element in the app the features grid's
   `repeat(auto-fit, minmax(250px, 1fr))` columns and 1.25rem gap — clobbering
   the Tailwind utilities (`sm:grid-cols-2` etc.) on any ported component that
   composes a grid (page-nav hub, custom stat rows), because unlayered app CSS
   beats the layered utilities. Only the features grid here uses it. */
#features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
}

#features {
  padding-block: 1.5rem 2.5rem;
  counter-reset: features;
}

#features article {
  position: relative;
  counter-increment: features;
  background: var(--ta-surface);
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-r);
  padding: 1.5rem 1.5rem 1.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* A small mono index label — the index is the icon, and it stays quiet. */
#features article::before {
  content: "0" counter(features);
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--ta-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ta-faint);
}

#features article:hover {
  border-color: var(--ta-border-strong);
  box-shadow: var(--ta-shadow-sm);
}

#features article h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

#features article p {
  margin: 0;
  color: var(--ta-muted);
  font-size: 0.95rem;
}

