@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --cyan: hsl(179, 62%, 43%);
    --bright-yellow: hsl(71, 73%, 54%);
    --light-gray: hsl(204, 43%, 93%);
    --grayish-blue: hsl(218, 22%, 67%);
    --light-cyan: rgba(76, 190, 188, 1);
}

* {
    margin: 0%;
    padding: 0%;
}

body {
    background-color: var(--light-gray);
    color: var(--grayish-blue);
    font-family: 'Karla';
    font-size: 1rem;
    line-height: 1.625rem;
    letter-spacing: -0.010rem;
    max-width: 1000dvh;
    display: flex;
    justify-content: center;
}

main {
    padding: 163px 32px 162px;
}

.card {
    display: grid;
    grid-template-columns: 317px 318px;
    grid-template-rows: 216px 259px;
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.16);
    border-radius: 8px;
}

/*COMMUNITY SECTION*/
.community-section {
    grid-area: 1 / 1 / 2 / 3;
    background-color: white;
    border-radius: 8px 8px 0 0;
    padding: 40px;
}

.community-section-heading {
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.75rem;
    letter-spacing: -0.016rem;
}

.community-section-subheading {
    color: var(--bright-yellow);
    font-size: 1.125rem;
    line-height: 1.313rem;
    letter-spacing: -0.012rem;
    padding: 24px 0 10px 0;
}

/*MONTHLY SUBSCRIPTION*/
.subscription-section {
    grid-area: 2 / 1 / 3 / 2;
    background-color: var(--cyan);
    color: white;
    border-radius: 0 0 0 8px ;
    padding: 41px 40px 39px;
    font-size: 1rem;
    letter-spacing: -0.010rem;
}

.subscription-section-heading {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.438rem;
    letter-spacing: -0.008rem;
}

.subscription-price {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 4px;
}

span:nth-of-type(1) {
    font-weight: 600;
    font-size: 2rem;
    line-height: 2.313rem;
    letter-spacing: -0.015rem;
}

span:nth-of-type(2) {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.188rem;
}

.subscription-section-paragraph {
    color: rgba(255, 255, 255, 0.75);
    padding-bottom: 26px
}

.subscription-section-button {
    background-color: var(--bright-yellow);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.188rem;
    letter-spacing: 0rem;
    border-radius: 8px;
    padding: 15px 0 14px 0;
    display: flex;
    justify-content: center;
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.16);
    transition: 0.4s;
}

.subscription-section-button:hover {
    background-color: white;
    color: var(--grayish-blue);
}

/*WHY US*/
.reason-section {
    grid-area: 2 / 2 / 3 / 3; 
    background-color: var(--light-cyan);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1rem;
    border-radius: 0 0 8px 0px;
    padding: 41px 40px 42px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.reason-section-heading {
    color: white;
    font-size: 1.125rem;
    line-height: 1.313rem;
}

.reason-section-list {
    font-size: 0.875rem;;
    list-style: none;
    letter-spacing: -0.01rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media only screen and (max-width: 755px) {
    body {
        font-size: 0.875rem;
    }
    
    main {
        padding: 72px 32px 76px;
    }
    
    .card {
        display: flex;
        flex-direction: column;
    }
    
    /*COMMUNITY SECTION*/
    .community-section {
        padding: 28px 24px 32px;
    }
    
    .community-section-heading {
        font-size: 1.25rem;
        line-height: 1.438rem;
        letter-spacing: -0.016rem;
    }
    
    .community-section-subheading {
        line-height: 1.25rem;
        padding: 24px 0 16px 0;
    }
    
    /*MONTHLY SUBSCRIPTION*/
    .subscription-section {
        border-radius: 0px;
        padding: 24px;
    }
    
    .subscription-section-paragraph {
        color: rgba(255, 255, 255, 0.75);
        padding-bottom: 26px
    }
    
    /*WHY US*/
    .reason-section {
        border-radius: 0 0 8px 8px;
        padding: 25px 24px 26px;
    }
}