/* ═══════════════════════════════════════════════════════════════
   Pricing page — pricing.css
   Scoped to .pricing-page and .pt (pricing table).
   Loaded only on the /pricing/ page via the "head-extra" block.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────── */
.pricing-page {
  padding: 3.5rem 0 5.5rem;
}

.pricing-page__header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-page__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.pricing-page__lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-page__error {
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
  padding: 3rem 0;
}

/* ── Table wrapper (enables horizontal scroll on small screens) */
.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── The table ──────────────────────────────────────────────── */
.pt {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 520px;
}

/* Label column — fixed pixel width so the browser can't stretch it to fit content */
.pt__label-col {
  width: 160px;
}

/* ── Plan header row ────────────────────────────────────────── */
.pt__plan-head {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.6rem 1rem 1.1rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
}

/* ── Section divider rows (PRICING / LIMITS / FEATURES) ──────── */
.pt__section-hdr > td {
  padding: 1.4rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: 2px solid var(--color-border);
}

/* First section header has no top border — it sits right below the plan headers */
.pt__section-hdr:first-of-type > td {
  border-top: none;
}

/* Suppress hover highlight on section-header rows */
.pt__section-hdr:hover > td {
  background: transparent !important;
}

/* ── Data rows ──────────────────────────────────────────────── */
.pt__row {
  border-top: 1px solid var(--color-border);
  transition: background 100ms ease;
}

.pt__row:hover td,
.pt__row:hover th {
  background: #eef5f0; /* subtle green tint — echoes the site's #2d4f35 CTA green */
}

/* Row label (left-column <th>) */
.pt__row-label {
  text-align: left;
  padding: 0.85rem 1.25rem 0.85rem 0;
  font-weight: 500;
  color: var(--color-text);
  vertical-align: middle;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Data cells */
.pt__cell {
  text-align: center;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Value styles ───────────────────────────────────────────── */

/* null → Unlimited */
.pt__unlimited {
  color: #2d4f35;
  font-weight: 600;
}

/* Free plan pricing label */
.pt__free {
  color: var(--color-muted);
}

/* Paid plan price amount */
.pt__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

/* "/mo" or "/yr" suffix */
.pt__period {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-left: 0.1em;
}

/* ── Feature: checkmark (boolean true) ─────────────────────── */
.pt__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2d4f35;
  width: 20px;
  height: 20px;
}

.pt__check svg {
  display: block;
}

/* ── Feature: dash (boolean false) ─────────────────────────── */
.pt__dash {
  color: var(--color-border);
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Feature: tier string (Community / Email / Priority) ────── */
.pt__tier {
  font-size: 0.9rem;
  color: var(--color-text);
}

.pt__tier--priority {
  color: #2d4f35;
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .pricing-page {
    padding: 2rem 0 3.5rem;
  }

  .pt__plan-head {
    font-size: 0.92rem;
    padding: 0.5rem 0.5rem 0.85rem;
  }

  .pt__label-col {
    width: 110px;
  }

  .pt__row-label {
    padding-right: 0.5rem;
    font-size: 0.88rem;
  }

  .pt__cell {
    padding: 0.75rem 0.5rem;
  }
}

