/******************** Plans Table ********************/

#plans {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

#plansTitle {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: var(--brown);
    margin-bottom: 12px;
}

#plansSubtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

/* Billing Toggle */
#plansBillingToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.plansBillingLabel {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.plansBillingLabel.active {
    color: var(--brown);
}

#plansBillingSwitch {
    position: relative;
    width: 56px;
    height: 28px;
    background: #ddd;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

#plansBillingSwitch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#plansBillingSwitch.annual::after {
    transform: translateX(28px);
}

#plansBillingSavings {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    background: rgba(24, 186, 69, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Plans Grid */
#plansGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Plan Card */
.planCard {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
    cursor: pointer;
}

.planCard:hover {
    border-color: var(--light-brown);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.planCard.selected {
    border-color: var(--brown);
    box-shadow: 0 8px 24px rgba(197, 148, 108, 0.3);
}

.planCard.popular {
    border-color: var(--brown);
}

/* Popular Badge */
.planCardBadge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brown);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Plan Icon */
.planCardIcon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

/* Plan Name */
.planCardName {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

/* Plan Description */
.planCardDescription {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
}

/* Plan Price */
.planCardPrice {
    margin-bottom: 24px;
}

.planCardPriceAmount {
    font-size: 48px;
    font-weight: 700;
    color: var(--brown);
    line-height: 1;
}

.planCardPriceAmount span {
    font-size: 24px;
    font-weight: 400;
}

.planCardPricePeriod {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}

.planCardPriceSavings {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    margin-top: 8px;
}

/* Plan Features */
.planCardFeatures {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.planCardFeatures li {
    font-size: 14px;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.planCardFeatures li:last-child {
    border-bottom: none;
}

.planCardFeatures li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}

/* Plan Button */
.planCardButton {
    background: var(--brown);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    text-decoration: none;
    display: block;
}

.planCardButton:hover {
    background: #b8875f;
    transform: scale(1.02);
}

.planCard.selected .planCardButton {
    background: var(--green);
}

/* Free plan styling */
.planCard[data-plan="demo"] .planCardPriceAmount {
    font-size: 36px;
}

/* Responsive */
@media (max-width: 900px) {
    #plansGrid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .planCardDescription {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    #plans {
        padding: 40px 16px;
    }

    #plansTitle {
        font-size: 28px;
    }

    .planCardIcon {
        width: 60px;
        height: 60px;
    }

    .planCardPriceAmount {
        font-size: 36px;
    }

    .planCardPriceAmount span {
        font-size: 18px;
    }
}
