/**
 * صفحه نخست — بازطراحی CRO/UX
 *
 * @package Hesabix2
 */

/* نوار کاربران شادمان */
.fp-legacy-bar {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.8125rem;
    color: var(--slate-600);
}
.fp-legacy-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    text-align: center;
}
@media (min-width: 1024px) {
    .fp-legacy-bar__inner {
        justify-content: flex-end;
        text-align: right;
    }
}
.fp-legacy-bar a {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
}
.fp-legacy-bar a:hover {
    color: var(--brand-500);
    text-decoration: underline;
}
.fp-legacy-bar__sep {
    color: var(--slate-300);
}

/* Hero ساده‌شده */
.fp-hero--focused {
    min-height: auto;
}
.fp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-600);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(14, 165, 233, 0.25);
    margin-bottom: 1rem;
}
.fp-hero__badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--success-500);
    flex-shrink: 0;
}
.fp-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--slate-600);
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}
@media (min-width: 1024px) {
    .fp-hero__subtitle {
        margin-right: 0;
        margin-left: 0;
    }
}
.fp-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
    .fp-hero__actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}
@media (min-width: 1024px) {
    .fp-hero__actions {
        justify-content: flex-start;
    }
}
.fp-hero__cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: var(--accent-500);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 20px -6px rgba(249, 115, 22, 0.45);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.fp-hero__cta-primary:hover,
.fp-hero__cta-primary:focus-visible {
    color: #fff !important;
    background: var(--accent-400);
    box-shadow: 0 10px 24px -6px rgba(249, 115, 22, 0.55);
    transform: translateY(-1px);
}
.fp-hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-600) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fp-hero__cta-secondary:hover {
    color: var(--brand-500) !important;
}
.fp-hero__guarantee {
    font-size: 0.8125rem;
    color: var(--slate-500);
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.6;
}
@media (min-width: 1024px) {
    .fp-hero__guarantee {
        margin-right: 0;
        margin-left: 0;
    }
}
.fp-hero__stats-note {
    font-size: 0.75rem;
    color: var(--slate-400);
    text-align: center;
}
@media (min-width: 1024px) {
    .fp-hero__stats-note {
        text-align: right;
    }
}

/* نوار اعتماد */
.fp-trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--slate-100);
    padding: 1.25rem 0;
}
.fp-trust-strip__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1024px) {
    .fp-trust-strip__list {
        justify-content: flex-start;
    }
}
.fp-trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
}
.fp-trust-strip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(14, 165, 233, 0.1);
    color: var(--brand-600);
    flex-shrink: 0;
}
.fp-trust-strip__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* لوگوی کسب‌وکارها */
.fp-trust-logos {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-100);
}
.fp-trust-logos__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
    text-align: center;
}
@media (min-width: 1024px) {
    .fp-trust-logos__label {
        text-align: right;
    }
}
.fp-trust-logos__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1024px) {
    .fp-trust-logos__list {
        justify-content: flex-start;
    }
}
.fp-trust-logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
a.fp-trust-logos__item:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--shadow-sm);
}
.fp-trust-logos__img {
    max-height: 2rem;
    width: auto;
    max-width: 7.5rem;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.fp-trust-logos__item:hover .fp-trust-logos__img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Outcomes */
.fp-outcomes-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .fp-outcomes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.fp-outcome-card {
    padding: 1.75rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--light-200);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.fp-outcome-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.3);
}
.fp-outcome-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-xl);
    background: rgba(14, 165, 233, 0.12);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.fp-outcome-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 0.5rem;
}
.fp-outcome-card__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--slate-500);
    margin: 0;
}

/* سکشن AI */
.fp-ai-spotlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.fp-ai-spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 80% 20%, rgba(14, 165, 233, 0.25) 0%, transparent 60%);
    pointer-events: none;
}
.fp-ai-spotlight__inner {
    position: relative;
    z-index: 1;
}
.fp-ai-spotlight__title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.fp-ai-spotlight__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0 0 1.5rem;
    max-width: 40rem;
}
.fp-ai-spotlight__list {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .fp-ai-spotlight__list {
        grid-template-columns: repeat(3, 1fr);
    }
}
.fp-ai-spotlight__list li {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    color: #e2e8f0;
}

/* کارت امکانات — پالت یکپارچه */
.fp-feature-card .fp-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-xl);
    background: rgba(14, 165, 233, 0.12);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-feature-card:hover .fp-feature-icon {
    background: rgba(14, 165, 233, 0.18);
}

/* رسانهٔ متحرک — lazy */
.hesabix2-motion-media--lazy {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.hesabix2-motion-media--loaded {
    opacity: 1;
}
.hesabix2-motion-placeholder {
    width: 4rem;
    height: 4rem;
    color: var(--brand-400);
    opacity: 0.5;
}

/* شروع سریع */
.fp-steps {
    display: grid;
    gap: 1rem;
}
.fp-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: var(--radius-2xl);
    background: var(--light-50);
    border: 1px solid var(--light-200);
}
.fp-step__num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-xl);
    background: rgba(14, 165, 233, 0.12);
    color: var(--brand-600);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-step__title {
    font-weight: 600;
    color: var(--slate-800);
    margin: 0 0 0.25rem;
}
.fp-step__desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.65;
}

/* قیمت‌گذاری */
.fp-pricing-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .fp-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.fp-pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--light-200);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.fp-pricing-card--highlight {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 30px -12px rgba(14, 165, 233, 0.25);
}
.fp-pricing-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 0.5rem;
}
.fp-pricing-card__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-600);
    margin: 0;
    letter-spacing: -0.02em;
}
.fp-pricing-card__note {
    font-size: 0.8125rem;
    color: var(--slate-500);
    margin: 0 0 1.25rem;
}
.fp-pricing-card__features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    flex: 1;
}
.fp-pricing-card__features li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
}
.fp-pricing-card__features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--success-500);
    font-weight: 700;
}
.fp-pricing-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: background 0.2s ease, color 0.2s ease;
}
.fp-pricing-card--highlight .fp-pricing-card__cta {
    background: var(--accent-500);
    color: #fff !important;
}
.fp-pricing-card--highlight .fp-pricing-card__cta:hover {
    background: var(--accent-400);
    color: #fff !important;
}
.fp-pricing-card:not(.fp-pricing-card--highlight) .fp-pricing-card__cta {
    background: rgba(14, 165, 233, 0.1);
    color: var(--brand-600) !important;
}
.fp-pricing-card:not(.fp-pricing-card--highlight) .fp-pricing-card__cta:hover {
    background: rgba(14, 165, 233, 0.18);
}

/* افزونه — accent یکپارچه */
.fp-addon-accent {
    background: var(--brand-500) !important;
}

/* نظرات */
.fp-testimonial__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-xl);
    background: rgba(14, 165, 233, 0.15);
    color: var(--brand-600);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* فشرده — حامیان و کانال‌ها */
.fp-footer-meta {
    background: var(--light-50);
    border-top: 1px solid var(--slate-100);
    padding: 2.5rem 0;
}
.fp-footer-meta__grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .fp-footer-meta__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* اسکرول انکر */
[id="pricing"],
[id="outcomes"],
[id="ai-spotlight"],
[id="getting-started"] {
    scroll-margin-top: 4.5rem;
}
@media (min-width: 640px) {
    [id="pricing"],
    [id="outcomes"],
    [id="ai-spotlight"],
    [id="getting-started"] {
        scroll-margin-top: 5rem;
    }
}

/* انیمیشن ورود */
.fp-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fp-reveal.fp-reveal--visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .fp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
