/* ====================================================
   pricing.css — styles for /pricing.html
   Plan cards, the billing toggle and the footer reuse the sh-* classes from self-hosted.css.
   ==================================================== */

.pr-main {
  flex: 1;
  padding: 3rem 1.25rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.pr-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.pr-headline {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.875rem;
  text-wrap: balance;
}

.pr-sub {
  font-size: 1.0625rem;
  opacity: 0.72;
  margin: 0 0 1.5rem;
}

.pr-toggle {
  justify-content: center;
}

/* ---- plan cards ---- */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pr-plans .sh-plan-name {
  opacity: 0.85;
}

.pr-desc {
  font-size: 0.8125rem;
  opacity: 0.7;
  line-height: 1.45;
  margin: 0 0 1rem;
  min-height: 4.4em;
}

.pr-from {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
  margin-right: 0.25rem;
}

.pr-plan-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* ---- sections ---- */
.pr-section {
  margin-top: 3.5rem;
}

.pr-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.pr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wb-border, rgba(0,0,0,.1));
  border-radius: 0.75rem;
}

.pr-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.pr-table th,
.pr-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wb-border, rgba(0,0,0,.08));
}

.pr-table tr:last-child th,
.pr-table tr:last-child td {
  border-bottom: none;
}

.pr-table thead th {
  font-weight: 700;
  background: rgba(127, 127, 127, 0.06);
}

.pr-table tbody th {
  font-weight: 500;
}

.pr-table td {
  opacity: 0.85;
}

.pr-table .pr-none {
  opacity: 0.35;
}

.pr-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pr-box {
  border: 1px solid var(--wb-border, rgba(0,0,0,.1));
  border-radius: 0.75rem;
  padding: 1.25rem 1.375rem;
}

.pr-box h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.pr-box .sh-plan-limits {
  margin-bottom: 0;
}

.pr-faq {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pr-faq dt {
  font-weight: 600;
  margin-top: 1.25rem;
}

.pr-faq dd {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.55;
}

.pr-faq a {
  color: var(--accent, #0b64ea);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  /* The page badge crowds the brand and the buttons on a phone. */
  .wb-topbar-meta {
    display: none;
  }
  .wb-topbar {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }
  .wb-topbar .nav-beta {
    display: none;
  }
  .wb-topbar .btn-primary {
    padding: 0.4rem 0.7rem;
  }
  .wb-topbar-actions {
    gap: 0.375rem;
  }
  .wb-topbar-actions > .nav-link:not(.nav-link-boxed) {
    display: none;
  }
  .wb-topbar-actions .nav-link-boxed {
    padding: 0 0.65rem;
  }
}
