/* EZRA v10 public demo page (templates/ezpzai/try_v10.html, demo.js). The page is the real member app
 * (<ezra-chat data-demo="1">), styled by the member stylesheets; this file only holds what the demo adds: the
 * top bar's delay chip, quota pill and offer button, the "Delayed" freshness chips, the starter-question chips'
 * label on Home, the limit modal, and the one-sentence "not available" state. Every rule is scoped under the
 * demo root (.ez-demo, also the .ezra-root), so nothing here reaches the site frame. Tokens only. */

/* ── Top bar: delay chip, free-questions pill and the visitor's offer (sign up / upgrade / open EZRA) ── */
.ez-demo .dm-delay, .ez-demo .dm-quota, .ez-demo .dm-offer { flex-shrink: 0; }
.ez-demo .dm-quota { height: 22px; font-size: var(--fs-11); color: var(--muted); }
.ez-demo .dm-quota.is-amber { color: var(--amber-text); }
.ez-demo .dm-quota.is-bear { color: var(--bear-text); }
.ezra-root.ez-demo a.dm-offer:hover { text-decoration: none; }

/* "Delayed 15 min · as of …" (format.js delayed mode): expected here, so muted, not an alarm */
.ez-demo .ez-fresh[data-state="delayed"] { color: var(--muted); }
.ez-demo .ez-fresh[data-state="delayed"] .ez-dot { background: var(--stale); }

/* Home: the starter questions' label above their chips (components/ezra-home.js renderStarters) */
.ez-demo .ez-home-starters-k { flex-basis: 100%; margin: 0; }

/* "Duplicate to mine" on a playbook card: nothing saves without an account (ezra-playbook-card.js leaves the
   ⋯ out in demo mode; this is a backstop) */
.ez-demo .ez-pbm-more { display: none !important; }

/* A demo URL is missing (demo.js): one sentence instead of the app */
.ez-demo .dm-unavailable, .ez-demo .dm-noscript { max-width: 820px; margin: var(--sp-6) auto; padding: 0 var(--sp-4); font-size: var(--fs-14); color: var(--muted); }

/* ── Limit modal: an .ez-sheet over the app; the answers stay readable behind it ── */
.ez-demo .dm-scrim {
  position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: flex-start; justify-content: center;
  padding: 56px var(--sp-4) var(--sp-4); background: var(--overlay); overflow-y: auto;
}
.ez-demo .dm-wall { position: relative; width: 100%; max-width: 420px; max-height: none; padding: var(--sp-6) var(--sp-6) var(--sp-5); text-align: center; overflow: visible; }
.ez-demo .dm-wall:focus { outline: none; }
.ez-demo .dm-wall-x { position: absolute; right: var(--sp-2); top: var(--sp-2); }
.ez-demo .dm-wall-mark { width: 44px; height: 44px; margin: 0 auto var(--sp-3); border-radius: var(--r); }
.ez-demo .dm-wall-badge { color: var(--p-text); --ez-h: var(--p-text); margin-bottom: var(--sp-2); }
.ez-demo .dm-wall h2 { --ez-h: var(--bright); --ez-ta: center; margin: 0 0 var(--sp-2); font-size: var(--fs-20); font-weight: 600; letter-spacing: -.02em; line-height: var(--lh-tight); }
.ez-demo .dm-wall-r { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font-size: var(--fs-12); color: var(--bear-text); }
.ez-demo .dm-wall-r .ez-dot { background: var(--bear); }
.ez-demo .dm-wall-sub { margin: 0 0 var(--sp-3); font-size: var(--fs-13); line-height: var(--lh-normal); color: var(--muted); }
.ez-demo .dm-perks { list-style: none; margin: 0 0 var(--sp-4); padding: 0; text-align: left; }
.ez-demo .dm-perks li { display: flex; align-items: center; gap: 10px; padding: 6px var(--sp-2); border-radius: var(--r-sm); font-size: var(--fs-13); color: var(--text); }
.ez-demo .dm-pk { width: 24px; height: 24px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; background: color-mix(in oklab, var(--c) 16%, transparent); }
.ez-demo .dm-pk svg { width: 13px; height: 13px; color: color-mix(in oklab, var(--c) 70%, var(--bright)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ez-demo .dm-wall-cta { display: flex; width: 100%; }
.ezra-root.ez-demo a.dm-wall-cta:hover { text-decoration: none; }
.ez-demo .dm-wall-free { display: inline-block; margin-top: 10px; font-size: var(--fs-13); font-weight: 600; text-decoration: none; }
.ez-demo .dm-wall-ex { display: flex; justify-content: center; gap: 18px; margin: var(--sp-3) 0 0; }
.ez-demo .dm-wall-ex a { font-size: var(--fs-12); font-weight: 600; text-decoration: none; }
.ez-demo .dm-wall-in { margin: var(--sp-3) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: var(--fs-12); color: var(--muted); }

/* ── Phones: Home and every answer already say "Delayed", so the top bar keeps the pill and the offer ── */
@media (max-width: 720px) {
  .ez-demo .dm-delay { display: none; }
  .ez-demo .dm-offer { padding: 0 10px; font-size: var(--fs-12); }
  .ez-demo .dm-scrim { padding: var(--sp-4) var(--sp-3); }
  .ez-demo .dm-wall { padding: var(--sp-5) var(--sp-4) var(--sp-4); border-radius: var(--r-lg); }
}
