/* Pricing: three plans, one price each, the yearly plan in the middle and
   lifted. Loaded by pricing only, so rs.css and its cache stay untouched. */

.pr-plans { align-items: center; gap: 18px; }
.pr-plans .price-card { text-align: center; position: relative; container-type: inline-size; }
.pr-plans .price { font-size: min(56px, 17cqi); margin: 6px 0 2px; white-space: nowrap; }
.pr-plans .price-card--featured .price { font-size: min(72px, 18cqi); }
.pr-plans .price-card--featured { padding-top: clamp(34px, 3.6vw, 52px); padding-bottom: clamp(34px, 3.6vw, 52px); }
.pr-plans .body-copy { margin: 14px auto 0; max-width: 24ch; }
.pr-plans .btn { margin-top: 20px; }

.pr-unit { font-size: 15px; font-weight: 600; margin: 0; }
.price-card .pr-unit { color: var(--mut); }
.price-card--featured .pr-unit { color: var(--on-deep-str); }

.pr-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* On one column the best plan leads. */
@media (max-width: 639px) {
  .pr-plans .price-card--featured { order: -1; margin-bottom: 8px; }
  .pr-plans { gap: 22px; }
}

.pr-plans + .body-copy--fine { margin-top: 26px; }

/* The comparison must show every column without a sideways scroll: on a
   phone the competitors were off screen, which hides the whole point.
   Measured in all 12 languages from 320 to 1440. */
.pr-compare .plan-table { min-width: 0; }
@media (max-width: 900px) {
  .pr-compare .plan-table th, .pr-compare .plan-table td { padding: 12px 8px; font-size: 14px; }
  .pr-compare .plan-table__feature { white-space: normal; }
}
/* On a phone each feature takes its own full-width line and the four apps
   share the whole width under it. */
@media (max-width: 560px) {
  .pr-compare > .wrap { padding-left: 6px; padding-right: 6px; }
  .pr-compare h2 { padding-left: 16px; }
  .pr-compare .card { padding: 12px 6px; }
  .pr-compare .plan-table, .pr-compare .plan-table thead, .pr-compare .plan-table tbody { display: block; }
  .pr-compare .plan-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .pr-compare .plan-table thead td:first-child { display: none; }
  .pr-compare .plan-table th, .pr-compare .plan-table td { border-bottom: none; text-align: center; padding: 4px 2px 12px; font-size: 14px; }
  .pr-compare .plan-table thead th { padding: 10px 2px; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
  .pr-compare .plan-table__feature { grid-column: 1 / -1; text-align: left; padding: 12px 8px 4px; font-size: 13px; }
  .pr-compare .body-copy--fine { padding: 0 10px; }
}

/* On the home page the plans follow a heading: room for the lifted card and its badge. */
.h2--sec + .pr-plans { margin-top: clamp(30px, 3.4vw, 46px); }
