/* subscription-gate.css — the .subscription-gate-* modal family.
 *
 * MOVED VERBATIM out of public.css (was lines 2325-2463) on 2026-09-02.
 * Not one declaration was added, removed or changed in the move.
 *
 * Why it left public.css: web/landing.html does not load public.css and is
 * LOCKED, so the marketplace demo gate could not be styled from there. The
 * family now lives in a file any surface can link, including the two the
 * demo gate actually needs — the landing page and /rag.
 *
 * Loaded by:
 *   web/public_base.html, web/base.html  — static <link>, as before
 *   static/hamburger.js                  — injected in demo mode when absent
 *                                          (landing.html, rag_cockpit.html)
 *
 * Consumers: the demo gates only. Both render under {% if demo_instance %}
 * or under DEMO_MODE, so nothing outside a demo deployment needs these rules.
 */

/* ──────────────────────────────────────────────────────────────────
 * SUBSCRIPTION GATE MODAL — cosmetic only, no real auth
 * Used on /universe coverage card click handlers.
 * ─────────────────────────────────────────────────────────────── */

.subscription-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: gateModalFadeIn 220ms ease-out;
}
.subscription-gate-modal[hidden] { display: none; }

@keyframes gateModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.subscription-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0.7);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.subscription-gate-card {
  position: relative;
  background: var(--landing-card-bg, #FAFAF7);
  border: 1px solid var(--landing-card-border, #D6D3C7);
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  text-align: left;
  animation: gateCardSlideUp 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gateCardSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.subscription-gate-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--landing-card-border, #D6D3C7);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--landing-text-muted, #5A5A57);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subscription-gate-close:hover {
  border-color: var(--landing-accent, #B64926);
  color: var(--landing-accent, #B64926);
}

.subscription-gate-eyebrow {
  font-family: var(--font-h, 'Khand'), Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--landing-accent, #B64926);
  margin-bottom: 0.5rem;
}

.subscription-gate-headline {
  font-family: var(--font-h, 'Khand'), Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--landing-text-primary, #2B2A26);
  margin: 0 0 0.85rem 0;
  line-height: 1.1;
}

.subscription-gate-copy {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--landing-text-muted, #5A5A57);
  margin: 0 0 1.5rem 0;
}

/* Takeaways and closing line (three-gates revision, 2026-09-03).
   Brand orange comes from --tml-primary, the canonical token read fresh from
   tokens-neutral-canonical.css. No hex, no rgba, and NO fallback value —
   a fallback is a hardcoded colour by another name. Every surface that can
   show this modal already loads the token file. */
.subscription-gate-takeaways {
  margin: 0 0 0.75rem 0;
  font-family: var(--font-h, 'Khand'), Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--tml-primary);
}
.subscription-gate-closing {
  margin: 0 0 1.1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--landing-text-muted, #5A5A57);
}

.subscription-gate-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.subscription-gate-btn-primary {
  padding: 0.65rem 1.25rem;
  background: var(--landing-accent, #B64926);
  color: var(--tml-on-primary);
  border: 1px solid var(--landing-accent, #B64926);
  border-radius: 6px;
  font-family: var(--font-h, 'Khand'), Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms;
}
.subscription-gate-btn-primary:hover {
  background: var(--landing-accent-deep, #8B2F15);
}

.subscription-gate-btn-secondary {
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--landing-text-muted, #5A5A57);
  border: 1px solid var(--landing-card-border, #D6D3C7);
  border-radius: 6px;
  font-family: var(--font-h, 'Khand'), Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.subscription-gate-btn-secondary:hover {
  border-color: var(--landing-accent, #B64926);
  color: var(--landing-accent, #B64926);
}
