/* ══════════════════════════════════════
   PRICING PAGE
   Inherits all CSS variables from theme-dark.css / theme-light.css
   ══════════════════════════════════════ */

/* ── Hero ── */
.prc-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.prc-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.prc-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--t3);
    margin-bottom: 28px;
}

.prc-hero .hero-badge span {
    color: var(--green);
    font-weight: 600;
}

.prc-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 750px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--t1) 30%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prc-hero-sub {
    font-size: 1.12rem;
    color: var(--t3);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Sections ── */
.prc-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.prc-alt {
    background: rgba(255, 255, 255, 0.015);
}

.prc-section .section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.prc-section .section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
    color: var(--t1);
}

.prc-section .section-desc {
    font-size: 1.02rem;
    color: var(--t3);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ── Price Cards Grid ── */
.prc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.prc-card {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--card-r);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.prc-card:hover {
    border-color: var(--bdr-h);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Popular / featured card */
.prc-card.prc-pop {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green), 0 8px 32px rgba(16, 185, 129, 0.15);
}

.prc-card.prc-pop:hover {
    box-shadow: 0 0 0 1px var(--green), 0 16px 48px rgba(16, 185, 129, 0.25);
}

.prc-pop-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.prc-tier {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.prc-price-offer {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.prc-price-regular {
    font-size: 0.92rem;
    color: var(--t4);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.prc-price-amt {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--t1);
    line-height: 1;
    margin-bottom: 6px;
}

.prc-cur {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--t3);
}

.prc-per {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--t4);
}

.prc-desc {
    font-size: 0.88rem;
    color: var(--t3);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--bdr);
    margin-top: 16px;
}

/* Feature checklist */
.prc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.prc-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--t3);
    line-height: 1.5;
}

.prc-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--green);
}

.prc-features li.prc-feat-off {
    opacity: 0.4;
}

.prc-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    display: block;
}

.prc-btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* ── Comparison Table ── */
.prc-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prc-compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

.prc-compare thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.prc-compare th {
    background: var(--bg-card);
    border-bottom: 2px solid var(--bdr);
    padding: 18px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--t1);
    text-align: center;
    white-space: nowrap;
    vertical-align: bottom;
}

.prc-compare th:first-child {
    text-align: left;
    color: var(--t3);
}

/* Highlight the School-ERP / recommended column */
.prc-compare .prc-col-hl {
    background: rgba(16, 185, 129, 0.06);
}

.prc-compare th.prc-col-hl {
    color: var(--green);
    border-bottom-color: var(--green);
}

.prc-compare td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--t3);
    border-bottom: 1px solid var(--bdr);
    text-align: center;
}

.prc-compare td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--t2);
}

.prc-compare tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.prc-th-price {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--t4);
    margin-top: 4px;
}

.prc-th-rec {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 2px;
}

.prc-th-product {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
}

.prc-check {
    color: var(--green);
}

.prc-cross {
    color: var(--t4);
    opacity: 0.5;
}

/* Comparison cell color spans */
.prc-cy {
    color: var(--green);
    font-weight: 600;
}

.prc-cn {
    color: #ef4444;
    font-weight: 600;
    opacity: 0.8;
}

.prc-cp {
    color: var(--blue);
    font-weight: 600;
}

/* ── FAQ Accordion ── */
.prc-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prc-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--card-r);
    overflow: hidden;
    transition: border-color 0.3s;
}

.prc-faq-item:hover {
    border-color: var(--bdr-h);
}

.prc-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.prc-faq-q:hover {
    background: rgba(255, 255, 255, 0.02);
}

.prc-faq-q h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t1);
    margin: 0;
}

.prc-faq-q .prc-faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    color: var(--green);
}

.prc-faq-item.active .prc-faq-q .prc-faq-icon {
    transform: rotate(45deg);
}

.prc-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.prc-faq-item.active .prc-faq-a {
    max-height: 400px;
}

.prc-faq-a p {
    padding: 0 28px 22px;
    font-size: 0.92rem;
    color: var(--t3);
    line-height: 1.7;
    margin: 0;
}

/* ── CTA ── */
.prc-cta {
    text-align: center;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.prc-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: 16px;
}

.prc-cta-sub {
    font-size: 1.05rem;
    color: var(--t3);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.prc-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.prc-cta-buttons .btn-outline {
    background: transparent;
    color: var(--t1);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--bdr);
    transition: all 0.25s;
}

.prc-cta-buttons .btn-outline:hover {
    border-color: var(--bdr-h);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--t1);
}

/* ══════════════════════════════════════
   RESPONSIVE — Tablet
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .prc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .prc-hero {
        padding: 130px 0 60px;
    }

    .prc-hero h1 {
        font-size: 2.2rem;
    }

    .prc-section {
        padding: 60px 0;
    }

    .prc-section .section-title {
        font-size: 1.7rem;
    }

    .prc-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .prc-faq-q {
        padding: 18px 22px;
    }

    .prc-faq-a p {
        padding: 0 22px 18px;
    }

    .prc-cta h2 {
        font-size: 1.8rem;
    }

    .prc-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .prc-cta-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — Small phone
   ══════════════════════════════════════ */
@media (max-width: 480px) {
    .prc-hero h1 {
        font-size: 1.9rem;
    }

    .prc-hero-sub {
        font-size: 1rem;
    }

    .prc-card {
        padding: 28px 22px;
    }

    .prc-price-amt {
        font-size: 2.2rem;
    }

    .prc-faq-q h4 {
        font-size: 0.92rem;
    }

    .prc-cta {
        padding: 70px 0;
    }
}

/* ══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════ */
body.light .prc-hero::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

body.light .prc-hero h1 {
    background: linear-gradient(135deg, #0f172a 30%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .prc-alt {
    background: rgba(241, 245, 249, 0.5);
}

body.light .prc-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light .prc-card:hover {
    background: #fff;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

body.light .prc-card.prc-pop {
    background: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green), 0 8px 32px rgba(16, 185, 129, 0.1);
}

body.light .prc-card.prc-pop:hover {
    box-shadow: 0 0 0 1px var(--green), 0 16px 48px rgba(16, 185, 129, 0.18);
}

body.light .prc-compare th {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

body.light .prc-compare .prc-col-hl {
    background: rgba(16, 185, 129, 0.04);
}

body.light .prc-compare td {
    border-bottom-color: #e2e8f0;
}

body.light .prc-compare tbody tr:hover td {
    background: rgba(241, 245, 249, 0.5);
}

body.light .prc-faq-item {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light .prc-faq-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

body.light .prc-faq-q:hover {
    background: rgba(241, 245, 249, 0.5);
}

body.light .prc-faq-q .prc-faq-icon {
    background: rgba(16, 185, 129, 0.06);
}
