/* === PRICING.CSS ===
 * brain.ai-platform.space - тарифы с якорем €200K + психотриггерами
 * 3 карточки: LAUNCH / GROWTH (featured) / SCALE
 * Использует CSS-переменные из v2.css
 */

.brain-pricing {
    position: relative;
    overflow: hidden;
}

/* ============================================================ */
/* === ЯКОРЬ €200K (Anchor Bias) ============================== */
/* ============================================================ */
.pricing-anchor {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 22px 28px;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
        rgba(20, 20, 20, 0.55);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.pricing-anchor-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pricing-anchor-old-row {
    margin-bottom: 8px;
    opacity: 0.85;
}

.pricing-anchor-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-anchor-old {
    position: relative;
    display: inline-block;
}

.pricing-anchor-strike {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
}

/* SVG-стиль зачеркивание - линия растет */
.pricing-anchor-strike::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ef4444 15%, #ef4444 85%, transparent 100%);
    transform: translateY(-50%) rotate(-3deg);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    animation: anchor-strike 1.2s var(--ease-out-quart) 0.4s both;
    transform-origin: left center;
}

@keyframes anchor-strike {
    from { transform: translateY(-50%) rotate(-3deg) scaleX(0); }
    to   { transform: translateY(-50%) rotate(-3deg) scaleX(1); }
}

.pricing-anchor-arrow {
    font-size: 18px;
    color: var(--gold);
    animation: anchor-arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes anchor-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

.pricing-anchor-new {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-anchor-savings {
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.30);
}

/* ============================================================ */
/* === ТРИГГЕРЫ urgency / social / guarantee ================== */
/* ============================================================ */
.pricing-triggers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 36px;
    max-width: 920px;
}

.pricing-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pricing-trigger svg { flex-shrink: 0; }

.pricing-trigger-urgency { color: #ff9966; border-color: rgba(255, 153, 102, 0.35); }
.pricing-trigger-urgency svg { color: #ff9966; animation: trigger-pulse 1.6s ease-in-out infinite; }

.pricing-trigger-social { color: var(--gold); border-color: rgba(255, 215, 0, 0.35); }
.pricing-trigger-social svg { color: var(--gold); }

.pricing-trigger-guarantee { color: #10b981; border-color: rgba(16, 185, 129, 0.35); }
.pricing-trigger-guarantee svg { color: #10b981; }

@keyframes trigger-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.1); }
}

/* ============================================================ */
/* === ТРИ КАРТОЧКИ ТАРИФОВ =================================== */
/* ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 24px 26px;
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.30),
        inset 0 0 60px rgba(255, 215, 0, 0.02);
    transition: transform 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dim);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.40),
        0 0 40px rgba(255, 215, 0, 0.06),
        inset 0 0 60px rgba(255, 215, 0, 0.04);
}

.pricing-card-featured {
    border-color: var(--gold);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.10) 0%, transparent 60%),
        rgba(20, 20, 20, 0.55);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.40),
        0 0 60px rgba(255, 215, 0, 0.10),
        inset 0 0 80px rgba(255, 215, 0, 0.04);
    transform: translateY(-12px) scale(1.03);
}

.pricing-card-featured:hover { transform: translateY(-16px) scale(1.03); }

.pricing-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    color: #0a0a0a;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.40);
    white-space: nowrap;
    animation: badge-shine 2.4s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { box-shadow: 0 6px 18px rgba(255, 215, 0, 0.40); }
    50%      { box-shadow: 0 6px 24px rgba(255, 215, 0, 0.65), 0 0 30px rgba(255, 215, 0, 0.30); }
}

/* === Head === */
.pricing-card-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-card-tier {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
}

.pricing-card-scale .pricing-card-tier { color: var(--electric); }

.pricing-card-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.15;
}

.pricing-card-target {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* === Setup row с зачеркнутой "старой" ценой === */
.pricing-card-setup {
    padding: 12px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
}

.pricing-card-setup-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pricing-card-setup-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pricing-card-setup-old {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.8);
    text-decoration-thickness: 2px;
    opacity: 0.7;
}

.pricing-card-setup-new {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* === Main цена /мес === */
.pricing-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-card-price-value {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-card-featured .pricing-card-price-value {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card-scale .pricing-card-price-value {
    background: linear-gradient(135deg, var(--electric), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card-price-period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-card-included {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-card-included strong {
    color: var(--gold);
    font-weight: 700;
}

.pricing-card-unlimited {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--electric);
}

.pricing-card-overage {
    font-size: 12px;
    color: var(--text-muted);
}

/* === Features list === */
.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-card-features li {
    position: relative;
    padding-left: 24px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.pricing-card-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 30%, transparent 31%), rgba(255, 215, 0, 0.08);
}

.pricing-card-features li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 4px;
    border-left: 2px solid #0a0a0a;
    border-bottom: 2px solid #0a0a0a;
    transform: rotate(-45deg);
}

.pricing-card-scale .pricing-card-features li::before {
    background: radial-gradient(circle, var(--electric) 30%, transparent 31%);
}

/* === Payback note === */
.pricing-card-payback {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-left: 2px solid #10b981;
    border-radius: 0 8px 8px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #10b981;
    font-weight: 500;
}

.pricing-card-payback svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #10b981;
}

/* === CTA === */
.pricing-card-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    min-height: 48px;
}

/* === Annual save badge под тарифами === */
.pricing-annual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px auto 0;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 165, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.30);
    border-radius: 50px;
    max-width: max-content;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
}

.pricing-annual svg { color: var(--gold); }

.pricing-note {
    margin: 16px auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================ */
/* === FAQ ВОЗРАЖЕНИЙ ========================================= */
/* ============================================================ */
.pricing-faq {
    margin: 48px auto 0;
    max-width: 760px;
}

.pricing-faq-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 22px;
}

.pricing-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-faq-item {
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out-quart);
}

.pricing-faq-item:hover { border-color: var(--gold-dim); }

.pricing-faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 44px;
    transition: color 0.2s;
}

.pricing-faq-item summary::-webkit-details-marker { display: none; }

.pricing-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--gold);
    transition: transform 0.3s var(--ease-out-quart);
}

.pricing-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.pricing-faq-item summary:hover { color: var(--gold); }

.pricing-faq-item p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ============================================================ */
/* === LIGHT THEME ============================================ */
/* ============================================================ */
html.light-theme .pricing-anchor {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(184, 134, 11, 0.10) 0%, transparent 60%),
        #ffffff;
    border-color: rgba(184, 134, 11, 0.22);
    box-shadow: 0 8px 24px rgba(80, 60, 30, 0.06);
}
html.light-theme .pricing-anchor-label { color: #6a5a3a; }
html.light-theme .pricing-anchor-strike { color: #6a5a3a; }
html.light-theme .pricing-anchor-arrow { color: #b8860b; }
html.light-theme .pricing-anchor-new {
    background: linear-gradient(135deg, #b8860b 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-theme .pricing-trigger {
    background: #ffffff;
    color: #4a3a1a;
    border-color: rgba(184, 134, 11, 0.20);
}
html.light-theme .pricing-trigger-urgency { color: #c2410c; border-color: rgba(194, 65, 12, 0.35); }
html.light-theme .pricing-trigger-urgency svg { color: #c2410c; }
html.light-theme .pricing-trigger-social { color: #b8860b; border-color: rgba(184, 134, 11, 0.40); }
html.light-theme .pricing-trigger-social svg { color: #b8860b; }
html.light-theme .pricing-trigger-guarantee { color: #059669; border-color: rgba(5, 150, 105, 0.40); }
html.light-theme .pricing-trigger-guarantee svg { color: #059669; }

html.light-theme .pricing-card {
    background: #ffffff;
    border-color: rgba(184, 134, 11, 0.18);
    box-shadow: 0 8px 24px rgba(80, 60, 30, 0.08);
}
html.light-theme .pricing-card:hover {
    border-color: rgba(184, 134, 11, 0.50);
    box-shadow: 0 16px 36px rgba(80, 60, 30, 0.14), 0 0 24px rgba(184, 134, 11, 0.08);
}
html.light-theme .pricing-card-featured {
    border-color: #b8860b;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(184, 134, 11, 0.14) 0%, transparent 60%),
        #ffffff;
    box-shadow: 0 16px 40px rgba(80, 60, 30, 0.14), 0 0 30px rgba(184, 134, 11, 0.12);
}
html.light-theme .pricing-card-tier { color: #8b6914; }
html.light-theme .pricing-card-featured .pricing-card-tier { color: #b8860b; }
html.light-theme .pricing-card-scale .pricing-card-tier { color: #0e7490; }
html.light-theme .pricing-card-name { color: #1a1a1a; }
html.light-theme .pricing-card-target { color: #6a5a3a; }
html.light-theme .pricing-card-setup { border-color: rgba(184, 134, 11, 0.20); }
html.light-theme .pricing-card-setup-label { color: #6a5a3a; }
html.light-theme .pricing-card-setup-old { color: #8a7a5a; }
html.light-theme .pricing-card-setup-new { color: #1a1a1a; }
html.light-theme .pricing-card-price-value { color: #1a1a1a; }
html.light-theme .pricing-card-featured .pricing-card-price-value {
    background: linear-gradient(135deg, #b8860b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html.light-theme .pricing-card-scale .pricing-card-price-value {
    background: linear-gradient(135deg, #0e7490, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html.light-theme .pricing-card-price-period { color: #6a5a3a; }
html.light-theme .pricing-card-included { color: #2a1f0a; }
html.light-theme .pricing-card-included strong { color: #b8860b; }
html.light-theme .pricing-card-unlimited { color: #0e7490; }
html.light-theme .pricing-card-overage { color: #6a5a3a; }
html.light-theme .pricing-card-features li { color: #2a1f0a; }
html.light-theme .pricing-card-scale .pricing-card-features li::before {
    background: radial-gradient(circle, #0e7490 30%, transparent 31%);
}
html.light-theme .pricing-card-features li::after { border-color: #ffffff; }
html.light-theme .pricing-card-badge {
    background: linear-gradient(135deg, #b8860b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.40);
}
html.light-theme .pricing-card-payback {
    background: rgba(5, 150, 105, 0.10);
    color: #047857;
    border-left-color: #059669;
}
html.light-theme .pricing-card-payback svg { color: #059669; }

html.light-theme .pricing-annual {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.14) 0%, rgba(217, 119, 6, 0.10) 100%);
    border-color: rgba(184, 134, 11, 0.40);
    color: #8b6914;
}
html.light-theme .pricing-annual svg { color: #b8860b; }
html.light-theme .pricing-note { color: #4a3a1a; }

html.light-theme .pricing-faq-title { color: #1a1a1a; }
html.light-theme .pricing-faq-item {
    background: #ffffff;
    border-color: rgba(184, 134, 11, 0.18);
}
html.light-theme .pricing-faq-item:hover { border-color: rgba(184, 134, 11, 0.50); }
html.light-theme .pricing-faq-item summary { color: #1a1a1a; }
html.light-theme .pricing-faq-item summary::after { color: #b8860b; }
html.light-theme .pricing-faq-item summary:hover { color: #b8860b; }
html.light-theme .pricing-faq-item p { color: #2a1f0a; }

/* ============================================================ */
/* === RESPONSIVE ============================================ */
/* ============================================================ */

@media (max-width: 960px) {
    .pricing-anchor {
        padding: 18px 18px;
    }
    .pricing-anchor-strike { font-size: 22px; }
    .pricing-anchor-new { font-size: 26px; }

    .pricing-triggers { gap: 8px; }
    .pricing-trigger {
        font-size: 12px;
        padding: 8px 12px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 480px;
    }
    .pricing-card-featured {
        transform: translateY(0) scale(1);
        order: -1;
    }
    .pricing-card-featured:hover {
        transform: translateY(-4px) scale(1);
    }
}

@media (max-width: 600px) {
    .pricing-anchor-old-row,
    .pricing-anchor-new-row {
        flex-direction: column;
        gap: 6px;
    }
    .pricing-anchor-label {
        font-size: 11px;
        text-align: center;
    }
    .pricing-anchor-strike { font-size: 20px; }
    .pricing-anchor-new { font-size: 24px; text-align: center; }
    .pricing-anchor-savings { font-size: 10.5px; padding: 5px 12px; }

    .pricing-card { padding: 26px 20px 22px; }
    .pricing-card-name { font-size: 22px; }
    .pricing-card-price-value { font-size: 38px; }
    .pricing-card-setup-new { font-size: 22px; }
    .pricing-card-features li { font-size: 13px; }

    .pricing-faq-title { font-size: 20px; }
    .pricing-faq-item summary { font-size: 14px; padding: 14px 18px; padding-right: 40px; }
    .pricing-faq-item p { font-size: 13.5px; padding: 0 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .pricing-card:hover,
    .pricing-card-featured,
    .pricing-card-featured:hover {
        transform: none;
        transition: none;
    }
    .pricing-anchor-strike::after { animation: none; transform: translateY(-50%) rotate(-3deg) scaleX(1); }
    .pricing-anchor-arrow,
    .pricing-card-badge,
    .pricing-trigger-urgency svg { animation: none; }
}
