@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* =========================================
   FINAL CTA
========================================= */

.final-cta {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 90px 0 100px;
    background: #f7f9ff;
}

.final-cta-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.final-cta-content {
    position: relative;
    display: grid;
    grid-template-columns: 48% 52%;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid #e2e6f5;
    border-radius: 24px;
    background: #f7f9ff;
    box-shadow: 0 20px 50px rgba(0, 0, 217, 0.10);
    isolation: isolate;
}

.final-cta-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 40px 72px 72px;
}

.final-cta-subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #0000d9;
}

.final-cta-title {
    max-width: 620px;
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #080d2b;
}

.final-cta-title span {
    color: #ed1111;
}

.final-cta-description {
    max-width: 560px;
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.7;
    color: #4b5563;
}

.final-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 14px;
    padding: 16px 28px;
    min-width: 210px;
    background: #0000d9;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 217, 0.20);
    transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.final-cta-btn span {
    font-size: 20px;
    line-height: 1;
    transition: transform .3s ease;
}

.final-cta-btn:hover {
    background: #ed1111;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(237, 17, 17, 0.20);
}

.final-cta-btn:hover span {
    transform: translateX(5px);
}

.final-cta-benefits {
    display: flex;
    gap: 0;
    margin-top: 48px;
    max-width: 620px;
}

.final-cta-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding-right: 22px;
    margin-right: 22px;
    border-right: 1px solid #d8def0;
}

.final-cta-benefit:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1.5px solid #0000d9;
    border-radius: 50%;
    color: #0000d9;
    font-size: 18px;
    font-weight: 700;
}

.final-cta-benefit strong,
.final-cta-benefit small {
    display: block;
}

.final-cta-benefit strong {
    margin-bottom: 3px;
    font-size: 13px;
    color: #080d2b;
}

.final-cta-benefit small {
    font-size: 11px;
    line-height: 1.4;
    color: #667085;
}

.final-cta-image-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 24px 24px 0;
}

.final-cta-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

.final-cta-content:hover .final-cta-image {
    transform: scale(1.025);
}

.final-cta-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(247,249,255,0.92) 0%, rgba(247,249,255,0.18) 23%, rgba(0,0,0,0) 52%);
    pointer-events: none;
}

.final-cta-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.final-cta-decor-one {
    width: 120px;
    height: 90px;
    top: 32px;
    left: 42%;
    background-image: radial-gradient(#9eb5ff 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: .65;
}

.final-cta-decor-two {
    width: 150px;
    height: 150px;
    right: -65px;
    bottom: -70px;
    border: 2px solid rgba(0,0,217,.08);
    border-radius: 50%;
    box-shadow: -28px -28px 0 -26px rgba(0,0,217,.06), -56px -56px 0 -54px rgba(0,0,217,.05);
}

/* =========================================
   EXIT TRANSITION
========================================= */

body.quote-transition-active {
    overflow: hidden;
}

/* Smooth page handoff: the final CTA finishes its image sweep,
   then a soft veil carries the visitor into the quote page. */
body.quote-transition-active::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f7f9ff;
    opacity: 0;
    pointer-events: none;
    animation: quotePageVeil 1.18s ease forwards;
}

body.quote-transition-active .final-cta-copy {
    opacity: 0;
    transform: translateX(-38px);
    transition: opacity .52s ease, transform .68s cubic-bezier(.22,.61,.36,1);
}

body.quote-transition-active .final-cta-image-wrap {
    z-index: 20;
    animation: quoteImageSweep 1.14s cubic-bezier(.76,0,.24,1) forwards;
}

body.quote-transition-active .final-cta-content {
    animation: quoteCardFade 1.05s ease forwards;
}

@keyframes quoteImageSweep {
    0% {
        transform: translateX(0);
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    }
    72% {
        transform: translateX(-92%);
        clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        transform: translateX(-115%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes quotePageVeil {
    0%, 62% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes quoteCardFade {
    0% { box-shadow: 0 20px 50px rgba(0,0,217,.10); }
    70% { box-shadow: 0 0 0 rgba(0,0,217,0); }
    100% { box-shadow: 0 0 0 rgba(0,0,217,0); }
}

@media (max-width: 1050px) {
    .final-cta-content {
        grid-template-columns: 1fr 1fr;
    }

    .final-cta-copy {
        padding-left: 48px;
        padding-right: 28px;
    }

    .final-cta-benefits {
        gap: 12px;
    }

    .final-cta-benefit {
        padding-right: 12px;
        margin-right: 12px;
    }
}

@media (max-width: 760px) {
    .final-cta {
        padding: 70px 0 80px;
    }

    .final-cta-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 18px;
    }

    .final-cta-copy {
        padding: 52px 28px 36px;
    }

    .final-cta-title {
        font-size: 42px;
    }

    .final-cta-image-wrap {
        min-height: 300px;
        clip-path: none;
        border-radius: 0 0 18px 18px;
    }

    .final-cta-image-wrap::after {
        background: linear-gradient(180deg, rgba(247,249,255,.18), rgba(0,0,0,.05));
    }

    .final-cta-benefits {
        flex-direction: column;
        gap: 14px;
        margin-top: 36px;
    }

    .final-cta-benefit {
        padding: 0 0 14px;
        margin: 0;
        border-right: 0;
        border-bottom: 1px solid #d8def0;
    }

    .final-cta-benefit:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}

/* Section typography — Inter, applied only within this section. */
.final-cta, .final-cta * {
    font-family: "Aktiv Grotesk", Verdana, sans-serif;
}

/* SWID-style type hierarchy for this section. */
.final-cta-title { font-family: "Aktiv Grotesk", Verdana, sans-serif; }
.final-cta-description { font-family: "Aktiv Grotesk", Verdana, sans-serif; }
.final-cta-btn { font-family: "Aktiv Grotesk", Verdana, sans-serif; }
.final-cta-benefit strong { font-family: "Aktiv Grotesk", Verdana, sans-serif; }
.final-cta-benefit small { font-family: "Aktiv Grotesk", Verdana, sans-serif; }

/* Section-wise SWID-style body typography */
.final-cta-description,
.final-cta-benefit small { font-family: "Aktiv Grotesk", Verdana, sans-serif; font-weight: 400; letter-spacing: -0.005em; }

/* Page background update: keep section white */
.final-cta { background: #ffffff; }
.final-cta-content { background: #ffffff; }
