/* Pricing page */
.pr-page { max-width: 1140px; margin: 0 auto; padding: 32px 20px 80px; }
.pr-header { text-align: center; margin-bottom: 40px; }
.pr-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--tx-0); margin-bottom: 8px; }
.pr-subtitle { font-size: 15px; color: var(--tx-2); margin-bottom: 8px; }
.pr-disclaimer { font-size: 11px; color: var(--tx-3); }

.pr-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width:960px) {
  .pr-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:720px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-cta { min-height: 44px; }   /* WCAG 2.5.5 phone touch target */
}

.pr-card {
  background: var(--bg-card,#fff);
  border: 1px solid var(--border-default,#e2e8f0);
  border-radius: 14px; padding: 24px 20px;
  position: relative;
  display: flex; flex-direction: column;
}
.pr-card--featured { border-color: #144bb7; box-shadow: 0 0 0 2px rgba(20, 75, 183,.13); }
.pr-card--current { border-color: var(--up,#16a34a); }
.pr-card--enterprise { border-style: dashed; background: var(--bg-2,#f8fafc); }
.pr-enterprise-tagline { font-size: 12px; color: var(--tx-2); margin: -8px 0 12px; }
.pr-badge-discount {
  display: inline-block;
  background: var(--warn-light); color: var(--warn);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-sm);
  margin-bottom: 6px;
}
.pr-price-original { font-size: 14px; color: var(--tx-3); margin-bottom: 2px; }
.pr-price-original del { text-decoration: line-through; }
.pr-badge-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 10px; font-weight: 700;
  padding: 3px 12px; border-radius: var(--r-full); white-space: nowrap;
}
.pr-card-header { margin-bottom: 16px; }
.pr-plan-name { font-size: 18px; font-weight: 800; color: var(--tx-0); margin-bottom: 6px; }
.pr-price { font-family: var(--font-mono); font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--tx-0); }
.pr-price-period { font-size: 13px; font-weight: 400; color: var(--tx-2); }
.pr-current-badge { display: inline-block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; font-weight: 700; color: var(--up,#16a34a); background: var(--up-light); border: 1px solid currentColor; border-radius: var(--r-sm); padding: 2px 7px; margin-top: 4px; }

.pr-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.pr-feat { font-size: 13px; padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.pr-feat-check { color: var(--up,#16a34a); font-weight: 700; flex-shrink: 0; }
.pr-feat-lock { color: var(--tx-3); flex-shrink: 0; }
.pr-feat--locked { color: var(--tx-3); }
.pr-feat--earn { color: var(--warn,#b45309); }
.pr-feat-earn-icon { font-size: 13px; line-height: 1; }

.pr-cta { display: block; text-align: center; padding: 10px 0; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; width: 100%; box-sizing: border-box; }
.pr-cta--primary { background: #144bb7; color: #fff; }
.pr-cta--primary:hover { background: #0035a0; }
.pr-cta--secondary { background: var(--bg-2,#f5f8ff); color: var(--tx-0); border: 1px solid var(--border-default,#e2e8f0); text-decoration: none; }
.pr-cta--disabled { background: var(--bg-2,#f5f8ff); color: var(--tx-3); cursor: default; }

.pr-compare { margin: 48px 0 8px; }
.pr-compare-title { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--tx-0); text-align: center; margin-bottom: 20px; }
.pr-compare-scroll { overflow-x: auto; border: 1px solid var(--border-default,#e2e8f0); border-radius: 12px; }
.pr-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.pr-compare-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--tx-3); text-align: center; padding: 12px 10px; border-bottom: 1px solid var(--border-default,#e2e8f0); background: var(--bg-2,#f5f8ff); }
.pr-compare-th-feat { text-align: left !important; }
.pr-compare-cat-row td { background: var(--bg-2,#f5f8ff); font-weight: 700; font-size: 12px; padding: 10px 12px; color: var(--tx-1); }
.pr-compare-feat-name { padding: 10px 12px; color: var(--tx-1); }
.pr-compare-cell { text-align: center; padding: 10px 8px; }
.pr-compare-cell--yes { color: var(--up,#16a34a); font-weight: 700; }
.pr-compare-cell--no { color: var(--tx-3); }
.pr-compare-cell--custom { color: var(--blue); font-weight: 600; font-size: 12px; }
.pr-compare-table tr:not(.pr-compare-cat-row) { border-bottom: 1px solid var(--border-default,#e2e8f0); }
@media (max-width: 640px) {
  /* Fit all three plan columns on a phone instead of hiding Pro/Max behind a scroll */
  .pr-compare-table { min-width: 0; font-size: 12px; }
  .pr-compare-table th { padding: 10px 6px; font-size: 10px; }
  .pr-compare-cat-row td { padding: 8px; }
  .pr-compare-feat-name { padding: 8px; word-break: break-word; }
  .pr-compare-cell { padding: 8px 4px; }
  .pr-compare-cell--custom { font-size: 11px; }
}

.pr-faq { text-align: center; margin: 32px 0 16px; }
.pr-faq-note { font-size: 13px; color: var(--tx-2); }
.pr-legal { text-align: center; font-size: 11px; color: var(--tx-3); margin-top: 8px; }
.pr-legal a { color: var(--blue); }

/* Billing page — moved to billing.css */
@media (max-width: 480px) { .pr-page { padding: 20px 16px 60px; } .pr-title { font-size: 22px; } }
