/* Landing feature simulations, visually derived from Scolara's real app UI.
   Every app-like selector is scoped below .feature-demo so this miniature
   workspace cannot restyle the public landing page around it. */

.feat-card {
  appearance: none;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.feat-card-title {
  position: relative;
  z-index: 2;
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.feat-card-try {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35rem;
  margin-top: .62rem;
  color: #c9f5ff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

[dir="rtl"] .feat-card-try { letter-spacing: 0; }

.feat-card-try > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: transform .2s ease, background-color .2s ease;
}

[dir="rtl"] .feat-card-try > span { transform: scaleX(-1); }
.feat-card:hover .feat-card-try > span,
.feat-card.is-demo-active .feat-card-try > span { background: rgba(255, 255, 255, .2); transform: translate(2px, -2px); }
[dir="rtl"] .feat-card:hover .feat-card-try > span,
[dir="rtl"] .feat-card.is-demo-active .feat-card-try > span { transform: scaleX(-1) translate(2px, -2px); }
.feat-card.is-demo-active { border-color: rgba(159, 232, 255, .78); box-shadow: 0 28px 60px -25px rgba(45, 212, 191, .7), inset 0 0 0 2px rgba(255, 255, 255, .1); }

.feat-card:focus-visible,
.feature-demo button:focus-visible,
.feature-demo input:focus-visible,
.feature-demo textarea:focus-visible,
.feature-demo select:focus-visible,
.feature-demo canvas:focus-visible { outline: 3px solid rgba(108, 92, 231, .38); outline-offset: 3px; }

.feature-demo[hidden],
.feature-demo-scene[hidden],
.feature-demo [hidden] { display: none !important; }

/* The slim notice belongs to the landing page. The surface below it is the
   actual product miniature; there is no detached marketing workbench. */
.feature-demo {
  --demo-accent: #6c5ce7;
  --demo-accent-strong: #5a4bd8;
  --demo-accent-soft: rgba(108, 92, 231, .08);
  --demo-accent-ring: rgba(108, 92, 231, .14);
  --demo-bg: #f6f7fb;
  --demo-surface: #fff;
  --demo-line: #e8e9f1;
  --demo-line-strong: #dcdeee;
  --demo-ink: #1a1a2e;
  --demo-ink-soft: #4b5563;
  --demo-ink-faint: #8b8ba3;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(35, 29, 74, .1);
  border-radius: 20px;
  color: var(--demo-ink);
  background: var(--demo-bg);
  box-shadow: 0 30px 70px -44px rgba(40, 25, 90, .62), 0 2px 8px rgba(23, 25, 60, .04);
  font-family: 'Manrope', Inter, system-ui, sans-serif;
  text-align: start;
  animation: feature-demo-enter .28s ease-out both;
}
[dir="rtl"] .feature-demo { font-family: 'Cairo', 'Manrope', Inter, system-ui, sans-serif; }
[dir="rtl"] .feature-demo h1,
[dir="rtl"] .feature-demo h2,
[dir="rtl"] .feature-demo h3,
[dir="rtl"] .feature-demo h4,
[dir="rtl"] .feature-demo strong { font-family: 'Cairo', 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif; }

@keyframes feature-demo-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feature-demo *, .feature-demo *::before, .feature-demo *::after { box-sizing: border-box; }
.feature-demo button, .feature-demo input, .feature-demo textarea, .feature-demo select { font: inherit; }
.feature-demo button { cursor: pointer; }

.feature-demo-meta {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: .72rem 1rem;
  border-bottom: 1px solid rgba(108, 92, 231, .11);
  background: #f9f8ff;
}

.feature-demo-kicker { display: inline-flex; align-items: center; gap: .45rem; color: #5648c9; font-size: .69rem; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
[dir="rtl"] .feature-demo-kicker { letter-spacing: 0; }
.feature-demo-kicker i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.feature-demo-privacy { margin: .2rem 0 0; color: #777188; font-size: .72rem; line-height: 1.45; }
.feature-demo-head-actions { display: flex; align-items: center; gap: .45rem; flex: none; }
.feature-demo-reset, .feature-demo-close { min-height: 40px; border: 1px solid var(--demo-line-strong); color: #514b63; background: #fff; font-size: .75rem; font-weight: 750; transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease; }
.feature-demo-reset { padding: .48rem .8rem; border-radius: 10px; }
.feature-demo-close { display: grid; width: 40px; padding: 0; place-items: center; border-radius: 50%; font-size: 1.2rem; }
.feature-demo-reset:hover, .feature-demo-close:hover { border-color: rgba(108, 92, 231, .34); color: #4f46e5; background: #faf9ff; }
.feature-demo-reset:active, .feature-demo-close:active { transform: scale(.97); }
.feature-demo-scene { min-width: 0; }
.feature-demo-scene.is-active { animation: feature-scene-in .2s ease-out both; }
@keyframes feature-scene-in { from { opacity: .4; } to { opacity: 1; } }

/* Shared light application shell. */
.feature-demo-app { min-width: 0; min-height: 520px; overflow: hidden; color: var(--demo-ink); background: var(--demo-bg); }
.feature-demo .demo-app-nav {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  padding: .6rem clamp(.8rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--demo-line);
  background: rgba(250, 250, 253, .94);
  box-shadow: 0 10px 30px -24px rgba(58, 32, 120, .45);
}
.feature-demo .demo-app-brand { display: flex; align-items: center; gap: .62rem; min-width: 0; justify-self: start; }
.feature-demo .demo-app-brand img { display: block; width: 32px; height: 32px; flex: none; border-radius: 10px; }
.feature-demo .demo-app-brand > span { position: relative; color: var(--demo-ink); font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif; font-size: .9rem; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
.feature-demo .demo-app-brand small { position: absolute; inset-inline-end: 0; bottom: -.62rem; color: var(--demo-accent); font-size: .43rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
[dir="rtl"] .feature-demo .demo-app-brand small { letter-spacing: 0; }
.feature-demo .demo-app-links { display: flex; align-items: stretch; align-self: stretch; gap: clamp(.75rem, 2vw, 1.25rem); justify-self: center; color: var(--demo-ink-faint); font-size: .76rem; font-weight: 600; }
.feature-demo .demo-app-links span { position: relative; display: flex; align-items: center; white-space: nowrap; }
.feature-demo .demo-app-links span.on { color: var(--demo-accent); }
.feature-demo .demo-app-links span.on::after { content: ""; position: absolute; right: 0; bottom: -.6rem; left: 0; height: 2px; border-radius: 999px; background: var(--demo-accent); }
.feature-demo .demo-app-avatar { display: grid; width: 34px; height: 34px; place-items: center; justify-self: end; border: 2px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 4px 12px -6px rgba(79, 70, 229, .8); font-family: Georgia, serif; font-size: .68rem; font-style: italic; font-weight: 700; }

.feature-demo .demo-app-body { width: min(100%, 64rem); min-height: 460px; margin-inline: auto; padding: clamp(1rem, 3vw, 1.8rem); }
.feature-demo .demo-app-body.demo-student-width { width: min(100%, 56rem); }
.feature-demo .demo-page-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 0; box-shadow: inset 0 -1px 0 rgba(20, 20, 45, .1), inset 0 -3px 4px -3px rgba(20, 20, 45, .14); }
.feature-demo .demo-page-head h3 { margin: .15rem 0 0; color: var(--demo-ink); font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif; font-size: clamp(1.15rem, 3vw, 1.55rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; text-shadow: 0 1px 0 #fff, 0 1px 3px rgba(20, 20, 45, .08); }
.feature-demo .demo-breadcrumb, .feature-demo .demo-page-label { display: block; color: var(--demo-ink-faint); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .62rem; font-weight: 650; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
[dir="rtl"] .feature-demo .demo-breadcrumb, [dir="rtl"] .feature-demo .demo-page-label { letter-spacing: 0; }
[dir="rtl"] .feature-demo .demo-breadcrumb { direction: rtl; }
.feature-demo .demo-page-icon { width: 58px; height: 58px; flex: none; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(20, 10, 60, .25)); }

.feature-demo .card { position: relative; border: 1px solid var(--demo-line); border-radius: 14px; background: var(--demo-surface); box-shadow: 0 1px 2px rgba(23, 25, 60, .05), 0 1px 1px rgba(23, 25, 60, .03); }
.feature-demo .p-5 { padding: 1.25rem; }
.feature-demo .p-6 { padding: 1.5rem; }
.feature-demo .badge { display: inline-flex; align-items: center; gap: .2rem; width: fit-content; padding: .2rem .55rem; border-radius: 999px; color: #525269; background: #f1f2f6; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.feature-demo .demo-badge-indigo { color: #4f46e5; background: #eef2ff; }
.feature-demo .input { width: 100%; border: 1.5px solid rgba(0, 0, 0, .08); border-radius: 12px; outline: 0; color: var(--demo-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.feature-demo .input:focus { border-color: var(--demo-accent); box-shadow: 0 0 0 3px var(--demo-accent-ring); }
.feature-demo .btn-primary { appearance: none; min-height: 42px; padding: .62rem 1rem; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--demo-accent), #8b5cf6); box-shadow: 0 2px 8px rgba(108, 92, 231, .25); font-size: .8rem; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.feature-demo .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108, 92, 231, .3); }
.feature-demo .btn-primary:active:not(:disabled) { transform: scale(.98); }
.feature-demo .btn-primary:disabled { opacity: .42; cursor: not-allowed; }
.feature-demo .demo-inline-message { min-height: 1.4em; margin: .72rem .2rem 0; color: var(--demo-ink-faint); font-size: .76rem; line-height: 1.45; }
.feature-demo .demo-inline-message.is-success { color: #047857; font-weight: 700; }
.feature-demo .demo-inline-message.is-error { color: #be123c; font-weight: 700; }

/* Student quiz: same white question card and answer rows as the classroom. */
.feature-demo .demo-quiz-card { max-width: 48rem; margin-inline: auto; }
.feature-demo .demo-question-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--demo-line); color: var(--demo-ink); font-size: .93rem; font-weight: 700; }
.feature-demo .demo-question-head > div { display: flex; gap: .45rem; }
.feature-demo .demo-question-head > div > span { color: var(--demo-accent); font-weight: 800; }
.feature-demo .demo-quiz-options { display: grid; gap: .65rem; margin-top: 1rem; }
.feature-demo .demo-quiz-options label { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .72rem .85rem; border: 1px solid var(--demo-line); border-radius: 12px; color: var(--demo-ink-soft); background: #fafbfc; font-size: .84rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.feature-demo .demo-quiz-options label:hover, .feature-demo .demo-quiz-options label:has(input:checked) { border-color: rgba(108, 92, 231, .38); color: #403779; background: #f5f3ff; box-shadow: 0 0 0 2px rgba(108, 92, 231, .06); }
.feature-demo .demo-quiz-options input { appearance: none; width: 19px; height: 19px; flex: none; margin: 0; border: 2px solid #c9cad6; border-radius: 50%; background: #fff; }
.feature-demo .demo-quiz-options input:checked { border: 5px solid var(--demo-accent); }
.feature-demo .demo-quiz-footer { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; max-width: 48rem; margin: .7rem auto 0; }
.feature-demo .demo-progress { display: grid; min-width: 150px; gap: .25rem; margin-inline-end: auto; color: var(--demo-ink-faint); font-size: .66rem; }
.feature-demo .demo-progress i { overflow: hidden; height: 5px; border-radius: 999px; background: #e5e7eb; }
.feature-demo .demo-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6c5ce7, #8b5cf6); transition: width .2s ease; }

/* Teacher review: copied from the real submission/review hierarchy. */
.feature-demo .demo-submission-card { max-width: 54rem; margin-inline: auto; overflow: hidden; }
.feature-demo .demo-submission-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid var(--demo-line); }
.feature-demo .demo-submission-head > div:first-child { display: grid; gap: .15rem; }
.feature-demo .demo-submission-head strong { color: var(--demo-ink); font-size: .92rem; }
.feature-demo .demo-submission-head small { color: var(--demo-ink-faint); font-family: ui-monospace, monospace; font-size: .65rem; }
.feature-demo .demo-submission-head > div:last-child { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.feature-demo .demo-status { color: #4f46e5; background: #eef2ff; }
.feature-demo .demo-grade { color: #047857; background: #d1fae5; }
.feature-demo .demo-response { padding: 1rem 0; }
.feature-demo .demo-response > span, .feature-demo .demo-feedback-field label, .feature-demo .demo-review-fields label { display: block; margin-bottom: .3rem; color: var(--demo-ink-faint); font-size: .65rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
[dir="rtl"] .feature-demo .demo-response > span, [dir="rtl"] .feature-demo .demo-feedback-field label, [dir="rtl"] .feature-demo .demo-review-fields label { letter-spacing: 0; }
.feature-demo .demo-response p { margin: 0; padding: .72rem .8rem; border-radius: 10px; color: var(--demo-ink-soft); background: #fafbfc; font-size: .8rem; }
.feature-demo .demo-review-panel { padding: 1rem; border: 1px solid rgba(108, 92, 231, .11); border-radius: 12px; background: #faf9ff; }
.feature-demo .demo-feedback-field textarea { min-height: 68px; padding: .62rem .75rem; resize: vertical; font-size: .78rem; }
.feature-demo .demo-review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .72rem; }
.feature-demo .demo-review-fields input, .feature-demo .demo-review-fields select { min-height: 40px; padding: .5rem .7rem; font-size: .78rem; }
.feature-demo .demo-review-action { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: .8rem; }
.feature-demo .rev-msg { margin-inline-end: auto; color: var(--demo-ink-faint); font-size: .72rem; }
.feature-demo .rev-msg.is-success { color: #047857; font-weight: 700; }
.feature-demo .rev-msg.is-error { color: #be123c; font-weight: 700; }

/* Classroom resource tab: values intentionally mirror res_styles in the app. */
.feature-demo .demo-class-tabs { display: flex; gap: 1.1rem; overflow-x: auto; margin-bottom: 1rem; border-bottom: 1px solid var(--demo-line); scrollbar-width: none; }
.feature-demo .demo-class-tabs::-webkit-scrollbar { display: none; }
.feature-demo .demo-class-tabs > span { position: relative; flex: none; padding: .45rem .15rem .65rem; color: var(--demo-ink-faint); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.feature-demo .demo-class-tabs > span.on { color: var(--demo-accent); }
.feature-demo .demo-class-tabs > span.on::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 99px; background: var(--demo-accent); }
.feature-demo .res-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.feature-demo .res-search { position: relative; flex: 1 1 220px; min-width: 0; }
.feature-demo .res-search .material-symbols-outlined { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 19px; pointer-events: none; }
.feature-demo .res-search input { width: 100%; padding: 9px 12px 9px 36px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; outline: none; color: var(--demo-ink); background: #fff; font-size: .8rem; transition: border-color .15s, box-shadow .15s; }
[dir="rtl"] .feature-demo .res-search input { padding: 9px 36px 9px 12px; }
.feature-demo .res-search input:focus { border-color: var(--demo-accent); box-shadow: 0 0 0 3px var(--demo-accent-ring); }
.feature-demo .res-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.feature-demo .res-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px; color: var(--demo-ink-soft); background: #fff; font-size: .72rem; font-weight: 650; line-height: 1.4; transition: color .12s, border-color .12s, background-color .12s; }
.feature-demo .res-chip:hover { border-color: rgba(108, 92, 231, .4); color: var(--demo-accent); }
.feature-demo .res-chip.active, .feature-demo .res-chip[aria-pressed="true"] { border-color: var(--demo-accent); color: #fff; background: var(--demo-accent); }
.feature-demo .res-chip .res-n { font-size: .62rem; font-weight: 800; opacity: .7; }
.feature-demo .demo-resource-list { display: grid; gap: .6rem; }
.feature-demo .res-card { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 14px; color: inherit; background: #fff; text-align: start; transition: border-color .15s, box-shadow .15s, transform .1s; }
.feature-demo .res-card:hover, .feature-demo .res-card[aria-selected="true"] { border-color: rgba(108, 92, 231, .35); box-shadow: 0 6px 18px rgba(108, 92, 231, .1); }
.feature-demo .res-card:active { transform: scale(.995); }
.feature-demo .res-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 12px; }
.feature-demo .res-ic .material-symbols-outlined { font-size: 22px; }
.feature-demo .res-ic-pdf { color: #ef4444; background: rgba(239, 68, 68, .1); }
.feature-demo .res-ic-doc { color: #6b7280; background: rgba(107, 114, 128, .1); }
.feature-demo .res-ic-vid { color: #8b5cf6; background: rgba(139, 92, 246, .1); }
.feature-demo .res-body { display: block; min-width: 0; flex: 1; }
.feature-demo .res-title { display: block; overflow: hidden; color: var(--demo-ink); font-size: .82rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.feature-demo .res-desc { display: block; overflow: hidden; margin-top: 1px; color: #6b7280; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.feature-demo .res-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: #9ca3af; font-size: .65rem; }
.feature-demo .res-tag { padding: 1px 8px; border-radius: 999px; color: var(--demo-accent); background: rgba(108, 92, 231, .1); font-weight: 700; }
.feature-demo .res-open { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 6px 12px; border-radius: 999px; color: var(--demo-accent); background: rgba(108, 92, 231, .08); font-size: .7rem; font-weight: 750; }
.feature-demo .res-open .material-symbols-outlined { font-size: 15px; }
.feature-demo .res-card:hover .res-open, .feature-demo .res-card[aria-selected="true"] .res-open { color: #fff; background: var(--demo-accent); }

/* Center reports: native report periods, tabs, pulse cells and comparison table. */
.feature-demo .rp-controls { display: flex; align-items: flex-end; gap: .7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.feature-demo .rp-periods { display: inline-flex; gap: 2px; overflow-x: auto; max-width: 100%; padding: 4px; border-radius: 14px; background: rgba(20, 20, 45, .05); scrollbar-width: none; }
.feature-demo .rp-periods::-webkit-scrollbar { display: none; }
.feature-demo .rp-period { flex: none; padding: 7px 14px; border: 0; border-radius: 10px; color: #6b6b85; background: transparent; font-size: .75rem; font-weight: 650; white-space: nowrap; transition: color .15s, background-color .15s, box-shadow .15s; }
.feature-demo .rp-period:hover { color: var(--demo-ink); }
.feature-demo .rp-period.on, .feature-demo .rp-period[aria-pressed="true"] { color: #4f46e5; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04); }
.feature-demo .rp-tabs { display: flex; gap: .25rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: 2px; border-bottom: 1px solid rgba(20, 20, 45, .09); scrollbar-width: none; }
.feature-demo .rp-tabs::-webkit-scrollbar { display: none; }
.feature-demo .rp-tab { flex: none; margin-bottom: -3px; padding: .55rem .85rem; border-bottom: 2px solid transparent; border-radius: 12px 12px 0 0; color: #6b6b85; background: transparent; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.feature-demo .rp-tab.on, .feature-demo .rp-tab[aria-current="page"] { border-bottom-color: #4f46e5; color: #4f46e5; background: rgba(99, 102, 241, .06); }
.feature-demo .ch-pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); border-radius: 12px; background: rgba(0, 0, 0, .06); }
.feature-demo .ch-pulse-cell { min-width: 0; padding: 1rem 1.05rem; background: #fff; }
.feature-demo .demo-metric-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: .35rem; }
.feature-demo .demo-metric-head img { width: 40px; height: 40px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(20, 10, 60, .28)); }
.feature-demo .demo-metric-mark { display: grid; width: 37px; height: 37px; place-items: center; flex: none; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 6px 12px -7px rgba(16, 185, 129, .8); font-size: 1.2rem; font-weight: 800; }
.feature-demo .ch-label { color: var(--demo-ink-faint); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .61rem; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
[dir="rtl"] .feature-demo .ch-label { letter-spacing: 0; }
.feature-demo .ch-pulse-num { display: block; color: var(--demo-ink); font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif; font-size: 1.65rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.025em; line-height: 1.05; }
.feature-demo .ch-pulse-delta { display: block; margin-top: 5px; color: var(--demo-ink-faint); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .6rem; font-weight: 700; line-height: 1.35; }
.feature-demo .ch-pulse-delta.up { color: #059669; }
.feature-demo .ch-pulse-delta.down { color: #dc2626; }
.feature-demo .ch-pulse-delta.flat { color: #9ca3af; }
.feature-demo .ch-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.35rem 0 .7rem; padding-bottom: .5rem; box-shadow: inset 0 -1px 0 rgba(20, 20, 45, .1), inset 0 -3px 4px -3px rgba(20, 20, 45, .14); }
.feature-demo .ch-section-head h4 { margin: 0; color: var(--demo-ink); font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif; font-size: .88rem; font-weight: 750; }
.feature-demo .ch-panel { overflow: hidden; border: 1px solid var(--demo-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(23, 25, 60, .04); }
.feature-demo .rp-scroll { overflow-x: auto; }
.feature-demo .rp-table { width: 100%; min-width: 520px; border-collapse: collapse; color: var(--demo-ink-soft); font-size: .75rem; }
.feature-demo .rp-table th { padding: .55rem .65rem; color: var(--demo-ink-faint); background: rgba(20, 20, 45, .025); font-size: .6rem; font-weight: 750; letter-spacing: .05em; text-align: start; text-transform: uppercase; white-space: nowrap; }
[dir="rtl"] .feature-demo .rp-table th { letter-spacing: 0; }
.feature-demo .rp-table td { padding: .68rem .65rem; border-top: 1px solid rgba(20, 20, 45, .06); text-align: start; }
.feature-demo .rp-table td strong { color: var(--demo-ink); }
.feature-demo .rp-zebra tbody tr:nth-child(even) td { background: rgba(20, 20, 45, .018); }
.feature-demo .rp-zebra tbody tr:hover td { background: rgba(99, 102, 241, .05); }

/* Live classroom: authentic dark room with participants, stage and controls. */
.feature-demo .demo-live-app { min-height: 540px; color: #e5e7eb; background: #111827; }
.feature-demo .demo-live-shell { direction: ltr; display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 540px; overflow: hidden; background: #111827; }
.feature-demo .demo-live-sidebar { display: flex; min-width: 0; padding: .7rem; flex-direction: column; gap: .45rem; border-inline-end: 1px solid #293244; background: #111827; }
.feature-demo .demo-live-side-head, .feature-demo .demo-person, .feature-demo .demo-chat { border: 1px solid #e5e7eb; color: #1f2937; background: #fff; }
.feature-demo .demo-live-side-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .7rem; border-radius: 10px 10px 0 0; font-size: .7rem; }
.feature-demo .demo-live-side-head span { padding: .12rem .38rem; border-radius: 999px; color: #4b5563; background: #e5e7eb; font-size: .62rem; }
.feature-demo .demo-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-top: -.45rem; padding: .5rem .6rem; }
.feature-demo .demo-person:nth-of-type(4) { border-radius: 0 0 10px 10px; }
.feature-demo .demo-person > span, .feature-demo .demo-video-primary > span, .feature-demo .demo-live-filmstrip > div > span { display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.feature-demo .demo-person > span { width: 29px; height: 29px; font-size: .58rem; }
.feature-demo .demo-person > div { display: grid; min-width: 0; }
.feature-demo .demo-person strong { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.feature-demo .demo-person small { overflow: hidden; margin-top: .1rem; color: #8b8ba3; font-size: .53rem; text-overflow: ellipsis; white-space: nowrap; }
.feature-demo .demo-person > i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.feature-demo .demo-chat { display: flex; min-height: 0; flex: 1; flex-direction: column; margin-top: .15rem; padding: .65rem; border-radius: 10px; }
.feature-demo .demo-chat > strong { padding-bottom: .5rem; border-bottom: 1px solid #e5e7eb; font-size: .68rem; }
.feature-demo .demo-chat p { display: grid; align-self: flex-start; max-width: 95%; margin: .7rem 0 auto; padding: .5rem .55rem; border-radius: 5px 9px 9px; color: #4b5563; background: #eef2ff; font-size: .58rem; line-height: 1.4; }
.feature-demo .demo-chat p b { color: #4f46e5; font-size: .55rem; }
.feature-demo .demo-chat > span { padding: .45rem .55rem; border: 1px solid #d1d5db; border-radius: 8px; color: #9ca3af; font-size: .53rem; }
.feature-demo .demo-live-main { display: flex; min-width: 0; flex-direction: column; background: #0d1422; }
.feature-demo .demo-live-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .65rem 1rem; border-bottom: 1px solid #374151; background: linear-gradient(90deg, #111827, #1f2937); }
.feature-demo .demo-live-head > div { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.feature-demo .demo-live-head > div > div { display: grid; min-width: 0; }
.feature-demo .demo-live-head h3 { overflow: hidden; margin: 0; color: #fff; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.feature-demo .demo-live-head small { margin-top: .1rem; color: #9ca3af; font-size: .58rem; }
.feature-demo .demo-live-head > bdi { color: #d1d5db; font-family: ui-monospace, monospace; font-size: .9rem; font-weight: 700; }
.feature-demo .demo-live-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #6b7280; }
.feature-demo .demo-live-app.is-live .demo-live-dot { background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, .13); animation: demo-live-pulse 1.35s ease-in-out infinite; }
@keyframes demo-live-pulse { 50% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.feature-demo .demo-live-stage { display: grid; min-height: 0; flex: 1; grid-template-rows: minmax(0, 1fr) auto; gap: .55rem; padding: .7rem; }
.feature-demo .demo-video-primary { position: relative; display: grid; min-height: 290px; place-items: center; overflow: hidden; border: 1px solid #2f394b; border-radius: 10px; background: radial-gradient(circle at 50% 38%, #29364b, #111827 68%); }
.feature-demo .demo-video-primary::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 30px 30px; }
.feature-demo .demo-video-primary > span { position: relative; width: 82px; height: 82px; font-size: 1.35rem; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.feature-demo .demo-video-primary strong { position: absolute; inset-inline-start: .75rem; bottom: .72rem; color: #fff; font-size: .7rem; }
.feature-demo .demo-video-primary small { position: absolute; inset-inline-end: .75rem; bottom: .72rem; padding: .18rem .4rem; border-radius: 999px; color: #d1d5db; background: rgba(17, 24, 39, .78); font-size: .55rem; }
.feature-demo .demo-live-filmstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.feature-demo .demo-live-filmstrip > div { position: relative; display: grid; min-height: 74px; place-items: center; overflow: hidden; border: 1px solid #374151; border-radius: 8px; background: #1f2937; }
.feature-demo .demo-live-filmstrip > div > span { width: 36px; height: 36px; font-size: .62rem; }
.feature-demo .demo-live-filmstrip small { position: absolute; inset-inline-start: .4rem; bottom: .3rem; color: #e5e7eb; font-size: .5rem; }
.feature-demo .demo-live-controls { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 64px; padding: .6rem .8rem; border-top: 1px solid #293244; background: #111827; }
.feature-demo .demo-live-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: .55rem; border: 1px solid #4b5563; border-radius: 50%; color: #fff; background: #374151; transition: border-color .15s, background-color .15s, transform .15s; }
.feature-demo .demo-live-controls button:hover { background: #4b5563; transform: translateY(-1px); }
.feature-demo .demo-live-controls button[aria-pressed="false"]:not(.demo-live-end) { color: #9ca3af; background: #1f2937; }
.feature-demo .demo-live-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-demo .demo-live-controls .demo-live-end { min-width: 118px; padding-inline: 1rem; border-color: #dc2626; border-radius: 999px; background: #dc2626; font-size: .69rem; font-weight: 800; }
.feature-demo .demo-live-app:not(.is-live) .demo-live-controls .demo-live-end { border-color: #059669; background: #059669; }
[dir="rtl"] .feature-demo .demo-live-side-head, [dir="rtl"] .feature-demo .demo-person > div, [dir="rtl"] .feature-demo .demo-chat, [dir="rtl"] .feature-demo .demo-live-head > div > div { direction: rtl; text-align: right; }

/* Whiteboard: the same dark canvas, green active tool and mobile tool dock. */
.feature-demo .demo-board-app { position: relative; display: flex; min-height: 560px; flex-direction: column; color: #e5e7eb; background: #111827; }
.feature-demo .demo-board-livebar { direction: ltr; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .65rem 1rem; border-bottom: 1px solid #374151; background: linear-gradient(90deg, #111827, #1f2937); }
.feature-demo .demo-board-livebar > div { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.feature-demo .demo-board-livebar > div > div { display: grid; min-width: 0; }
.feature-demo .demo-board-livebar h3 { overflow: hidden; margin: 0; color: #fff; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.feature-demo .demo-board-livebar small { color: #9ca3af; font-size: .56rem; }
.feature-demo .demo-board-livebar > span { flex: none; padding: .25rem .5rem; border-radius: 999px; color: #fecaca; background: rgba(239, 68, 68, .14); font-size: .58rem; font-weight: 750; }
[dir="rtl"] .feature-demo .demo-board-livebar > div > div { direction: rtl; text-align: right; }
.feature-demo .wb-toolbar { direction: ltr; display: flex; align-items: center; gap: .28rem; min-height: 50px; padding: .38rem .5rem; border-bottom: 1px solid #374151; background: linear-gradient(180deg, #273043, #1a2130); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.feature-demo .wb-tool-btn, .feature-demo .wb-color { appearance: none; display: grid; width: 38px; height: 38px; flex: none; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; color: #cbd5e1; background: transparent; transition: color .15s, background-color .15s, border-color .15s, transform .15s; }
.feature-demo .wb-tool-btn img { display: block; width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .42)); }
.feature-demo .wb-tool-btn:hover { color: #fff; background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.feature-demo .wb-tool-btn.active, .feature-demo .wb-tool-btn[aria-pressed="true"] { border-color: rgba(255, 255, 255, .18); color: #fff; background: linear-gradient(180deg, #10b981, #059669); box-shadow: 0 2px 8px rgba(5, 150, 105, .5), inset 0 1px 0 rgba(255, 255, 255, .28); }
.feature-demo .wb-color { border-radius: 50%; }
.feature-demo .wb-color i { display: block; width: 18px; height: 18px; border: 2px solid #6b7280; border-radius: 50%; background: var(--swatch); }
.feature-demo .wb-color.active i, .feature-demo .wb-color[aria-pressed="true"] i { border-color: #fff; box-shadow: 0 0 0 2px #059669; }
.feature-demo .wb-divider { width: 1px; height: 25px; flex: none; margin-inline: .2rem; background: rgba(255, 255, 255, .13); }
.feature-demo .wb-page, .feature-demo .wb-zoom { flex: none; padding-inline: .35rem; color: #cbd5e1; font-family: ui-monospace, monospace; font-size: .62rem; }
.feature-demo .wb-secondary { margin-inline-start: auto; }
.feature-demo .demo-board-canvas-wrap { position: relative; display: grid; min-height: 0; flex: 1; overflow: hidden; place-items: stretch; background: #111827; }
.feature-demo .feature-demo-canvas { position: relative; z-index: 1; display: block; width: 100%; height: clamp(360px, 42vw, 520px); touch-action: none; cursor: crosshair; }
.feature-demo .demo-board-hint { position: absolute; z-index: 2; inset-inline-start: 1rem; top: 1rem; padding: .3rem .5rem; border-radius: 7px; color: #9ca3af; background: rgba(17, 24, 39, .72); font-size: .62rem; pointer-events: none; }
.feature-demo .demo-board-controls { position: absolute; z-index: 3; right: 0; bottom: .8rem; left: 0; display: flex; align-items: center; justify-content: center; gap: .55rem; pointer-events: none; }
.feature-demo .demo-board-controls button, .feature-demo .demo-board-controls span { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid #4b5563; border-radius: 999px; color: #fff; background: rgba(31, 41, 55, .92); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.feature-demo .demo-board-controls button { width: 36px; padding: 0; pointer-events: auto; }
.feature-demo .demo-board-controls span { padding: .4rem .75rem; font-size: .62rem; }
.feature-demo .demo-board-controls .danger { border-color: #dc2626; background: #dc2626; font-size: 1rem; }
.feature-demo .demo-board-controls button[aria-pressed="false"] { color: #fecaca; background: #7f1d1d; }
.feature-demo .demo-board-controls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .feature-demo .ch-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-demo .demo-live-shell { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 699px) {
  .feat-card-title { font-size: 1rem; }
  .feat-card-try { margin-top: .48rem; font-size: .63rem; }
  .feature-demo { margin-inline: var(--gutter); border-radius: 16px; }
  .feature-demo-meta { align-items: flex-start; min-height: 62px; padding: .7rem .75rem; }
  .feature-demo-kicker { font-size: .62rem; }
  .feature-demo-privacy { max-width: 29ch; font-size: .65rem; }
  .feature-demo-reset { overflow: hidden; width: 40px; padding-inline: 0; color: transparent; }
  .feature-demo-reset::before { content: "↺"; color: #514b63; font-size: 1.05rem; }
  .feature-demo-reset, .feature-demo-close { min-height: 40px; }
  .feature-demo-app { min-height: 500px; }
  .feature-demo .demo-app-nav { grid-template-columns: minmax(112px, 1fr) auto; gap: .5rem; min-height: 54px; padding: .5rem .65rem; }
  .feature-demo .demo-app-brand img { width: 29px; height: 29px; border-radius: 9px; }
  .feature-demo .demo-app-brand > span { font-size: .8rem; }
  .feature-demo .demo-app-links { display: none; }
  .feature-demo .demo-app-avatar { width: 31px; height: 31px; font-size: .6rem; }
  .feature-demo .demo-app-body { min-height: 446px; padding: .85rem; }
  .feature-demo .demo-page-head { min-height: 52px; margin-bottom: .9rem; }
  .feature-demo .demo-page-head h3 { font-size: 1.18rem; }
  .feature-demo .demo-page-icon { width: 49px; height: 49px; }
  .feature-demo .p-5, .feature-demo .p-6 { padding: .9rem; }
  .feature-demo .demo-quiz-options label { min-height: 46px; padding: .62rem .7rem; }
  .feature-demo .demo-quiz-footer { align-items: stretch; flex-direction: column; gap: .65rem; }
  .feature-demo .demo-progress { width: 100%; }
  .feature-demo .demo-quiz-footer .btn-primary { width: 100%; }
  .feature-demo .demo-submission-head { align-items: flex-start; }
  .feature-demo .demo-review-fields { grid-template-columns: 1fr; gap: .55rem; }
  .feature-demo .demo-review-action { align-items: stretch; flex-direction: column; }
  .feature-demo .demo-review-action .btn-primary { width: 100%; }
  .feature-demo .res-open span:not(.material-symbols-outlined) { display: none; }
  .feature-demo .res-open { padding: 8px; }
  .feature-demo .res-card { gap: 9px; padding: 10px; }
  .feature-demo .res-ic { width: 38px; height: 38px; }
  .feature-demo .res-title { font-size: .75rem; }
  .feature-demo .rp-periods { width: 100%; }
  .feature-demo .rp-period { flex: 1 0 auto; padding-inline: 11px; }
  .feature-demo .rp-tab { padding-inline: .7rem; }
  .feature-demo .ch-pulse-cell { padding: .68rem .7rem; }
  .feature-demo .demo-metric-head { min-height: 38px; }
  .feature-demo .demo-metric-head img { width: 35px; height: 35px; }
  .feature-demo .demo-metric-mark { width: 33px; height: 33px; font-size: 1rem; }
  .feature-demo .ch-label { font-size: .54rem; letter-spacing: .06em; }
  .feature-demo .ch-pulse-num { font-size: 1.3rem; }
  .feature-demo .ch-pulse-delta { font-size: .53rem; }
  .feature-demo .demo-live-app, .feature-demo .demo-live-shell { min-height: 500px; }
  .feature-demo .demo-live-shell { display: block; }
  .feature-demo .demo-live-sidebar { display: none; }
  .feature-demo .demo-live-main { min-height: 500px; }
  .feature-demo .demo-live-head { min-height: 54px; padding: .55rem .7rem; }
  .feature-demo .demo-live-stage { padding: .5rem; }
  .feature-demo .demo-video-primary { min-height: 290px; }
  .feature-demo .demo-live-filmstrip > div { min-height: 68px; }
  .feature-demo .demo-live-controls { min-height: 64px; gap: .42rem; padding-inline: .45rem; }
  .feature-demo .demo-live-controls button { min-width: 42px; min-height: 42px; }
  .feature-demo .demo-live-controls .demo-live-end { min-width: 100px; padding-inline: .7rem; }
  .feature-demo .demo-board-app { min-height: 550px; }
  .feature-demo .demo-board-livebar { min-height: 54px; padding: .55rem .7rem; }
  .feature-demo .demo-board-livebar > span { font-size: .52rem; }
  .feature-demo .wb-toolbar { position: absolute; z-index: 5; inset-inline-start: 8px; top: 66px; display: flex; width: auto; max-height: 76%; padding: 6px; flex-direction: column; overflow-x: hidden; overflow-y: auto; border: 1px solid rgba(255, 255, 255, .1); border-radius: 15px; background: rgba(28, 35, 50, .94); box-shadow: 0 14px 36px rgba(0, 0, 0, .55); backdrop-filter: blur(8px); scrollbar-width: none; }
  .feature-demo .wb-toolbar::-webkit-scrollbar { display: none; }
  .feature-demo .wb-tool-btn, .feature-demo .wb-color { width: 42px; height: 40px; }
  .feature-demo .wb-divider { width: 28px; height: 1px; margin: 3px auto; }
  .feature-demo .wb-page, .feature-demo .wb-zoom { display: none; }
  .feature-demo .wb-secondary { margin-inline-start: 0; }
  .feature-demo .feature-demo-canvas { height: 496px; }
  .feature-demo .demo-board-hint { inset-inline-start: 62px; }
}

@media (max-width: 390px) {
  .feature-demo-head-actions { gap: .3rem; }
  .feature-demo .demo-app-body { padding: .7rem; }
  .feature-demo .demo-question-head { font-size: .82rem; }
  .feature-demo .demo-submission-head { flex-direction: column; }
  .feature-demo .demo-submission-head > div:last-child { justify-content: flex-start; }
  .feature-demo .res-desc { max-width: 155px; }
  .feature-demo .demo-live-filmstrip > div:nth-child(3) { display: none; }
  .feature-demo .demo-live-filmstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-demo .demo-live-controls .demo-live-end { min-width: 88px; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-demo, .feature-demo-scene.is-active, .feature-demo .demo-live-app.is-live .demo-live-dot { animation: none; }
  .feat-card-try > span, .feature-demo *, .feature-demo *::before, .feature-demo *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
