/* Scoped styles for Plans & Pricing page */

.plans-pricing-page {
    font-family: 'Poppins', sans-serif;
    color: #222;
    line-height: 1.5;
    background: #f4f5f6;
    padding-bottom: 50px;
}

.plans-pricing-page .pp-container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 20px;
}

.plans-pricing-page button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.plans-pricing-page a {
    text-decoration: none;
}

/* Hero */
.plans-pricing-page .pp-hero {
    position: relative;
    text-align: center;
    padding: 36px 0 10px;
}

.plans-pricing-page .pp-back {
    position: absolute;
    top: 38px;
    left: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
}

.plans-pricing-page .pp-back:hover {
    color: #FF5A5F;
}

.plans-pricing-page .pp-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.plans-pricing-page .pp-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.plans-pricing-page .pp-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.plans-pricing-page .pp-hero p {
    font-size: 0.82rem;
    color: #333;
    margin: 0 0 22px;
}

/* Billing toggle */
.plans-pricing-page .pp-billing-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.plans-pricing-page .pp-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f1f1;
    border: 5px solid #e4e4e4;
    border-radius: 50px;
    padding: 4px;
}

.plans-pricing-page .pp-billing-toggle button {
    border: none;
    background: #f7f7f7;
    padding: 9px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #444;
    transition: all .25s ease;
}

.plans-pricing-page .pp-billing-toggle button.active {
    background: #ee5d56;
    color: #fff;
    box-shadow: 0 3px 8px rgba(238, 93, 86, 0.3);
}

.plans-pricing-page .pp-save-note {
    color: #1a8a3c;
    font-weight: 600;
    font-size: 0.78rem;
}

/* Pricing cards */
.plans-pricing-page .pp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 36px 0 10px;
}

.plans-pricing-page .pp-card {
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.plans-pricing-page .pp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.plans-pricing-page .pp-card-header {
    position: relative;
    overflow: hidden;
    min-height: 183px;
    padding: 0 22px 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.plans-pricing-page .pp-card-header::before,
.plans-pricing-page .pp-card-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.plans-pricing-page .pp-card-header::before {
    width: 190px;
    height: 190px;
    top: -60px;
    right: -50px;
}

.plans-pricing-page .pp-card-header::after {
    width: 120px;
    height: 120px;
    top: -10px;
    right: -10px;
    background: rgba(255, 255, 255, 0.16);
}

.plans-pricing-page .pp-card-header h3 {
    position: relative;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: #fff;
}

.plans-pricing-page .pp-card-header p {
    position: relative;
    font-size: 0.82rem;
    opacity: 0.95;
    margin: 0;
    color: #fff;
}

.plans-pricing-page .pp-hero .pp-card-header p {
    color: #fff;
}

.plans-pricing-page .pp-card--lab .pp-card-header {
    background: linear-gradient(135deg, #e5779b 0%, #ee5a96 100%);
}

.plans-pricing-page .pp-card--classroom .pp-card-header {
    background: linear-gradient(135deg, #0bbf7b 0%, #38c98f 100%);
}

.plans-pricing-page .pp-card--teacher .pp-card-header {
    background: linear-gradient(135deg, #09c3f5 0%, #3f7cf4 100%);
}

.plans-pricing-page .pp-card-body {
    padding: 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.plans-pricing-page .pp-price-box {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 14px 14px 12px;
    text-align: left;
}

.plans-pricing-page .pp-price-box .pp-price-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 4px;
}

.plans-pricing-page .pp-price-box .pp-price-pill {
    display: inline-block;
    background: #dcf1e3;
    color: #2fa968;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 1px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.plans-pricing-page .pp-price-box .pp-price-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    white-space: nowrap;
}

.plans-pricing-page .pp-price-box .pp-price-value span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    margin-left: 3px;
    white-space: nowrap;
}

/* Annual savings callouts */
.plans-pricing-page .pp-hero .pp-savings-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: left;
    font-size: 0.74rem;
    color: #222;
    margin: 20px 0 16px;
}

.plans-pricing-page .pp-savings-line i {
    font-style: normal;
    font-size: 0.6rem;
    color: #777;
}

.plans-pricing-page .pp-savings-box {
    width: 100%;
    margin: 0 0 40px;
    background: #fff1d6;
    border: 1px solid #f6d697;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #7a5413;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.plans-pricing-page .pp-savings-box .pp-icon {
    color: #d99a1f;
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Find the right fit */
.plans-pricing-page .pp-fit-section {
    background: transparent;
    padding: 20px 0 30px;
}

.plans-pricing-page .pp-fit-section h2 {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.plans-pricing-page .pp-fit-section > .pp-container > p {
    max-width: 770px;
    margin: 0 auto 22px;
    text-align: center;
    color: #777;
    font-size: 0.86rem;
}

.plans-pricing-page .pp-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 26px;
    font-size: 0.74rem;
    color: #444;
}

.plans-pricing-page .pp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plans-pricing-page .pp-legend .pp-check,
.plans-pricing-page .pp-legend .pp-plus,
.plans-pricing-page .pp-legend .pp-cross {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
}

/* Comparison table */
.plans-pricing-page .pp-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.plans-pricing-page .pp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.plans-pricing-page .pp-table thead th {
    text-align: left;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 0.8rem;
    font-weight: 600;
}

.plans-pricing-page .pp-table thead th:first-child {
    width: 44%;
    vertical-align: middle;
}

.plans-pricing-page .pp-table thead th.pp-col-plan {
    text-align: left;
    width: 28%;
}

.plans-pricing-page .pp-plan-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: #111;
    display: block;
    margin-bottom: 4px;
}

.plans-pricing-page .pp-plan-sub {
    display: block;
    font-size: 0.74rem;
    color: #777;
    font-weight: 400;
    margin-bottom: 2px;
}

.plans-pricing-page .pp-plan-price {
    font-size: 0.74rem;
    color: #111;
    font-weight: 700;
    display: block;
}

.plans-pricing-page .pp-table .pp-group-row td {
    background: #f1ece9;
    font-size: 0.76rem;
    font-weight: 700;
    color: #222;
    letter-spacing: .2px;
    padding: 26px 24px;
    text-transform: uppercase;
}

.plans-pricing-page .pp-table .pp-group-row.pp-group-row--plain td {
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
    padding: 20px 24px;
}

.plans-pricing-page .pp-table tbody tr:not(.pp-group-row) td {
    padding: 0 24px;
    height: 88px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.8rem;
    color: #222;
}

.plans-pricing-page .pp-table tbody tr:not(.pp-group-row) td:first-child {
    max-width: 330px;
}

.plans-pricing-page .pp-table tbody tr.pp-short-row td,
.plans-pricing-page .pp-table tbody tr.pp-choose-row td {
    vertical-align: top;
    height: auto;
    padding: 14px 24px 24px;
    font-size: 0.74rem;
    color: #888;
    border-bottom: none;
}

.plans-pricing-page .pp-table td.pp-col-plan {
    text-align: center;
}

.plans-pricing-page .pp-table tbody tr.pp-short-row td.pp-col-plan,
.plans-pricing-page .pp-table tbody tr.pp-choose-row td.pp-col-plan,
.plans-pricing-page .pp-table tbody tr.pp-short-row td:not(:first-child),
.plans-pricing-page .pp-table tbody tr.pp-choose-row td:not(:first-child) {
    text-align: left;
}

.plans-pricing-page .pp-check,
.plans-pricing-page .pp-plus,
.plans-pricing-page .pp-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.plans-pricing-page .pp-check {
    background: #0f8a1f;
}

.plans-pricing-page .pp-plus {
    background: #fba91c;
    font-size: 1.1rem;
}

.plans-pricing-page .pp-cross {
    background: #f04438;
}

.plans-pricing-page .pp-check-note {
    display: block;
    font-size: 0.74rem;
    color: #333;
    margin-top: 2px;
}

.plans-pricing-page .pp-table td.pp-col-plan .pp-check:has(+ .pp-check-note) {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.plans-pricing-page .pp-short-title {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #111;
}

.plans-pricing-page .pp-show-all-btn {
    background: #ee5d56;
    color: #fff;
    border: none;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 4px;
    margin-left: 12px;
}

/* Rows shown only after "Show All" */
.plans-pricing-page .pp-extra-row,
.plans-pricing-page .pp-legend-extra {
    display: none !important;
}

.plans-pricing-page.pp-show-extra .pp-extra-row {
    display: table-row !important;
}

.plans-pricing-page.pp-show-extra .pp-legend-extra {
    display: inline-flex !important;
}

.plans-pricing-page .pp-upgrade-note {
    margin: 22px 0 0;
    background: #fff9e2;
    border-left: 3px solid #f2c94c;
    padding: 12px 18px;
    font-size: 0.74rem;
    color: #7a5413;
}

.plans-pricing-page .pp-table-wrap > .pp-upgrade-note {
    margin: 0;
    border-radius: 0;
}

/* Smart AI Teacher add-on */
.plans-pricing-page .pp-addon-section {
    padding: 0;
}

.plans-pricing-page .pp-addon-section .pp-container {
    background: #fff;
    border-radius: 4px;
    padding: 18px 22px;
    max-width: 1030px;
}

.plans-pricing-page .pp-addon-section h2 {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1a8a3c;
    margin: 0 0 8px;
}

.plans-pricing-page .pp-addon-section p {
    margin: 0 0 4px;
    color: #333;
    font-size: 0.76rem;
}

.plans-pricing-page .pp-addon-section .pp-addon-price {
    color: #111;
}

/* Responsive */
@media (max-width: 992px) {
    .plans-pricing-page .pp-pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
    }

    .plans-pricing-page .pp-hero .pp-savings-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .plans-pricing-page .pp-savings-line i {
        display: none;
    }
}

@media (max-width: 576px) {
    .plans-pricing-page .pp-hero {
        padding-top: 64px;
    }

    .plans-pricing-page .pp-back {
        top: 20px;
        left: 16px;
    }

    .plans-pricing-page .pp-hero h1 {
        font-size: 1.5rem;
    }
}
