/* ============================================================
Pricing Section - Only layout & unique styles
Everything else (btn, card, badge) comes from ui.css
============================================================ */

.editorial-pricing {
    padding: 90px 28px 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    overflow: hidden;
}

.lang-fa .editorial-pricing,
.lang-fa .editorial-pricing .price-amount,
.lang-fa .editorial-pricing .price-original,
.lang-fa .editorial-pricing .price-per,
.lang-fa .editorial-pricing .pricing-plan-duration,
.lang-fa .editorial-pricing .pricing-plan-features,
.lang-fa .editorial-pricing .pricing-discount-badge {
    font-family: var(--font-body-fa);
}

.editorial-pricing .editorial-section-head {
    text-align: center;
    width: min(820px, calc(100% - 40px));
    margin: 0 auto 50px;
}

.editorial-pricing .editorial-section-head>p {
    margin: 0 0 10px;
    color: var(--landing-purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lang-fa .editorial-pricing .editorial-section-head>p {
    letter-spacing: 0;
    text-transform: none;
}

.editorial-pricing .editorial-section-head h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.3;
    font-weight: 900;
    color: var(--landing-ink);
}
.lang-fa .editorial-pricing .editorial-section-head h2 {
    line-height: 1.55;
}
.editorial-pricing .editorial-section-head h2 .highlight {
    color: var(--landing-purple);
}

/* ===== گرید پلن‌ها ===== */
.pricing-plan-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* ===== کارت پلن (ویژه) ===== */
.pricing-plan-card {
    padding: 36px 30px 32px;
    border-radius: 22px;
    border: 1.5px solid rgba(124, 88, 253, 0.10);
}
.pricing-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 88, 253, 0.14);
    border-color: rgba(124, 88, 253, 0.25);
}

/* پلن برجسته (وسط) */
.pricing-plan-card.featured {
    border: 2px solid var(--landing-purple);
    background: linear-gradient(160deg, #ffffff 0%, #f8f5ff 100%);
    box-shadow: 0 16px 48px rgba(124, 88, 253, 0.18);
    transform: scale(1.03);
}
.pricing-plan-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 24px 60px rgba(124, 88, 253, 0.24);
}

/* بج پلن پیشنهادی */
.pricing-plan-badge {
    position: absolute;
    top: -14px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--landing-purple), var(--landing-purple-dark));
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(124, 88, 253, 0.30);
}
.pricing-plan-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* بج تخفیف (با کلاس badge-lime) */
.pricing-discount-badge {
    margin-inline-start: 8px;
}

/* ===== هدر پلن ===== */
.pricing-plan-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(124, 88, 253, 0.08);
}

.pricing-plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(124, 88, 253, 0.07);
    transition: background 0.3s;
}
.pricing-plan-card:hover .pricing-plan-icon {
    background: rgba(124, 88, 253, 0.12);
}
.pricing-plan-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--landing-purple);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-plan-name {
    font-size: 20px;
    font-weight: 900;
    color: var(--landing-ink);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pricing-plan-tagline {
    display: block;
    margin-top: 6px;
    color: #6a5a8a;
    font-size: 11.5px;
    line-height: 1.65;
    font-weight: 500;
}

.pricing-plan-duration {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(124, 88, 253, 0.06);
    color: var(--landing-purple);
    font-size: 11px;
    font-weight: 700;
    margin-top: 12px;
}
.pricing-plan-duration svg {
    width: 13px;
    height: 13px;
}

/* ===== قیمت ===== */
.pricing-plan-price {
    text-align: center;
    padding: 26px 0;
    border-bottom: 1px solid rgba(124, 88, 253, 0.08);
}

.pricing-plan-price .price-amount {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--landing-ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.pricing-plan-price .price-currency {
    font-size: 14px;
    font-weight: 700;
    color: #6a5a8a;
}
.pricing-plan-price .price-free {
    font-size: 32px;
    color: var(--landing-purple);
}
.pricing-plan-price .price-per {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9a8bbf;
    font-weight: 600;
}
.pricing-plan-price .price-original {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #b8aed4;
    text-decoration: line-through;
    font-weight: 600;
}

/* ===== ویژگی‌ها ===== */
.pricing-plan-features {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.pricing-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #3d2f5e;
}
.pricing-plan-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--landing-purple);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pricing-plan-features li strong {
    font-weight: 800;
    color: var(--landing-purple-dark);
}

/* بج سطح */
.pricing-level-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

/* ===== دکمه CTA ===== */
.pricing-plan-cta {
    margin-top: auto;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}
.pricing-plan-cta svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.lang-fa .pricing-plan-cta svg {
    transform: scaleX(-1);
}

/* ===== یادداشت پایین ===== */
.pricing-note {
    width: min(780px, 100%);
    margin: 40px auto 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(124, 88, 253, 0.04);
    border: 1px solid rgba(124, 88, 253, 0.08);
}
.pricing-note-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(124, 88, 253, 0.08);
}
.pricing-note-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--landing-purple);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pricing-note-copy strong {
    display: block;
    font-size: 12px;
    color: var(--landing-ink);
    margin-bottom: 3px;
}
.pricing-note-copy p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    color: #6a5a8a;
}

/* ===== بخش سوالات متداول ===== */
.pricing-faq {
    width: min(920px, 100%);
    margin: 60px auto 0;
}
.pricing-faq-head {
    text-align: center;
    margin-bottom: 32px;
}
.pricing-faq-head h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
    color: var(--landing-ink);
}
.pricing-faq-head p {
    margin: 0;
    color: #6a5a8a;
    font-size: 13px;
    line-height: 1.8;
}
.pricing-faq-list {
    display: grid;
    gap: 10px;
}
.pricing-faq-item {
    padding: 18px 22px;
    border: 1px solid rgba(124, 88, 253, 0.12);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pricing-faq-item[open] {
    border-color: rgba(124, 88, 253, 0.30);
    box-shadow: 0 8px 24px rgba(124, 88, 253, 0.08);
}
.pricing-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 800;
    color: var(--landing-ink);
    line-height: 1.5;
}
.pricing-faq-item summary::-webkit-details-marker,
.pricing-faq-item summary::marker {
    display: none;
}
.pricing-faq-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(124, 88, 253, 0.08);
    color: var(--landing-purple);
    transition: transform 0.25s ease, background 0.25s ease;
}
.pricing-faq-chevron svg {
    width: 16px;
    height: 16px;
}
.pricing-faq-item[open] .pricing-faq-chevron {
    transform: rotate(180deg);
    background: var(--landing-purple);
    color: #ffffff;
}
.pricing-faq-item p {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(124, 88, 253, 0.08);
    color: #4d3d72;
    font-size: 13px;
    line-height: 1.95;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1000px) {
    .pricing-plan-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 20px;
    }
    .pricing-plan-card:nth-child(1) { order: 1; }
    .pricing-plan-card.featured { transform: none; order: 2; }
    .pricing-plan-card:nth-child(2) { order: 3; }
    .pricing-plan-card.featured:hover { transform: translateY(-6px); }
    .editorial-pricing { padding: 60px 20px 70px; }
}

@media (max-width: 640px) {
    .editorial-pricing { padding: 48px 16px 56px; }
    .editorial-pricing .editorial-section-head { margin-bottom: 36px; }
    .editorial-pricing .editorial-section-head h2 { font-size: 24px; }
    .pricing-plan-card { padding: 28px 22px 26px; border-radius: 18px; }
    .pricing-plan-price .price-amount { font-size: 30px; }
    .pricing-plan-features li { font-size: 12px; }
    .pricing-note { flex-direction: column; gap: 10px; padding: 16px 18px; }
    .pricing-faq { margin-top: 40px; }
    .pricing-faq-head h3 { font-size: 20px; }
    .pricing-faq-item { padding: 16px 18px; }
    .pricing-faq-item summary { font-size: 13px; }
    .pricing-faq-item p { font-size: 12px; }
}

@media (max-width: 420px) {
    .editorial-pricing { padding: 40px 14px 48px; }
    .editorial-pricing .editorial-section-head h2 { font-size: 22px; }
    .pricing-plan-card { padding: 24px 18px 22px; }
    .pricing-plan-cta { min-height: 48px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-plan-card,
    .pricing-plan-cta,
    .pricing-faq-chevron {
        transition: none !important;
    }
}