.demo-page { max-width: 640px; margin: 0 auto; padding: 28px 16px 40px; }
.demo-page [hidden] { display: none !important; }
.demo-heading { margin-bottom: 24px; }
.demo-heading h1 { font-size: clamp(25px, 5vw, 34px); line-height: 1.2; }
.demo-heading p, .demo-note { color: var(--muted); }
.demo-eyebrow { color: var(--teal-dark); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.demo-page .card { padding: 24px; }
.demo-page h2 { font-size: 22px; margin-bottom: 12px; }
.demo-words { display: grid; gap: 12px; margin: 20px 0; }
.demo-word { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.demo-word strong, .demo-word small, .demo-word span { display: block; overflow-wrap: anywhere; }
.demo-word strong { font-size: 20px; }
.demo-word small { color: var(--muted); margin: 4px 0; }
.demo-word .btn { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.demo-main-cta { width: 100%; margin-top: 12px; min-height: 48px; white-space: normal; }
.demo-prompt { font-size: 30px; font-weight: 800; margin: 18px 0 4px; overflow-wrap: anywhere; }
.demo-options { display: grid; gap: 10px; margin: 20px 0; }
.demo-options .quiz-option { width: 100%; min-height: 52px; white-space: normal; text-align: start; }
.demo-options .quiz-option:disabled { cursor: default; opacity: 1; }
.demo-options .demo-correct { border-color: var(--teal); background: var(--teal-light); }
.demo-options .demo-incorrect { border-color: #e56868; }
.demo-page progress { width: 100%; height: 8px; accent-color: var(--teal); }
.demo-note { font-size: 12px; text-align: center; margin-top: 16px; }
#demo-feedback { min-height: 24px; }
@media (max-width: 480px) { .demo-page .card { padding: 18px; } .demo-word { padding: 12px; } }

.demo-language-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.demo-language-picker label { font-size: 14px; color: var(--muted); }
.demo-language-picker select { width: auto; flex: 1; min-width: 130px; }

/* One visual unit for native spelling, pronunciation and audio. Direction stays semantic. */
.demo-word-focus{margin:22px 0;padding:28px 20px 20px;border:1px solid var(--border);border-radius:20px;background:var(--bg);text-align:center}
.demo-word-focus .demo-prompt{font-size:clamp(30px,7vw,44px);line-height:1.5;margin:0;font-weight:750;text-align:center}
.demo-word-focus .demo-prompt:lang(ary),.demo-word-focus .demo-prompt:lang(ar){font-family:'Noto Naskh Arabic','Noto Sans Arabic',serif;font-size:clamp(38px,9vw,52px);font-weight:600}
.demo-word-focus #demo-transliteration{display:inline-block;max-width:100%;margin:10px 0 0;padding:5px 14px;border-radius:100px;background:var(--teal-light);color:var(--teal-dark);font-size:16px;font-weight:600;text-align:center;overflow-wrap:anywhere}
.demo-word-focus #demo-question-audio{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px auto 0;min-height:44px;border:1px solid var(--border);border-radius:100px;padding:8px 18px;background:var(--surface);font-size:14px}
.demo-page #demo-question{text-align:center;font-size:clamp(20px,5vw,25px);line-height:1.3;margin:20px 0 0}
.demo-page .demo-options .quiz-option{border-radius:14px;padding:16px 18px;font-size:16px;min-height:56px}
@media(max-width:480px){.demo-word-focus{padding:22px 16px 16px;margin:18px 0}.demo-page #demo-question{font-size:21px}}
