/* Subscriptions page (owner, 2026-12-03): navy stage, three dark cards across the full width. Only the plan the person is on is alive:
   a slow lemon flame rises from the bottom edge and a lemon light travels round the border. Text stays 12px or larger. */
@property --bl-spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.bl-plans-stage { min-height: calc(var(--bl-vh, 100vh) - 76px); padding: 56px clamp(16px, 3vw, 48px) 72px; background: radial-gradient(120% 80% at 50% 0%, #243059 0%, var(--bl-navy) 55%, #11182d 100%); color: #fff; }
.bl-plans { width: 100%; }
.bl-plans h1 { margin: 0 0 32px; text-align: center; font: 600 clamp(2rem, 4vw, 3rem)/1.1 var(--font-display); color: #fff; }
.bl-plans-loading { text-align: center; color: rgba(255, 255, 255, .7); }

.bl-plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; width: 100%; }
.bl-plans-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bl-plans-card { min-height: 420px; position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.bl-plans-top h2 { margin: 0; font: 600 1.7rem/1.15 var(--font-display); color: #fff; }
.bl-plans-price { margin: 10px 0 16px; display: flex; align-items: baseline; gap: 8px; }
.bl-plans-price strong { font: 700 2.2rem/1 var(--font-body); color: #fff; }
.bl-plans-price span { color: rgba(255, 255, 255, .65); font: 400 13px/1.3 var(--font-body); }
.bl-plans-btn { width: 100%; justify-content: center; will-change: transform; }
.bl-plans-btn.bl-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.bl-plans-btn.bl-btn-outline:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.bl-plans-btn.bl-btn-outline:disabled { color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .22); opacity: 1; }
.bl-plans-list { padding: 22px 30px 32px; border-top: 1px solid rgba(255, 255, 255, .12); flex: 1; }
.bl-plans-list > p { margin: 0 0 14px; color: rgba(255, 255, 255, .65); font: 500 13px/1.4 var(--font-body); }
.bl-plans-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bl-plans-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: #fff; font: 400 15px/1.45 var(--font-body); }
.bl-plans-list li svg { margin-top: 3px; color: var(--bl-lemon); }

/* the plan you are on: lemon flame + travelling border light */
.bl-plans-card.is-live { border-color: transparent; background: linear-gradient(180deg, rgba(245, 213, 63, .1), rgba(255, 255, 255, .02)); box-shadow: 0 0 60px rgba(245, 213, 63, .16); }
.bl-plans-card.is-live::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--bl-spin), transparent 0 55%, var(--bl-lemon) 80%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: bl-plans-spin 6s linear infinite; }
.bl-plans-flame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; filter: blur(6px); }
@keyframes bl-plans-spin { to { --bl-spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .bl-plans-card.is-live::before { animation: none; } }

.bl-plans-manage { width: 100%; margin: 32px 0 0; padding: 26px 30px; background: #fff; color: var(--bl-charcoal); border-radius: 24px; }
.bl-plans-manage h2 { margin: 0 0 14px; font: 600 1.3rem/1.2 var(--font-display); color: var(--bl-navy); }

@media (max-width: 900px) {
    .bl-plans-card { min-height: 0; }
    .bl-plans-stage { padding-top: 32px; }
    .bl-plans-grid, .bl-plans-grid.is-two { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}

/* Roomy cards: they fill the screen under the title, points up top, price under the name, button and the cancel note at the foot */
.bl-plans-card { min-height: clamp(560px, calc(var(--bl-vh, 100vh) - 230px), 820px); transition: transform .35s cubic-bezier(.23, 1, .32, 1), border-color .2s; }
.bl-plans-card:hover { transform: translateY(-4px); }
.bl-plans-top { padding: 34px 34px 8px; display: flex; flex-direction: column; gap: 6px; }
.bl-plans-top h2 { font-size: 2rem; }
.bl-plans-price { margin: 12px 0 8px; }
.bl-plans-price strong { font-size: 2.6rem; }
.bl-plans-list { padding: 22px 34px 24px; border-top: 0; }
.bl-plans-list > p { font-size: 14px; }
.bl-plans-list ul { gap: 16px; }
.bl-plans-list li { font-size: 16px; }
.bl-plans-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 22px 34px 30px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: auto; }
.bl-plans-foot small { text-align: center; color: rgba(255, 255, 255, .65); font: 400 13px/1.3 var(--font-body); }
.bl-plans-btn { min-height: 52px; font-size: 16px; }
.bl-plans-terms { margin: 36px auto 0; max-width: 900px; text-align: center; color: rgba(255, 255, 255, .7); font: 400 14px/1.6 var(--font-body); }
.bl-plans-terms p { margin: 0 0 6px; }
@media (max-width: 900px) { .bl-plans-card { min-height: 0; } .bl-plans-card:hover { transform: none; } .bl-plans-top { padding: 26px 24px 6px; } .bl-plans-list { padding: 18px 24px; } .bl-plans-foot { padding: 18px 24px 26px; } }
@media (prefers-reduced-motion: reduce) { .bl-plans-card, .bl-plans-card:hover { transform: none; transition: none; } }

/* Annual billing: the Monthly / Annually switch (dark on the Subscriptions page, light inside the subscribe sheet) */
.bl-bill-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.bl-bill-switch button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .85); font: 600 14px/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bl-bill-switch button.is-on { background: var(--bl-lemon); color: var(--bl-navy); }
.bl-bill-switch button:disabled { opacity: .5; cursor: not-allowed; }
.bl-bill-switch em { font: 600 12px/1 var(--font-body); font-style: normal; padding: 3px 7px; border-radius: 999px; background: rgba(15, 23, 42, .12); }
.bl-bill-switch button:not(.is-on) em { background: rgba(245, 213, 63, .22); color: var(--bl-lemon); }
.bl-plans-billing { display: flex; justify-content: center; margin: -8px 0 28px; }
.bl-plans-bill { margin: 0; color: rgba(255, 255, 255, .75); font: 400 13px/1.4 var(--font-body); }
.bl-plans-bill b { color: var(--bl-lemon); font-weight: 600; }
.bl-qs .bl-bill-switch { background: #f3f4f6; border-color: #e2e4e9; margin: 4px 0 12px; }
.bl-qs .bl-bill-switch button { color: var(--bl-navy); }
.bl-qs .bl-bill-switch button.is-on { background: var(--bl-lemon); color: var(--bl-navy); }
.bl-qs .bl-bill-switch button:not(.is-on) em { background: rgba(245, 213, 63, .45); color: var(--bl-navy); }
.bl-qs-bill { margin: 4px 0 0; color: var(--bl-slate); font: 400 13px/1.4 var(--font-body); }
.bl-plans-card.is-live .bl-plans-foot { background: rgba(17, 24, 45, .4); }
.bl-plans-card.is-live .bl-plans-btn:disabled { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Compact: the cards size to their points so the terms below show without scrolling (owner, 2026-12-03). The cards lean toward the pointer (magnet), the buttons do not. */
.bl-plans-stage { padding-top: 28px; padding-bottom: 40px; min-height: 0; }
.bl-plans h1 { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.bl-plans-card { min-height: 0; transition: transform .3s ease-out, border-color .2s; }
.bl-plans-card:hover { transform: none; }
.bl-plans-top { padding: 22px 28px 4px; }
.bl-plans-top h2 { font-size: 1.7rem; }
.bl-plans-price { margin: 8px 0 4px; }
.bl-plans-price strong { font-size: 2.2rem; }
.bl-plans-list { padding: 14px 28px 16px; }
.bl-plans-list ul { gap: 11px; }
.bl-plans-list li { font-size: 15px; }
.bl-plans-foot { padding: 16px 28px 20px; gap: 8px; }
.bl-plans-btn { min-height: 46px; will-change: auto; }
.bl-plans-terms { margin-top: 18px; }
.bl-plans-grid { align-items: stretch; }

/* The page fills the window; the footer starts just below the fold (same rule as the other app pages) */
.bl-plans-stage { min-height: calc(var(--bl-vh, 100vh) - 48px); }

/* Desktop: 30px lower; the cards grow so the last line of terms sits 30px above the bottom of the window (footer starts right below) */
@media (min-width: 901px) {
    .bl-plans-stage { display: flex; flex-direction: column; padding-top: 58px; padding-bottom: 38px; min-height: calc(var(--bl-vh, 100vh) - 72px); }
    .bl-plans { flex: 1 1 auto; display: flex; flex-direction: column; }
    .bl-plans-grid { flex: 1 1 auto; }
}
.bl-plans-terms p { margin-bottom: 11px; }
.bl-plans-terms p:last-child { margin-bottom: 0; }
