/* ══════════════════════════════════════════════════════
   demo-badge.css - public-page markers of the demo host
   (demo.10xcourse.ai). PUBLIC stylesheet: the filename must
   NOT start with "admin" - the admin bundle is linked only by
   the /admin shell, and both things styled here render on
   public routes.

   1. `.demo-badge` - the small fixed "סביבת הדגמה" tag App.vue
      renders on every non-admin route when the server's
      `fsp_demo=1` cookie is present, so an audience member on
      their phone knows the site they just registered on is not
      the real one (decision N16). Inside /admin the shell's
      ribbon takes over and App.vue does not render this.

   2. `.demo-pay` - the simulated-payment panel the enrollment
      funnel (/e) and the staff-minted payment link (/pay/:token)
      render in place of the Telepay frame when the pay step
      answers `{demo: true}` (decision N12).
   ══════════════════════════════════════════════════════ */

/* ── 1. Corner badge ─────────────────────────────────── */

.demo-badge {
  position: fixed;
  /* Visual LEFT in RTL - the WhatsApp FAB owns inset-inline-start (right). */
  inset-inline-end: 12px;
  /* Clear of the LP's centred sticky register pill (12px + 52px band) and of
     the FAB's row, so nothing important ever sits under it. */
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  /* Above the FAB (998), below the nav (1000), the drawers (1050+) and the
     consent banner (9500), which may all legitimately cover it. */
  z-index: 999;
  /* Never a tap target: it is a label, and a label that swallows a tap on
     whatever sits behind it is worse than one that is briefly covered. */
  pointer-events: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full, 999px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #3B2A00;
  background: repeating-linear-gradient(-45deg, #FFC84A 0 10px, #FFD97A 10px 20px);
  border: 1px solid rgba(59, 42, 0, 0.28);
  box-shadow: 0 2px 6px rgba(25, 26, 35, 0.14);
  direction: rtl;
  white-space: nowrap;
}

.demo-badge::before {
  content: '';
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: #3B2A00;
  flex-shrink: 0;
}

@media print {
  .demo-badge {
    display: none;
  }
}

/* ── 2. Simulated payment panel ──────────────────────── */

.demo-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm, 12px);
  padding: var(--space-xl, 40px) var(--space-lg, 24px);
  text-align: center;
  border: 1px dashed rgba(59, 42, 0, 0.35);
  border-radius: var(--radius-md, 12px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(-45deg, #FFC84A 0 14px, #FFD97A 14px 28px);
}

.demo-pay__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #3B2A00;
}

.demo-pay__text {
  margin: 0;
  max-inline-size: 42ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #494950);
}

.demo-pay__actions {
  margin-block-start: var(--space-sm, 12px);
}
