/* ---------- page ---------- */
.pr-page {
  /* width, not just max-width: with margin auto the box would otherwise size to its
     widest child (the comparison table) and push the whole page sideways on a phone */
  width: 100%; box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px 20px 64px;
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- hero ---------- */
.pr-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pr-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-5);
}
.pr-eyebrow span { color: var(--accent); }
.pr-title {
  margin: 0;
  font-size: 40px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pr-lede {
  margin: 0; max-width: 620px;
  font-size: 13.5px; line-height: 1.7;
  color: var(--text-4);
}

/* ---------- period toggle ---------- */
.pr-toggle {
  display: inline-flex;
  padding: 4px;
  margin-top: 6px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pr-toggle-opt {
  appearance: none; background: none; border: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  font-family: inherit;
  color: var(--text-4);
  cursor: pointer;
}
.pr-toggle-opt:hover { color: var(--text-2); }
.pr-toggle-opt.active { background: var(--accent); color: #fff; }
.pr-toggle-save {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-text);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pr-toggle-opt.active .pr-toggle-save { background: rgba(255,255,255,0.22); color: #fff; }

/* ---------- cards ---------- */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pr-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px 24px;
}
.pr-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-6px);
}
.pr-badge {
  position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.pr-card-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.pr-card-desc { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-4); min-height: 34px; }

.pr-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.pr-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 34px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pr-price-contact { font-size: 22px; font-weight: 700; color: var(--text); }
.pr-per { font-size: 12px; color: var(--text-5); }
.pr-price-was {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-5);
  margin-top: -4px;
}
.pr-off {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-text);
}
.pr-price-note { font-size: 11.5px; color: var(--text-5); margin-top: -2px; }

.pr-card-cta { margin: 6px 0 4px; }
.pr-card-cta .pr-btn { width: 100%; justify-content: center; }

.pr-features {
  list-style: none;
  margin: 0; padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.pr-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12px; line-height: 1.5;
  color: var(--text-3);
}
.pr-features li.muted { color: var(--text-5); }
.pr-yes { color: var(--ok-text); margin-top: 2px; flex-shrink: 0; }
.pr-no { color: var(--text-5); margin-top: 2px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.pr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--line-input);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12.5px; font-weight: 600;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
}
.pr-btn:hover { border-color: var(--accent); color: var(--text); }
.pr-btn:disabled { opacity: 0.5; cursor: default; }
.pr-btn:disabled:hover { border-color: var(--line-input); color: var(--text-2); }
.pr-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pr-btn-primary:hover { filter: brightness(1.08); color: #fff; }

/* ---------- enterprise band ---------- */
.pr-band {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-22), var(--purple-bg) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}
.pr-band-main { flex: 1; min-width: 240px; }
.pr-band-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-tint);
  margin-bottom: 6px;
}
.pr-band-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--text); }
.pr-band-desc { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); max-width: 480px; }
.pr-band-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.pr-band-stat {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 700;
  color: var(--text);
}
.pr-band-label { font-size: 11px; color: var(--text-4); }

/* ---------- contact strip ---------- */
.pr-contact {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}
.pr-contact strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.pr-contact p { margin: 0; font-size: 12.5px; color: var(--text-4); }

/* ---------- comparison ---------- */
.pr-compare { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.pr-compare-title { margin: 0; font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.pr-table-wrap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-bg);
}
.pr-table { width: 100%; border-collapse: collapse; text-align: left; }
.pr-table thead th {
  padding: 14px 16px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.pr-th-popular { color: var(--accent); }
.pr-chip {
  display: block;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}
.pr-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--text-3);
  vertical-align: top;
}
.pr-table tbody tr:last-child td { border-bottom: none; }
.pr-table tbody tr:hover td { background: var(--bg-sunken); }
.pr-rowhead { min-width: 230px; }
.pr-rowhead strong { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 3px; }
.pr-rowhead span { font-size: 11px; color: var(--text-5); line-height: 1.5; }

/* ---------- modals ---------- */
.modalBackdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 500;
}
.pr-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 501;
  overflow-y: auto;
  padding: 6vh 16px;
}
.pr-modal-card {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
}
.pr-modal-wide { max-width: 640px; }
.pr-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.pr-modal-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.pr-modal-close {
  appearance: none; background: none; border: none;
  color: var(--text-5); font-size: 16px; cursor: pointer;
  padding: 2px 6px;
}
.pr-modal-close:hover { color: var(--text); }
.pr-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pr-modal-body h4 { margin: 0; font-size: 14px; color: var(--text); }
.pr-modal-body p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-4); }
.pr-modal-note { font-size: 12.5px; color: var(--text-4); line-height: 1.6; }
.pr-modal-note a { color: var(--accent); }
.pr-modal-price {
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}
.pr-modal-price .prod_price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px; font-weight: 700;
  color: var(--text);
}
.pr-modal-price .prod_billed_text { font-size: 12px; color: var(--text-4); margin-top: 2px; }
.pr-modal-tax { font-size: 11px; color: var(--text-5); margin-top: 6px; }
.discount_ribbon {
  display: none;
  position: absolute; top: 10px; right: 10px;
  background: var(--ok-bg); color: var(--ok-text);
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.pr-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal_body_success { padding: 20px; }
.modal_body_success h4 { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.modal_body_success p { margin: 0; font-size: 12.5px; color: var(--text-4); line-height: 1.6; }

/* ---------- modal form ---------- */
.pr-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pr-field { display: flex; flex-direction: column; gap: 6px; }
.pr-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--text-4);
}
.pr-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-sunken);
  border: 1px solid var(--line-input);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13px; font-family: inherit;
  color: var(--text);
}
.pr-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-22); }
textarea.pr-input { resize: vertical; }

/* ---------- loader ---------- */
.loader {
  display: none;
  position: fixed; inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.6);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 14px;
}
.loader[style*="block"] { display: flex !important; }
.loader_spinner {
  width: 46px; height: 46px;
  border: 3px solid var(--line-input);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pr-spin 0.8s linear infinite;
}
.loader_text { font-size: 13px; color: var(--text-2); }
@keyframes pr-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .pr-title { font-size: 30px; }
  .pr-card.popular { transform: none; }
  .pr-band-stats { gap: 18px; }
}

.pr-sub { font-size: 11px; color: var(--text-5); }

.pr-grid.is-loading .pr-card:not(.pr-skel) { display: none; }

.pr-skel { pointer-events: none; gap: 12px; }
.pr-skel-line {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-sunken) 25%, var(--line-soft) 37%, var(--bg-sunken) 63%);
  background-size: 400% 100%;
  animation: pr-shimmer 1.4s ease infinite;
}
.pr-skel-name { height: 20px; width: 45%; }
.pr-skel-desc { height: 12px; width: 80%; }
.pr-skel-price { height: 34px; width: 55%; margin-top: 6px; }
.pr-skel-note { height: 11px; width: 38%; }
.pr-skel-cta { height: 38px; width: 100%; margin: 6px 0 4px; border-radius: 8px; }
.pr-skel-features {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  flex: 1;
}
.pr-skel-features .pr-skel-line { height: 12px; }
.pr-skel-features .pr-skel-line:nth-child(2n) { width: 86%; }
.pr-skel-features .pr-skel-line:nth-child(3n) { width: 72%; }

@keyframes pr-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-skel-line { animation: none; }
}

.pr-priceblock { min-height: 92px; display: flex; flex-direction: column; gap: 2px; }

.pr-fade-in { animation: pr-text-in 0.22s ease both; }
@keyframes pr-text-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-fade-in { animation: none; }
}

/* ---- add-ons (purchase modal) ---- */
.pr-addons { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border, rgba(127,127,127,.25)); padding-top: 12px; }
.pr-addons-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); }
.pr-addon { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; cursor: pointer; }
.pr-addon-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-addon-main strong { font-size: 13px; color: var(--text); }
.pr-addon-main span { font-size: 12px; color: var(--text-4); }
.pr-addon-price { font-size: 12px; color: var(--text-3, var(--text-4)); white-space: nowrap; }
.pr-addon-qty { min-width: 56px; }
.pr-addon-total { font-size: 12px; color: var(--accent); margin-top: 4px; }
.pr-scope { font-size: 12px; color: var(--text-4); }

/* Four across on a wide screen; narrower widths step down. */
@media (max-width: 1180px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- checkout preview ---- */
.pr-preview-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; border: 1px dashed #c9962b; color: var(--text); font-size: 12.5px; }
.pr-preview-banner a { color: var(--accent); margin-left: 6px; }
.pr-fake { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); padding: 16px; }
.pr-fake-card { width: 100%; max-width: 720px; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pr-fake-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--text); }
.pr-fake-tag { flex: 1; font-size: 11px; font-weight: 600; color: #c9962b; }
.pr-fake-x { background: none; border: 0; color: var(--text-4); cursor: pointer; }
.pr-fake-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 16px; }
.pr-fake-col h4 { margin: 0 0 10px; font-size: 13px; color: var(--text); }
.pr-fake-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.pr-fake-sub { color: var(--text-4); }
.pr-fake-total { font-weight: 700; border-bottom: 0; }
.pr-fake-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-4); }
.pr-fake-f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; font-size: 11.5px; color: var(--text-4); }
.pr-fake-f input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-sunken); color: var(--text); font-size: 12.5px; }
.pr-fake-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-fake-pay { width: 100%; justify-content: center; }
.pr-fake-wait { grid-column: 1 / -1; text-align: center; padding: 30px 0; color: var(--text-4); font-size: 13px; }
.pr-fake-done { grid-column: 1 / -1; }
.pr-fake-ok { font-size: 15px; font-weight: 700; color: #2fa36b; }
.pr-fake-table { width: 100%; margin: 12px 0 16px; border-collapse: collapse; font-size: 12.5px; }
.pr-fake-table th { text-align: left; width: 38%; padding: 7px 0; color: var(--text-4); font-weight: 600; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-fake-table td { padding: 7px 0; color: var(--text); border-bottom: 1px solid var(--line); }
.pr-fake-dim { color: var(--text-4); font-size: 11.5px; }
@media (max-width: 640px) { .pr-fake-body { grid-template-columns: 1fr; } }

/* One-time discount from an access-code reminder, shown above the billing toggle. */
.pr-offer {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 8px 14px;
    border: 1px solid var(--accent-60); border-radius: 12px; background: var(--accent-10);
    font-size: 13.5px; color: var(--text); max-width: 100%;
}
.pr-offer i { color: var(--accent); }
