@import url("_vars-sifmX3-.css");

h2 {
    font-size: 24px;
    line-height: 1.2em;
}

#global {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#main {
    flex: 1;
}

#header {
    position: sticky;
    top: 0;
    z-index: 999;

    #header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1439px;
        margin: 0 auto;
        padding: 20px;

        #header-left,
        #header-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }
    }

    .tippy-content {
        font-weight: bold;
    }

    &.mobile {
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        max-width: 100%;
        background-color: var(--light-color);
        text-align: center;

        .tippy-content {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
        }

        #header-left,
        #header-right {
            flex-direction: column;
        }

        #header-content {
            flex-direction: column;
            justify-content: center;
            gap: 20px;
        }

        .menu {
            display: flex !important;
            flex-direction: column;
            box-shadow: none;
            border: none;
        }

        #locale-suggestion, #hamburger {
            display: none !important;
        }

        #close-menu {
            display: block !important;
            margin-left: 0 !important;
            position: absolute;
            top: 40px;
            right: 40px;
            font-size: 32px;
        }
    }

    #hamburger {
        display: none;

        li {
            a {
                font-size: 20px;
            }
        }
    }

    #close-menu {
        display: none;
    }

    .menu {
        display: flex;
        align-items: center;
        background-color: var(--light-color);
        border-radius: 14px;
        border: 1px solid var(--border-color);
        padding: 5px;
        box-shadow: var(--main-box-shadow);

        &>li {
            list-style-type: none;

            &>a {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 4px;
                text-decoration: none;
                padding: 10px;
            }

            &.featured {
                &>a {
                    padding: 10px;
                    border-radius: 14px;
                    background-color: var(--main-color);
                    color: var(--light-color);
                    gap: 6px;
                    font-weight: bold;

                    &:hover {
                        background-color: var(--darken-main-color);
                    }
                }
            }
        }
    }

    #locale-suggestion {
        background-color: var(--main-color);
        color: var(--light-color);
        box-shadow: var(--main-box-shadow);

        a {
            color: var(--light-color);
            font-weight: bold;
            text-decoration: underline;
        }

        &>div {
            max-width: 1439px;
            width: 100%;
            margin: 0 auto;
            padding: 20px;
        }
    }
}

#hero {
    position: relative;

    #hero-content {
        position: relative;
        max-width: 1439px;
        padding: 20px;
        margin: 0 auto;

        p {
            margin-bottom: 0;
        }
    }
}

.hero-centered {
    #hero {
        text-align: center;
    }
}

#content {
    max-width: 1439px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
}

.page-home {
    #main {
        padding-bottom: 0;
    }

    #hero {
        #hero-content {
            padding-bottom: 0;
        }

        .logo {
            margin-bottom: 20px;
        }

        h1 {
            display: inline-block;
            margin-bottom: 20px;
            font-size: 1.1em;
            font-weight: normal;
        }

        #heading {
            font-size: 48px;
            font-weight: bold;
            line-height: 1.2em;
        }
    }
}

#home-badges img {
    height: 45px;

    &.l {
        height: 80px;
    }
}

.front-image {
    display: block;
    border: var(--main-border);
    box-shadow: var(--main-box-shadow);
    border-radius: var(--main-border-radius);
}

.front-section {
    margin-top: 140px;

    &.front-section-rounded {
        padding: 40px;
        border-radius: 20px;
        border: 1px solid var(--main-color);
        box-shadow: var(--main-box-shadow);
        background-color: #fff;
        background-image: linear-gradient(45deg, rgba(72, 174, 250, 0.1) 0%, rgba(163, 215, 253, 0.55) 5%, #FFFFFF 50%);
    }

    .subtitle {
        display: block;
        margin-bottom: 20px;
        text-transform: uppercase;
        font-weight: bold;
    }

    h2 {
        font-size: 2.4em;
        margin-bottom: 40px;
        font-weight: bold;
    }

    .card img {
        margin-bottom: 20px;
        height: 48px;
        width: auto;
    }
}

#home-advantages,
#home-usecases {
    strong {
        font-weight: normal;
    }
}

#main-features {
    h3 {
        font-size: 22px;
        font-weight: bold;
    }

    .tip {
        display: block;
        margin-top: 10px;
        font-size: 0.8em;
    }
}

#trust-us {
    #logos {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
        max-width: 75%;
        margin: 0 auto;

        &>div {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 40px;

            img {
                display: block;
                max-width: 150px;
                height: 100%;
                object-fit: scale-down;
            }
        }
    }
}

.reviews-carrousel {
    &>div {
        overflow-x: hidden;
        scroll-behavior: smooth;
        align-items: stretch;
    }

    .review {
        flex-shrink: 0;
        width: 40%;
    }
}

#footer {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 80px 20px 0 20px;
    margin-top: 80px;
    background-color: var(--secondary-color);
    border-top: var(--main-border);

    .footer-grid {
        max-width: 1439px;
        width: 100%;
        margin: 0 auto;
        padding: 20px;

        p {
            font-weight: bold;
            line-height: 1em;
        }

        ul {
            li {
                margin-bottom: 20px;
            }
        }

        a {
            text-decoration: none;
        }

        .logo {
            display: block;
            margin-bottom: 20px;
        }
    }
}

/* ARTICLES */

#post {
    #post-header {
        display: flex;
        gap: 20px;
        align-items: center;
        margin-bottom: 20px;
        line-height: 1.2em;

        .post-author-img {
            height: 64px;
            width: 64px;
            border-radius: 100%;
        }

        .post-author-name {
            font-weight: bold;
        }
    }

    h2 {
        margin-top: 40px;
    }
}

.article {
    .article-header {
        margin-bottom: 20px;

        .article-image {
            border-radius: var(--main-border-radius);

            img {
                margin-bottom: 20px;
                border-radius: var(--main-border-radius);
                max-height: 200px;
                width: 100%;
                object-fit: cover;
            }
        }

        a {
            text-decoration: none;
        }

        h3 {
            font-weight: bold;
            margin-bottom: 0;
        }
    }

    .article-metadata {
        span {
            display: block;
            margin-bottom: 10px;
            font-size: 0.8em;
        }
    }
}

/* PRICES */

#currency-switcher {
    min-width: 0;
    width: fit-content;
    margin-bottom: 0;
}

#plans-options {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;

    #period-switcher {
        .button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-weight: normal;
            background-color: var(--light-color);
            border: 1px solid #dddddd;
            color: var(--dark-color);

            &:hover,
            &.active {
                background-color: var(--light-color);
                border-color: var(--main-color);
                color: var(--dark-color);
            }
        }

        #period-discount {
            font-size: 0.8em;
        }
    }
}

.prices {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    .price {
        border-radius: 20px;
        margin-bottom: 0;
        padding: 50px 0 10px 0;
        transition: all 0.6s ease;
        grid-area: paid;
        flex: 1 1 calc(25% - 1rem); /* 4 columns minus gap */
        min-width: 250px;

        &.popular {
            position: relative;
            border-color: var(--main-color);

            .badge-blue {
                position: absolute;
                top: 15px;
                font-weight: bold;
            }
        }

        &.price-large {
            padding: 20px 0;
            gap: 80px;
            order: 99; /* Push it to the end */
            flex: 1 1 100%; /* Take full width */

            .price-reassurance {
                margin-bottom: 0;
            }

            ul {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
            }

            .button.full-width {
                max-width: 350px;
            }
        }

        .price-header {
            padding: 0 20px;
        }

        ul {
            padding: 0 20px;
            margin: 0 0 20px 0 !important;
            list-style-type: none !important;

            &.mb-0 {
                margin: 0 !important;
            }

            li {
                padding-bottom: 5px;
                margin-bottom: 5px;

                sup {
                    font-size: 0.8em;
                }
            }
        }

        .price-include {
            display: block;
            padding: 0 20px;
            margin-bottom: 20px;
        }

        .price-name {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;

            svg {
                height: 28px;
                width: 28px;
            }
        }

        .price-text {
            margin-bottom: 40px;
            font-size: 18px;
            white-space: nowrap;

            .price-text-amount {
                display: flex;
                margin-bottom: 10px;
                font-weight: bold;
                font-size: 42px;
            }

            .price-text-original {
                text-decoration: line-through;
                font-size: 24px;
                font-weight: normal;
            }
        }

        .price-category {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            padding: 20px;
            color: var(--dark-color);
            background-color: var(--secondary-color);
            border-top: var(--main-border);
            border-bottom: var(--main-border);
            font-weight: bold;
        }

        .price-reassurance {
            font-size: 0.85em;
        }
    }
}

/* COMPARE */

#compare {
    img {
        margin-bottom: 0;
        max-height: 40px;
        max-width: 100px;
    }

    .table table {

        tr td:not(:first-child),
        th {
            text-align: center;
        }

        thead {
            th {
                vertical-align: middle;
            }
        }

        svg {
            height: 28px;
            width: 28px;
        }
    }

    .comparison {
        a:first-child {
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2em;
        }
    }
}

.proof-item {
    font-size: 1.2em;
    text-align: center;

    span {
        display: block;
        height: 28px;
        margin-bottom: 5px;
        font-weight: bold;
    }
}

#brand-domain-demo {
    background: var(--colored-gradient);
    border: none;
    padding: 0;

    img {
        user-select: none;
    }

    #x {
        .platform-header {
            border-bottom-color: transparent;
        }

        .platform-menu {
            border-top-color: transparent;
        }
    }

    #facebook {
        .platform-header {
            border-bottom-color: transparent;
        }

        .platform-menu {
            font-size: 1.1em;
            font-weight: bold;
            color: #65676b;
        }
    }

    p {
        margin-bottom: 0 !important;
    }

    .mockup-wrapper {
        width: 70%;
        height: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .mockup-platforms {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            gap: 20px;
            text-align: center;

            .mockup-platform {
                position: relative;

                &.active::after {
                    content: "";
                    position: absolute;
                    bottom: -10px;
                    left: 50%;
                    transform: translateX(-50%);
                    display: block;
                    width: 6px;
                    height: 6px;
                    border-radius: 100%;
                    background-color: #ffffff;
                }

                &:not(.active) {
                    opacity: 0.7;
                    cursor: pointer;

                    &:hover {
                        opacity: 1;
                    }
                }

                img {
                    width: 30px;
                    height: 30px;
                }
            }
        }

        .platform-post {
            background-color: #fff;
            border-radius: 8px 8px 0 0;
            font-size: 0.8em;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
            margin-bottom: -1px;
        }

        .platform-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            border-bottom: 1px solid #f2f2f2;
            min-height: 57px;

            .platform-logo {
                width: 30px;
                height: 30px;
            }

            input {
                background-color: #dfe0e4;
                border-radius: 4px;
                border: none;
                margin: 0;
                padding: 2px 10px;
            }

            p {
                display: flex;
                align-items: center;
                gap: 5px;
            }
        }

        .platform-content {
            padding: 10px 20px;
            min-height: 235px;
            flex: 1;
            overflow-y: auto;
            word-break: break-word;

            p {
                display: inline;
            }

            .platform-content-link {
                color: #0a66c2;
            }
        }

        .platform-cta {
            padding: 5px 20px;
        }

        .platform-menu {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 20px;
            font-size: 0.8em;
            border-top: 1px solid #f2f2f2;

            span {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
            }

            img {
                width: 20px;
                height: 20px;
            }
        }
    }
}

/* TIMELINE */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;

    li {
        display: flex;
        align-items: center;
        list-style: none;
        display: flex;
        gap: 20px;

        &>span {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 80px;
            width: 80px;
            font-weight: bold;
            font-size: 2em;
            border-radius: 100%;
            background-color: var(--lighten-main-color);
            border: 3px solid var(--main-color);
            color: var(--darken-main-color);
            flex-shrink: 0;
        }

        p {
            margin-bottom: 0;

            span {
                display: block;
                font-size: 1.2em;
                margin-bottom: 10px;
            }
        }
    }
}

/* About page */

#about-us {
    background-color: color-mix(in srgb, var(--main-color) 10%, transparent);
    border-radius: 10px;

    a {
        text-decoration: none;
    }
}

#about-mission {
    background-image: url("../img/about/mission-IH9F80J.webp");
    background-position: right;
    background-size: 800px;
    background-repeat: no-repeat;

    h3 {
        margin-top: 15px;
    }

    .bg-card-about {
        background-color: rgb(250, 250, 250, 0.5);
        backdrop-filter: blur(10px);
    }
}

@media screen and (max-width: 1023px) {
    #header {
        #hamburger {
            display: inline-block;
        }
    }

    .page-home {
        #hero {
            #heading {
                font-size: 36px;

                br {
                    display: none;
                }
            }
        }
    }

    #post {
        width: initial;
    }

    #brand-domain-demo {
        .mockup-wrapper {
            width: 90%;
        }
    }
}

@media screen and (max-width: 639px) {
    h2 {
        font-size: 20px;
    }

    .page-home {
        #hero {
            h1 {
                font-size: 1em;
            }
        }
    }

    #other-features {
        &>div {
            i.xxl {
                font-size: 32px;
            }
        }
    }

    #qrcode_editor {
        flex-direction: column;
    }

    .reviews-carrousel .review {
        width: 70%;
    }

    #about-mission {
        background-image: none;
    }
}