/* Replace 24 apps (replace-apps.html): the 24 apps grouped by the Zigzag feature that replaces them,
   under the title, then Get started with the pricing in short. The rest is the feature pages' layout */

/* The title section ends with the cards, so it keeps a section's padding below them,
   as calls.html does with its recording */
.ra-head.page-head { padding-bottom: var(--section-pad); }

/* The 24 apps: a card for each Zigzag feature, with the apps it replaces */
/* Every card in a row is as tall as the others, and Chat, with the most apps, spans two columns
   so its apps fit in as few lines as the rest: 11 cards fill four rows of three */
.ra-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
  max-width: 62.5rem;
  margin: 4.5rem auto 0; /* as far below the description as calls.html's recording */
  list-style: none;
}

.ra-group-wide { grid-column: span 2; }

.ra-group {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.ra-group-name {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
}

.ra-group-name svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ra-group-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.ra-group-apps li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Get started: the price, then two buttons */
.ra-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.cta .ra-actions .btn { margin-top: 0; }

@media (max-width: 1023px) {
  .ra-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .ra-groups { grid-template-columns: 1fr; grid-auto-rows: auto; margin-top: 2.5rem; }
  .ra-group-wide { grid-column: auto; }
}
