/*
 * trial-banner.css
 * Promotional banner for the 7-day no-card trial + the category-picker
 * modal it opens (reuses .legal-modal from legal-modal.css for the modal
 * chrome itself - this file only styles the banner and the category cards
 * inside the modal body).
 */

.trial-promo-banner {
    margin: 1.75rem auto 1.25rem;
    padding: 0 1.25rem;
    max-width: 1180px;
}

.trial-promo-inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-xl, 1rem);
    background: linear-gradient(135deg, var(--brand, #f97316) 0%, var(--brand-dark, #ea580c) 100%);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.25);
    color: #ffffff;
}

.trial-promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.3rem;
}

.trial-promo-copy {
    flex: 1 1 260px;
    min-width: 0;
}

.trial-promo-copy h2 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.trial-promo-copy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    opacity: 0.95;
}

.trial-promo-terms-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
}

.trial-promo-cta {
    flex: 0 0 auto;
    background: #ffffff !important;
    color: var(--brand-dark, #ea580c) !important;
    border: none !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.trial-promo-cta:hover {
    background: #fff7ed !important;
}

/* Compact variant used in payment.html's topbar (checkout is already in
   progress there - a full banner would be noise, so this is just a link). */
.trial-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-dark, #ea580c);
    text-decoration: none;
    white-space: nowrap;
}

.trial-promo-link:hover {
    text-decoration: underline;
}

/* Category picker inside #trial-categories-modal */
.trial-categories-intro {
    font-size: 0.86rem;
    color: var(--muted, #475569);
}

.trial-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.trial-categories-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: var(--muted, #475569);
    font-size: 0.86rem;
}

.trial-category-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg, 0.8rem);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-top: 3px solid var(--trial-card-accent, #f97316);
    background: var(--surface-soft, #f8fafc);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trial-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.trial-category-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--ink, #0f172a);
}

.trial-category-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--muted, #475569);
    min-height: 1.1rem;
}

.trial-category-cta {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark, #ea580c);
}

@media (max-width: 640px) {
    .trial-promo-banner {
        margin: 1rem auto 0.75rem;
        padding: 0 0.85rem;
    }

    .trial-promo-inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.7rem;
        padding: 0.7rem 0.9rem;
        border-radius: var(--radius-lg, 0.8rem);
    }

    /* The icon circle + full-size heading are what made this read as a tall
       card instead of a slim banner on narrow screens - drop the icon and
       shrink the copy so the whole thing stays a single compact strip. */
    .trial-promo-icon {
        display: none;
    }

    .trial-promo-copy h2 {
        font-size: 0.86rem;
        line-height: 1.25;
    }

    .trial-promo-copy p {
        display: none;
    }

    .trial-promo-cta {
        flex: 0 0 auto;
        padding: 0.5rem 0.85rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .trial-promo-cta i {
        display: none;
    }
}

@media (max-width: 400px) {
    .trial-promo-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .trial-promo-cta {
        width: 100%;
        justify-content: center;
    }
}
