/* ===========================================
   Pricing Page — Black Minimal Landing
   =========================================== */

/* ROOT REQUIRED warning banner — filters before payment */
.pricing-root-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 16px 20px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(226,179,90,0.10), rgba(226,179,90,0.04));
    border: 1px solid rgba(226,179,90,0.32);
    box-shadow: 0 4px 18px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.pricing-root-warning-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(226,179,90,0.16);
    border: 1px solid rgba(226,179,90,0.4);
    color: #e2b35a;
}

.pricing-root-warning-icon svg { width: 22px; height: 22px; }

.pricing-root-warning-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.5;
}

.pricing-root-warning-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #f0c878;
    text-transform: uppercase;
}

.pricing-root-warning-text {
    color: rgba(255,255,255,0.78);
}

@media (max-width: 480px) {
    .pricing-root-warning {
        gap: 10px;
        padding: 12px 14px;
    }
    .pricing-root-warning-icon { width: 32px; height: 32px; }
    .pricing-root-warning-icon svg { width: 18px; height: 18px; }
    .pricing-root-warning-body { font-size: 0.85rem; }
}

/* Override home.css centered layout: pricing scrolls top-down */
#app.pricing-app {
    justify-content: flex-start;
    padding: 80px 24px 64px;
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header .logo-mark {
    margin-bottom: 24px;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 12px;
}

.pricing-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto;
}

.pricing-billing-toggle {
    margin: 0 auto 28px;
    justify-content: center;
}

.pricing-plans-grid {
    margin-bottom: 24px;
}

/* Plan card buttons rendered as <a> on this page */
.pricing-plans-grid .btn-plan {
    display: block;
    text-align: center;
    text-decoration: none;
}

.pricing-plan-notes {
    max-width: 720px;
    margin: 24px auto 32px;
}

.pricing-app .footer-tagline,
.pricing-app .footer-legal-links {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    margin-top: 8px;
}

.pricing-app .footer-legal-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

@media (max-width: 768px) {
    #app.pricing-app {
        padding: 64px 16px 48px;
    }
    .pricing-title {
        font-size: 1.6rem;
    }
}

/* ═══════════════════════════════════════════════════════
   Metal display (Бронза / Сталь / Мифрил / Метеорит)
   ═══════════════════════════════════════════════════════ */
.plan-metal-tag {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 4px;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
}

.plan-flavor {
    font-family: 'Kalam', cursive;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.3;
}

.plan-name--internal {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.32) !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px !important;
}

/* per-metal accents */
.plan-card--free .plan-metal-tag {
    background-image: linear-gradient(135deg, #cd7f32 0%, #b06a23 50%, #e2a060 100%);
}
.plan-card--free {
    border-color: rgba(205,127,50,0.22);
}
.plan-card--free:hover { border-color: rgba(205,127,50,0.4); }

.plan-card--pro .plan-metal-tag {
    background-image: linear-gradient(135deg, #d8d8e0 0%, #a8a8b0 50%, #f0f0f5 100%);
}
.plan-card--pro {
    border-color: rgba(192,192,200,0.28);
}
.plan-card--pro:hover { border-color: rgba(216,216,224,0.5); }

.plan-card--enterprise .plan-metal-tag {
    background-image: linear-gradient(135deg, #b8e0ff 0%, #7ed7ff 50%, #d0eaff 100%);
}
.plan-card--enterprise {
    border-color: rgba(126,215,255,0.3);
    box-shadow: 0 0 24px rgba(126,215,255,0.06);
}
.plan-card--enterprise:hover {
    border-color: rgba(126,215,255,0.55);
    box-shadow: 0 0 36px rgba(126,215,255,0.14);
}

.plan-card--lifetime .plan-metal-tag {
    background-image: linear-gradient(135deg, #f0c878 0%, #e2b35a 25%, #fff0c8 50%, #e2b35a 75%, #c89548 100%);
    background-size: 200% 100%;
    animation: lifetime-shimmer 6s ease-in-out infinite;
}
.plan-card--lifetime {
    border-color: rgba(226,179,90,0.4);
    box-shadow: 0 0 32px rgba(226,179,90,0.08);
    position: relative;
    /* NB: overflow:hidden removed — оно резало бейдж «Навсегда» (::before
       у .plan-card.lifetime сидит за верхним краем, top:-10px). Шиммер
       теперь оформлен через background-position на ::after с inset:0,
       поэтому не вылезает за карточку. */
}
.plan-card--lifetime:hover {
    border-color: rgba(226,179,90,0.7);
    box-shadow: 0 0 48px rgba(226,179,90,0.18);
}

/* Lifetime shimmer overlay — золотой блик через background-position
   (а не через перемещение элемента), чтобы остаться внутри карточки. */
.plan-card--lifetime::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg,
        transparent 30%,
        rgba(255, 240, 200, 0.06) 45%,
        rgba(255, 240, 200, 0.20) 50%,
        rgba(255, 240, 200, 0.06) 55%,
        transparent 70%);
    background-size: 250% 100%;
    background-position: 200% 0;
    animation: lifetime-shine-bg 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Содержимое карточки сидит над шиммером */
.plan-card--lifetime > * {
    position: relative;
    z-index: 1;
}

@keyframes lifetime-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes lifetime-shine-bg {
    0%        { background-position: 200% 0; }
    20%, 100% { background-position: -100% 0; }
}

/* respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .plan-card--lifetime .plan-metal-tag { animation: none; background-position: 0% 50%; }
    .plan-card--lifetime::after { animation: none; background-position: -100% 0; }
}

/* PRO addon note */
.plan-addon-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px -2px 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(192,192,200,0.05);
    border: 1px dashed rgba(192,192,200,0.22);
    text-align: center;
}

.plan-addon-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(216,216,224,0.85);
}

.plan-addon-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

.plan-addon-billing {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    line-height: 1.3;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .plan-metal-tag { font-size: 1.35rem; }
    .plan-flavor { font-size: 0.76rem; }
    .plan-addon-text { font-size: 0.72rem; }
}
