/* Pricing page: the plan grid, shared
   between the signed-out marketing page and the signed-in app-shell page. Uses the
   global --color-*/--space-* tokens (app.css) rather than the landing page's
   --lp-* ones, so it renders correctly in both contexts. */

.pr-hero-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.pr-hero-head .lp-kicker { justify-content: center; }
.pr-hero-head .lp-lede { margin: 0 auto; }

.pr-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl);
  align-items: stretch;
}
@media (max-width: 1080px) { .pr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pr-grid { grid-template-columns: 1fr; } }

.pr-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pr-card.is-current { border-color: var(--color-pos); }

/* Every plan (not just one hardcoded tier) picks up the same emphasis on hover,
   keyboard focus, or a click-to-pick (single-select, see pages.js) - never more
   than one card at a time. The current-plan card is excluded: its CTA is
   disabled, so there's nothing to pick. */
.pr-card:not(.is-current):hover,
.pr-card:not(.is-current):focus-within,
.pr-card.is-picked {
  border-color: var(--color-fg); box-shadow: var(--shadow-md); cursor: pointer;
}
.pr-card:not(.is-current):hover .pr-cta:not(:disabled),
.pr-card:not(.is-current):focus-within .pr-cta:not(:disabled),
.pr-card.is-picked .pr-cta:not(:disabled) {
  background: var(--color-fg); color: #fff; border-color: var(--color-fg);
}

.pr-flag {
  position: absolute; top: -12px; left: var(--space-xl);
  padding: 4px 12px; border-radius: 999px; font-family: var(--font-heading);
  font-size: .74rem; letter-spacing: .02em; white-space: nowrap;
  background: var(--color-primary); color: var(--color-on-primary);
}
.pr-flag-current { background: var(--color-pos); }

.pr-card h3 { margin: 0 0 4px; font-size: 1.3rem; }
.pr-tagline { margin: 0 0 var(--space-xl); min-height: 2.6em; color: var(--color-muted-fg); font-size: .92rem; line-height: 1.4; }

.pr-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--space-xl); }
.pr-amount { font-family: var(--font-heading); font-size: 2.1rem; letter-spacing: -.03em; line-height: 1; }
.pr-cur { font-size: 1.2rem; margin-right: 1px; }
.pr-per { color: var(--color-muted-fg); font-size: .88rem; }

/* Discounted price -
   original price struck through, the actually-charged price is the highlighted
   .pr-amount above, a green badge states the percentage saved. */
.pr-original { font-size: 1rem; color: var(--color-muted-fg); text-decoration: line-through; }
.pr-badge-discount {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  background: var(--color-pos); color: #fff; font-family: var(--font-heading);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}

/* The same idea, smaller and inline, for a table cell rather than a pricing card. */
.pr-strike { color: var(--color-muted-fg); text-decoration: line-through; margin-right: 6px; }
.pr-discounted { font-weight: 600; }

.pr-features { list-style: none; margin: 0 0 var(--space-2xl); padding: 0; display: flex; flex-direction: column; gap: var(--space-md); flex: 1; }
.pr-features li { display: flex; align-items: flex-start; gap: var(--space-md); font-size: .92rem; color: var(--color-fg-soft); line-height: 1.4; }
.pr-features li svg { flex: none; margin-top: 2px; color: var(--color-pos); }

.pr-note { max-width: 640px; margin: var(--space-2xl) auto 0; text-align: center; color: var(--color-muted-fg); font-size: .86rem; }
.landing .pr-note { color: var(--lp-muted); }
