.page-pricing .hero-sub { max-width: 680px; }
.plan-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .04);
}
.plan-card h3 { font-size: 1.125rem; margin-bottom: 20px; color: var(--gray-900); }
.plan-card h3 .plan-cap { display: block; min-height: 4.5em; margin-top: 4px; font-size: .875rem; line-height: 1.5; font-weight: 500; color: var(--gray-600); }
/* Plan comparison table (HeyCatch audit D4.2, 2026-10-21). Scrolls inside
   its own box on phones so the page itself never scrolls sideways. */
.plan-compare-wrap { max-width: 100%; overflow-x: auto; margin: 32px 0 8px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; }
.plan-compare-wrap:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.plan-compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.plan-compare caption { text-align: left; padding: 16px 18px 4px; font-weight: 700; font-size: 1.0625rem; color: var(--gray-900); }
.plan-compare th, .plan-compare td { padding: 12px 18px; border-bottom: 1px solid var(--gray-100); text-align: left; vertical-align: top; }
.plan-compare thead th { color: var(--gray-900); font-weight: 700; border-bottom: 2px solid var(--gray-200); }
.plan-compare tbody th { color: var(--gray-700); font-weight: 600; max-width: 260px; }
.plan-compare tbody tr:last-child th, .plan-compare tbody tr:last-child td { border-bottom: 0; }
.plan-price { display: flex; align-items: baseline; gap: 8px; color: var(--gray-500); }
.plan-price strong { font-size: 2.7rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.2; color: var(--gray-900); }
.plan-price > span { font-size: .9rem; }
.plan-billing { color: var(--gray-500); font-size: .8rem; margin-top: 5px; }
.plan-annual { margin: 20px 0; padding: 14px 0; border-block: 1px solid var(--gray-200); color: var(--gray-700); font-size: .85rem; line-height: 1.7; }
.plan-annual span { color: var(--gray-500); }
.plan-limits { display: grid; gap: 14px; margin-bottom: 28px; }
.plan-limits div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-limits dt { font-size: .8rem; color: var(--gray-500); }
.plan-limits dd { font-size: .9rem; font-weight: 700; color: var(--gray-900); text-align: right; }
.plan-card .btn { margin-top: auto; font-size: .9rem; padding-inline: 12px; }
.pricing-note { max-width: 780px; margin: 28px auto 0; text-align: center; color: var(--gray-500); font-size: .9rem; line-height: 1.7; }
.pricing-inclusions { background: var(--gray-50); }
.pricing-details-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.pricing-explainer { background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; padding: 32px; }
.page-pricing .pricing-explainer h2 { font-size: 1.5rem; }
.page-pricing .check-list { list-style: none; padding: 0; }
.page-pricing .check-list li { position: relative; padding-left: 28px; }
.page-pricing .check-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-primary-600); }
.addon-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.addon-options--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.addon-card { padding: 28px; border: 1px solid var(--gray-200); border-radius: 16px; }
.addon-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--gray-900); }
.addon-card p { font-size: .9rem; line-height: 1.7; color: var(--gray-500); }
.addon-card .addon-price { margin-top: 24px; color: var(--gray-700); }
.addon-price strong { font-size: 1.8rem; color: var(--gray-900); }
.page-pricing .cta-content { margin-inline: auto; max-width: 740px; text-align: center; }
.page-pricing .cta-content .hero-actions { justify-content: center; }
@media (max-width: 1120px) {
  .plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; }
  .addon-options--four { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; margin-inline: auto; }
}
@media (max-width: 800px) {
  .pricing-details-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .addon-options { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin-inline: auto; }
}
@media (max-width: 540px) {
  .plan-options { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .plan-card, .pricing-explainer { padding: 24px; }
  .plan-price strong { font-size: 2.5rem; }
}

/* On a phone the four plan columns stack: each row becomes a block headed by
   what it compares, and each value carries its plan name, so nothing has to
   scroll sideways (HeyCatch audit D2.5, 2026-11-02). */
@media (max-width: 640px) {
  .plan-compare-wrap { overflow-x: visible; }
  .plan-compare { min-width: 0; }
  .plan-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .plan-compare tbody, .plan-compare tr, .plan-compare th, .plan-compare td { display: block; }
  .plan-compare tbody tr { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
  .plan-compare tbody tr:last-child { border-bottom: 0; }
  .plan-compare tbody th { max-width: none; padding: 0 0 6px; border-bottom: 0; color: var(--gray-900); }
  .plan-compare tbody td { display: grid; grid-template-columns: 6.5rem 1fr; gap: 8px; padding: 4px 0; border-bottom: 0; }
  .plan-compare tbody td::before { content: attr(data-plan); font-weight: 600; color: var(--gray-700); }
}
