/* xag-plan.css: SALES TABLE rule (owner 2026-11-04, audit): in every plan / pricing set the PAID tier is the brightest card, the free tier is calmer.
   Free:  <div class="xag-plan">            glass fill, thin sky border, normal price, glass-outline button (.xag-plan-cta)
   Paid:  <div class="xag-plan xag-plan--paid">  purple-to-blue lit fill, bright border and glow, larger price, purple gradient button (.xag-btn-pri), optional
          <span class="xag-plan-badge">Most popular</span> on the recommended paid plan (one per set).
   Buttons never carry a price (the price sits in the card heading area). Audit: test/plan-tiers.test.mjs (static) and scripts/plan-sweep.mjs (computed, needs Edge).
   Tokens only; colours come from the shared roles and --xag-btn-grad. */
:root { --xag-plan-free-fill: var(--panel, var(--xag-plan-navy)); --xag-plan-free-line: rgba(125, 211, 252, .28);
  --xag-plan-paid-fill: linear-gradient(160deg, rgba(124, 58, 237, .42), rgba(48, 74, 220, .34) 60%, rgba(251, 191, 36, .12));
  --xag-plan-paid-line: var(--xag-plan-line-c); --xag-plan-paid-glow: 0 0 0 3px rgba(167, 139, 250, .28), 0 0 34px rgba(124, 58, 237, .5); }
.xag-plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 20px; border-radius: var(--xag-radius, 16px);
  background: var(--xag-plan-free-fill); border: 1px solid var(--xag-plan-free-line); color: var(--xag-c-text, inherit); }
.xag-plan .price, .xag-plan .sp-price { font-size: 1.6rem; font-weight: 700; margin: 0; }
.xag-plan--paid { background: var(--xag-plan-paid-fill), var(--xag-plan-navy); border: 2px solid var(--xag-plan-paid-line); box-shadow: var(--xag-plan-paid-glow); color: var(--xag-plan-ink); }
.xag-plan--paid .price, .xag-plan--paid .sp-price { font-size: 2.2rem; color: var(--xag-plan-ink); }
.xag-plan--paid h3, .xag-plan--paid p, .xag-plan--paid li { color: var(--xag-plan-ink); }
.xag-plan--paid li::marker { color: var(--xag-plan-gold); }
.xag-plan-badge { position: absolute; top: -14px; left: 20px; padding: 4px 14px; border-radius: 999px; background: var(--xag-plan-gold); color: var(--xag-plan-badge-ink); font-weight: 800; font-size: .85rem; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
html body .xag-plan .xag-plan-cta { margin-top: auto; align-self: stretch; justify-content: center; text-align: center; }
.xag-plan .xag-plan-cta:not(.xag-btn-pri) { background: var(--xag-glass-fill, rgba(255, 255, 255, .12)); border: 1.5px solid rgba(125, 211, 252, .45); border-radius: var(--xag-btn-radius, 999px); color: var(--xag-c-text, inherit); box-shadow: none; }
:root[data-theme="light"] .xag-plan:not(.xag-plan--paid) { background: var(--xag-plan-light-bg); border-color: rgba(11, 28, 45, .18); }
:root[data-theme="light"] .xag-plan--paid { background: var(--xag-plan-paid-fill), var(--xag-plan-light-bg); border-color: var(--xag-plan-paid-line); }
:root[data-theme="light"] .xag-plan--paid, :root[data-theme="light"] .xag-plan--paid :is(h3, p, li, .price, .sp-price) { color: var(--xag-plan-light-ink); }
:root[data-theme="light"] .xag-plan:not(.xag-plan--paid) :is(h3, p, li, .price, .sp-price) { color: var(--xag-plan-light-free-ink); }
/* compare tables (Free vs paid columns): the Free column stays plain, every paid column is lit */
.sp-cmp thead th.xag-plan-col--paid { background: var(--xag-btn-grad); color: var(--xag-plan-ink); }
.sp-cmp td.xag-plan-col--paid { background: rgba(124, 58, 237, .16); box-shadow: inset 2px 0 0 rgba(167, 139, 250, .55); }
:root[data-theme="light"] .sp-cmp td.xag-plan-col--paid { background: rgba(124, 58, 237, .08); }
.cmptable thead th.xag-plan-col--paid { background: var(--xag-btn-grad); color: var(--xag-plan-ink); }
.cmptable td.xag-plan-col--paid { background: rgba(124, 58, 237, .16); }

/* comparison table cells: balanced lines, no one-word second line (final audit 2026-11-14) */
.sp-cmp th, .sp-cmp td, .cmptable th, .cmptable td { text-wrap: balance; }
