/* The pricing page, in the app and for strangers. On the desk, not on a sheet: it follows the theme. */

.px { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.px > * { min-width: 0; }
.px-hero { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 12px; }
.px-hero .hero-title { max-width: 18ch; }
.px-lede { margin: 0; color: var(--ink-2); max-width: 58ch; }
.px-hero .px-lede { font-size: var(--t-l); }

.px-toggle { justify-self: center; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--paper-3); border-radius: var(--r-l); }
.px-toggle button, .px-chips button { min-height: 40px; padding: 6px 18px; border: 0; border-radius: var(--r-m); background: transparent; color: var(--ink-2); font: 600 var(--t-s)/1.2 var(--font); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.px-toggle button:hover, .px-chips button:hover { color: var(--ink); }
.px-toggle [aria-pressed="true"], .px-chips [aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s); }
.px-save { margin-left: 6px; padding: 2px 8px; border-radius: var(--r-s); background: var(--good-bg); color: var(--good); font-size: var(--t-xs); }

.px-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: stretch; max-width: 880px; width: 100%; justify-self: center; }
.px-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.px-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.px-plan h2 { margin: 0; font-size: var(--t-l); }
/* Pro: a gradient ring, painted on the border only, so its text stays on plain paper. */
.px-pro { border-color: transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad-ring) border-box; border-width: 2px; box-shadow: var(--shadow-card); }
.px-price { margin: 6px 0 0; font-size: var(--t-3xl); line-height: 1.1; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.px-price small { font-size: var(--t-s); font-weight: 400; color: var(--muted); }
.px-tick { animation: px-tick .28s var(--ease); }
@keyframes px-tick { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.px-sub { margin: 0; min-height: 1.5em; color: var(--muted); font-size: var(--t-s); }
.px-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.px-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.px-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: var(--t-xs); font-weight: 800; color: var(--good); background: var(--good-bg); }
.px-cta { margin-top: auto; padding-top: 20px; }
.px-cta .btn { width: 100%; justify-content: center; }
.px-cta .callout { margin: 0; }
.px-current { display: block; padding: 10px; text-align: center; color: var(--muted); border: 1px dashed var(--rule-strong); border-radius: var(--r-m); }

.px-pace { display: grid; gap: 14px; padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); max-width: 880px; width: 100%; justify-self: center; }
.px-pace h2 { margin: 0; font-size: var(--t-xl); }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.px-chips button { background: var(--paper-2); }
.px-chips [aria-pressed="true"] { background: color-mix(in srgb, var(--link) 16%, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--link); }
.px-slider { display: grid; gap: 8px; font-weight: 600; }
.px-slider input { width: 100%; accent-color: var(--link); }
.px-bars { display: grid; gap: 10px; }
.px-bar { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: var(--t-s); }
.px-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.px-track { height: 12px; background: var(--paper-3); border-radius: var(--r-s); overflow: hidden; }
.px-track i { display: block; width: var(--fill, 0%); height: 100%; border-radius: var(--r-s); background: var(--muted); transition: width .3s var(--ease); }
.px-bar.is-pro .px-track i { background: var(--link); }
.px-verdict { margin: 0; font-weight: 600; min-height: 1.5em; }

.px-details { max-width: 880px; width: 100%; justify-self: center; }
.px-details > summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.px-details[open] > summary { margin-bottom: 14px; }

.px-after { max-width: 880px; margin-inline: auto; }
.demo-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.checkout-what { margin: 16px 0 0; font-size: var(--t-m); }

@media (prefers-reduced-motion: reduce) {
  .px-plan, .px-track i, .px-toggle button, .px-chips button { transition: none; }
  .px-plan:hover { transform: none; }
  .px-tick { animation: none; }
}
