/* ==========================================================================
   employer-pricing.css — pricing-employer.php (replaces employer_pricing.css)
   Built on the shared content-page blocks in universal.css (.jr-page-*).
   Palette-ready: colours come from css-new/palettes/theme-*.css (light + dark).
   ========================================================================== */

.jr-emp-pricing {
    font-family: 'Inter', system-ui, sans-serif;
    --ep-ok: #16a34a;
    --ep-off: var(--theme-text-faint);
}
html.dark .jr-emp-pricing { --ep-ok: #4ade80; }
.jr-emp-pricing .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Offers ---------- */
.ep-offers { display: grid; gap: 14px; margin-top: 16px; }
.ep-offer {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 18px 20px; border-radius: 18px;
}
.ep-offer__text { flex: 1 1 220px; min-width: 0; }
.ep-offer h2 { font-size: 18px; font-weight: 800; }
.ep-offer p { margin-top: 4px !important; font-size: 14px; }
.ep-offer .jr-page-btn { flex-shrink: 0; }
.ep-offer--welcome {
    background: linear-gradient(135deg, var(--theme-band-bg), color-mix(in srgb, var(--theme-band-bg) 70%, #000));
    color: var(--theme-band-text);
}
.ep-offer--welcome h2 { color: var(--theme-band-text); }
.ep-offer--welcome p { color: color-mix(in srgb, var(--theme-band-text) 85%, transparent); }
.ep-offer--welcome .jr-page-icon { background: color-mix(in srgb, var(--theme-band-text) 16%, transparent); color: var(--theme-premium); }
.ep-offer--own { background: var(--theme-bg-surface); border: 1px solid var(--pg-accent-line); box-shadow: var(--pg-shadow); }
.ep-offer--own p { color: var(--theme-text); }

/* ---------- Prices (shared) ---------- */
.ep-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--theme-heading); white-space: nowrap; }
.ep-price__note { font-size: 13px; color: var(--theme-text-muted); white-space: nowrap; }
.ep-was { font-size: 14px; color: var(--theme-text-faint); margin-right: 6px; white-space: nowrap; }

/* ---------- Main plans ---------- */
.ep-plans { display: grid; gap: 16px; align-items: stretch; }
.ep-plan {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px;
    background: var(--theme-bg-surface); border: 1px solid var(--theme-border); box-shadow: var(--pg-shadow);
}
.ep-plan__name { font-size: 18px; font-weight: 800; }
.ep-plan__desc { font-size: 14px; color: var(--theme-text-muted); }
.ep-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 6px 0 4px; }
.ep-plan__cta { width: 100%; margin-top: auto; }

.ep-plan--popular {
    border: 2px solid var(--theme-accent);
    background: linear-gradient(180deg, var(--pg-accent-soft), var(--theme-bg-surface) 45%);
}
.ep-badge {
    position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: var(--theme-premium); color: #1f2937;
}

.ep-features { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 8px; }
.ep-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--theme-text); }
.ep-features i { margin-top: 2px; color: var(--ep-ok); flex-shrink: 0; }
.ep-features li.is-off { color: var(--ep-off); }
.ep-features li.is-off i { color: var(--ep-off); }

/* quantity picker */
.ep-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--theme-bg-subtle); }
.ep-qty label { font-size: 14px; font-weight: 600; color: var(--theme-text-strong); }
.ep-stepper { display: flex; align-items: center; gap: 0; border-radius: 999px; overflow: hidden; border: 1px solid var(--theme-border-strong); background: var(--theme-bg-surface); }
.ep-stepper .btn {
    width: 44px; height: 44px; border: 0; padding: 0; border-radius: 0; cursor: pointer;
    background: transparent; color: var(--theme-text-strong); font-size: 20px; font-weight: 600;
}
.ep-stepper .btn:hover { background: var(--pg-accent-soft); color: var(--pg-accent-text); }
.ep-stepper .quantity-input {
    width: 52px; height: 44px; border: 0; border-radius: 0; text-align: center; font: inherit; font-size: 16px; font-weight: 700;
    background: transparent; color: var(--theme-text-strong); -moz-appearance: textfield;
}
.ep-stepper .quantity-input::-webkit-outer-spin-button, .ep-stepper .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ep-stepper .quantity-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--theme-accent); }
.ep-total { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 10px !important; font-size: 14px; color: var(--theme-text-muted); }
.ep-total b { font-size: 22px; font-weight: 800; color: var(--theme-heading); }
.ep-error { margin: -4px 0 8px !important; font-size: 13px; font-weight: 600; color: #dc2626; }
html.dark .ep-error { color: #f87171; }

/* ---------- Combo packs ---------- */
.ep-combos { display: grid; gap: 14px; }
.ep-combo {
    display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px;
    background: var(--theme-bg-surface); border: 1px solid var(--theme-border); box-shadow: var(--pg-shadow);
    transition: border-color .15s ease, transform .15s ease;
}
.ep-combo:hover { border-color: var(--pg-accent-line); transform: translateY(-2px); }
.ep-combo__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ep-combo__head h3 { font-size: 16px; font-weight: 800; }
.ep-combo__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ep-combo__price .ep-price { font-size: 22px; }
.ep-combo__price .ep-was { margin: 0; font-size: 13px; }
.ep-features--scroll { margin: 0; max-height: 168px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--theme-border-strong) transparent; }
.ep-combo__cta { width: 100%; margin-top: auto; }

/* ---------- Pay-as-you-go tables ---------- */
.ep-tables { display: grid; gap: 14px; align-items: start; }
.ep-table { border-radius: 18px; overflow: hidden; background: var(--theme-bg-surface); border: 1px solid var(--theme-border); box-shadow: var(--pg-shadow); }
.ep-table__head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--theme-border); }
.ep-table__head h3 { font-size: 16px; font-weight: 800; }
.ep-table__head p { margin-top: 2px !important; font-size: 13px; color: var(--theme-text-muted); }
.ep-rows { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--theme-border-strong) transparent; }
.ep-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 18px; }
.ep-row + .ep-row { border-top: 1px solid var(--theme-border); }
.ep-row__plan { display: flex; flex-direction: column; min-width: 0; }
.ep-row__plan b { font-size: 14px; font-weight: 700; color: var(--theme-text-strong); }
.ep-row__plan span { font-size: 12px; color: var(--theme-text-muted); }
.ep-row__plan i { color: var(--ep-ok); }
.ep-row__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; }
.ep-row__price s { font-size: 12px; color: var(--theme-text-faint); }
.ep-row__price b { font-size: 15px; font-weight: 800; color: var(--theme-heading); white-space: nowrap; }
.ep-row__price span { font-size: 11px; color: var(--theme-text-muted); }
.ep-row__buy {
    display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 14px;
    border-radius: 999px; font-size: 14px; font-weight: 700;
    background: var(--theme-button-bg); color: var(--theme-button-text) !important;
}
.ep-row__buy:hover { background: var(--theme-button-hover); }
.ep-table__empty { padding: 18px; font-size: 14px; color: var(--theme-text-muted); }
.ep-table__foot { padding: 10px 18px; font-size: 12px; color: var(--theme-text-muted); background: var(--theme-bg-subtle); border-top: 1px solid var(--theme-border); }
.ep-table__foot i { color: var(--ep-ok); margin-right: 4px; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
    .ep-combos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .ep-offers { grid-template-columns: 1fr 1fr; }
    .ep-offers--single { grid-template-columns: 1fr; }
    .ep-plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .ep-plan--popular { transform: translateY(-8px); }
}
@media (min-width: 1024px) {
    .ep-combos { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .ep-tables { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
