/* ─── Pricing page ───────────────────────────────────────── */
.pricing-wrap {
    /* Four 300px cards with 20px gaps need 1260px. At 1100px the fourth
       plan sat outside the visible area behind a scrollbar nobody sees,
       so the most expensive plan was the one being hidden. */
    max-width: 1356px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}
.pricing-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.pricing-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #e0e0f0);
    margin: 0 0 0.75rem;
}
.pricing-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary, #c0c0d8);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Type tabs ──────────────────────────────────────────── */
.pricing-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.pricing-tab {
    padding: 10px 28px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color, #2a2a3e);
    background: transparent;
    color: var(--text-secondary, #a0a0b8);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.pricing-tab.active,
.pricing-tab:hover {
    background: var(--primary-accent, #7c3aed);
    border-color: var(--primary-accent, #7c3aed);
    color: #fff;
}

/* ─── Plans grid ─────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    padding: .25rem;
    margin-bottom: 2.5rem;
}
.pricing-grid > .plan-card {
    min-width: 0;
}
@media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-reset-note {
    margin: -1rem auto 2.5rem;
    max-width: 680px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary, #9aa0b4);
}
/* Prices are in UAH — shown to the Ukrainian market, which reads the site in
   Ukrainian and in Russian alike. Other markets get plans + features and
   request a quote via the order button, because their price is agreed with a
   manager. The assistant follows the same split (see web_app/utils/ai_tools.py
   PRICE_LANGUAGES); the two must not disagree, or the chat quotes a figure the
   page refuses to show. */
html:not([lang="uk"]):not([lang="ru"]) .plan-price,
html:not([lang="uk"]):not([lang="ru"]) .plan-price-perdoc {
    display: none;
}
/* Единый тариф PL/CS: фиксированная локальная цена — показываем всегда,
   переопределяя правило выше, что прячет UAH-цены для не-uk/ru. */
.plan-price.plan-price-region { display: block !important; }

/* ─── Plan card ──────────────────────────────────────────── */
.plan-card {
    background: var(--bg-secondary, #1e1e2e);
    border: 1.5px solid var(--border-color, #2a2a3e);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}
.plan-card:hover {
    border-color: var(--primary-accent, #7c3aed);
    transform: translateY(-3px);
}
.plan-card.popular {
    border-color: var(--primary-accent, #7c3aed);
    box-shadow: 0 0 0 1px var(--primary-accent, #7c3aed), 0 8px 32px rgba(124,58,237,0.18);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-accent, #7c3aed);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.plan-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #e0e0f0);
    margin: 0 0 0.25rem;
}
.plan-positions {
    font-size: 0.82rem;
    color: var(--text-muted, #6b6b88);
    margin: 0 0 1.25rem;
}
.plan-price {
    margin-bottom: 1.5rem;
}
.plan-price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary, #e0e0f0);
    line-height: 1;
}
.plan-price-currency {
    font-size: 1rem;
    color: var(--text-secondary, #c0c0d8);
    margin-left: 3px;
}
.plan-price-period {
    font-size: 0.8rem;
    color: var(--text-muted, #6b6b88);
    margin-top: 3px;
}
.plan-price-perdoc {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-accent, #7c3aed);
    margin-top: 4px;
}
.plan-divider {
    border: none;
    border-top: 1px solid var(--border-color, #2a2a3e);
    margin: 0 0 1.25rem;
}

/* ─── Features list ──────────────────────────────────────── */
.plan-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Promoted, highlighted monthly document count (moved to the top of the list) */
.plan-doc-li {
    order: -1;
    font-size: 1.05rem !important;
    font-weight: 800;
    color: var(--primary-accent, #7c3aed) !important;
    background: rgba(124,58,237,0.10);
    border: 1px solid rgba(124,58,237,0.22);
    border-radius: 9px;
    padding: 0.5rem 0.7rem !important;
    margin-bottom: 1rem !important;
}
.plan-doc-li .feat-icon { margin-top: 3px; }
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #c0c0d8);
    line-height: 1.5;
    margin-bottom: 0.55rem;
}
.plan-features li .feat-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.plan-features li.feat-no {
    color: var(--text-muted, #6b6b88);
    text-decoration: line-through;
    opacity: 0.5;
}
.plan-cta {
    display: block;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: var(--primary-accent, #7c3aed);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.15s;
}
.plan-cta:hover { opacity: 0.85; }
.plan-cta.outline {
    background: transparent;
    border: 1.5px solid var(--primary-accent, #7c3aed);
    color: var(--primary-accent, #7c3aed);
}
.plan-cta.outline:hover {
    background: var(--primary-accent, #7c3aed);
    color: #fff;
}

/* ─── Type panel ─────────────────────────────────────────── */
.pricing-type-panel { display: none; }
.pricing-type-panel.active { display: block; }

/* ─── Type info block ────────────────────────────────────── */
.pricing-type-info {
    background: var(--bg-secondary, #1e1e2e);
    border: 1px solid var(--border-color, #2a2a3e);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pricing-type-info-icon { font-size: 2.5rem; flex-shrink: 0; }
.pricing-type-info-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #e0e0f0);
    margin: 0 0 0.5rem;
}
.pricing-type-info-text p {
    font-size: 0.88rem;
    color: var(--text-secondary, #c0c0d8);
    margin: 0;
    line-height: 1.6;
}

/* ─── All features table ─────────────────────────────────── */
.pricing-compare {
    background: var(--bg-secondary, #1e1e2e);
    border: 1px solid var(--border-color, #2a2a3e);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
}
.pricing-compare h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #e0e0f0);
    padding: 1.25rem 1.5rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border-color, #2a2a3e);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.compare-table th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b6b88);
    background: var(--bg-hover, rgba(255,255,255,0.03));
    border-bottom: 1px solid var(--border-color, #2a2a3e);
}
.compare-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary, #c0c0d8);
    vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 500; color: var(--text-primary, #e0e0f0); }
.compare-table .check { color: #34d399; font-size: 1rem; }
.compare-table .cross { color: var(--text-muted, #6b6b88); font-size: 0.9rem; }

/* ─── FAQ / CTA section ──────────────────────────────────── */
.pricing-cta-block {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary, #1e1e2e);
    border: 1px solid var(--border-color, #2a2a3e);
    border-radius: 16px;
}
.pricing-cta-block h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary, #e0e0f0);
    margin: 0 0 0.75rem;
}
.pricing-cta-block p {
    color: var(--text-secondary, #c0c0d8);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.pricing-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.pricing-cta-btns a {
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.15s;
}
.pricing-cta-btns .btn-p {
    background: var(--primary-accent, #7c3aed);
    color: #fff;
}
.pricing-cta-btns .btn-s {
    background: transparent;
    border: 1.5px solid var(--border-color, #2a2a3e);
    color: var(--text-secondary, #c0c0d8);
}
.pricing-cta-btns a:hover { opacity: 0.82; }
