/* AI Personalisation feature page */

/* ============================================
   HERO SPLIT LAYOUT
   ============================================ */

.aip-hero {
    overflow: visible;
}

.promoBanner.active:has(.aip-hero) {
    overflow: visible;
    min-height: 720px;
}

.aip-hero-title {
    font-size: clamp(2.25rem, 4.2vw, 3.35rem) !important;
    line-height: 1.12 !important;
}

.aip-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.55;
    max-width: 34rem;
    margin-bottom: 0;
}

.aip-hero-copy.text-center .aip-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.aip-hero .ctas {
    margin-bottom: 0;
}

.aip-hero-cta-row {
    flex-wrap: nowrap;
}

.aip-hero-cta-row > .col-auto {
    flex: 0 0 auto;
    max-width: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.aip-hero-cta-row > .col-auto:first-child {
    padding-left: 0;
}

.aip-hero-copy {
    position: relative;
    z-index: 3;
}

.aip-hero-media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-left: 1.5rem;
}

@media (min-width: 992px) {
    .aip-hero-cta-row {
        position: relative;
        z-index: 4;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .aip-hero-cta-row .btn {
        min-width: 250px !important;
        font-size: 18px;
    }

    .aip-hero-cta-row .cta-button[style] {
        min-width: 250px !important;
    }
}

@media (max-width: 991px) {
    .aip-hero-cta-row {
        flex-wrap: wrap;
    }
}

.aip-hero-visual {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: 0;
    animation: aip-hero-float 6s ease-in-out infinite;
    pointer-events: none;
}

.aip-hero-glow {
    position: absolute;
    inset: 12% 8% 12% 8%;
    background: radial-gradient(circle at 50% 45%, rgba(10, 102, 194, 0.3) 0%, rgba(10, 102, 194, 0.08) 42%, transparent 72%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

.aip-hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes aip-hero-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 991px) {
    .aip-hero-media {
        overflow: visible;
        padding-left: 0;
    }

    .aip-hero-visual {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .aip-hero-title {
        font-size: 2.35rem !important;
    }

    .aip-hero-cta-row {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .aip-hero-visual {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aip-hero-visual {
        animation: none;
    }
}

/* ============================================
   HOW-IT-WORKS STEP CARDS
   ============================================ */

.aip-step-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.aip-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}

.aip-step-num {
    width: 44px;
    height: 44px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.aip-step-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.aip-step-card p {
    font-size: 0.92rem;
    color: #5f6172;
    line-height: 1.65;
    margin: 0;
}

.aip-step-card code {
    background: rgba(10, 102, 194, 0.08);
    border: 1px solid rgba(10, 102, 194, 0.2);
    border-radius: 4px;
    padding: 0.05em 0.35em;
    color: #0A66C2;
    font-size: 0.88em;
    font-weight: 700;
}

/* ============================================
   FEATURE SECTION VISUALS
   ============================================ */

.aip-feature-visual {
    width: 100%;
    display: block;
    /* PNGs already include card chrome; avoid clipping corners at the edges */
    border-radius: 0;
    border: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .aip-feature-visual {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}
