/* The two billing pages and the lock state, in Gripcount's own identity.
   Shipped only in a keyed build. */
.premium-page .lede { max-width: 62ch; }
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 24px 0; }
.premium-page .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 16px; }
.premium-page .panel h2 { margin-top: 0; }
.plan-list { margin: 0; padding-left: 18px; }
.plan-list li { margin: 0 0 8px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin: 8px 0 14px; }
.plan-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.plan-card.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-card-title { font-family: var(--heading); font-size: 22px; font-weight: 600; }
.plan-card-price { font-family: var(--mono); font-size: 18px; }
.plan-card-price span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.plan-card .button { margin-top: auto; min-height: 44px; }
.plan-active { padding: 18px; border-left: 3px solid var(--accent); background: var(--bg); }
.plan-active strong { font-family: var(--heading); font-size: 20px; }
.plan-error, .restore-warn { color: var(--danger, #a82424); }
.restore-ok { color: var(--ink); font-weight: 650; }
.access-code { margin-top: 16px; }
.access-code-value { display: block; padding: 12px 14px; font-family: var(--mono); font-size: 14px; word-break: break-all; background: var(--bg); border: 1px dashed var(--line); user-select: all; }
.restore-panel label { display: block; font-weight: 650; margin-bottom: 8px; }
.restore-panel input { width: 100%; min-height: 44px; padding: 8px 12px; font-family: var(--mono); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.restore-panel .dialog-actions { justify-content: flex-start; margin: 14px 0; }
.premium-page footer a { margin-right: 14px; }
/* The lock state inside the app. The study keeps its poster, title, tier and
   first cue; the note explains what Premium adds, once, and links out. */
.lock-note { display: grid; gap: 10px; padding: 18px 20px; margin: 18px 0; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.lock-note p { margin: 0; max-width: 60ch; }
.lock-note .lock-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lock-note .button { min-height: 44px; }
.locked-study { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.locked-study .locked-poster { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--stage); }
.locked-study .study-tag { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.locked-study .first-cue { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
@media (min-width: 768px) { .locked-study { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.premium-link { font-weight: 650; }
[data-lock] { opacity: 0.72; }
@media print { .plan-grid, .plan-panel, .lock-note { display: none; } }
@media (prefers-reduced-motion: reduce) { .plan-card, .lock-note { transition: none; } }
@media (forced-colors: active) { .plan-card, .lock-note, .plan-active { border: 1px solid CanvasText; } }
