/**
 * pro.css  (Batch 4.4)
 *
 * Styles for /pro.html (upgrade landing) and /pro-success.html (post-checkout
 * activation result).
 */

/* ============================================================================
 * /pro.html — Hero
 * ============================================================================ */

.pro-hero {
    text-align: center;
    padding: var(--sp-6, 24px) 0 var(--sp-5, 20px);
    position: relative;
}

.pro-hero__badge {
    display: inline-block;
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 1) 0%,
        rgba(245, 158, 11, 1) 100%);
    color: #1a1408;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    margin-bottom: var(--sp-3, 12px);
}

.pro-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 var(--sp-3, 12px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg,
        #fff 0%,
        rgba(253, 224, 71, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.pro-hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================================================
 * Feature comparison: Free vs Pro side by side
 * ============================================================================ */

.pro-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3, 12px);
    margin: var(--sp-6, 24px) 0;
}

@media (max-width: 720px) {
    .pro-compare {
        grid-template-columns: 1fr;
        gap: var(--sp-3, 12px);
    }
}

.pro-compare__col {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: var(--r-lg, 18px);
    padding: var(--sp-5, 20px);
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 32px rgba(2, 6, 16, 0.28);
}

.pro-compare__col--pro {
    background: linear-gradient(160deg,
        rgba(251, 191, 36, 0.14) 0%,
        rgba(245, 158, 11, 0.04) 55%,
        rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(253, 224, 71, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 18px 44px rgba(245, 158, 11, 0.16);
}

.pro-compare__highlight-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 1) 0%,
        rgba(245, 158, 11, 1) 100%);
    color: #1a1408;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pro-compare__header {
    margin-bottom: var(--sp-4, 16px);
    padding-bottom: var(--sp-3, 12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pro-compare__plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 var(--sp-2, 8px);
    color: var(--text-primary, #fff);
}

.pro-compare__plan-name--pro {
    color: rgba(253, 224, 71, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pro-compare__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-2, 8px);
}

.pro-compare__price-amount {
    font-size: 2.5rem;
    color: rgba(253, 224, 71, 1);
}

.pro-compare__price-currency {
    font-size: 1rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.65));
    font-weight: 600;
    margin-left: 4px;
}

.pro-compare__price-approx {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    letter-spacing: 0.01em;
    margin: 2px 0 4px;
}

.pro-compare__price-approx-note {
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
    margin: 0 0 8px;
    font-style: italic;
}

.pro-compare__plan-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.55));
    margin: 0;
}

.pro-compare__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-compare__feature {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    align-items: flex-start;
    color: var(--text-primary, rgba(255, 255, 255, 0.92));
    font-size: 0.92rem;
    line-height: 1.4;
}

.pro-compare__feature--muted {
    color: var(--text-tertiary, rgba(255, 255, 255, 0.55));
}

.pro-compare__feature--strong {
    font-weight: 700;
    color: rgba(253, 224, 71, 1);
    margin-bottom: 4px;
}

.pro-compare__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}

.pro-compare__check--ok {
    background: rgba(74, 222, 128, 0.15);
    color: rgba(134, 239, 172, 1);
}

.pro-compare__check--gold {
    background: rgba(251, 191, 36, 0.18);
    color: rgba(253, 224, 71, 1);
}

.pro-compare__check--neutral {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================================================
 * CTA section
 * ============================================================================ */

.pro-cta-section {
    text-align: center;
    margin: var(--sp-6, 24px) 0 var(--sp-7, 32px);
}

.pro-cta {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, border-color 0.15s;
    text-decoration: none;
    border: 1px solid;
    font-family: inherit;
}

.pro-cta:hover { transform: translateY(-2px); }
.pro-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.pro-cta--primary {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 1) 0%,
        rgba(245, 158, 11, 1) 100%);
    color: #1a1408;
    border-color: transparent;
    box-shadow:
        0 8px 24px rgba(251, 191, 36, 0.30),
        0 2px 4px rgba(0, 0, 0, 0.20);
}

.pro-cta--primary:hover {
    box-shadow:
        0 12px 32px rgba(251, 191, 36, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.20);
}

.pro-cta--secondary {
    background: rgba(74, 143, 239, 0.18);
    border-color: rgba(74, 143, 239, 0.40);
    color: #fff;
}

.pro-cta--secondary:hover {
    background: rgba(74, 143, 239, 0.30);
}

.pro-cta--neutral {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary, #fff);
}

.pro-cta--neutral:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.30);
}

.pro-cta__hint {
    margin: var(--sp-3, 12px) 0 0;
    font-size: 0.8rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.50));
}

.pro-error {
    margin: var(--sp-3, 12px) auto 0;
    max-width: 480px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: rgba(248, 113, 113, 1);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ============================================================================
 * FAQ
 * ============================================================================ */

.pro-faq {
    margin-top: var(--sp-7, 32px);
}

.pro-faq__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--sp-4, 16px);
    text-align: center;
    color: var(--text-primary, #fff);
}

.pro-faq__item {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pro-faq__item[open] {
    border-color: rgba(125, 211, 252, 0.35);
    box-shadow: 0 12px 32px rgba(2, 6, 16, 0.35);
}

.pro-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 14px 20px;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.pro-faq__q::-webkit-details-marker { display: none; }

.pro-faq__q::after {
    content: "+";
    font-size: 1.2rem;
    color: rgba(125, 211, 252, 0.85);
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.pro-faq__item[open] .pro-faq__q::after { content: "−"; }

.pro-faq__a {
    margin: 0;
    padding: 0 20px 16px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.55;
    font-size: 0.9rem;
}

.pro-faq__a a {
    color: rgba(125, 211, 252, 1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pro-footer-note {
    text-align: center;
    margin-top: var(--sp-6, 24px);
    font-size: 0.8rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
}

.pro-footer-note a {
    color: rgba(125, 211, 252, 0.85);
    text-decoration: underline;
}

/* ============================================================================
 * Already-Pro view (top of /pro.html when isPro=true)
 * ============================================================================ */

.pro-already {
    text-align: center;
    padding: var(--sp-7, 32px) var(--sp-5, 20px);
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.08) 0%,
        rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(251, 191, 36, 0.30);
    border-radius: var(--r-lg, 16px);
    max-width: 560px;
    margin: var(--sp-7, 32px) auto;
}

.pro-already__icon {
    font-size: 4rem;
    margin-bottom: var(--sp-3, 12px);
    line-height: 1;
}

.pro-already__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 var(--sp-3, 12px);
    color: rgba(253, 224, 71, 1);
}

.pro-already__body {
    color: var(--text-secondary, rgba(255, 255, 255, 0.75));
    margin: 0 0 var(--sp-4, 16px);
    line-height: 1.5;
}

/* ============================================================================
 * /pro-success.html result states
 * ============================================================================ */

.pro-result {
    text-align: center;
    padding: var(--sp-7, 32px) var(--sp-6, 28px);
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--r-xl, 22px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 60px rgba(2, 6, 16, 0.45);
}

.pro-result__icon {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: var(--sp-4, 16px);
    filter: drop-shadow(0 8px 24px rgba(245, 158, 11, 0.35));
}

.pro-result__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 var(--sp-3, 12px);
    color: var(--text-primary, #fff);
    letter-spacing: -0.02em;
}

.pro-result__title--success {
    background: linear-gradient(135deg,
        rgba(253, 224, 71, 1) 0%,
        rgba(251, 191, 36, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.pro-result__body {
    color: var(--text-secondary, rgba(255, 255, 255, 0.75));
    line-height: 1.55;
    margin: 0 0 var(--sp-4, 16px);
    font-size: 1.025rem;
}

.pro-result__perks {
    list-style: none;
    padding: 0;
    margin: var(--sp-4, 16px) auto var(--sp-5, 20px);
    max-width: 360px;
    text-align: left;
}

.pro-result__perks li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-result__perks li:last-child { border-bottom: none; }

.pro-result__perks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(253, 224, 71, 1);
    font-weight: 800;
}

.pro-result__actions {
    display: flex;
    gap: var(--sp-3, 12px);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-4, 16px);
}

@media (max-width: 480px) {
    .pro-result__actions {
        flex-direction: column;
    }
    .pro-result__actions .pro-cta {
        width: 100%;
    }
}

/* ============================================================================
 * Anonymous user banner (Batch 4.4.2)
 * Shown on /pro.html when user is signed in anonymously, blocking the
 * Stripe upgrade flow until they link their account.
 * ============================================================================ */

.pro-anon-banner {
    display: flex;
    gap: var(--sp-4, 16px);
    padding: var(--sp-5, 20px);
    margin: 0 0 var(--sp-6, 24px);
    background: linear-gradient(135deg,
        rgba(125, 211, 252, 0.10) 0%,
        rgba(56, 189, 248, 0.04) 100%);
    border: 1px solid rgba(125, 211, 252, 0.30);
    border-radius: var(--r-lg, 16px);
    align-items: flex-start;
}

.pro-anon-banner__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-anon-banner__body {
    flex: 1;
    min-width: 0;
}

.pro-anon-banner__title {
    margin: 0 0 var(--sp-2, 8px);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(125, 211, 252, 1);
}

.pro-anon-banner__copy {
    margin: 0 0 var(--sp-3, 12px);
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-secondary, rgba(255, 255, 255, 0.78));
}

/* Variant on the main upgrade button when user is anonymous: visually
   de-emphasizes the golden CTA so the blue "Link account" button above
   reads as the primary action. The button is still clickable (routes to
   /perfil.html) so the user has a way out if they scroll past the banner. */
.pro-cta--anon {
    opacity: 0.55;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    box-shadow: none !important;
}

.pro-cta--anon:hover {
    opacity: 0.75;
    transform: none;
    box-shadow: none !important;
}

@media (max-width: 560px) {
    .pro-anon-banner {
        flex-direction: column;
        text-align: center;
    }
    .pro-anon-banner__icon {
        align-self: center;
    }
}
