@import url(./assets/variables.css);
*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width:680px) {
    body {
        font-size: 18px;
    }
}

.hero{
    width: 100%;
    min-width: 20rem;
    max-width: 26.5625rem;
    display: flex;
    flex-direction: column;
    gap: 4em;
    padding: 4em 1.25em;
    margin-bottom: 3.75em;

    background-image: url(./assets/image/bg-main-mobile.png);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: left 90%;
    
    & .hero__text {
        display: flex;
        flex-direction: column;
        gap: 2.5em;

        & .title {
            font-family: var(--IBM_Plex_Sans);
            font-weight: 600;
            font-size: 2.5em;
            text-wrap: balance;
            color: var(--State);
        }

        & .description {
            color: var(--State);
            font-family: var(--IBM_Plex_Sans);
            font-weight: 400;
            font-size: 1em;
            line-height: 1.5;
        }
    }


    @media screen and (min-width:42.5rem ) { /* HERO TABLET */
        & {
            max-width: 800px;
            background-image: url(./assets/image/bg-main-tablet.png),
                            url(./assets/image/bg-pattern-1.svg);
            background-position: bottom 40% right 7%, top -36% right -14%;
            padding-bottom: 10.2em;

            & .hero__text {
                
                & .title {
                    width: 55%;
                    font-size: 3.2em;
                }

                & .description {
                    width: 65%;
                }
            }
        }
    }

    @media screen and (min-width: 61.25rem) {/*HERO DESKTOP*/
        & {
            max-width: 75rem;
            background-position: right 60%, top -10% right 0;
            & .hero__text {
                & .title {
                    width: 70%;
                }
            }
        }
    }
}


/* <--------  MAIN -------> */

.main__content {
    max-width: 26.5625rem;
    position: relative;

    & .bg-pattern-2 {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-image: url(./assets/image/bg-pattern-2.svg);
        background-position: top center;
        background-size: auto;
        background-repeat: no-repeat;
        background-color: var(--State);
        width: 100%;
        z-index: -1;
    }

    & .content__mobile{
        transform: translateY(-60px);
        & .mobile{
            width: 54%;
            margin: 0 auto;
            display: block;
        }
    }

    & .pricing__wrapper {
        background-color: var(--Orange);
        padding: 1.25em;
        display: flex;
        flex-direction: column;
        gap: 3em;
        padding-bottom: 5em;

        & .information__wrapper {
            display: flex;
            flex-direction: column;
            gap: 2.5em;

            & .plan {
                & .plan__features {
                    display: flex;
                    flex-direction: column;
                    gap: 1.5em;


                    & .plan__name {
                        font-size: 2.5em;
                        font-family: var(--IBM_Plex_Sans);
                        font-weight: 600;
                        color: var(--State);
                    }

                    & .plan__description {
                        font-size: 1em;
                        font-family: var(--IBM_Plex_Sans);
                        font-weight: 400;
                        color: var(--State);
                        line-height: 1.6;
                    }
                }
            }

            & .price {
                display: flex;
                align-items: center;
                gap: 1em;

                & .price-value {
                    font-size: 4em;
                    color: var(--State);
                    font-family: var(--IBM_Plex_Sans);
                    font-weight: 600;
                }

                & .price-month {
                    font-size: 1.25em;
                    color: var(--State);
                    font-family: var(--IBM_Plex_Sans);
                    font-weight: 400;
                }
            }
        }

        & .download__links{
            display: flex;
            flex-direction: column;
            gap: 1.125em;
        
            & .link{
                display: flex;
                align-items: center;
                justify-content: center;
                gap: .5em;
                padding: 1em;
                border-radius: .75em;
                background-color: var(--State);
                color: var(--White);
                font-size: 1.125em;
                font-family: var(--IBM_Plex_Sans);
                font-weight: 600;
                text-decoration: none;
                transition: all 0.5s ease;

                & .icon__download {
                    display: block;
                    order: 1;
                }

                & span{
                    order: 2;
                }
            &:hover{
                transform: scale(1.04);
                background-color: var(--Cyan );
            }
        }

            & .android {
                background-color: var(--White);
                color: var(--State);
                &:hover{
                    background-color: var(--Yellow);
                }
            }
        }
    }

    @media screen and (min-width:42.5rem) {
        & {
            max-width: 47.5rem;
            display: flex;
            margin-bottom: 5em;
            
            & .bg-pattern-2 {
                border-radius: .9375em;
                background-position: top left;
            }

            & .content__mobile {
                transform: translate(1.25rem,-7.5rem);
                & .mobile {
                    width: 78%;
                }
            }

            & .pricing__wrapper {
                border-radius: .9375em;
                width: 90%;
                transform: translate(-3.75rem,5rem);
                padding: 2em;
                padding-bottom: 2em;

            }
        }
    }

    @media screen and (min-width: 61.25rem) {
        & {
            max-width: 75rem;

            & .bg-pattern-2 {
                background-position: top center;
            }

            & .content__mobile {
                transform: translate(.625rem,-7.5rem);
                & .mobile {
                    width: 50%;
                }
            }

            & .pricing__wrapper{
                width: 40%;
                transform: translate(0rem,5.625rem);
            } 
        }
    }
}

/* <--------  FOOTER -------> */

footer {
    max-width: 26.875rem;
    width: 100%;
    padding: 4em 1.25em;
    display: flex;
    flex-direction: column;
    gap: 2em;

    & .logo{
        width: 9em;
    }

    & .footer__information {
        display: flex;
        flex-direction: column;
        gap: 2em;
        & .footer__text {
            display: flex;
            flex-direction: column;
            color: var(--State);
            font-family: var(--IBM_Plex_Sans);
            font-weight: 400;
            font-size: 1em;
            line-height: 1.6;
        }

        & .social__media {
            display: flex;
            gap: 2em;

            & .link__social__media{
                display: inline-block;
                width: 25px;
                height: 25px;
                & svg{
                    display: block;
                    width: 100%;
                    height: auto;
                }
                &:hover svg path{
                    fill: var(--Orange);
                }
            }
        }
    }

    @media screen and (min-width:42.5rem) {
        & {
            max-width: 800px;

            & .footer__information {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;

                & .footer__text{
                    width: 60%;
                }
            }
        }
    }

    @media screen and (min-width:61.25rem) {
        & {
            max-width: 75rem;
            flex-direction: row;
            align-items: start;
            gap: 5.25em;
            margin-top: 4em;
        }
    }
}