/* SWITCH STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */


:root {
    --white: white;
    --gray: #999;
    --lightgray: whitesmoke;
    --darkgreen: #2a9d8f;
    --popular: #ffdd40;
    --starter: #f73859;
    --essential: #00aeef;
    --professional: #ff7f45;
}


.table-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch-wrapper {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border: 1px solid lightgrey;
    border-radius: 30px;
    background: var(--white);
    width: 210px;
}

.switch-wrapper [type="radio"] {
    position: absolute;
    left: -9999px;
}

.switch-wrapper [type="radio"]:checked#monthly ~ label[for="monthly"],
.switch-wrapper [type="radio"]:checked#yearly ~ label[for="yearly"] {
    color: var(--white);
}

.switch-wrapper [type="radio"]:checked#monthly ~ label[for="monthly"]:hover,
.switch-wrapper [type="radio"]:checked#yearly ~ label[for="yearly"]:hover {
    background: transparent;
}

.switch-wrapper
[type="radio"]:checked#monthly
+ label[for="yearly"]
~ .highlighter {
    transform: none;
}

.switch-wrapper
[type="radio"]:checked#yearly
+ label[for="monthly"]
~ .highlighter {
    transform: translateX(100%);
}

.switch-wrapper label {
    font-size: 16px;
    z-index: 1;
    min-width: 100px;
    line-height: 32px;
    cursor: pointer;
    border-radius: 30px;
    transition: color 0.25s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch-wrapper .highlighter {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 30px;
    background: var(--primary-color);
    transition: transform 0.25s ease-in-out;
}


.pricing-table-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

@media (max-width: 768px) {
    .pricing-table-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

}

.pricing-table {
    grid-row-gap: 2.75rem;
    border: 1px solid #e6e6e6;
    text-align: left;
    border-radius: 1.5rem;
    flex-direction: column;
    padding: 2rem;
    transition: background-color .3s;
    display: flex;
    margin: 50px 0;
    min-height: 700px;

}

.app-name {
    letter-spacing: -.04em;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.55556em;
}

.price__value-wrapper {
    display: flex;
    align-items: end;
    gap: 10px;
}

.price__value {
    letter-spacing: -.05em;
    font-size: 4.25rem;
    font-weight: 600;
    line-height: 1.2em;
}

.price__value-postfix {
    letter-spacing: -.02em;
    white-space: nowrap;
    margin-bottom: .625rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5em;
}

.pricing-type-text {
    color: #737373;
    font-weight: 500;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.price__features {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    flex-direction: column;
    display: flex;
}

.price__features-heading {
    color: #141414;
    letter-spacing: -.02em;
    font-weight: 500;
    line-height: 1.5em;

}

.feature-list {
    color: #525252;
    letter-spacing: -.04em;
    margin-bottom: .75rem;
    padding-left: 0;
    font-size: 1rem;
    line-height: 1.5em;
    list-style: none;
}

.list {
    position: relative;
    display: flex;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 10px;
}


.feature-list-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.app-toggle {
    border: 1px solid lightgrey;
    background: transparent;
    padding: 8px 8px 8px 8px;
    border-radius: 5px;

}


/*FAQ Section*/
.faq-section-title {
    font-size: 40px;
    text-align: center;
}

.faq-wrapper {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq {
    padding: 20px;
    border: 1px solid lightgrey;
    border-radius: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

}

.faq-arrow{
    width: 18px;
    height: 18px;
    transition: all 0.4s ease-in-out;
    flex-shrink: 0;
}
.faq-question-title{
   transition: all 0.4s ease-in-out;
}
.faq-question.active .faq-question-title{
    color:var(--primary-color) ;
}


.faq-question.active .faq-arrow {
   fill: var(--primary-color) ;
    transform: rotate(90deg);
}

.faq-answer.expanded {
    max-height: 1000px;
}

.faq-question h5 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.faq-answer p {
    margin-top: 10px;
    padding: 10px 0;
}

