/* Template pages (site/v2/websites/*.html and their Arabic twins): a short head, then the live demo. */
.demo { padding-top: 110px; padding-bottom: 40px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--dim); min-height: 24px; }
.crumbs a:hover { color: var(--bone); }
.demo-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-top: 22px; }
.demo-head .lbadge { margin-bottom: 14px; }
.demo-head h1 { text-wrap: balance; max-width: 18ch; }
.demo-head .lead { margin-top: 12px; text-wrap: pretty; }
.demo-head .acts { gap: 10px; }
.price-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--coral); color: var(--bone); font-size: 15px; font-weight: 600; }
.demo-stage { margin-top: 32px; display: grid; gap: 12px; }
.demo-ctl .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-ctl .chip { min-height: 44px; transition-property: background-color, border-color, color; }
.device { position: relative; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--ink-2); margin-inline: auto; width: 100%;
  transition: width .4s var(--ease); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9); }
.device[data-device="mobile"] { width: min(390px, 100%); }
.device iframe { position: relative; z-index: 1; display: block; width: 100%; height: min(78vh, 820px); border: 0; background: transparent; opacity: 0; transition: opacity .5s var(--ease); }
.device.live iframe { opacity: 1; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device.live .demo-poster { visibility: hidden; }
.device[data-device="mobile"] .demo-poster { object-position: 30% top; }
.demo-off { position: absolute; z-index: 2; inset-inline: 16px; bottom: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(11, 16, 51, .88); color: var(--bone); font-size: 14px; }
@media (max-width: 640px) { .device iframe { height: 70vh; } }
.incl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.incl-chips li { padding: 8px 14px; border-radius: 999px; font-size: 14px; background: rgba(46, 196, 182, .14); color: var(--teal-2); border: 1px solid rgba(127, 224, 214, .3); }
@media (prefers-reduced-motion: reduce) { .device, .device iframe { transition: none; } }

.preview-feedback { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 14px; }
.preview-feedback .row { flex-wrap: wrap; gap: 10px; }
.device:not(.live) iframe { pointer-events: none; visibility: hidden; }

/* Live Demo is a viewport, not the information page's device mockup. */
.demo-toolbar { display: none; }
html.demo-full, .demo-full body { height: 100%; overflow: hidden; }
.demo-full body > :not(main):not(script) { display: none !important; }
.demo-full .demo { width: 100%; max-width: none; margin: 0; padding: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.demo-full .demo > :not(.demo-toolbar):not(.demo-stage) { display: none; }
.demo-full .demo-toolbar { display: flex; flex-wrap: wrap; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)); padding-top: max(8px, env(safe-area-inset-top)); background: var(--ink); border-bottom: 1px solid var(--line-2); }
.demo-toolbar .btn, .demo-toolbar select { min-height: 44px; white-space: nowrap; }
.demo-toolbar select { max-width: 110px; color: var(--bone); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; font: inherit; }
.demo-full .demo-stage { position: relative; flex: 1 1 0%; min-height: 0; display: block; margin: 0; padding-bottom: env(safe-area-inset-bottom); }
.demo-full .demo-stage > :not(.device):not(.preview-feedback) { display: none; }
.demo-full .device { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; transition: none; }
.demo-full .device iframe { height: 100%; }
.demo-full .preview-feedback { position: absolute; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; max-height: 70%; overflow: auto; background: var(--ink-2); }
.demo-full .preview-feedback[data-state="ready"] { display: none; }
.demo-toolbar :focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }
@media (max-width: 480px) {
  .demo-full .demo-toolbar { gap: 5px; }
  .demo-toolbar .btn { padding-inline: 9px; font-size: 12px; }
  .demo-toolbar select { width: 76px; font-size: 12px; }
}

.demo-language .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
