/* ───────────────────────────────────────────────────────────────────────
   paywall.css — v=264

   Modular stylesheet for the Paywall surface (authed-but-not-subscribed
   users). Kept separate from styles.css per the modularity preference;
   same pattern as homepage.css. Inherits design tokens (CSS variables
   on :root in styles.css). Loaded on every page but selectors only
   match on the Paywall component so it's inert elsewhere.

   Visual language: hybrid of LoginScreen card + HomeHero CTA. Single
   centered card on dark background, branded with logo, focused
   primary action (Continue to checkout). Welcoming, not punishing.
   ─────────────────────────────────────────────────────────────────────── */


.paywall-screen {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at center top, var(--accent-glow), transparent 60%),
        var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--safe-top, 0px) + 24px) 16px calc(var(--safe-bottom, 0px) + 24px);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.paywall-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.paywall-logo {
    margin-bottom: 20px;
}

/* v=277 — `.paywall-logo img` sizing rules removed. The BrandLogo
   component (`size="compact"`) renders the logo at 80px tall via
   `.brand-logo-compact` in styles.css. Single source of truth for
   the brand logo size across the app. */

.paywall-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.paywall-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 28px;
}

.paywall-sub strong {
    color: var(--text-primary);
    font-weight: 600;
}

.paywall-features {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.paywall-features-list {
    margin: 0 0 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.paywall-price {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* v=266 — Paywall "Continue to checkout" CTA moved from accent orange
   to green to match the homepage's Subscribe color system. Continue-
   to-checkout IS a subscribe action — same conversion intent, same
   color treatment.
   v=272 — Text color switched from #1a1a1a (black) to #ffffff (white)
   to match the CTA contrast pattern across the rest of the homepage. */
.paywall-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--green), #059669);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
    transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s;
    margin-bottom: 12px;
}

.paywall-cta:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}

.paywall-cta:active:not(:disabled) {
    transform: translateY(0);
}

.paywall-cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15);
}

.paywall-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: all 0.15s;
    margin-bottom: 28px;
}

.paywall-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.paywall-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.paywall-signout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
}

.paywall-signout:hover {
    color: var(--red);
}

.paywall-links {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.paywall-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.paywall-links a:hover {
    color: var(--accent);
}

.paywall-link-sep {
    opacity: 0.4;
}

/* Mobile — tighter padding, smaller logo, smaller heading. */
@media (max-width: 640px) {
    .paywall-card {
        padding: 32px 24px;
    }

    .paywall-heading {
        font-size: 1.5rem;
    }

    /* v=277 — Mobile `.paywall-logo img` rule removed. Mobile sizing
       (60px tall) now lives in `.brand-logo-compact` media query in
       styles.css. */

    .paywall-features {
        padding: 14px 16px;
    }

    .paywall-features-list {
        font-size: 0.82rem;
    }

    .paywall-price {
        font-size: 0.88rem;
    }
}
