/* ============================================================================
   PRICING PAGE — extends the shared landing.css component system.
   No hero section: a compact centered title + billing switcher opens the
   page, followed by plan cards, comparison, value props, FAQ and CTA (which
   reuse landing.css lp-* components). Page-specific pieces live here: the
   page head, the billing toggle, and the comparison table; cards live in
   components/pricing-card.css shared with the homepage teaser.
   ========================================================================= */
/* ════════════════════════════════════════════════════════════════════════
   PAGE HEAD — compact centered title + billing switcher opening the page
   (no hero section). Scoped to this file, pricing page only.
   ════════════════════════════════════════════════════════════════════════ */
.pc-pagehead   {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-6), 4vw, var(--space-8));
}

.pc-title   {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--color-text);
}

.pc-pagehead__intro p {
  margin: var(--space-4) auto 0;
  max-width: 52ch;
  color: var(--color-text-soft);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  text-wrap: balance;
}

/* ════════════════════════════════════════════════════════════════════════
   PLANS RHYTHM — (existing, unchanged) */
#plans.lp-section   {
  padding-top: clamp(52px, 7vw, 94px);
}

/* ════════════════════════════════════════════════════════════════════════
   BILLING TOGGLE — placement on the public pricing page.
   The canonical component styles are in components/pricing-card.css so all
   pricing surfaces (pricing.html, landing.html, upgrade modal) share one exact UI.
   ════════════════════════════════════════════════════════════════════════ */
.pc-pagehead .pc-billing {
  margin: 0;
}

.pc-billing {
  min-width: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   PRICING CARDS (pc-plan) — migrated to components/pricing-card.css so the
   pricing page and the homepage pricing teaser share one card component.
   ════════════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════════════
   COMPARISON — bare table, part of the page (no panel, border or shadow).
   ════════════════════════════════════════════════════════════════════════ */
.pc-compare   {
  margin-top: var(--lp-block-gap, clamp(32px, 5vw, 56px));
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:root[data-theme="dark"] .pc-compare   {
  border: none;
  background: transparent;
  box-shadow: none;
}

.pc-table   {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.pc-table thead th   {
  padding: var(--space-5);
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}

.pc-table thead th:first-child   {
  width: 30%;
  text-align: left;
}

.pc-col__name   {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.pc-col__price   {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-soft);
}

/* Featured (Pro) column — faint ink wash, no gradient */
.pc-col--featured   {
  background: color-mix(in srgb, var(--color-accent) 6%, transparent);
}

.pc-group-row   {
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-border) 8%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

:root[data-theme="dark"] .pc-group-row   {
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-border) 12%);
}

.pc-table tbody tr.pc-group-row:hover   {
  background: color-mix(in srgb, var(--color-surface) 92%, var(--color-border) 8%);
}

:root[data-theme="dark"] .pc-table tbody tr.pc-group-row:hover   {
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-border) 12%);
}

.pc-group-header   {
  padding: 12px var(--space-5);
  text-align: left;
}

.pc-group-title   {
  font-size: 13px;
  font-weight: 650;
  color: var(--color-text-soft);
}

.pc-table tbody tr   {
  border-top: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.pc-table tbody tr:hover   {
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
}

.pc-table td   {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  vertical-align: middle;
  color: var(--color-text-soft);
}

.pc-cell--feature   {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
}

.pc-cell--sub   {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-soft);
}

/* Sticky first column keeps row labels visible on narrow scroll. Opaque
   surface so scrolled cells slide underneath cleanly. */
.pc-table thead th:first-child, .pc-table .pc-cell--feature   {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--color-surface);
  border-inline-end: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
}

.pc-table tbody td.pc-col--featured   {
  color: var(--color-text);
  font-weight: 600;
}

.pc-value   {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pc-compare__hint   {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: center;
}

.pc-compare__note   {
  margin: var(--space-5) auto 0;
  max-width: 62ch;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
  text-wrap: pretty;
}

@media (min-width: 760px)   {
  .pc-compare__hint   {
    display: none;
  }

}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 520px)   {
  .pc-table td, .pc-table th {
    padding-inline: var(--space-3);
  }
}

/* The comparison caption is available to assistive technology. */
.sr-only   {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the wide comparison table inside its own keyboard-scrollable region. */
.landing--pricing .lp-wrap,
.landing--pricing .pc-pagehead,
.landing--pricing .pc-billing {
  min-width: 0;
}
.landing--pricing .pc-compare {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  contain: inline-size;
}
@media (max-width: 420px) {
  .landing--pricing .pc-table {
    min-width: 580px;
  }
}
/* Anchor absolute screen-reader text to the comparison region, not the viewport. */
.pc-compare {
  position: relative;
}

/* Keep billing answers usable before shared marketing JavaScript runs. */
#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary:focus-visible,
.pc-compare:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

#faq details[open] .faq-item__trigger::before {
  display: none;
}

#faq details[open] .faq-item__content {
  display: block;
  opacity: 1;
}
