/*
 * Planes y precios. Public, like the guide, and reached from pretor.ar by somebody who has not
 * signed up yet — so it stands on its own with no nav above it and has to look like the same
 * product as the marketing page they just came from.
 *
 * It carried no stylesheet at all until now, which is why it read as a wall: raw markup with the
 * browser's own margins. The classes were already here and correct; only the rules were missing.
 */

.plans {
  max-inline-size: 62rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.plans__header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

.plans__header h1 {
  font-family: var(--serif, serif);
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

.plans__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted, inherit);
  max-inline-size: 44rem;
  margin-inline: auto;
}

/* Scarcity, not a user count. Reads as an offer rather than as a warning, so it is gold and
   not the alert red the rest of the app uses for things that went wrong. */
.plans__promo {
  margin: 0;
  padding: 0.9rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--gold, #c8a35b) 45%, transparent);
  border-radius: var(--radius, 12px);
  background: color-mix(in srgb, var(--gold, #c8a35b) 9%, transparent);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}

.plans__unavailable {
  padding: 1.25rem;
  border: 1px solid var(--line, #ddd6c6);
  border-radius: var(--radius, 12px);
  line-height: 1.65;
}

.plans__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 64rem) {
  .plans__list { grid-template-columns: repeat(4, 1fr); }
}

/* A column, so the button sits on the same baseline in every card however long the summary
   above it runs. Integral's sentence is the longest and would otherwise drag its button down
   alone. */
.plans__plan {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line, #ddd6c6);
  border-radius: var(--radius, 12px);
  background: var(--stone-card, #faf7f0);
}

.plans__name {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.plans__price {
  margin: 0;
  font-family: var(--mono, monospace);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--oxblood, #6b2737);
}

.plans__per {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--muted, inherit);
}

.plans__includes {
  margin: 0 0 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted, inherit);
}

/* button_to renders a form, so the auto margin has to go on the form for it to reach the
   bottom of the card. */
.plans__plan form {
  margin-top: auto;
}

.plans__plan .btn {
  inline-size: 100%;
  justify-content: center;
  text-align: center;
}

.plans__terms {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line, #ddd6c6);
  max-inline-size: 46rem;
}

.plans__terms h2 {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: 1.25rem;
}

.plans__terms p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted, inherit);
}
