/* Pricing: four plan cards in one tray, then How plans work and Questions */
.guarantee {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-2);
  font-weight: 550;
  line-height: 1.45;
}
.guarantee .ico { flex: none; font-size: 18px; color: var(--accent); stroke-width: 2.2; }

.pricing { padding-top: 36px; }

/* The switch carries the margin, so no gap is left where script is off and the switch is hidden */
.plans-switch { display: flex; justify-content: center; }
.plans-switch .currency-switch { margin-bottom: 20px; }

.plan h3 { font-size: var(--fs-2); font-weight: 600; letter-spacing: -.01em; }
.sites { margin-top: 6px; font-size: 14px; font-weight: 550; line-height: 1.45; letter-spacing: -.005em; }

/* Each card is a row subgrid of the list (name, price, sites, button, list), so every row lines up across the cards beside it */
.plan-tray { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.plan-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tray-pad); }
.plan {
  /* The sides narrow from 32px to 20px with the card, so its content never drops under 204px, 9px wider than the longest row */
  --plan-px: clamp(20px, 50% - 102px, 32px);
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 28px var(--plan-px) 24px;
  border-radius: calc(var(--tray-r) - var(--tray-pad));
  background: var(--surface);
  box-shadow: var(--feat-shadow);
}
.plan .btn { width: 100%; margin-top: 20px; }
.adds { margin-top: 20px; }

/* The note narrows beside the link until it would drop under 26rem, and its second sentence wraps whole */
.plans-foot p { flex: 1 1 26rem; }
.plans-foot-account { display: inline-block; }

.terms { margin-top: 104px; }
.faq { margin-top: 96px; }

/* Two by two from 1100px down, where four cards would narrow their content under 204px */
@media (max-width: 1100px) {
  .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .pricing { padding-top: 56px; }
  .terms, .faq { margin-top: 96px; }
}

/* One card per row below 600px, where two would narrow their content under 204px too */
@media (max-width: 599px) {
  .plan-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .pricing { padding-top: 48px; }
  .plan { --plan-px: 20px; padding-block: 24px 16px; }
  .plans-foot { padding-inline: 0; }
  .terms, .faq { margin-top: 72px; }
}
