/* Pricing table - plan cards that stack on narrow frames, or a feature
   matrix with a sticky first column. The highlighted plan has an accent
   border AND a text badge; feature status is an icon shape AND hidden text. */
.pt-wrap { display: grid; gap: 12px; }
.pt-wrap > *, .pt-body { min-width: 0; }
.pt-top { display: flex; justify-content: center; }
.pt-seg button { display: inline-flex; align-items: center; gap: 2px; }
.pt-save { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .86em; font-weight: 700; background: color-mix(in srgb, var(--e-ok) 16%, var(--e-bg)); color: var(--e-ok); }
.pt-seg button[aria-pressed="true"] .pt-save { background: rgba(255, 255, 255, .22); color: inherit; }

/* Columns follow the plan count so a row never ends with one orphan card:
   1 column on phones, 2 for 2/4 plans, 3 for 3/5 plans once there is room. */
.pt-body { container-type: inline-size; }
.pt-plans { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: stretch; padding-top: 10px; }
@container (min-width: 420px) { .pt-n2, .pt-n4 { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 620px) { .pt-n3, .pt-n5 { grid-template-columns: repeat(3, 1fr); } }
@container (min-width: 820px) { .pt-n4 { grid-template-columns: repeat(4, 1fr); } }
.pt-plan {
    position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 16px 16px;
    background: var(--e-bg); border: 1px solid var(--e-line); border-radius: calc(var(--e-radius-sm) + 4px);
}
.pt-plan.pt-hl { border: 2px solid var(--e-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--e-accent) 7%, var(--e-bg)) 0%, var(--e-bg) 55%); box-shadow: 0 8px 24px color-mix(in srgb, var(--e-accent) 14%, transparent); }
.pt-badge {
    align-self: flex-start; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .72em; font-weight: 750;
    letter-spacing: .04em; text-transform: uppercase; color: var(--e-accent-ink); background: linear-gradient(135deg, var(--e-accent), var(--e-accent-2));
}
html.e-custom-accent .pt-badge { background: var(--e-accent); }
.pt-plan .pt-badge { position: absolute; top: -11px; left: 14px; }
.pt-name { margin: 0; font-size: 1.05em; font-weight: 750; letter-spacing: -.01em; color: var(--e-ink); overflow-wrap: anywhere; }
.pt-desc { margin: -2px 0 0; font-size: .86em; color: var(--e-ink-3); line-height: 1.45; }
.pt-price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.pt-amt { font-size: 1.9em; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--e-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-hl .pt-amt { color: var(--e-accent-fg); }
.pt-per { font-size: .86em; color: var(--e-ink-3); font-weight: 600; }
.pt-sub { margin: -4px 0 0; font-size: .8em; color: var(--e-ok); font-weight: 600; }
.pt-cta { display: flex; justify-content: center; align-items: center; margin-top: 4px; text-align: center; text-decoration: none; min-height: 42px; }
.pt-cta.e-ghost { color: var(--e-accent-fg); border-color: color-mix(in srgb, var(--e-accent) 45%, var(--e-line-strong)); }
.pt-feats { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--e-line); display: grid; gap: 7px; font-size: .88em; }
.pt-f { display: flex; align-items: flex-start; gap: 8px; color: var(--e-ink-2); line-height: 1.4; overflow-wrap: anywhere; }
.pt-f-no { color: var(--e-ink-3); }
.pt-f-no > span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--e-ink-3) 60%, transparent); }
.pt-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 2px; border-radius: 50%; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-ico.pt-yes { stroke: var(--e-ok); background: color-mix(in srgb, var(--e-ok) 13%, transparent); }
.pt-ico.pt-no { stroke: var(--e-ink-3); background: var(--e-surface-2); }
.pt-ico.pt-partial { stroke: var(--e-warn); background: color-mix(in srgb, var(--e-warn) 14%, transparent); }

/* comparison matrix */
.pt-scroll { overflow-x: auto; border: 1px solid var(--e-line); border-radius: calc(var(--e-radius-sm) + 2px); }
.pt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88em; }
.pt-table th, .pt-table td { padding: 10px 12px; border-bottom: 1px solid var(--e-line); text-align: center; vertical-align: middle; }
.pt-table tbody tr:last-child > * { border-bottom: 0; }
.pt-table thead th { vertical-align: bottom; min-width: 120px; background: var(--e-surface); }
.pt-table thead th > span { display: block; }
.pt-table thead .pt-badge { display: inline-block; margin-bottom: 4px; }
.pt-table thead .pt-amt { font-size: 1.45em; }
.pt-table thead .pt-price { justify-content: center; margin: 2px 0 0; }
.pt-table .pt-sub { margin: 2px 0 0; }
.pt-table tbody th { text-align: left; font-weight: 600; color: var(--e-ink-2); }
.pt-table th[scope="row"], .pt-corner { position: sticky; left: 0; z-index: 1; background: var(--e-bg); min-width: 120px; max-width: 200px; overflow-wrap: anywhere; box-shadow: 1px 0 0 var(--e-line); }
.pt-corner { background: var(--e-surface); }
.pt-table td.pt-hl, .pt-table th.pt-hl { background: color-mix(in srgb, var(--e-accent) 7%, var(--e-bg)); }
.pt-table thead th.pt-hl { box-shadow: inset 0 3px 0 var(--e-accent); }
.pt-table td .pt-ico { display: inline-block; vertical-align: middle; margin: 0; }
.pt-val { display: inline-block; margin-left: 6px; vertical-align: middle; color: var(--e-ink); font-weight: 600; }
.pt-ctarow td { padding-top: 12px; padding-bottom: 12px; }
.pt-ctarow .pt-cta { margin: 0; font-size: .82em; padding: 6px 10px; min-height: 36px; white-space: nowrap; }
.pt-note { text-align: center; }

@media (max-width: 360px) {
    .pt-plan { padding: 16px 13px 14px; }
    .pt-amt { font-size: 1.65em; }
    .pt-table th, .pt-table td { padding: 8px 9px; }
}
html[data-compact="1"] .pt-plan { padding: 14px 12px 12px; gap: 6px; }
