/* ============================================================
   EduVerse Paywall / Premium Access Styles
   ============================================================ */

.paywall-body {
    background: var(--light);
}

.pw-hero {
    text-align: center;
    padding: 7rem 2rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.pw-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pw-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.pw-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

/* Hero CTA buttons */
.pw-hero-ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2rem;
}
.pw-cta {
    padding: 0.85rem 1.7rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}
.pw-cta.primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}
.pw-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.pw-cta.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.pw-cta.ghost:hover { background: rgba(255, 255, 255, 0.22); }

.pw-stat {
    text-align: center;
}

.pw-stat .num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.pw-stat .lbl {
    font-size: 0.9rem;
    opacity: 0.9;
}

.logged-in-banner {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #dcfce7;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 600;
}

.logged-in-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 800;
}

/* Plans */
.plans-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.plans-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.plan-card {
    position: relative;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.plan-save {
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    flex: 1;
    text-align: left;
}

.plan-features li {
    padding: 0.4rem 0;
    color: var(--gray);
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.plan-features li::before {
    content: '✓ ';
    color: #16a34a;
    font-weight: 800;
}

.plan-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

/* Payment section */
.payment-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.payment-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.payment-intro {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pay-method {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.pay-method:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pay-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.pay-method h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.pay-detail {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.7;
    text-align: left;
}

.payment-steps {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

.payment-steps h3 {
    margin-bottom: 0.75rem;
}

.payment-steps ol {
    padding-left: 1.5rem;
    color: var(--gray);
    line-height: 2;
}

/* Code entry */
.code-section {
    max-width: 700px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.code-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.code-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.code-box input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.3s;
}

.code-box input:focus {
    border-color: var(--primary);
}

.code-box button {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.code-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.code-message {
    font-weight: 600;
    min-height: 1.5rem;
    margin-bottom: 1.5rem;
}

.code-message.error { color: #dc2626; }
.code-message.success { color: #16a34a; }

.contact-us {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    color: var(--gray);
}

.contact-us p { margin: 0.25rem 0; }

/* Footer */
.pw-footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    border-top: 1px solid #e2e8f0;
}

.admin-link a {
    color: #94a3b8;
    font-size: 0.8rem;
    text-decoration: none;
}

.admin-link a:hover { color: var(--primary); }

/* ============================================================
   LIVE DEMO SAMPLES
   ============================================================ */
.demo-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    scroll-margin-top: 90px;
}
.demo-section > h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.demo-intro {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.pw-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.pw-chip {
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s;
}
.pw-chip:hover { border-color: var(--primary); color: var(--primary); }
.pw-chip.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}
.pw-sample { display: none; }
.pw-sample.active { display: block; animation: pwFade 0.35s ease; }
@keyframes pwFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.pw-topic-card {
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}
.pw-topic-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: #eef2ff;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
}
.pw-topic-card h3 { font-size: 1.35rem; margin: 0.7rem 0 0.8rem; color: var(--dark); }
.pw-topic-card p { color: #475569; line-height: 1.75; font-size: 0.95rem; }
.pw-topic-card code {
    background: #eef2ff;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}
.pw-example {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.pw-example strong { color: var(--primary); }
.pw-example code {
    background: #eef2ff;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.85rem;
}
.pw-keys { list-style: none; margin: 1rem 0 0; }
.pw-keys li { padding: 0.35rem 0; font-size: 0.9rem; color: #334155; }
.pw-keys li::before { content: '⭐ '; }
.pw-practice {
    margin-top: 1.4rem;
    border-top: 1.5px dashed #e2e8f0;
    padding-top: 1.2rem;
}
.pw-practice-title { font-weight: 800; color: var(--dark); font-size: 1.05rem; margin-bottom: 0.25rem; }
.pw-practice-sub { color: var(--gray); font-size: 0.83rem; margin-bottom: 1rem; }
.pwq {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.8rem;
}
.pwq-q { font-weight: 600; color: #1e293b; font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.pwq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.pwq-opt {
    text-align: left;
    padding: 0.5rem 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    font-size: 0.85rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    overflow-wrap: anywhere;
}
.pwq-opt:hover { border-color: #a5b4fc; background: #eef2ff; }
.pwq.is-answered .pwq-opt { cursor: default; }
.pwq.is-answered .pwq-opt:hover { border-color: #e2e8f0; background: #fff; }
.pwq.is-answered .pwq-opt.right:hover { border-color: #16a34a; background: #f0fdf4; }
.pwq-opt.right { border-color: #16a34a; background: #f0fdf4; color: #14532d; font-weight: 700; }
.pwq-opt.wrong { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.pwq-fb { display: none; margin-top: 0.6rem; font-size: 0.84rem; line-height: 1.55; padding: 0.5rem 0.8rem; border-radius: 8px; overflow-wrap: anywhere; }
.pwq-fb.good { display: block; background: #ecfdf5; color: #065f46; }
.pwq-fb.bad { display: block; background: #fff1f2; color: #9f1239; }
.pw-demo-cta {
    text-align: center;
    margin-top: 1.6rem;
    font-size: 0.98rem;
    color: var(--gray);
}
.pw-demo-cta a { color: var(--primary); font-weight: 800; text-decoration: none; }
.pw-demo-cta a:hover { text-decoration: underline; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}
.features-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.feature-card {
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.feature-card .ficon { font-size: 1.9rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--dark); }
.feature-card p { font-size: 0.83rem; color: var(--gray); line-height: 1.55; overflow-wrap: anywhere; }

/* ============================================================
   FREE vs PREMIUM COMPARISON
   ============================================================ */
.compare-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}
.compare-section h2 { text-align: center; font-size: 2rem; margin-bottom: 1.8rem; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.compare-table th, .compare-table td {
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}
.compare-table th {
    background: var(--gradient);
    color: var(--white);
    font-weight: 800;
}
.compare-table td:first-child, .compare-table th:first-child { text-align: left; color: #334155; }
.compare-table td:nth-child(3) { background: #f5f3ff; font-weight: 700; color: #4338ca; }
.compare-table .cmp-no { color: #cbd5e1; font-weight: 800; }
.compare-table tr:last-child td { border-bottom: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
}
.faq-section h2 { text-align: center; font-size: 2rem; margin-bottom: 1.8rem; }
.faq-item {
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.7rem;
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #1e293b;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
    padding: 0 1.2rem 1.1rem;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ============================================================
   PLANS ADD-ONS (sub + trust row)
   ============================================================ */
.plans-section { scroll-margin-top: 90px; }
.plans-sub {
    text-align: center;
    color: var(--gray);
    margin: -1.5rem auto 2.2rem;
    max-width: 620px;
}
.pw-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.8rem;
    color: #64748b;
    font-size: 0.83rem;
    font-weight: 600;
}
.pw-trust span::before { content: '✓ '; color: #16a34a; font-weight: 800; }

/* ============================================================
   FUN LAYER — floaties, tips, scorebar, confetti, achievements
   ============================================================ */
.pw-hero { position: relative; overflow: hidden; }
.pw-hero > *:not(.pw-floaties) { position: relative; z-index: 1; }
.pw-floaties { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pw-floaties span {
    position: absolute;
    font-size: 2rem;
    opacity: 0.22;
    animation: pwFloaty 7s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}
.pw-floaties span:nth-child(1) { left: 6%; top: 18%; animation-delay: 0s; }
.pw-floaties span:nth-child(2) { left: 15%; top: 62%; animation-delay: 1.1s; font-size: 1.6rem; }
.pw-floaties span:nth-child(3) { right: 8%; top: 22%; animation-delay: 2s; }
.pw-floaties span:nth-child(4) { right: 16%; top: 66%; animation-delay: 0.6s; font-size: 1.7rem; }
.pw-floaties span:nth-child(5) { left: 42%; top: 12%; animation-delay: 1.6s; font-size: 1.4rem; }
.pw-floaties span:nth-child(6) { left: 28%; top: 78%; animation-delay: 2.6s; font-size: 1.3rem; }
.pw-floaties span:nth-child(7) { right: 32%; top: 80%; animation-delay: 3.2s; font-size: 1.5rem; }
@keyframes pwFloaty {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-16px) rotate(5deg); }
}
.pw-hero-tip {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    min-height: 1.4rem;
    transition: opacity 0.4s, transform 0.4s;
}
.pw-hero-tip.fade { opacity: 0; transform: translateY(6px); }

/* Demo scorebar */
.pw-scorebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.pw-score-chip, .pw-streak-chip {
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
}
.pw-score-chip { background: #eef2ff; color: var(--primary); border: 1.5px solid #c7d2fe; }
.pw-streak-chip { background: #f8fafc; color: #64748b; border: 1.5px solid #e2e8f0; transition: all 0.3s; }
.pw-streak-chip.hot { background: #fff7ed; color: #ea580c; border-color: #fdba74; }
.pw-progress {
    flex: 1;
    min-width: 120px;
    height: 10px;
    background: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
}
.pw-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 50px;
    transition: width 0.5s ease;
}
.pw-progress-label { font-size: 0.78rem; color: #94a3b8; font-weight: 700; white-space: nowrap; }
.pw-again {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.pw-again:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Animations */
@keyframes pwPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pw-pop { animation: pwPop 0.35s ease; }
@keyframes pwShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}
.pwq-opt.shake { animation: pwShake 0.4s ease; }
@keyframes pwBounceIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Achievement toast */
.pw-ach {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translate(-50%, -160%);
    background: #0f172a;
    color: #fff;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    z-index: 95000;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
    text-align: center;
}
.pw-ach.show { transform: translate(-50%, 0); }

/* Confetti canvas */
.pw-confetti {
    position: fixed;
    inset: 0;
    z-index: 94000;
    pointer-events: none;
}

/* Demo finished banner */
.pw-win {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #fdf4ff);
    border: 2px solid #c7d2fe;
    animation: pwBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pw-win-emoji { font-size: 2.2rem; animation: pwPop 1s ease 0.3s; }
.pw-win-text { flex: 1; min-width: 0; }
.pw-win-text strong { display: block; font-size: 1.05rem; color: #4338ca; margin-bottom: 0.15rem; }
.pw-win-text p { font-size: 0.88rem; color: #475569; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.pw-win-cta {
    white-space: nowrap;
    background: var(--gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pw-win-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-methods { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pw-hero { padding: 5rem 1.5rem 2rem; }
    .pw-hero h1 { font-size: 2.2rem; }
    .pw-hero p { font-size: 1rem; }
    .pw-stats { gap: 1.5rem; }
    .pw-stat .num { font-size: 1.8rem; }
    .plans-section { padding: 3rem 1.5rem; }
    .plans-section h2 { font-size: 1.6rem; }
    .plan-card { padding: 1.5rem 1.2rem; }
    .plan-price { font-size: 2rem; }
    .code-section { padding: 2rem 1.5rem; margin: 2rem 1.5rem; }
    .code-section h2 { font-size: 1.5rem; }
    .payment-section { padding: 2rem 1.5rem; }
    .payment-section h2 { font-size: 1.6rem; }
    .demo-section { padding: 3rem 1.5rem; }
    .demo-section > h2 { font-size: 1.6rem; }
    .pw-topic-card { padding: 1.4rem; }
    .pw-topic-card h3 { font-size: 1.2rem; }
    .features-section h2, .compare-section h2, .faq-section h2 { font-size: 1.6rem; }
    .compare-table th, .compare-table td { padding: 0.7rem 0.6rem; font-size: 0.82rem; }
}

@media (max-width: 560px) {
    .plans-grid { grid-template-columns: 1fr; }
    .code-box { flex-direction: column; }
    .code-box button { width: 100%; }
    .pw-hero h1 { font-size: 1.8rem; }
    .pw-stat .num { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .pwq-opts { grid-template-columns: 1fr; }
    .pw-topic-card { padding: 1.2rem; }
    .pw-chip { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
    .compare-table th, .compare-table td { padding: 0.6rem 0.45rem; font-size: 0.75rem; }
    .pw-trust { gap: 0.8rem; font-size: 0.78rem; }
    .pw-scorebar { border-radius: 16px; justify-content: center; }
    .pw-progress { order: 5; flex-basis: 100%; }
    .pw-win { flex-direction: column; text-align: center; }
    .pw-floaties span:nth-child(n+5) { display: none; }
    .pw-ach { font-size: 0.82rem; top: 74px; padding: 0.6rem 1rem; width: calc(100vw - 2rem); }
}
