/**
 * Shared Product Page Styles
 * Uses CSS custom properties: --product-primary, --product-accent
 *
 * @since 2.0.0
 */

/* ============================================
   Container & Section (shared)
   ============================================ */

.ez-prod-page .ez-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ez-prod-page .ez-section {
    padding: 5rem 0;
}

.ez-prod-page .ez-section--gray {
    background: var(--wp--preset--color--surface-alt, #f8fafc);
}

.ez-prod-page .ez-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.ez-prod-page .ez-section__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--product-primary, var(--wp--preset--color--primary));
    margin: 0.75rem 0 0;
}

/* ============================================
   Product Hero
   ============================================ */

.ez-prod-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    color: #fff;
}

.ez-prod-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ez-prod-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--product-accent, #4a90d9);
}

.ez-prod-hero__shape--1 {
    width: 400px;
    height: 400px;
    top: -150px;
    inset-inline-end: -80px;
    animation: ez-prod-float 8s ease-in-out infinite;
}

.ez-prod-hero__shape--2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    inset-inline-start: -40px;
    animation: ez-prod-float 6s ease-in-out infinite reverse;
}

@keyframes ez-prod-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.ez-prod-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ez-prod-hero__content {
    position: relative;
    z-index: 1;
}

.ez-prod-hero__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin: 0.75rem 0 1rem;
}

.ez-prod-hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
}

.ez-prod-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ez-prod-hero__trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ez-prod-hero__trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.ez-prod-hero__visual {
    position: relative;
    z-index: 1;
}

/* ============================================
   Trust Bar
   ============================================ */

.ez-prod-trust {
    background: var(--wp--preset--color--surface, #fff);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e2e8f0);
}

.ez-prod-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.ez-prod-trust__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ez-prod-trust__stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--product-primary, var(--wp--preset--color--primary));
    line-height: 1.2;
}

.ez-prod-trust__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
}

/* ============================================
   Features Grid
   ============================================ */

.ez-prod-features {
    display: grid;
    grid-template-columns: repeat(var(--feat-cols, 3), 1fr);
    gap: 1.5rem;
}

.ez-prod-feature {
    background: var(--wp--preset--color--surface, #fff);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ez-prod-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ez-prod-feature__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--product-accent, var(--wp--preset--color--secondary));
}

.ez-prod-feature__icon svg {
    width: 100%;
    height: 100%;
}

.ez-prod-feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--product-primary, var(--wp--preset--color--primary));
    margin: 0 0 0.5rem;
}

.ez-prod-feature__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   How It Works Timeline
   ============================================ */

.ez-prod-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.ez-prod-timeline__step {
    position: relative;
    padding: 1.5rem 1rem;
}

.ez-prod-timeline__number {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--product-accent, var(--wp--preset--color--secondary));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ez-prod-timeline__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--product-primary, var(--wp--preset--color--primary));
    margin: 0 0 0.5rem;
}

.ez-prod-timeline__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Product CTA
   ============================================ */

.ez-prod-cta {
    padding: 5rem 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--product-primary, #1e3a5f) 80%, black),
        var(--product-primary, #1e3a5f),
        color-mix(in srgb, var(--product-primary, #1e3a5f) 70%, var(--product-accent, #4a90d9))
    );
}

.ez-prod-cta__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
}

.ez-prod-cta__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 2rem;
    max-width: 480px;
    line-height: 1.7;
}

.ez-prod-cta__note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem 0 0;
}

/* ============================================
   Audience Cards
   ============================================ */

.ez-prod-audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ez-prod-audience__card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--wp--preset--color--surface, #fff);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ez-prod-audience__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ez-prod-audience__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--product-accent, var(--wp--preset--color--secondary));
}

.ez-prod-audience__icon svg {
    width: 100%;
    height: 100%;
}

.ez-prod-audience__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--product-primary, var(--wp--preset--color--primary));
    margin: 0 0 0.5rem;
}

.ez-prod-audience__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Shared Buttons
   ============================================ */

.ez-prod-page .ez-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.ez-prod-page .ez-btn--primary {
    background: var(--wp--preset--color--accent, #ff6f61);
    color: #fff;
}

.ez-prod-page .ez-btn--primary:hover {
    background: #e5574d;
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.35);
    color: #fff;
}

.ez-prod-page .ez-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.ez-prod-page .ez-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ez-prod-page .ez-btn--white {
    background: #fff;
    color: var(--product-primary, var(--wp--preset--color--primary));
}

.ez-prod-page .ez-btn--white:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
    color: var(--product-primary, var(--wp--preset--color--primary));
}

.ez-prod-page .ez-btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.ez-prod-page .ez-btn--glow {
    animation: ez-prod-btn-glow 2.5s ease-in-out infinite;
}

@keyframes ez-prod-btn-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 16px 3px rgba(255, 255, 255, 0.2); }
}

/* ============================================
   Section Label
   ============================================ */

.ez-prod-page .ez-section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--product-accent, #4a90d9) 12%, transparent);
    color: var(--product-accent, var(--wp--preset--color--secondary));
    letter-spacing: 0.02em;
}

.ez-prod-page .ez-section-label--light {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Animations
   ============================================ */

.ez-prod-page .ez-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ez-prod-page .ez-fade-in.ez-visible {
    opacity: 1;
    transform: translateY(0);
}

.ez-prod-page .ez-stagger-children > .ez-fade-in:nth-child(1) { transition-delay: 0s; }
.ez-prod-page .ez-stagger-children > .ez-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ez-prod-page .ez-stagger-children > .ez-fade-in:nth-child(3) { transition-delay: 0.15s; }
.ez-prod-page .ez-stagger-children > .ez-fade-in:nth-child(4) { transition-delay: 0.2s; }
.ez-prod-page .ez-stagger-children > .ez-fade-in:nth-child(5) { transition-delay: 0.25s; }
.ez-prod-page .ez-stagger-children > .ez-fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .ez-prod-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ez-prod-hero__ctas {
        justify-content: center;
    }

    .ez-prod-hero__trust {
        justify-content: center;
    }

    .ez-prod-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .ez-prod-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ez-prod-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .ez-prod-features {
        grid-template-columns: 1fr;
    }

    .ez-prod-audience {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .ez-prod-timeline {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
    }
}
