/* The way to the plans: the gold button, the locked-options notice and the
   "for subscribers" dialog (subscribe/partials/_subscription_required_modal.html).
   Its own file so a standalone page (the teacher login cards) can load it
   without the whole of common-styles.css. home/base.html loads it for every
   other page. */

/* ---------- The way to the plans (owner, 2026-11-15) ----------
   One gold button wherever a locked feature points at the plans page: the
   WhatsApp timetables notice, the print pages' notice and the "for subscribers"
   dialog. Same gold as the yearly plan card's button, so the eye connects them. */
.btn-plans {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .32rem .95rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .32);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-plans:hover,
.btn-plans:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, .42);
}
.btn-plans.is-large {
    width: 100%;
    padding: .7rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
}

/* The notice above a page's locked options */
.subscription-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .5rem 1rem 1rem;
    padding: .6rem 1rem;
    border: 1px solid #f3d9a4;
    border-radius: 12px;
    background: #fff7e6;
    color: #9a5b00;
}
.subscription-notice > i { font-size: 1.05rem; }
.subscription-notice > span { font-weight: 500; }
.subscription-notice .btn-plans { margin-inline-start: auto; }

/* The "for subscribers" dialog */
.sub-gate .modal-content { border-radius: 18px; overflow: hidden; }
.sub-gate-body { padding: 1.75rem 1.5rem 1.25rem; text-align: center; }
.sub-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, .28);
    color: #fff;
    font-size: 1.6rem;
}
.sub-gate-title { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 800; color: #17233c; }
.sub-gate-text { margin: 0 0 1.1rem; color: #5b6475; }
.sub-gate-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .2rem 1rem;
    margin-top: .7rem;
    font-size: .8rem;
    color: #6b7280;
}
.sub-gate-trust .is-secure { color: #198754; }
.sub-gate-trust .fa-bolt { color: #f59e0b; }
.sub-gate-later {
    margin-top: .55rem;
    padding: .2rem .6rem;
    border: 0;
    background: none;
    color: #8a93a3;
    font-size: .85rem;
}
.sub-gate-later:hover { color: #17233c; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
    .btn-plans, .btn-plans:hover, .btn-plans:focus-visible { transition: none; transform: none; }
}
