/* ============================================
   PRIORITY 3: ANALYTICS & CONVERSION
   Lead Magnets, Newsletter Forms, CTAs
   ============================================ */

/* ============================================
   LEAD MAGNET COMPONENT
   ============================================ */

.lead-magnet-container {
    margin: 3rem auto;
    max-width: 600px;
    padding: 0 1rem;
}

.lead-magnet-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #33bdef;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(51, 189, 239, 0.15);
    transition: all 0.3s ease;
}

.lead-magnet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(51, 189, 239, 0.25);
}

.lead-magnet-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.lead-magnet-content {
    text-align: center;
}

.lead-magnet-title {
    color: #1e293b;
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.lead-magnet-description {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.lead-magnet-benefits {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 400px;
}

.lead-magnet-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lead-magnet-benefits li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #334155;
    font-size: 1rem;
}

.lead-magnet-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #33bdef;
    font-weight: bold;
    font-size: 1.2rem;
}

.lead-magnet-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.lead-magnet-email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lead-magnet-email-input:focus {
    outline: none;
    border-color: #33bdef;
    box-shadow: 0 0 0 3px rgba(51, 189, 239, 0.1);
}

.lead-magnet-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #33bdef 0%, #019ad2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lead-magnet-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 189, 239, 0.3);
}

.lead-magnet-submit-btn:active {
    transform: translateY(0);
}

.lead-magnet-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lead-magnet-privacy {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.lead-magnet-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.lead-magnet-success h4 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.lead-magnet-success p {
    color: #475569;
    font-size: 1rem;
}

/* ============================================
   A/B TESTING VARIANTS
   ============================================ */

/* Newsletter form placement variants */
.newsletter-inline {
    position: relative;
    margin: 2rem auto;
}

.newsletter-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* CTA button variants */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #33bdef 0%, #019ad2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 189, 239, 0.3);
}

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

@media (max-width: 768px) {
    .lead-magnet-container {
        margin: 2rem auto;
    }

    .lead-magnet-card {
        padding: 1.5rem;
    }

    .lead-magnet-title {
        font-size: 1.5rem;
    }

    .lead-magnet-description {
        font-size: 1rem;
    }

    .lead-magnet-icon {
        font-size: 2.5rem;
    }

    .newsletter-bottom {
        padding: 0.75rem;
    }
}

/* ============================================
   ANALYTICS VISUAL INDICATORS (Debug Mode)
   ============================================ */

[data-ab-test] {
    position: relative;
}

/* Show A/B test indicator in debug mode */
body.ab-debug [data-ab-test]::after {
    content: attr(data-ab-variant);
    position: absolute;
    top: -20px;
    right: 0;
    background: #fbbf24;
    color: #1e293b;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1000;
}