/* =============================================
   AI INTEGRATION PAGE
   ============================================= */

/* Hero */
.ai-page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f7f8fc 0%, #ede9ff 100%);
}

.ai-page-hero__title {
    font-family: 'Work Sans', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #2b2350;
    line-height: 1.15;
    margin: 16px 0 20px;
}

.ai-page-hero__subtitle {
    font-size: 18px;
    color: #5a5775;
    line-height: 1.65;
    margin-bottom: 32px;
}

.ai-page-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-page-hero__terminal {
    margin-top: 20px;
}

/* Sections */
.ai-page-section {
    padding: 80px 0;
}

.ai-page-section--alt {
    background: #f7f8fc;
}

.ai-page-section--dark {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1040 100%);
    padding: 100px 0;
}

.ai-page-section__intro {
    font-size: 18px;
    color: #5a5775;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Tool cards */
.ai-tool-card {
    background: #ffffff;
    border: 1px solid #e8e6f0;
    border-radius: 12px;
    padding: 32px 24px;
    height: 100%;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(43, 35, 80, 0.12);
}

.ai-tool-card__icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.ai-tool-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2b2350;
    margin-bottom: 10px;
}

.ai-tool-card p {
    font-size: 15px;
    color: #5a5775;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-tool-card__example {
    display: block;
    background: #f0edff;
    color: #6c5ce7;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
}

/* Setup steps */
.ai-setup-steps {
    position: relative;
}

.ai-setup-step {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.ai-setup-step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #6c5ce7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.ai-setup-step__content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2b2350;
    margin-bottom: 8px;
}

.ai-setup-step__content p {
    font-size: 15px;
    color: #5a5775;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ai-setup-step__content a {
    color: #6c5ce7;
}

.ai-setup-step__code {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
}

.ai-setup-step__code pre {
    margin: 0;
}

.ai-setup-step__code code {
    color: #5eff82;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* A2A section */
.ai-page-a2a__text {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ai-page-a2a__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.ai-page-a2a__list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.6;
}

.ai-page-a2a__list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #5eff82;
    font-weight: 700;
}

.ai-page-a2a__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-page-a2a__node {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    min-width: 140px;
}

.ai-page-a2a__node strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 4px;
}

.ai-page-a2a__node span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.ai-page-a2a__node--center {
    background: rgba(108, 92, 231, 0.25);
    border-color: rgba(108, 92, 231, 0.5);
}

.ai-page-a2a__arrow {
    color: rgba(255,255,255,0.4);
    font-size: 24px;
}

/* Compatibility cards */
.ai-compat-card {
    background: #f7f8fc;
    border: 1px solid #e8e6f0;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.ai-compat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(43, 35, 80, 0.08);
}

.ai-compat-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2b2350;
    margin-bottom: 4px;
}

.ai-compat-card p {
    font-size: 14px;
    color: #5a5775;
    margin-bottom: 12px;
}

.ai-compat-card__status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ai-compat-card__status--live {
    background: #e3f9ed;
    color: #0f9a5c;
}

/* Responsive */
@media (max-width: 991px) {
    .ai-page-hero {
        padding: 120px 0 60px;
    }
    .ai-page-hero__title {
        font-size: 34px;
    }
    .ai-page-hero__terminal {
        margin-top: 40px;
    }
    .ai-page-a2a__flow {
        flex-direction: column;
    }
    .ai-page-a2a__arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 767px) {
    .ai-page-hero {
        padding: 100px 0 48px;
    }
    .ai-page-hero__title {
        font-size: 28px;
    }
    .ai-page-section {
        padding: 60px 0;
    }
    .ai-page-section--dark {
        padding: 70px 0;
    }
    .ai-page-hero__ctas {
        flex-direction: column;
    }
}

/* Force white text in A2A dark section */
.ai-page-section--dark,
.ai-page-section--dark h2,
.ai-page-section--dark h3,
.ai-page-section--dark p,
.ai-page-section--dark li,
.ai-page-section--dark strong,
.ai-page-section--dark span {
    color: #ffffff !important;
}

.ai-page-a2a__text {
    color: rgba(255,255,255,0.9) !important;
}

.ai-page-a2a__list li {
    color: rgba(255,255,255,0.95) !important;
}

.ai-page-a2a__node strong {
    color: #ffffff !important;
}

.ai-page-a2a__node span {
    color: rgba(255,255,255,0.75) !important;
}

.ai-page-a2a__arrow {
    color: rgba(255,255,255,0.6) !important;
}

/* Hide blog content that leaks after the page template */
.ai-integration-page ~ .blog-hero,
.ai-integration-page ~ #main,
body.page-template-template-ai-integration .blog-hero,
body.page-template-template-ai-integration #main.site-main:not(#primary) {
    display: none !important;
}

/* AI Integration page - Final CTA centered in box with spacing */
.ai-integration-page .lf-final-cta {
    padding: 100px 0 120px;
}

.ai-integration-page .lf-final-cta .container {
    max-width: 700px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 60px 48px;
    text-align: center;
}

.ai-integration-page .lf-final-cta__title {
    margin-bottom: 16px;
}

.ai-integration-page .lf-final-cta__subtitle {
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8) !important;
}

.ai-integration-page .lf-final-cta__buttons {
    margin-bottom: 0;
    gap: 20px;
}

@media (max-width: 767px) {
    .ai-integration-page .lf-final-cta .container {
        padding: 40px 24px;
    }
}
