@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/*--  defaults  --*/
:root {
    --font-family: 'Inter', sans-serif;

    --primary-color: #FFDF40;
    --primary-color--light: #FFEA80;
    --primary-color--hover: #FFD91A;

    --secondary-color: #658CFF;

    --high-contrast-color: #FFF;
    --md-contrast-color: rgba(255, 255, 255, 0.85);
    --low-contrast-color: rgba(255, 255, 255, 0.65);

    --border-color: rgba(255, 255, 255, 0.10);
    --border-color--light: rgba(255, 255, 255, 0.25);

    --background-color: #03060D;
    --background-color--linear: linear-gradient(22deg, #03060D -12.65%, #0F1833 242.14%);
    --background-color--2: #0F1833;
    --background-color--3: #060B1A;

    --neutral-color: #FFF;
    --success-color: #73E573;
    --error-color: #E57373;
}



/*--  reset css  --*/
* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 150%;
    color: var(--md-contrast-color);
    background: var(--background-color--linear);
    overflow-x: hidden;
    position: relative;
    counter-reset: x;
    scroll-behavior: smooth;
}

body.pop-up {
    overflow: hidden;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: .3s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: .3s;
    position: relative;
}

ul,
ol {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

ol[type="A"] {
    list-style: upper-alpha;
}

p:not(:last-child) {
    margin: 0 0 16px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--high-contrast-color);
    line-height: 135%;
    margin-bottom: 8px;
}

h1 {
    font-size: 2.5rem;
    line-height: 120%;
}

h2 {
    font-size: 2em;
    line-height: 125%;
}

h3 {
    font-size: 22px;
}


@media screen and (max-width:1199px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 18px;
    }
}


/*  */
.area-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}



/*--  header  --*/
header {
    .wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 112px;
    }

    .menu ul {
        display: flex;
        align-items: center;
        gap: 0 48px;

        a {
            font-size: 14px;
            font-weight: 700;

            &:hover {
                color: var(--primary-color);
            }
        }
    }


    @media screen and (max-width: 1199px) {
        display: none;
    }
}



/*--  footer  --*/
footer {
    padding: 32px 0;

    .disclaimer {
        color: var(--low-contrast-color);
        text-align: center;
        font-size: 12px;
        line-height: 135%;

        a {
            text-decoration-line: underline;
        }
    }
}

/*--  hero  --*/
section.hero {
    overflow-x: hidden;
    padding: 64px 0 112px 0;

    .wrapper {
        display: grid;
        grid-template-columns: minmax(0, auto) 524px;
        gap: 0 32px;

        .left {
            display: flex;
            flex-direction: column;
        }

        .right {
            width: 571px;
        }
    }

    /*  */
    .logo img {
        height: 55px;
        width: auto;
    }


    .introduction {
        .subtitle {
            color: var(--secondary-color);
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }

        .title {
            >* {
                margin-bottom: 0;
            }
        }
    }


    @media screen and (min-width: 1200px) {
        .featured-image {
            img {
                width: 571px;
                height: auto;
            }

            img.responsiveness {
                display: none;
            }
        }

        .wrapper .left {
            max-width: 592px;
            width: 100%;
            gap: 72px 0;
        }
    }

    @media screen and (max-width: 1199px) {
        padding: 80px 0 40px 0;

        .featured-image {
            img:not(.responsiveness) {
                display: none;
            }

            img.responsiveness {
                width: 100%;
                max-width: 571px;
                height: auto;
                aspect-ratio: 87 / 115;
            }
        }

        .wrapper {
            grid-template-columns: 1fr;
            gap: 48px;

            .left {
                gap: 48px;
            }

            .right {
                margin: 0 auto;
                width: 100%;
                max-width: 571px;
            }
        }
    }
}



/*--  social-media  --*/
section.social-media {
    .wrapper {
        display: grid;
        align-items: center;
        grid-template-columns: 1fr auto auto 1fr;
        gap: 0 40px;
    }

    .line {
        height: 1px;
        background: rgba(255, 255, 255, 0.10);
    }

    .title {
        font-size: 14px;
        font-weight: 700;
        line-height: 145%;
        text-transform: uppercase;
        color: var(--neutral-color);
    }

    .social-medias>div {
        display: flex;
        align-items: center;
        gap: 0 24px;

        img {
            height: 24px;
            aspect-ratio: 1;

            &:not(:hover) {
                filter: brightness(0) invert(1);
            }
        }
    }


    @media screen and (max-width: 1199px) {
        .wrapper {
            gap: 0 24px;
            padding: 16px 0;
        }
    }
}



/*--  form  --*/
form {
    .field-group {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0 32px;
        padding: 8px 8px 8px 32px;
        border-radius: 200px;
        border: 2px solid var(--background-color--2);
        background: var(--background-color--3);

        &:hover {
            border-color: var(--primary-color--light);
        }
    }

    .field,
    .input {
        height: 100%;

    }

    .field.email {
        width: 100%;

        input {
            display: block;
            height: 100%;
            width: 100%;
            background: transparent;
            border: none;
            font-size: 16px;
            font-weight: 500;
            color: var(--low-contrast-color);

            &::placeholder {
                color: var(--low-contrast-color);
            }

            &:-webkit-autofill {
                background: transparent;
                border: none;
            }
        }
    }

    .field.submit {
        input {
            height: 48px;
            padding: 0 24px;
            border-radius: 200px;
            border: 2px solid outset var(--primary-color--light);
            background: var(--primary-color);
            font-size: 16px;
            font-weight: 800;
            color: var(--background-color);
            transition: .3s ease;
            cursor: pointer;

            &:hover {
                background: var(--primary-color--hover);
            }
        }
    }


    &:has(.field.email.has-error) {
        .field-group {
            /* padding-bottom: 32px; */
            color: var(--error-color);
            border-color: var(--error-color);
        }

        .field.email {
            .error {
                font-size: 12px;
                font-weight: 500;
                color: inherit;
                line-height: 16px;
                position: absolute;
                bottom: -32px;
            }
        }
    }

    &:has(.success span) {
        .field.email {
            .success {
                position: absolute;
                top: 0;
                left: 0;
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 100%;
                width: 100%;
                padding: 24px 32px;
                background: var(--background-color--3);
                border-radius: 200px;

                span {
                    color: var(--success-color);
                    font-weight: 500;
                }

                img {
                    height: 32px;
                    aspect-ratio: 1;
                }
            }
        }
    }


    @media screen and (max-width: 1199px) {
        .field-group {
            padding: 8px 8px 8px 24px;
        }
    }
}



/*--  offers  --*/
section.offers {
    padding: 88px 0;

    .introduction {
        margin-bottom: 64px;
    }

    .offers-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .offer-card {
        display: grid;
        grid-template-rows: 168px 1fr;
        background: top/cover;
        border-radius: 16px;
        /* border: 2px solid var(--background-color--2); */

        .top {
            height: 168px;
        }

        .bottom {
            padding: 40px;
            display: grid;
            grid-template-rows: auto 1fr auto;

            .title {
                font-size: 24px;
                font-weight: 700;
                line-height: 135%;
                color: var(--neutral-color);
                margin-bottom: 8px;
            }

            .button {
                margin-top: 40px;


                a {
                    height: 48px;
                    width: fit-content;
                    padding: 0 24px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: var(--primary-color);
                    border: 2px solid var(--primary-color--light);
                    border-radius: 200px;
                    font-weight: 800;
                    color: var(--background-color);

                    &:hover {
                        background: var(--primary-color--hover);
                    }
                }
            }
        }


    }


    @media screen and (min-width: 1200px) {
        .introduction {
            .title>* {
                text-align: center;
            }

            .content {
                text-align: center;
            }
        }
    }

    @media screen and (max-width: 1199px) {
        padding: 72px 0;

        .introduction {
            margin-bottom: 48px;
        }

        .offers-container {
            gap: 24px;
            overflow-x: scroll;
        }

        .offer-card {
            width: 304px;

            .bottom {
                padding: 32px 24px;

                .title {
                    font-size: 20px;
                }
            }
        }
    }
}



/*--  how-it-works  --*/
section.how-it-works {
    padding: 96px 0;
    border-top: 1px solid var(--border-color);

    .wrapper {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto;
        gap: 32px;
    }

    .step-card {
        display: grid;
        border-radius: 16px;

        &.small {
            background: right/cover;
            grid-template-columns: 1fr 281px;
            gap: 32px;
        }

        &.big {
            background: bottom/cover;
        }

        .step {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            padding: 8px;
            gap: 10px;
            border-radius: 50px;
            border: 2px solid var(--background-color--2);

            span {
                font-weight: 700;
                color: var(--secondary-color);
            }
        }

        .details {
            display: grid;
            grid-template-columns: 40px 1fr;
            gap: 24px;
            padding: 32px;
        }

        .content {
            .title {
                font-size: 22px;
                font-weight: 700;
                line-height: 110%;
                color: var(--neutral-color);
                margin-bottom: 8px;
            }
        }
    }


    @media screen and (min-width: 1200px) {
        .step-card.responsiveness {
            display: none;
        }

        .step-card {
            &.small {
                min-height: 168px;
                grid-column: 1;
                grid-row: auto;
            }

            &.big {
                grid-column: 2;
                grid-row: 1 / span 2;
            }
        }
    }

    @media screen and (max-width: 1199px) {
        padding: 72px 0;

        .step-card:not(.responsiveness) {
            display: none;
        }

        .wrapper {
            gap: 24px;
            grid-template-columns: 1fr;
        }

        .step-card {
            background: bottom/cover;

            .image {
                min-height: 144px;
                height: 15vw;
            }

            .details {
                grid-template-columns: 1fr;
                padding: 24px;
            }

            .content {
                .title {
                    font-size: 18px;
                    line-height: 135%;
                }
            }
        }
    }
}



/*--  subscription  --*/
section.subscription {
    .wrapper {
        display: grid;
        grid-template-columns: 592px 1fr;
        gap: 0 136px;
        padding: 64px 0;
    }

    .introduction {
        .title>* {
            font-size: 1.5em;
        }
    }


    @media screen and (max-width: 1199px) {
        .wrapper {
            grid-template-columns: 1fr;
            gap: 40px;
            padding: 48px 0;
        }
    }
}