*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

:root {
    --background-gradient-btn: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(163, 168, 240, 1) 60%,
            rgba(105, 111, 221, 1) 100%);
    --blue-background-gradient-btn: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 1) 60%,
         rgba(255, 255, 255, 1) 100%);
    --background-gradient: linear-gradient(90deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
    --very-light-grayish-blue: hsl(240, 78%, 98%);
    --light-grayish-blue: hsl(234, 14%, 74%);
    --grayish-blue: hsl(233, 13%, 49%);
    --dark-grayish-blue: hsl(232, 13%, 33%);
}

body {
    background: var(--very-light-grayish-blue) url(../images/bg-top.svg) no-repeat;
    background-size: 75%;
    background-position-y: top;
    background-position-x: 250%;

    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.05em;

    position: relative;
    text-align: center;
}

h1 {
    color: var(--grayish-blue);
    margin-top: 4.25rem;
}

#choice {
    color: var(--light-grayish-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 40px auto 80px;
    width: 250px;
}

#switch {
    background-image: var(--background-gradient);
    border-radius: 15px;
    cursor: pointer;
    height: 30px;
    width: 60px;

    position: relative;
}

#switch input {
    height: 0;
    opacity: 0;
    width: 0;
}

#slider::before {
    content: '';
    display: block;
    height: 24px;
    width: 24px;

    background-color: #fff;
    border-radius: 50%;

    position: absolute;
    top: 3px;
    right: 5px;

    transition: all .3s;
    -webkit-transition: all .3s;;
}

#switch input:checked + #slider::before {
    transform: translateX(-26px);
}

.container {
    padding: 0 25px;
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    row-gap: 32px;
}

article {
    background-color: #fff;
    border-radius: .5rem;
    filter: drop-shadow(0 10px 10px rgba(105, 111, 221, .25));
    height: fit-content;
    width: 100%;
    padding: 2rem 1rem;
}

.level {
    color: var(--grayish-blue);
}

.change {
    font-size: 3.75rem;
    letter-spacing: -.025rem;
    padding-left: .5rem;
    vertical-align: -10%;
}

.price {
    color: var(--dark-grayish-blue);
    font-size: 2.25rem;
    margin: 2.5rem 0;
    text-align: center;
}

ul li {
    color: var(--grayish-blue);
    border-top: 1px solid rgba(179, 181, 198, .5);
    padding: 20px 0;
}

ul li:last-child {
    border-bottom: 1px solid rgba(179, 181, 198, .5);
    margin-bottom: 2rem;
}

.btn {
    display: block;

    background: var(--background-gradient-btn);
    background-size: 333%;
    background-position: right;

    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    margin: auto;
    max-width: 500px;
    padding: 1rem 0;
    text-decoration: none;

    transition: all .4s ease;
    -webkit-transition: all .4s ease;
}

.btn:hover {
    background-position: left;
    border: 1px solid var(--grayish-blue);
    color: darkblue;
}

.learn-more {
    color: #fff;
    letter-spacing: 0.1rem;
    text-transform: uppercase;

    transition: all .4s ease;
}

.btn:hover > .learn-more {
    background: var(--background-gradient);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

article:nth-child(even) {
    background: var(--background-gradient);
}

article:nth-child(even) > .level, article:nth-child(even) > .price {
    color: #fff;
}

article:nth-child(even) > ul li {
    border-top: 1px solid var(--very-light-grayish-blue);
    color: #fff;
}

article:nth-child(even) > ul li:last-child {
    border-bottom: 1px solid var(--very-light-grayish-blue);
}

article:nth-child(even) > .btn {
    background: var(--blue-background-gradient-btn);
    background-size: 333%;
    background-position: right;
}

article:nth-child(even) > .btn .learn-more {

    background: var(--background-gradient);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

article:nth-child(even) > .btn:hover {
    background-position: left;
    border: 1px solid #fff;
}

article:nth-child(even) > .btn:hover > .learn-more {
    -webkit-text-fill-color: #fff;
}

@media only screen and (min-width: 900px) {
    .container {
        align-items: center;
        flex-direction: row;
        padding: 0;

        margin: auto;
        max-width: 1440px;
        width: 90vw;
    }

    article {
        margin-bottom: 50px;
        width: 33%;
    }

    .change {
        font-size: 4rem;
    }

    article:nth-child(even) {
        padding: 3.75rem 1rem 3.25rem;
    }
}