.how-it-works {
    position: relative;
    overflow: hidden;

    .container {
        .hero {
            margin: 60px 0 76px 0;
            height: 470px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 32px;

            @media (max-width: 768px) {
                height: auto;
                margin: 24px 0 70px 0;
            }

            h2 {
                font-family: var(--ff-secondary);

                margin: 0;
                max-width: 528px;
                color: var(--c-gray-900);
                font-size: var(--fs-6xl);
                font-style: normal;
                font-weight: 700;
                line-height: 75%;
                letter-spacing: -8px;

                @media (max-width: 768px) {
                    font-size: var(--fs-5xl);
                    margin-bottom: 20px;
                    line-height: 90%;
                    max-width: unset;
                    width: 200px;
                    letter-spacing: -2px;
                }
            }

            p {
                max-width: 528px;
                color: var(--c-black);
                font-family: var(--ff-primary);
                font-size: var(--fs-md);
                font-style: normal;
                font-weight: 400;
                line-height: 150%;
                letter-spacing: -0.18px;

                @media (max-width: 768px) {
                    max-width: unset;
                    order: 2;
                }
            }

            figure {
                width: 1120px;
                position: absolute;
                height: 470px;
                left: 44%;
                top: 5%;
                z-index: 2;

                @media (min-width: 2200px) {
                    left: 48%;
                }

                @media (max-width: 768px) {
                    /* width: 300px;
          height: 128px; */
                    width: 100%;
                    height: auto;

                    /* left: 55%;
          top: 14%; */
                    position: relative;
                    left: unset;
                    top: unset;
                }

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }
}

.just_image {
    width: 100%;
    margin-bottom: 176px;

    @media (max-width: 1024px) {
        margin-bottom: 84px;

        figure {
            width: fit-content;
            margin: 0 auto;
        }
    }
}

.sample_process {
    margin-bottom: 90px;

    @media (max-width: 768px) {
        margin-bottom: 30px;
    }

    h2 {
        max-width: 800px;
        display: block;
        margin: 0 0 60px 0;
        font-family: var(--ff-secondary);
        color: var(--c-gray-900);
        font-size: var(--fs-5xl);
        font-style: normal;
        font-weight: 700;
        line-height: 80%;
        letter-spacing: -3.6px;

        @media (max-width: 768px) {
            font-size: 40px;
            max-width: 240px;
        }
    }

    .sample_process_steps {
        display: flex;
        flex-direction: column;
        gap: 70px;

        @media (max-width: 768px) {
            gap: 30px;
        }

        .sample_process_step {
            position: relative;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            justify-content: center;
            align-items: center;
            gap: 0;

            @media (max-width: 768px) {
                grid-template-columns: 1fr;
            }

            &.dark {
                @media (max-width: 768px) {
                    .sample_process_step_card_title {
                        span {
                            color: var(--c-gray-25) !important;
                            background-color: var(--c-gray-900);
                        }
                    }
                }

                @media (min-width: 768px) {
                    .sample_process_step_card {
                        border: 1px solid var(--c-gray-900);
                        background: var(--c-gray-900);

                        .sample_process_step_card_title {
                            h3 {
                                color: var(--c-gray-25);
                            }
                        }

                        > hr {
                            background-color: var(--c-gray-25);
                        }

                        .sample_process_step_card_content {
                            p {
                                color: var(--c-gray-25);
                            }
                        }
                    }

                    .sample_process_step_number {
                        color: var(--c-gray-900);
                    }
                }
            }

            .sample_process_custom_text {
                position: absolute;
                top: -24px;
                left: -200px;
                z-index: 2;

                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 16px;

                color: var(--c-gray-900);
                font-family: var(--ff-fibbl);
                font-size: var(--fs-lg);
                font-style: normal;
                font-weight: 400;
                line-height: 100%;
                letter-spacing: -0.478px;
                text-transform: uppercase;

                @media (max-width: 1024px) {
                    display: none;
                }
            }

            .sample_process_custom_text_mobile {
                display: none;

                color: var(--c-gray-900);
                font-family: var(--ff-fibbl);
                font-size: var(--fs-lg);
                font-style: normal;
                font-weight: 400;
                line-height: 100%;
                letter-spacing: -0.478px;
                text-transform: uppercase;

                flex-direction: column;
                gap: 4px;
                justify-content: center;
                align-items: center;

                width: fit-content;

                margin: 0 auto 18px 0;

                @media (max-width: 768px) {
                    display: flex;
                }
            }

            .sample_process_step_card {
                display: flex;
                flex-direction: column;
                gap: 0;
                overflow: hidden;

                border-radius: 28px;
                border: 1px solid var(--c-gray-900);
                background: var(--c-gray-25);

                transition: all 0.3s ease;

                .sample_process_step_card_title {
                    width: 100%;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: space-between;

                    h3 {
                        max-width: 70%;
                        margin: 0;
                        padding: 22px 58px 24px 58px;
                        font-family: var(--ff-secondary);
                        color: var(--c-gray-900);
                        font-size: 45px;
                        font-style: normal;
                        font-weight: 700;
                        line-height: 100%;
                        letter-spacing: -1.35px;

                        transition: all 0.3s ease;

                        @media (max-width: 768px) {
                            padding: 24px;
                            font-size: 24px;
                        }
                    }

                    span {
                        display: none;
                        color: var(--c-gray-900);
                        font-family: var(--ff-secondary);
                        font-size: 64px;
                        font-style: normal;
                        font-weight: 700;
                        line-height: 75%;
                        letter-spacing: -2.65px;
                        padding: 24px 32px;
                        border-left: 1px solid var(--c-gray-900);

                        @media (max-width: 768px) {
                            display: block;
                        }
                    }
                }

                > hr {
                    all: unset;
                    width: 100%;
                    height: 1px;
                    background-color: var(--c-gray-900);

                    transition: all 0.3s ease;
                }

                .sample_process_step_card_content {
                    padding: 25px 58px 45px 58px;

                    @media (max-width: 768px) {
                        display: flex;
                        padding: 24px 24px 48px 24px;
                    }

                    p {
                        margin: 0 0 30px 0;
                        font-family: var(--ff-primary);
                        color: var(--c-black);
                        font-size: 18px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 150%;
                        letter-spacing: -0.36px;

                        transition: all 0.3s ease;

                        &:last-of-type {
                            margin: 0;
                        }
                    }
                }
            }

            .sample_process_step_number {
                display: flex;
                justify-content: center;
                align-items: center;

                font-family: var(--ff-secondary);

                color: transparent;
                -webkit-text-stroke-width: 1px;
                -webkit-text-stroke-color: var(--c-gray-900);
                font-size: var(--fs-10xl);
                font-style: normal;
                font-weight: 700;
                line-height: 75%;
                letter-spacing: -14px;

                transition: all 0.3s ease;

                @media (max-width: 768px) {
                    display: none;
                }
            }
        }
    }
}

.what_now {
    margin-bottom: 350px;

    @media (max-width: 1024px) {
        margin-bottom: 130px;
    }

    h2 {
        max-width: 800px;
        display: block;
        margin: 0 0 180px 0;
        font-family: var(--ff-secondary);
        color: var(--c-primary-200);
        font-size: var(--fs-5xl);
        font-style: normal;
        font-weight: 700;
        line-height: 80%;
        letter-spacing: -3.6px;

        @media (max-width: 1024px) {
            margin-bottom: 54px;
            font-size: 56px;
        }
    }

    .what_now_steps {
        display: flex;
        flex-direction: column;
        gap: 70px;

        @media (max-width: 768px) {
            gap: 30px;
        }

        .what_now_step {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 3fr;
            justify-content: center;
            align-items: center;
            gap: 50px;
            margin: 0 10%;
            @media (max-width: 1024px) {
                margin: 0;
            }

            @media (max-width: 768px) {
                grid-template-columns: 1fr;
            }

            &.dark {
                @media (max-width: 768px) {
                    .what_now_step_card {
                        border: 1px solid var(--c-gray-900);
                        box-shadow: unset;
                    }

                    .what_now_step_card_title {
                        span {
                            color: var(--c-gray-900) !important;
                        }
                    }
                }

                @media (min-width: 768px) {
                    .what_now_step_card {
                        border: 1px solid var(--c-gray-900);

                        box-shadow: unset;

                        h3 {
                            color: var(--c-gray-900);
                        }

                        /* 
            >hr {
              background-color: var(--c-gray-25);
            } */

                        .what_now_step_card_content {
                            p {
                                color: var(--c-gray-900);
                            }

                            ul {
                                li {
                                    color: var(--c-gray-900);
                                }
                            }
                        }
                    }
                }

                .what_now_step_number {
                    color: transparent;
                    -webkit-text-stroke-width: 1px;
                    -webkit-text-stroke-color: var(--c-gray-900);
                    text-shadow: unset;
                }
            }
        }

        .what_now_step_card {
            display: flex;
            flex-direction: column;
            gap: 0;
            border: 1px solid transparent;
            border-radius: 28px;
            background: var(--c-gray-25);
            box-shadow: 81.888px 101.386px 36.557px 0px rgba(0, 0, 0, 0), 52.642px 64.828px 33.145px 0px rgba(0, 0, 0, 0.01), 29.733px 36.557px 28.271px 0px rgba(0, 0, 0, 0.03), 13.161px 16.085px 20.96px 0px rgba(0, 0, 0, 0.04), 3.412px 3.899px 11.698px 0px rgba(0, 0, 0, 0.05);

            transition: all 0.3s ease;
            overflow: hidden;

            .what_now_step_card_title {
                width: 100%;
                display: grid;
                grid-template-columns: auto 100px;
                align-items: center;
                justify-content: space-between;

                h3 {
                    margin: 0;
                    padding: 22px 58px 24px 58px;
                    font-family: var(--ff-secondary);
                    color: var(--c-gray-900);
                    font-size: 44px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 100%;
                    letter-spacing: -1.35px;

                    transition: all 0.3s ease;

                    @media (max-width: 768px) {
                        padding: 24px;
                        font-size: 28px;
                    }
                }

                span {
                    display: none;
                    color: transparent;
                    font-family: var(--ff-secondary);
                    font-size: 64px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 75%;
                    letter-spacing: -2.65px;
                    padding: 24px 32px;
                    border-left: 1px solid var(--c-gray-900);

                    justify-content: center;
                    align-items: center;

                    -webkit-text-stroke-width: 1px;
                    -webkit-text-stroke-color: var(--c-gray-900);

                    @media (max-width: 768px) {
                        display: flex;
                        height: 100%;
                    }
                }
            }

            > hr {
                all: unset;
                width: 100%;
                height: 1px;
                background-color: var(--c-gray-900);

                transition: all 0.3s ease;
            }

            .what_now_step_card_content {
                padding: 25px 58px 45px 58px;

                @media (max-width: 768px) {
                    padding: 24px 24px 48px 24px;
                }

                p {
                    font-family: var(--ff-primary);
                    color: var(--c-gray-900);
                    font-size: 18px;
                    font-style: normal;
                    font-weight: 700;
                    line-height: 150%;
                    letter-spacing: -0.36px;

                    transition: all 0.3s ease;

                    &:last-of-type {
                        margin: 0;
                    }
                }

                ul {
                    margin: 0 0 0 16px;

                    li {
                        color: var(--c-gray-900);
                        font-family: var(--ff-primary);
                        font-size: 18px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 150%;
                        letter-spacing: -0.36px;
                    }
                }
            }
        }

        .what_now_step_number {
            display: flex;
            justify-content: center;
            align-items: center;

            font-family: var(--ff-secondary);

            color: var(--c-gray-25);

            text-shadow: 81.888px 101.386px 36.557px rgba(0, 0, 0, 0), 52.642px 64.828px 33.145px rgba(0, 0, 0, 0.01), 29.733px 36.557px 28.271px rgba(0, 0, 0, 0.03), 13.161px 16.085px 20.96px rgba(0, 0, 0, 0.04), 3.412px 3.899px 11.698px rgba(0, 0, 0, 0.05);

            font-size: var(--fs-10xl);
            font-style: normal;
            font-weight: 700;
            line-height: 75%;
            letter-spacing: -14px;

            transition: all 0.3s ease;

            @media (max-width: 768px) {
                display: none;
            }
        }
    }
}

.go_pricing {
    .go_pricing_wrapper {
        position: relative;
        margin: 0 auto;
        /* max-width: 1000px; */
        /* 
    display: flex;
    flex-direction: column;
    gap: 50px; */

        .go_pricing_text {
            display: flex;
            flex-direction: column;
            gap: 32px;

            @media (max-width: 768px) {
                gap: 20px;
            }

            h2 {
                margin: 0 0 32px 0;
                color: var(--c-gray-900);
                font-family: var(--ff-secondary);
                font-size: var(--fs-6xl);
                font-style: normal;
                font-weight: 700;
                line-height: 80%;
                letter-spacing: -8px;

                @media (max-width: 768px) {
                    font-size: 56px;
                    line-height: 90%;
                    letter-spacing: -1.12px;
                    margin: 0;
                }

                @media (max-width: 400px) {
                    font-size: 48px;
                }
            }

            p {
                max-width: 380px;
                margin: 0;

                @media (max-width: 768px) {
                    max-width: 100%;
                    margin-bottom: 40px;
                }

                color: var(--c-gray-900);
                font-family: var(--ff-primary);
                font-size: var(--fs-md);
                font-style: normal;
                font-weight: 400;
                line-height: 150%;
                letter-spacing: -0.36px;
            }
        }

        .cta {
            position: absolute;
            bottom: 0;
            right: 0;

            @media (max-width: 1024px) {
                position: relative;
                bottom: unset;
                right: unset;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }

        /* h2 {
      margin: 0;
      color: var(--c-gray-900);

      font-family: var(--ff-secondary);
      font-size: var(--fs-6xl);
      font-style: normal;
      font-weight: 700;
      line-height: 75%;
      letter-spacing: -8px;
    } */
    }
}

.end-to-end {
    padding-block: 210px;
    @media (max-width: 768px) {
        padding-block: 0px;
    }

    .container {
        .title {
            display: flex;
            flex-direction: column;
            gap: 32px;

            @media (max-width: 768px) {
                gap: 20px;
            }

            h2 {
                margin: 0 0 32px 0;
                color: var(--c-gray-900);
                font-family: var(--ff-secondary);
                font-size: var(--fs-6xl);
                font-style: normal;
                font-weight: 700;
                line-height: 80%;
                letter-spacing: -8px;

                @media (max-width: 768px) {
                    font-size: 56px;
                    line-height: 90%;
                    letter-spacing: -1.12px;
                    margin: 0;
                }

                @media (max-width: 400px) {
                    font-size: 48px;
                }
            }

            p {
                max-width: 380px;
                margin: 0;

                @media (max-width: 768px) {
                    max-width: 100%;
                    margin-bottom: 40px;
                }

                color: var(--c-gray-900);
                font-family: var(--ff-primary);
                font-size: var(--fs-md);
                font-style: normal;
                font-weight: 400;
                line-height: 150%;
                letter-spacing: -0.36px;
            }
        }
    }
    .display {
        width: 100%;
        @media (max-width: 768px) {
            overflow-x: scroll;
        }
    }
    figure {
        width: 100%;
        @media (max-width: 768px) {
            width: 200vw;
        }
        > svg {
            width: 100% !important;
            object-fit: contain !important;
        }
        #marketing,
        #ecom,
        #b2b,
        #ecom *,
        #marketing *,
        g#b2b * {
            cursor: pointer;
        }
        g#marketing > path:first-child,
        g#ecom > path:first-child,
        g#b2b > path:first-child {
            fill: transparent;
        }
    }
    .end-modal {
        position: fixed;
        inset: 0;
        background: rgb(25 25 25 / 0.3);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;

        &.is-open {
            opacity: 1;
            visibility: visible;
        }

        > .container {
            position: relative;
            background: #fffaee;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            border-radius: 31px;
            height: 1040px;
            max-height: calc(100vh - 40px);
            overflow-y: scroll;
            text-align: center;
            @media (max-width: 768px) {
                height: auto;
                border-radius: 12px;
            }
        }

        .close {
            position: absolute;
            top: 30px;
            right: 30px;
            font-size: 27px;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            user-select: none;
            z-index: 4;
            @media (max-width: 768px) {
                top: 10px;
                right: 10px;
                font-size: 18px;
            }
        }

        .viewer {
            width: 100%;
            padding: 70px 120px 0px 120px;

            @media (max-width: 768px) {
                padding: 30px 10px 0 10px;
            }

            img {
                width: 100%;
                height: auto;
                display: block;
            }
        }

        .tabs {
            display: flex;
            gap: 70px;
            justify-content: center;
            border-top: 1px solid #181818;
            width: 100%;
            @media (max-width: 768px) {
                gap: 16px;
            }

            div {
                cursor: pointer;
                font-family: var(--ff-primary);
                transition: all 0.2s ease;
                font-size: 45px;
                opacity: 0.25;
                color: #181818;
                text-transform: uppercase;
                padding-block: 24px;
                letter-spacing: -2px;
                font-weight: 700;
                line-height: 80%;
                @media (max-width: 768px) {
                    font-size: 22px;
                }
                &:hover,
                &:focus-visible,
                &.is-active {
                    opacity: 1;
                    text-decoration: underline;
                }
            }
        }
    }
}
