/*-----------------------------------------------------------------------------------
    Homepage pricing teaser - scoped to .home_pricing
-----------------------------------------------------------------------------------*/

.home_pricing {
    position: relative;
    background-color: var(--light-purple);
    padding: 80px 0 70px;
}

.home_pricing .hp_card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #E9E5F8;
    border-radius: 20px;
    padding: 26px 24px 24px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(50, 35, 111, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.home_pricing .hp_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(50, 35, 111, .12);
}

.home_pricing .hp_flag {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    margin-bottom: 8px;
}

.home_pricing .hp_recommend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.9;
    color: #ffd76e;
    background-color: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    padding: 1px 11px;
}

.home_pricing .hp_recommend i {
    font-size: 10px;
}

.home_pricing .hp_name {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.8;
    color: var(--dark-purple);
}

.home_pricing .hp_desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: #6E6F8F;
    min-height: 48px;
}

.home_pricing .hp_price {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--dark-purple);
}

.home_pricing .hp_amount {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.4;
}

.home_pricing .hp_cur {
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 5px;
}

.home_pricing .hp_per {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.9;
    color: #6E6F8F;
    min-height: 25px;
}

.home_pricing .hp_btn {
    display: block;
    width: 100%;
    margin: 16px 0 22px;
    padding: 10px 16px;
    border-radius: 12px;
    background-color: var(--purple);
    border: 1px solid var(--purple);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home_pricing .hp_btn:hover,
.home_pricing .hp_btn:focus {
    background-color: #5938d8;
    border-color: #5938d8;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(106, 73, 242, .28);
}

.home_pricing .hp_btn--ghost {
    background-color: #ffffff;
    border-color: #D8D0F6;
    color: var(--purple);
}

.home_pricing .hp_btn--ghost:hover,
.home_pricing .hp_btn--ghost:focus {
    background-color: var(--light-purple);
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: none;
}

.home_pricing .hp_features {
    margin: 0;
    text-align: right;
}

.home_pricing .hp_features li {
    position: relative;
    padding-right: 26px;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--body-text-purple);
}

.home_pricing .hp_features li:last-child {
    margin-bottom: 0;
}

.home_pricing .hp_features li::before {
    content: "\2713";
    position: absolute;
    right: 0;
    top: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: rgba(106, 73, 242, .10);
    color: var(--purple);
    font-size: 9px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

/* Featured (yearly) */
.home_pricing .hp_card--featured {
    background: linear-gradient(160deg, #4b33bd 0%, #32236f 100%);
    border-color: transparent;
    box-shadow: 0 20px 46px rgba(50, 35, 111, .24);
}

.home_pricing .hp_card--featured:hover {
    box-shadow: 0 24px 52px rgba(50, 35, 111, .3);
}

.home_pricing .hp_card--featured .hp_name,
.home_pricing .hp_card--featured .hp_price,
.home_pricing .hp_card--featured .hp_amount,
.home_pricing .hp_card--featured .hp_cur {
    color: #ffffff;
}

.home_pricing .hp_card--featured .hp_desc,
.home_pricing .hp_card--featured .hp_per {
    color: rgba(255, 255, 255, .78);
}

.home_pricing .hp_card--featured .hp_features li {
    color: #ffffff;
}

.home_pricing .hp_card--featured .hp_features li::before {
    background-color: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.home_pricing .hp_card--featured .hp_btn {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--dark-purple);
}

.home_pricing .hp_card--featured .hp_btn:hover,
.home_pricing .hp_card--featured .hp_btn:focus {
    background-color: #f2efff;
    border-color: #f2efff;
    color: var(--dark-purple);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.home_pricing .hp_badge {
    position: absolute;
    top: -13px;
    right: 50%;
    transform: translateX(50%);
    display: inline-block;
    white-space: nowrap;
    background-color: #FFC94A;
    color: #3a2a00;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.9;
    border-radius: 50px;
    padding: 3px 14px;
    box-shadow: 0 6px 16px rgba(255, 201, 74, .35);
}

.home_pricing .hp_note {
    margin: 26px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
    color: #6E6F8F;
}

.home_pricing .hp_more {
    margin-top: 12px;
    text-align: center;
}

.home_pricing .hp_more_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--purple);
    border-bottom: 1px dashed rgba(106, 73, 242, .45);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}

.home_pricing .hp_more_link:hover,
.home_pricing .hp_more_link:focus {
    color: var(--dark-purple);
    border-color: var(--dark-purple);
}

/* ---------------- Responsive ---------------- */

@media screen and (max-width: 991px) {
    .home_pricing {
        padding: 60px 0 50px;
    }

    .home_pricing .hp_card {
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 575px) {
    .home_pricing {
        padding: 50px 0 40px;
    }

    .home_pricing .hp_amount {
        font-size: 30px;
    }
}

/* AI call-out under the plans heading */
.home_pricing .hp_ai_note {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 14px auto 0;
    padding: 6px 16px;
    border-radius: 50px;
    background-color: rgba(106, 73, 242, .08);
    border: 1px solid rgba(106, 73, 242, .16);
    color: var(--purple);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.home_pricing .hp_ai_note i {
    font-size: 12px;
}

/* Keep the AI line clear of the plan cards */
.home_pricing .section_title {
    margin-bottom: 26px;
}

/* Sparkle on the AI call-out icon */
@keyframes hp_sparkle {
    0%,
    100% {
        opacity: .7;
        transform: scale(.9) rotate(-8deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(8deg);
    }
}

.home_pricing .hp_ai_note .fa-sparkles {
    display: inline-block;
    animation: hp_sparkle 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .home_pricing .hp_ai_note .fa-sparkles {
        animation: none;
    }
}
