/* Public pricing page — Meridian (Phase 2, Task 3; spec §3/§4.2, identity §2/§3/§8/§11).
 *
 * Migrated off the retired teal acquisition bridge and the raw `--text`/`--border`/
 * `--bg` hex fallbacks onto the fixed Meridian `--orc-*` tokens: a paper field,
 * paper cards with hairline borders + `--orc-shadow-1`, and one teal current —
 * a teal-fill primary CTA carrying theme-correct `--orc-on-current` text, a
 * teal-text secondary CTA, and a teal segmented interval toggle. Borders-first
 * depth, no glow (identity §10). The first viewport is the package grid and the
 * interval toggle, not a hero. Every `data-*` seam and class name is preserved
 * (spec §4.2/§4.9); only appearance changes.
 */

.pricing-page main {
  background: var(--orc-bg);
}

body.pricing-page > nav.navbar,
body.pricing-page > footer.bg-light {
  display: none;
}

body.pricing-page main.pricing-main {
  padding: 0;
}

.pricing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--orc-space-8) var(--orc-space-5) var(--orc-space-10);
  color: var(--orc-ink);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--orc-space-7);
}

.pricing-header h1 {
  font-size: var(--orc-text-3xl);
  font-weight: 700;
  letter-spacing: var(--orc-tracking-tight);
  margin-bottom: var(--orc-space-3);
}

.pricing-subtitle {
  max-width: 68ch; /* identity §11 prose measure */
  margin: 0 auto var(--orc-space-6);
  color: var(--orc-ink-muted);
}

/* Interval toggle — a segmented control on paper. Teal marks the active
   segment; targets clear 24px via space padding, not shrunk glyphs (2.5.8). */
.pricing-interval-controls {
  display: inline-flex;
  border: 1px solid var(--orc-border);
  border-radius: var(--orc-radius-pill);
  padding: var(--orc-space-1);
  background: var(--orc-surface);
  gap: var(--orc-space-1);
}

.pricing-interval-btn {
  border: none;
  background: transparent;
  border-radius: var(--orc-radius-pill);
  padding: var(--orc-space-2) var(--orc-space-5);
  font-family: inherit;
  font-size: var(--orc-text-base);
  font-weight: 600;
  color: var(--orc-ink-muted);
  cursor: pointer;
}

.pricing-interval-btn.is-active {
  background: var(--orc-current);
  color: var(--orc-on-current);
}

.pricing-interval-btn:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
}

.pricing-interval-hint {
  font-size: var(--orc-text-xs);
  font-weight: 500;
  /* Explicit AA ink instead of an opacity flatten (WCAG 1.4.3): --orc-ink-muted
     is >=7:1 on both the paper page and the surface, both themes. */
  color: var(--orc-ink-muted);
  margin-left: var(--orc-space-1);
}

/* On the active (teal) segment the label inverts to --orc-on-current; keep the
   hint inheriting that so it stays AA on the teal fill rather than the muted
   ink the base rule would otherwise pin. */
.pricing-interval-btn.is-active .pricing-interval-hint {
  color: inherit;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* >= 900px: 3 x 2 */
  gap: var(--orc-space-4);
  align-items: stretch;
}

@media (max-width: 899px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); } /* 641-899: 2 x 3 */
}

/* Paper card, hairline border, one soft raised shadow (borders-first, identity §4). */
.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--orc-surface);
  border: 1px solid var(--orc-border);
  border-radius: var(--orc-radius-lg);
  box-shadow: var(--orc-shadow-1);
  padding: var(--orc-space-6) var(--orc-space-5);
}

/* Family eyebrow carries a small teal tick of the brand current (identity §2:
   teal is the accent for brand), grouping starter/pro/custom at a glance. */
.pricing-card-family {
  font-size: var(--orc-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orc-current-text);
  margin-bottom: var(--orc-space-2);
}

.pricing-card-label {
  font-size: var(--orc-text-xl);
  font-weight: 700;
  margin-bottom: var(--orc-space-3);
}

.pricing-card-price {
  font-size: var(--orc-text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums; /* aligned prices across the grid (identity §3) */
  margin-bottom: var(--orc-space-1);
}

.pricing-card-ops {
  color: var(--orc-ink-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--orc-space-1);
}

.pricing-card-support {
  color: var(--orc-ink-muted);
  font-size: var(--orc-text-sm);
  flex-grow: 1;
  margin-bottom: var(--orc-space-4);
}

/* Primary CTA — teal fill with theme-correct on-teal text (fixes the old
   hardcoded white-on-teal dark-theme AA failure the shell task flagged). */
.pricing-cta {
  display: inline-block;
  text-align: center;
  border: none;
  border-radius: var(--orc-radius-md);
  padding: var(--orc-space-3) var(--orc-space-4);
  font-family: inherit;
  font-size: var(--orc-text-base);
  font-weight: 600;
  background: var(--orc-current);
  color: var(--orc-on-current);
  cursor: pointer;
  text-decoration: none;
}

.pricing-cta:hover {
  filter: brightness(1.05);
  color: var(--orc-on-current);
  text-decoration: none;
}

.pricing-cta:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
}

/* Secondary CTA (Custom package "Contact sales") — teal-as-text on a hairline,
   >=4.5:1 on the paper card both themes. */
.pricing-cta-secondary {
  background: transparent;
  border: 1px solid var(--orc-current-text);
  color: var(--orc-current-text);
}

/* Anchor CTA inside the acquisition shell: hold it to the Meridian identity
   (--orc-current-text) and block the product-wide `a:hover` (base.css, specificity
   0,1,1) from recolouring it to --link-hover or underlining it. Class+pseudo
   (0,2,0) out-ranks the global rule; source order out-ranks .pricing-cta:hover
   above, so the secondary anchor keeps teal-text (not on-teal) on hover. */
.pricing-cta-secondary:hover {
  color: var(--orc-current-text);
  text-decoration: none;
}

.pricing-soft-cap-note {
  text-align: center;
  color: var(--orc-ink-muted);
  margin: var(--orc-space-7) auto 0;
  max-width: 60ch;
}

.pricing-notice {
  margin-top: var(--orc-space-4);
  color: var(--orc-warning);
  background: var(--orc-warning-bg);
  border: 1px solid var(--orc-warning);
  border-radius: var(--orc-radius-md);
  padding: var(--orc-space-3) var(--orc-space-4);
  display: inline-block;
}

.pricing-faq {
  max-width: 760px;
  margin: var(--orc-space-9) auto 0;
}

.pricing-faq h2 {
  font-size: var(--orc-text-2xl);
  font-weight: 700;
  margin-bottom: var(--orc-space-4);
  text-align: center;
}

.pricing-faq details {
  border: 1px solid var(--orc-border);
  border-radius: var(--orc-radius-md);
  background: var(--orc-surface);
  padding: var(--orc-space-3) var(--orc-space-4);
  margin-bottom: var(--orc-space-2);
}

.pricing-faq summary {
  font-weight: 600;
  cursor: pointer;
}

.pricing-faq summary:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
  border-radius: var(--orc-radius-sm);
}

.pricing-faq p {
  margin: var(--orc-space-3) 0 0;
  color: var(--orc-ink-muted);
}

@media (max-width: 640px) {
  .pricing-header h1 { font-size: var(--orc-text-2xl); }
  .pricing-grid { grid-template-columns: 1fr; } /* <= 640: 1 col */
}
