:root {
    --primary-gradient: var(--ace-gradient);
    --card-shadow: 0 15px 35px rgba(74, 0, 224, 0.15);
    --accent-color: var(--ace-violet);
    --text-dark: var(--ace-ink);
    --text-light: var(--ace-muted);
    --success: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--ace-bg);
    min-height: 100vh;
    color: var(--text-dark);
    padding-bottom: 3rem;
}

/* Navbar Placeholder (You can inject your global navbar here) */
.nav-placeholder { height: 70px; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-section {
    text-align: center;
    margin: 3rem 0;
    animation: fadeIn 0.8s ease;
}

.header-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--ace-ink); letter-spacing: -.04em;
    font-weight: 800;
}

.header-section p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding-top: 14px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 0, 224, 0.2);
}

/* Highlight Current Plan */
.pricing-card.current {
    border-color: var(--accent-color);
    background: linear-gradient(to bottom, #fcfcff, #fff);
}

.pricing-card.current::before {
    content: 'Current Plan';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

/* Premium Highlight */
.pricing-card.premium {
    background: linear-gradient(145deg, #ffffff, #f4f0ff);
    border: 1px solid rgba(74, 0, 224, 0.1);
}

.popular-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #FF9966, #FF5E62);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 5px;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.features-list i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.fa-check { color: var(--success); }
.fa-xmark { color: #e74c3c; opacity: 0.5; }

.btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e0e0ff;
    color: var(--text-dark);
}

.btn-outline:hover { border-color: var(--accent-color); color: var(--accent-color); }

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 0, 224, 0.4);
}

.btn-disabled {
    background: #eee;
    color: #999;
    cursor: not-allowed;
}

.plan-actions { display:grid; gap:.65rem; }
.plan-actions small { color:#686174; font-size:.72rem; line-height:1.45; text-align:center; }
.billing-status { max-width:720px; margin:1rem auto 0; padding:.85rem 1rem; border:1px solid #f0c9c9; border-radius:12px; color:#8b2f35; background:#fff5f5; font-size:.86rem; font-weight:650; }
.billing-status.success { border-color:#b9dfc7; color:#176b37; background:#f0fbf4; }
.region-notice { max-width:720px; margin:1rem auto 0; padding:1rem 1.1rem; border:1px solid #e2dcef; border-radius:14px; background:#f8f4ff; display:grid; gap:.7rem; justify-items:start; }
.region-notice p { margin:0; color:var(--text-dark); font-size:.86rem; line-height:1.55; }
.region-notice .btn { width:auto; padding:.55rem .9rem; font-size:.82rem; }
.region-interest-status { color:#176b37 !important; font-weight:650; }

.access-activation { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin:20px 0 0; }
.coverage-panel,.redeem-section { min-width:0; padding:26px; border:1px solid #e2dcef; border-radius:20px; background:#fff; box-shadow:0 16px 42px rgba(45,30,96,.07); }
.coverage-panel { display:grid; grid-template-columns:48px minmax(0,1fr); gap:16px; background:linear-gradient(135deg,#fff,#f8f4ff); }
.coverage-icon,.redeem-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; color:#6339d7; background:#eee9ff; }
.coverage-panel h2,.redeem-section h2 { margin:5px 0 8px; color:var(--text-dark); font-size:clamp(1.15rem,2.2vw,1.45rem); line-height:1.25; }
.coverage-panel p,.redeem-section>p { margin:0; color:var(--text-light); font-size:.82rem; line-height:1.6; }
.coverage-panel a { display:inline-flex; align-items:center; gap:7px; margin-top:14px; color:#6339d7; font-size:.76rem; font-weight:800; text-decoration:none; }
.redeem-heading { display:flex; align-items:center; gap:14px; }
.redeem-section { position:relative; overflow:visible; }

.redeem-input-group {
    display: flex;
    gap: 10px;
    margin-top: 1.1rem;
}

.redeem-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0ff;
    min-width:0;
    border-radius: 13px;
    font-size: .9rem;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.redeem-input:focus {
    border-color: var(--accent-color);
}

.redeem-btn {
    width:auto;
    min-width:118px;
    padding: 0 1.35rem;
    border-radius:13px;
    white-space: nowrap;
}

.contact-sales-link {
    display: block;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.72rem;
    text-decoration: none;
}
.redeem-status { margin-top:10px; padding:9px 11px; border-radius:10px; color:#9f2d3d; background:#fff0f2; font-size:.74rem; font-weight:700; }
.redeem-status.success { color:#087451; background:#eaf9f3; }

.education-plans { margin: 1.5rem 0 0; padding: 2rem; border: 1px solid #e2dcef; border-radius: 22px; background: linear-gradient(135deg, #fff, #f7f3ff 62%, #f0f7ff); box-shadow: 0 18px 50px rgba(45, 30, 96, 0.07); }
.education-heading { max-width: 760px; }
.education-heading h2 { margin: 0.4rem 0; color: var(--text-dark); font-size: clamp(1.45rem, 3vw, 2rem); }
.education-heading p { margin: 0; color: var(--text-light); }
.education-plans .eyebrow { color: #7045d9; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.education-grid article { display: flex; gap: 1rem; min-width: 0; padding: 1.25rem; border: 1px solid #e6e3ed; border-radius: 15px; background: rgba(255,255,255,0.9); }
.education-grid h3 { margin: 0 0 0.4rem; color: var(--text-dark); }
.education-grid p { margin: 0 0 0.8rem; color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }
.education-grid a { color: #6339d7; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.education-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; }
.education-icon.purple { color: #6339d7; background: #eee9ff; }
.education-icon.blue { color: #1765c2; background: #eaf3ff; }
.availability-label { display: inline-flex; padding: 0.45rem 0.7rem; border-radius: 999px; color: #5f596e; background: #eeecf4; font-size: 0.72rem; font-weight: 800; }

.flexible-plans { margin: 0 0 1.5rem; padding: 2rem; border: 1px solid #e2dcef; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(45,30,96,.07); }
.flexible-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.flexible-card { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding: 1.35rem; border: 1px solid #e5e2ec; border-radius: 17px; background: linear-gradient(145deg, #fff, #faf9fd); }
.flexible-card h3 { margin: .25rem 0; color: var(--text-dark); font-size: 1.2rem; }
.flexible-card p { margin: .65rem 0 0; color: var(--text-light); font-size: .82rem; line-height: 1.58; }
.product-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; }
.product-icon.purple { color: #6339d7; background: #eee9ff; }
.product-icon.gold { color: #9a5b00; background: #fff0c7; }
.product-icon.green { color: #087451; background: #e9f8f2; }
.mini-price { color: #252139; font-size: 1.7rem; font-weight: 850; }
.mini-price span { color: #706b7d; font-size: .78rem; font-weight: 650; }
.subject-picker { display: grid; gap: .45rem; color: #514b60; font-size: .72rem; font-weight: 800; }
.subject-picker select { width: 100%; padding: .8rem; border: 1px solid #dcd8e6; border-radius: 10px; background: #fff; color: #282437; font: inherit; }
.active-note { color: #176b37; font-size: .7rem; line-height: 1.45; text-align: center; }
.inline-billing { padding: 0; border: 0; background: transparent; color: #6339d7; font: inherit; font-weight: 800; cursor: pointer; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .redeem-input-group { flex-direction: column; }
    .redeem-btn { width: 100%; padding: 1rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .education-plans { padding: 1.25rem; }
    .education-grid { grid-template-columns: 1fr; }
    .flexible-plans { padding: 1.25rem; }
    .flexible-grid { grid-template-columns: 1fr; }
    .access-activation { grid-template-columns:1fr; }
    .coverage-panel,.redeem-section { padding:21px; }
}

.pricing-card.current .popular-tag { display: none; }

/* Honest per-subject model-answer coverage inside the Premium card. */
.coverage-block { margin: -0.8rem 0 1.4rem; padding: 0.9rem 1rem; border-radius: 12px; background: rgba(120, 85, 230, 0.06); border: 1px solid rgba(120, 85, 230, 0.16); font-size: 0.82rem; }
.coverage-block strong { display: block; font-size: 0.78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.5rem; }
.coverage-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.coverage-block li { display: flex; justify-content: space-between; gap: 0.75rem; }
.coverage-block li span:last-child { white-space: nowrap; font-weight: 700; }
.coverage-block li.coverage-none span:last-child { color: #b42318; }
.coverage-block li.coverage-partial span:last-child { color: #b54708; }
.coverage-block li.coverage-complete span:last-child { color: var(--success); }
.coverage-block p { margin: 0.6rem 0 0; line-height: 1.45; color: var(--text-light); }
.coverage-block .coverage-warning { color: #b42318; font-weight: 600; }
.coverage-block a { display: inline-block; margin-top: 0.6rem; font-size: 0.78rem; font-weight: 700; }
.coverage-block a + a { margin-left: 0.85rem; }
.coverage-block .coverage-headline { margin: 0 0 0.9rem; color: var(--text-dark); }
.coverage-block .coverage-headline strong { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.premium-includes { margin: -0.75rem 0 0.75rem; font-size: 0.87rem; font-weight: 800; color: var(--text-dark); }
.premium-comparison { margin: -0.5rem 0 1.25rem; font-size: 0.79rem; line-height: 1.5; color: var(--text-light); }
.checkout-confirm { padding: 0.85rem 0.95rem; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; font-size: 0.82rem; line-height: 1.45; display: grid; gap: 0.55rem; }
.checkout-confirm p { margin: 0; color: #7c2d12; }
.checkout-confirm .confirm-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.checkout-confirm .confirm-actions .btn { width: auto; flex: 1 1 auto; padding: 0.55rem 0.8rem; font-size: 0.8rem; }
.checkout-inline-status { padding: 0.75rem 0.9rem; border-radius: 12px; background: #fff5f5; border: 1px solid #f0c9c9; font-size: 0.82rem; line-height: 1.45; display: grid; gap: 0.55rem; }
.checkout-inline-status p { margin: 0; color: #8b2f35; font-weight: 600; }
.checkout-inline-status .btn { width: auto; padding: 0.55rem 0.8rem; font-size: 0.8rem; }
.sales-countries { max-width:720px; margin:.8rem auto 0; color:var(--text-light); font-size:.8rem; }
.sales-countries summary { cursor:pointer; font-weight:650; }
.sales-countries p { margin:.4rem 0 0; line-height:1.55; }
.product-icon.blue { color: #1d5fbf; background: #e6f0ff; }

/* Design review, 28 Sep 2026: one badge style, brand links, a single icon tint,
   and the secondary payment options folded into "More ways to pay". */
.popular-tag { background: var(--ace-gradient); letter-spacing: .04em; }
.coverage-block a { color: var(--ace-link); text-decoration: underline; text-underline-offset: 3px; }
.coverage-block li.coverage-partial span:last-child { color: var(--ace-violet-deep); }
.product-icon, .product-icon.purple, .product-icon.gold, .product-icon.green, .product-icon.blue,
.education-icon, .education-icon.purple, .education-icon.blue { color: var(--ace-violet-deep); background: var(--ace-violet-soft); }
.feature-lock-notice { display: flex; align-items: flex-start; gap: 12px; max-width: 720px; margin: 18px auto 0; padding: 14px 16px; border: 1px solid #ddd3ff; border-radius: 14px; background: var(--ace-violet-soft); text-align: left; }
.feature-lock-notice i { margin-top: 3px; color: var(--ace-violet-deep); }
.feature-lock-notice p { margin: 0; color: var(--ace-ink); font-size: .92rem; line-height: 1.55; }
.more-ways { margin: 1.5rem 0; border: 1px solid #e2dcef; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(45,30,96,.07); }
.more-ways > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 1.4rem 2rem; cursor: pointer; list-style: none; }
.more-ways > summary::-webkit-details-marker { display: none; }
.more-ways > summary strong { display: block; color: var(--text-dark); font-size: 1.2rem; }
.more-ways > summary small { display: block; margin-top: 4px; color: var(--text-light); font-size: .85rem; line-height: 1.45; }
.more-ways > summary i { color: var(--ace-violet-deep); transition: transform .2s ease; }
.more-ways[open] > summary i { transform: rotate(180deg); }
.more-ways > summary:focus-visible { outline: 3px solid rgba(121,82,245,.35); outline-offset: -3px; border-radius: 22px; }
.more-ways .flexible-plans, .more-ways .education-plans { margin: 0; padding: 0 2rem 2rem; border: 0; border-radius: 0; background: none; box-shadow: none; }
.more-ways .education-heading h3 { margin: .4rem 0 0; color: var(--text-dark); font-size: 1.15rem; }
@media (min-width: 700px) { .more-ways .flexible-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .more-ways > summary { padding: 1.1rem 1.25rem; }
    .more-ways .flexible-plans, .more-ways .education-plans { padding: 0 1.25rem 1.25rem; }
}
.features-list li { align-items: flex-start; }
.features-list i { flex: 0 0 16px; width: 16px; margin-top: 3px; text-align: center; }
.more-ways { scroll-margin-top: 90px; }

/* Free-trial wording (2 Oct 2026). */
.header-section .trial-offer-note { display: inline-block; margin-top: 12px; padding: 10px 14px; border: 1px solid #ddd3ff; border-radius: 12px; background: var(--ace-violet-soft, #f0ebff); color: var(--ace-ink, #17213a); }
.header-section .trial-offer-note i { color: var(--ace-violet-deep, #5632c7); }
.header-section .trial-banner { margin-top: 16px; text-align: left; }
.trial-plan-note { display: block; margin-bottom: 8px; color: var(--ace-violet-deep, #5632c7); font-weight: 600; }
