/* ==========================================================================
   Plan comparison
   --------------------------------------------------------------------------
   Loaded only by this page, so nothing here can affect the rest of the site.

   Two self-contained cards. Each says everything about one plan, so the
   page reads the same whether the cards sit side by side or stack — there
   is no header row to lose and nothing to scroll sideways.
   ========================================================================== */

.plans-wrap { max-width: 980px; margin-inline: auto; }

.plans-head { text-align: center; margin-bottom: 1.9rem; }
.plans-head h1 { margin: 0 0 .5rem; font-size: 1.9rem; font-weight: 800; }
.plans-head p { margin: 0 auto; max-width: 52ch; color: var(--muted); line-height: 1.6; }

/* ---------- The cards ---------- */

.plan-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.plan-card {
  min-width: 0;                 /* lets a card shrink inside the grid */
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.plan-card-head { margin-bottom: 1.2rem; }
.plan-card-head h2 { margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 800; }
.plan-tagline { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--muted); }

/* ---------- The figures from Admin → Plans ---------- */

.plan-figures {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.4rem;
  padding: .9rem 1rem;
  background: var(--surface-2);
  border-radius: 11px;
}

.plan-figure {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .9rem;
}

.plan-figure dt { flex: 0 0 auto; font-size: .82rem; color: var(--muted); }
.plan-figure dd {
  margin: 0;
  min-width: 0;
  font-size: .9rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;      /* a long value wraps rather than overflows */
}

/* ---------- The feature lists ---------- */

.plan-group {
  margin: 1.3rem 0 .55rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-list { margin: 0; padding: 0; list-style: none; }

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .38rem 0;
  font-size: .86rem;
  line-height: 1.45;
}
.plan-item.is-off { color: var(--muted); }

.plan-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: .1rem;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
}
.plan-yes { background: rgb(34 197 94 / 14%); color: #16a34a; }
.plan-no  { background: var(--surface-2); color: var(--muted); }

.plan-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.plan-value {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: .5rem;
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
}

.plans-note {
  margin-top: 1.7rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

/* ---------- Narrow screens ---------- */

/*
 * One column below 720px.
 *
 * Two cards side by side on a phone leaves each about 160px wide, which
 * wraps every label onto three lines. Stacked, each card has the full
 * width and reads exactly as it does on a desktop.
 */
@media (max-width: 720px) {
  .plan-cards { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .plans-head h1 { font-size: 1.45rem; }
  .plans-head { margin-bottom: 1.4rem; }
}

@media (max-width: 420px) {
  .plan-card { padding: 1.35rem 1.05rem 1.2rem; }
  .plan-figures { padding: .8rem .85rem; }
  .plan-figure { gap: .6rem; }
  .plan-figure dt { font-size: .78rem; }
  .plan-figure dd { font-size: .85rem; }
  .plan-item { font-size: .83rem; }
}