/* ============================================================
   TutoraX - Pricing Plans Styles
   ============================================================ */

/* Pricing hero */
.pricing-hero {
    position: relative;
    padding: 110px 24px 50px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(109,93,246,0.16), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(18,195,154,0.16), transparent 40%),
        linear-gradient(135deg, #EEF1FF, #FFFFFF);
    overflow: hidden;
}
.pricing-hero h1 { font-size: 2.4rem; margin-bottom: 14px; letter-spacing: -0.5px; }
.pricing-hero p { max-width: 580px; margin: 0 auto; color: var(--text-muted); font-size: 1.05rem; }
.pricing-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-soft); color: var(--primary);
    padding: 8px 18px; border-radius: var(--pill);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}

/* Plans grid */
.plans-section { max-width: 1100px; margin: 0 auto; padding: 20px 24px 60px; }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
    margin-top: 10px;
}

/* Plan card */
.plan-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.6s var(--ease) both;
    border: 2px solid transparent;
}
.plan-card:nth-child(1) { animation-delay: 0.05s; }
.plan-card:nth-child(2) { animation-delay: 0.15s; }
.plan-card:nth-child(3) { animation-delay: 0.25s; }
.plan-card:nth-child(4) { animation-delay: 0.35s; }

.plan-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* Featured (popular) plan */
.plan-card.featured {
    border-color: var(--primary);
    transform: scale(1.04);
    box-shadow: var(--shadow-primary);
    background: linear-gradient(160deg, var(--surface), var(--primary-soft));
}
.plan-card.featured:hover { transform: scale(1.04) translateY(-6px); }

.plan-ribbon {
    position: absolute;
    top: 18px; right: -34px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 6px 40px;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}
.plan-ribbon-discount {
    top: -8px; left: -34px; right: auto;
    background: linear-gradient(135deg, #FF512F, #F09819);
    transform: rotate(-45deg);
}
.plan-price-original {
    margin-top: 6px;
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.plan-top {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1.5px dashed var(--border);
    margin-bottom: 22px;
}
.plan-top .plan-icon {
    width: 62px; height: 62px;
    border-radius: 18px;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
    box-shadow: var(--shadow-sm);
}
.plan-top h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-top .plan-tagline { font-size: 0.86rem; color: var(--text-muted); }

/* Plan price */
.plan-price {
    text-align: center;
    margin: 6px 0;
}
.plan-price .currency { font-size: 1.3rem; font-weight: 700; vertical-align: super; color: var(--text-muted); margin-right: 2px; }
.plan-price .amount { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.plan-price .period { display: block; color: var(--text-light); font-size: 0.8rem; margin-top: 6px; }

/* Plan features */
.plan-features { flex: 1; margin: 22px 0 26px; }
.plan-features .feature {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text);
}
.plan-features .feature .check {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.plan-features .feature.muted { color: var(--text-light); }
.plan-features .feature.muted .check { background: var(--surface-2); color: var(--text-light); }

/* Plan action */
.plan-action { text-align: center; }

/* Savings note */
.savings-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Bottom CTA / note */
.pricing-notes {
    max-width: 1100px; margin: 0 auto; padding: 0 24px 60px;
}
.pricing-notes .note-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
    display: flex; gap: 18px; align-items: flex-start;
}
.pricing-notes .note-card .note-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 14px; background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

/* Account-holder mode toggle */
.toggle-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 26px; text-align: center; }

@media (max-width: 640px) {
    .plan-card.featured { transform: none; }
    .plan-card.featured:hover { transform: translateY(-6px); }
    .pricing-hero h1 { font-size: 1.9rem; }
}

/* Very small screens */
@media (max-width: 480px) {
    .pricing-hero { padding: 100px 16px 40px; }
    .pricing-hero h1 { font-size: 1.6rem; }
    .pricing-hero p { font-size: 0.95rem; }
    .plans-section { padding: 16px 14px 40px; }
    .plans-grid { grid-template-columns: 1fr; gap: 18px; }
    .plan-card { padding: 24px 20px; }
    .plan-price .amount { font-size: 2.5rem; }
    .pricing-notes { padding: 0 14px 40px; }
    .pricing-notes .note-card { flex-direction: column; padding: 20px; }
}
