/* Public pricing page (/pricing/) — plan cards, solution/term switches,
   cost estimator. Built on the shared tokens (erp/tokens.css) and the
   site aliases in site.css, so it follows light/dark like the rest. */

.px-promises { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; }
.px-promises li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink-soft); }
.px-promises li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---- switches ---------------------------------------------------------- */
.px-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.px-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.px-switch__opt {
  border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--ink-soft);
  padding: 9px 18px; border-radius: 999px; font-size: 0.95rem; line-height: 1.2;
}
.px-switch__opt strong { font-family: var(--font-mono); font-weight: 600; margin-inline-end: 4px; }
.px-switch__opt[aria-selected="true"], .px-switch__opt[aria-pressed="true"] { background: var(--brand); color: #fff; }
.px-switch__opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.px-switch--sm .px-switch__opt { padding: 7px 14px; font-size: 0.88rem; }
.px-save { font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal-strong); margin-inline-start: 4px; }
.px-switch__opt[aria-pressed="true"] .px-save { color: var(--signal-tint); }

/* ---- plan cards -------------------------------------------------------- */
.px-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.px-plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
}
.px-plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.px-plan__badge {
  position: absolute; top: -12px; inset-inline-start: 26px; background: var(--signal); color: #1d1405;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.px-plan__name { font-size: 1.35rem; margin: 0; }
.px-plan__tagline { color: var(--ink-soft); margin: 0; min-height: 2.9em; line-height: 1.45; }
.px-plan__price { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.px-plan__amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.px-plan__amount b { font-weight: inherit; }
.px-plan__per { font-size: 0.88rem; color: var(--ink-faint); }
.px-plan__cap { background: var(--brand-tint); border-radius: var(--r-md); padding: 12px 14px; font-size: 0.95rem; color: var(--ink); }
.px-plan__cap strong { font-size: 1.1rem; }
.px-plan__cap small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 0.82rem; }
.px-plan__features { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; flex: 1; }
.px-plan__features li { position: relative; padding-inline-start: 22px; font-size: 0.93rem; line-height: 1.45; }
.px-plan__features li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.42em; width: 10px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); /* check mark: never mirrored */
}
.px-plan__min { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin: 0; }

/* ---- what counts ------------------------------------------------------- */
.px-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.px-counts > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.px-counts h3 { font-size: 1rem; margin: 0 0 12px; }
.px-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.px-list li { position: relative; padding-inline-start: 20px; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.45; }
.px-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; }
.px-list--paid li::before { background: var(--signal); }
.px-list--free li::before { background: var(--brand); border-radius: 50%; }

/* ---- estimator --------------------------------------------------------- */
.px-calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.px-calc__form { display: grid; gap: 16px; }
.px-group { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: 14px 18px 16px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-group legend { font-weight: 600; padding: 0 6px; font-size: 0.95rem; }
.px-field { display: grid; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); }
.px-field input, .px-field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 11px; width: 100%;
}
.px-field input:focus, .px-field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.px-field__note { font-size: 0.82rem; color: var(--ink-faint); margin: 0; align-self: end; }
.px-calc__result {
  position: sticky; top: 90px; background: var(--paper); border: 2px solid var(--brand);
  border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px;
}
.px-calc__label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.px-calc__total { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.px-calc__sub { margin: 0; color: var(--ink-soft); }
.px-calc__lines { margin: 6px 0 0; display: grid; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.px-calc__lines div { display: flex; justify-content: space-between; font-size: 0.92rem; }
.px-calc__lines dt { color: var(--ink-soft); }
.px-calc__lines dd { margin: 0; font-family: var(--font-mono); }
.px-calc__compare { margin: 4px 0 0; background: var(--signal-tint); color: var(--ink); border-radius: var(--r-md); padding: 10px 12px; font-size: 0.9rem; }

/* ---- suite band + FAQ -------------------------------------------------- */
.px-suite {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid var(--line); border-inline-start: 4px solid var(--signal); border-radius: var(--r-lg);
  padding: 30px 32px; background: var(--paper);
}
.px-suite > div { max-width: 620px; }
.px-suite h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0; }
.px-suite p { color: var(--ink-soft); margin: 0; }
.px-faq { display: grid; gap: 10px; }
.px-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.px-faq summary { cursor: pointer; font-weight: 600; }
.px-faq details p { color: var(--ink-soft); margin: 10px 0 0; line-height: 1.6; }

@media (max-width: 960px) {
  .px-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .px-plan__tagline { min-height: 0; }
  .px-calc { grid-template-columns: 1fr; }
  .px-calc__result { position: static; }
}
@media (max-width: 600px) {
  .px-counts, .px-group { grid-template-columns: 1fr; }
  .px-controls { flex-direction: column; align-items: stretch; }
  .px-switch { justify-content: center; border-radius: var(--r-md); }
  .px-switch__opt span { display: none; }
  .px-suite { padding: 22px 20px; }
}
