/* Pro founding-rate / Plus annual promo (templates/partials/promo.html, static/js/promo.js) */

/* ── Banner: one slim line under the nav ─────────────────────────────── */
.promo-banner {
    background: var(--gradient-primary-soft);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.promo-banner.is-visible { opacity: 1; }

/* Plus: a product notice, not an ad. Neutral, no gradient. */
.promo-banner-quiet {
    background: var(--bg-secondary);
}

.promo-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.promo-banner-text {
    flex: 1;
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
}
.promo-banner-text strong { font-weight: var(--font-weight-semibold); }
.promo-banner-rest { color: var(--text-secondary); margin-left: 0.35rem; }
.promo-banner-note {
    color: var(--primary-blue);
    margin-left: 0.35rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.promo-banner-cta {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    text-decoration: none;
    white-space: nowrap;
}
.promo-banner-cta:hover { text-decoration: underline; }

.promo-banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.promo-banner-close:hover { color: var(--text-primary); background: var(--border-light); }

@media (max-width: 640px) {
    /* Phones: the lead line and the link only */
    .promo-banner-rest, .promo-banner-note { display: none; }
    .promo-banner-inner { padding: 0.45rem 1rem; gap: 0.5rem; }
    .promo-banner-text { font-size: var(--font-size-xs); }
}

/* ── Modal ───────────────────────────────────────────────────────────── */
.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.promo-modal[hidden] { display: none; }
.promo-modal.is-visible { opacity: 1; }

.promo-modal-dialog {
    position: relative;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 720px;
    width: 100%;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 1.75rem 1.75rem 1.25rem;
}
.promo-modal-dialog h2 {
    font-size: var(--font-size-xl);
    margin: 0 0 1.25rem;
}

.promo-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.promo-modal-close:hover { color: var(--text-primary); }

.promo-modal-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.promo-option {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.promo-option-pro { border-color: var(--primary-blue); }
.promo-option h3 { margin: 0.4rem 0 0.25rem; font-size: var(--font-size-lg); }

.promo-option-badge {
    align-self: flex-start;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-inverse);
    background: var(--primary-blue);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}
.promo-option-badge-plus { background: var(--success-green); }

.promo-option-price {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.4rem;
}
.promo-list-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    margin-right: 0.25rem;
}
.promo-option-unit {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
}
.promo-option-note {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
    line-height: var(--line-height-snug);
}
.promo-option ul {
    margin: 0.25rem 0 1rem;
    padding-left: 1.1rem;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
    flex: 1;
}
.promo-option li { margin-bottom: 0.3rem; }
.promo-option .btn { text-align: center; text-decoration: none; }

.promo-modal-later {
    display: block;
    margin: 1rem auto 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    text-decoration: underline;
}

