/* Page-scoped styles for /pricing/ — recovered from the WP origin (custom-route.php inline blocks) 2026-07-16.
   Loads after the shared stack; selectors are scoped body.pricing-page. */

/* ===== /pricing/ page-specific patterns ===== */
/* July alignment: separated white cards on the cream band (homepage card
   language) instead of one joined divider-grid. Pro (3rd card) carries the
   emphasis — ink border + lift; red stays confined to its "most popular" label. */
body.pricing-page .tiers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) { body.pricing-page .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { body.pricing-page .tiers { grid-template-columns: 1fr; } }
body.pricing-page .tier {
  padding: 2rem 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  display: flex; flex-direction: column;
}
body.pricing-page .tier:nth-child(3) {
  border-color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(15, 17, 21, 0.25);
}
@media (max-width: 540px) {
  body.pricing-page .tier { border-right: 0; border-bottom: 1px solid var(--grey-200); }
  body.pricing-page .tier:last-child { border-bottom: 0; }
}
body.pricing-page .tier-name {
  font-family: var(--font-m); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-500);
  margin-bottom: 0.625rem;
}
body.pricing-page .tier:nth-child(3) .tier-name { color: var(--red); }
body.pricing-page .tier-price {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
body.pricing-page .tier-price-suffix {
  font-family: var(--font-m); font-size: 0.7rem; color: var(--grey-500);
  margin-left: 0.25rem; letter-spacing: 0.04em;
}
body.pricing-page .tier-yearly {
  display: block; margin-top: 0.5rem;
  font-family: var(--font-m); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500);
}
body.pricing-page .tier-lede {
  font-size: 0.88rem; color: var(--grey-700); line-height: 1.6; margin: 1.25rem 0;
}
body.pricing-page .tier-lookups {
  font-family: var(--font-m); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink);
  background: var(--grey-100); border: 1px solid var(--grey-200);
  padding: 6px 10px; align-self: flex-start; margin-bottom: 1.5rem;
}
body.pricing-page .tier-features { list-style: none; margin: 0 0 1.75rem; padding: 0; flex-grow: 1; }
body.pricing-page .tier-features li {
  position: relative; padding-left: 1.25rem;
  font-size: 0.85rem; line-height: 1.55; color: var(--grey-700); margin-bottom: 0.5rem;
}
body.pricing-page .tier-features li::before {
  content: '+'; position: absolute; left: 0; top: 0;
  font-family: var(--font-m); color: var(--grey-400); font-weight: 500;
}
body.pricing-page .tier-cta {
  background: var(--ink); color: var(--white); border: 1px solid var(--ink); border-radius: 0;
  padding: 0.65rem 1.25rem; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
body.pricing-page .tier-cta:hover { background: var(--red); border-color: var(--red); }
body.pricing-page .tier-cta-secondary {
  background: var(--white); color: var(--ink); border: 1px solid var(--grey-300);
}
body.pricing-page .tier-cta-secondary:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Enterprise card */
body.pricing-page .enterprise-card {
  background: var(--white); border: 1px solid var(--grey-200);
  padding: 2rem 2.25rem; display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center; margin-top: 1rem;
}
@media (max-width: 720px) { body.pricing-page .enterprise-card { grid-template-columns: 1fr; } }
body.pricing-page .enterprise-eyebrow {
  font-family: var(--font-m); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-500);
  margin-bottom: 0.5rem;
}
body.pricing-page .enterprise-title {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 0.375rem;
}
body.pricing-page .enterprise-desc {
  font-size: 0.9rem; color: var(--grey-700); max-width: 520px; line-height: 1.6;
}

/* Comparison table */
body.pricing-page .compare-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-m); font-size: 0.8rem; margin-top: 1rem;
}
body.pricing-page .compare-table th {
  text-align: left; font-family: var(--font-m); font-weight: 500;
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-500); padding: 1rem 0.875rem;
  border-bottom: 1px solid var(--ink); vertical-align: bottom;
}
body.pricing-page .compare-table th:first-child { padding-left: 0; }
body.pricing-page .compare-table td {
  padding: 0.875rem; border-bottom: 1px solid var(--grey-200);
  color: var(--grey-700); vertical-align: top;
}
body.pricing-page .compare-table td:first-child {
  font-family: var(--font-h); color: var(--ink); font-weight: 500; padding-left: 0;
}
body.pricing-page .compare-table .yes::before { content: '\25cf '; color: var(--ink); margin-right: 4px; font-size: 0.7em; }
body.pricing-page .compare-table .no { color: #64748b; }
body.pricing-page .compare-table .no::before { content: '\2014 '; color: #64748b; margin-right: 4px; }

/* FAQ */
body.pricing-page .faq-list { display: grid; gap: 0; margin-top: 1rem; }
body.pricing-page .faq-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 2rem;
  padding: 1.75rem 0; border-top: 1px solid var(--grey-200);
}
body.pricing-page .faq-item:first-child { border-top: 1px solid var(--grey-200); }
body.pricing-page .faq-item:last-child { border-bottom: 1px solid var(--grey-200); }
@media (max-width: 720px) { body.pricing-page .faq-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; } }
body.pricing-page .faq-num {
  font-family: var(--font-m); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-500);
  padding-top: 0.25rem;
}
body.pricing-page .faq-q {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.5rem; line-height: 1.4;
}
body.pricing-page .faq-a {
  font-size: 0.92rem; color: var(--grey-700); line-height: 1.7; max-width: 720px;
}
body.pricing-page .faq-a a { color: var(--ink); border-bottom: 1px solid var(--grey-300); text-decoration: none; }
body.pricing-page .faq-a a:hover { border-color: var(--ink); }

/* ===== "The math" — unit-economics table (resurrected from the WP homepage
   2026-07-16; numbers aligned to current pricing/claims). ===== */
body.pricing-page .pm-table-wrap { overflow-x: auto; margin-top: 2.25rem; background: var(--white); border: 1px solid var(--grey-200); }
body.pricing-page .pm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
body.pricing-page .pm-table th {
  font-family: var(--font-m); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-align: left;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--grey-200);
}
body.pricing-page .pm-table th.pm-old { color: var(--grey-500); }
body.pricing-page .pm-table th.pm-new { color: var(--red); }
body.pricing-page .pm-table td { padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--grey-200); vertical-align: top; line-height: 1.5; }
body.pricing-page .pm-table tr:last-child td { border-bottom: 0; }
body.pricing-page .pm-row-label {
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--grey-500); white-space: nowrap;
}
body.pricing-page td.pm-old { color: var(--grey-500); }
body.pricing-page td.pm-new { color: var(--ink); font-weight: 600; }
body.pricing-page .pm-caption { font-size: 0.9rem; color: var(--grey-700); max-width: 58ch; margin-top: 1.5rem; }
@media (max-width: 640px) {
  body.pricing-page .pm-table { font-size: 0.84rem; }
  body.pricing-page .pm-table th, body.pricing-page .pm-table td { padding: 0.75rem 0.9rem; }
  body.pricing-page .pm-row-label { white-space: normal; }
}

/* Spec-sheet table: scroll within itself on small screens (was overflowing
   the page body at 390px — found in the 2026-07-16 alignment pass). */
@media (max-width: 540px) {
  body.pricing-page .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* The spec sheet already scrolls horizontally on small screens (display:block +
   overflow-x:auto above), but nothing told the reader it does — the Scale column sits
   off-screen with no affordance, so it reads as a table that simply stops at Pro.
   A one-line hint costs nothing and is only shown where the scroll actually exists. */
@media (max-width: 540px) {
  body.pricing-page .compare-hint { display: block; }
}
body.pricing-page .compare-hint {
  display: none;
  font-family: var(--font-m); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey-500); margin: 0 0 0.6rem;
}
