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

:root {
   /* Colors */

   /* Primary */
    
    --Linear-Gradient: linear-gradient(to right,hsl(236, 72%, 79%),hsl(237, 63%, 64%)) ;
    --Professional-Card-text:hsl(237, 63%, 64%);
    /* Neutral */
    --White:hsl(0, 0%, 100%);
    --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%);

}




html {  
    font-family: "Montserrat", serif;  
    font-size: 15px;
}
body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--Very-Light-Grayish-Blue);
    overflow-x: hidden;
}
body::before {
    content: url(./images/bg-bottom.svg);
    position: absolute;
    left: 0;
    bottom: 0;
    display: none;
    z-index: -1;

}
body::after {
    content: url(./images/bg-top.svg);
    position: absolute;
    right: -50%;
    top: -40px;
    z-index: -1;

}
/* header  */

.header h1 {
    margin-top: 3rem;
    font-size: 2rem;
    text-align: center;
    color: var(--Dark-Grayish-Blue);
}


/* Toggle Control and toogle price button */
.toogle-control {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-block: 2rem;
}
.toogle-control p {
    color: var(--Grayish-Blue);
    font-size: 14px;
}
.toggle-btn {
    position: relative;
    width: 55px;
    height: 30px;
    background:var(--Light-Grayish-Blue) ;
    border-radius: 15px;
}
.toggle-btn.annually-plan {
    background: var(--Linear-Gradient);
    
}
.toggle-btn input[type='checkbox'] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    opacity: 0;
    cursor: pointer;
}
.toggle-btn .round {
    position: absolute;
    width: 23px;
    height: 23px;
    background-color: var(--White);
    border-radius: 50%;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    transition: all .3s ease;
}
.toggle-btn.annually-plan .round {
    transform: translate(-24px,-50%);
}

/* main container  */
.container {
    width: 100%;
    margin-inline: auto;
    margin-bottom: 3rem;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

}
.price-plan-card {
    width: 100%;
    background: var(--White);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
}
/* Start Professional card Style */
.price-plan-card.professional {
    background: var(--Linear-Gradient);
    
}

.price-plan-card.professional h2.plan-title,
.price-plan-card.professional .plan-details li  {
    color: var(--White);
}
.price-plan-cardh2.plan-title {
    font-size: 1rem;

}
.price-plan-card.professional .price p {
    color: var(--White);
}
.price-plan-card.professional button {
   
    background: var(--White);
    color: var(--Professional-Card-text);
}
/* End professional card style  */

.price-plan-card h2.plan-title,
.price-plan-card .plan-details li  {
    color: var(--Grayish-Blue);
}

.price-plan-card ul.plan-details {
    list-style: none;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.price-plan-card .plan-details li {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--Light-Grayish-Blue);
    text-align: center;
}
.price-plan-card .price p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--Dark-Grayish-Blue);
}
.price-plan-card .price p span {
    font-size: 4rem;
}
.price-plan-card .price p.annually {
    display: none;
}

/* Show annual plans */
.price-plan-card .price.show-annually p.annually {
    display: inline-flex;
}
.price-plan-card .price.show-annually p.monthly {
    display: none;
}
/* Card btn */
.price-plan-card button {
    width: 100%;
    height: 45px;
    margin-top: 25px;
    border: none ;
    border-radius: 7px;
    background-image: var(--Linear-Gradient);
    color: var(--White);
    font-family: "Montserrat", serif;
    font-weight: 700;  
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.price-plan-card button:hover {
    background-image: none;
    border: 2px solid var(--Professional-Card-text);
    color: var(--Professional-Card-text);
}
.price-plan-card.professional button:hover {
    background-image: var(--Linear-Gradient);
    border: 2px solid var(--White);
    color: var(--White);
}





/* footer */
footer {
    position: absolute;
    width: 100%;
    bottom: 10px;
}
.attribution {
    color: #333;
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color:#09f;
}



/* media  */
@media screen and (min-width:768px) and (max-width:992px) {
    .container {
        width: 45%;
    }    
}
@media screen and (min-width:993px) and (max-width:1199px){
    
    .container {
        width: 35%;
    }    
}

@media screen and (min-width:1200px) {
    body::before {
        display: block;
    }
    body::after {
        right: 0;
        top: 0;
    
    }
    .header h1 {
        margin: 0;
    }
    .toggle-btn {
        margin-block: 1rem;
    }
    .container {
        width: 65%;
        flex-direction: row;
        gap: 0;

    }
    
    .container .price-plan-card {
        width:calc(100% / 3);
    }
    .container .price-plan-card.professional {
        transform: scale(1.1);
    }
    .container .price-plan-card.professional > * {
        transform: scale(1.05);
    }
    .price-plan-card .plan-details li {
   
        padding: 15px 0;
      
    }
    
}