@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Layout idea: an exam sheet. One working column, a narrow rail for the clock and notes. */
  --bg: #f1f5f4;
  --surface: #ffffff;
  --ink: #12211f;
  --muted: #586a67;
  --line: #d3dcd9;
  --accent: #0d5f5c;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe9;
  --good: #1c7a4b;
  --good-soft: #e0f1e7;
  --warn: #9a6100;
  --warn-soft: #f8ecd2;
  --bad: #b2362b;
  --bad-soft: #f9e2df;
  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1615;
    --surface: #162120;
    --ink: #e5eeec;
    --muted: #9bafab;
    --line: #2a3b38;
    --accent: #62c6bf;
    --accent-ink: #062120;
    --accent-soft: #1b3432;
    --good: #67c492;
    --good-soft: #17301f;
    --warn: #e2ab4f;
    --warn-soft: #33270f;
    --bad: #f0877b;
    --bad-soft: #3a1b18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1615;
  --surface: #162120;
  --ink: #e5eeec;
  --muted: #9bafab;
  --line: #2a3b38;
  --accent: #62c6bf;
  --accent-ink: #062120;
  --accent-soft: #1b3432;
  --good: #67c492;
  --good-soft: #17301f;
  --warn: #e2ab4f;
  --warn-soft: #33270f;
  --bad: #f0877b;
  --bad-soft: #3a1b18;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, textarea, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.de { direction: ltr; unicode-bidi: isolate; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.brand-mark { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; background: var(--accent); color: var(--accent-ink); padding: 2px 7px; border-radius: 3px; letter-spacing: 0.04em; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.langs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.langs button { background: var(--surface); border: 0; border-inline-start: 1px solid var(--line); padding: 6px 12px; min-width: 44px; cursor: pointer; font-size: 0.875rem; font-weight: 500; }
.langs button:first-child { border-inline-start: 0; }
.langs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

main.wrap { padding-block: 28px 48px; display: flex; flex-direction: column; gap: 28px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; padding-block: 16px 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 9px 16px; cursor: pointer; font-weight: 500; min-height: 42px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.quiet { border-color: transparent; background: none; color: var(--muted); padding-inline: 8px; }
.btn.quiet:hover { color: var(--ink); }
.btn.armed { background: var(--warn-soft); border-color: var(--warn); color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Home */
.hero { display: flex; flex-direction: column; gap: 10px; }
.lead { color: var(--muted); max-width: 65ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
.steps li { padding: 14px 16px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.steps li:first-child { border-inline-start: 0; }
.step-no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.step-d { color: var(--muted); font-size: 0.875rem; }
.banner { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 0.9375rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 13px; cursor: pointer; font-size: 0.875rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.library { display: flex; flex-direction: column; gap: 14px; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.case { width: 100%; height: 100%; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.case:hover { border-color: var(--accent); }
.case-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.case-no { font-family: var(--font-mono); font-weight: 500; }
.case-title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; text-align: start; }
.case-meta { font-size: 0.875rem; color: var(--muted); }
.case-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); }
.dots i.on { background: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pass { color: var(--good); background: var(--good-soft); }
.pill.border { color: var(--warn); background: var(--warn-soft); }
.pill.fail { color: var(--bad); background: var(--bad-soft); }
.pill.neutral { color: var(--muted); background: var(--bg); border-color: var(--line); }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.intro-case { max-width: 640px; }
.scene { font-size: 1.0625rem; }
.scene strong { font-family: var(--font-display); }
.rules { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 0.9375rem; }
.rules li { padding-inline-start: 16px; position: relative; }
.rules li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 6px; height: 1px; background: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }

/* Exam */
.exam { display: flex; flex-direction: column; gap: 16px; }
.exam-head { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stepper { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; flex: 1 1 420px; }
.stepper li { flex: 1; padding: 8px 12px; border-inline-start: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); display: flex; flex-direction: column; }
.stepper li:first-child { border-inline-start: 0; }
.stepper li b { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; }
.stepper li.now { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.stepper li.done { color: var(--good); }
.timer { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 6px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 128px; }
.timer-label { font-size: 0.75rem; color: var(--muted); }
.timer-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; }
.timer.warn { border-color: var(--warn); background: var(--warn-soft); }
.timer.over { border-color: var(--bad); background: var(--bad-soft); }
.timer.over .timer-val { color: var(--bad); }
.exam-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.work { min-width: 0; }
.hint { color: var(--muted); font-size: 0.9375rem; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 240px; max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.msg .who { font-size: 0.75rem; color: var(--muted); }
.msg .bubble { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--accent-soft); border-color: transparent; }
.msg.them { align-self: flex-start; }
.msg.them .bubble { background: var(--bg); }
.msg.pending .bubble { color: var(--muted); }
.dict-partial { min-height: 1.25em; color: var(--muted); font-style: italic; font-size: 0.9375rem; direction: ltr; text-align: start; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; resize: vertical; }
textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; line-height: 1.5; }
textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.btn.mic.on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.note { border-inline-start: 3px solid var(--warn); background: var(--warn-soft); padding: 8px 12px; font-size: 0.9375rem; border-radius: 0 var(--radius) var(--radius) 0; }
.rail { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.rail label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.rail textarea { min-height: 260px; font-size: 0.9375rem; resize: vertical; }
.letter { min-height: 440px; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 400; direction: ltr; text-align: left; }
.count { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.exam-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Evaluating */
.waiting { align-items: center; text-align: center; padding-block: 48px; }
.pulse { display: flex; gap: 6px; }
.pulse i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite ease-in-out; }
.pulse i:nth-child(2) { animation-delay: 0.2s; }
.pulse i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse i { animation: none; opacity: 0.7; } }

/* Report */
.report { display: flex; flex-direction: column; gap: 20px; }
.report-head { display: flex; flex-direction: column; gap: 12px; }
.report-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.score { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.score-label { font-size: 0.8125rem; color: var(--muted); }
.score-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.score-val small { font-size: 0.8125rem; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--muted); }
.score.pass .bar i { background: var(--good); }
.score.border .bar i { background: var(--warn); }
.score.fail .bar i { background: var(--bad); }
.small { font-size: 0.8125rem; color: var(--muted); }
.sec-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-top: 6px; }
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mark { width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; }
.item.missed { border-inline-start: 4px solid var(--bad); }
.item.missed .mark { background: var(--bad-soft); color: var(--bad); }
.item.partial { border-inline-start: 4px solid var(--warn); }
.item.partial .mark { background: var(--warn-soft); color: var(--warn); }
.item.asked .mark { background: var(--good-soft); color: var(--good); }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-label { font-weight: 500; }
.ask { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 0.9375rem; color: var(--muted); }
.ask q { quotes: "„" "“"; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.say { border: 1px solid var(--line); background: none; border-radius: 4px; padding: 1px 8px; font-size: 0.75rem; cursor: pointer; color: var(--muted); }
.say:hover { color: var(--accent); border-color: var(--accent); }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
details > .inner { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.fix { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px; display: grid; gap: 6px; }
.fix-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.fix-tag { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.fix .old { color: var(--bad); direction: ltr; unicode-bidi: isolate; text-align: start; }
.fix .new { color: var(--good); font-weight: 500; direction: ltr; unicode-bidi: isolate; text-align: start; }
.fix .why { color: var(--muted); font-size: 0.9375rem; }
.plain { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 18px; list-style: disc; }
.plain.de { padding-inline-start: 18px; }
.pairs { width: 100%; border-collapse: collapse; direction: ltr; font-size: 0.9375rem; }
.pairs td { border-top: 1px solid var(--line); padding: 6px 8px 6px 0; vertical-align: top; text-align: left; }
.pairs td:first-child { color: var(--muted); width: 48%; }
.block { display: flex; flex-direction: column; gap: 10px; }
.manual .item { cursor: pointer; }
.manual .item input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }


/* ---------- site chrome ---------- */
.brand { text-decoration: none; color: inherit; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
.nav a, .nav button { background: none; border: 0; padding: 6px 10px; border-radius: var(--radius); cursor: pointer; text-decoration: none; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.nav a:hover, .nav button:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav a.cta { background: var(--accent); color: var(--accent-ink); }
.foot .wrap { display: flex; flex-direction: column; gap: 8px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.narrow { max-width: 480px; width: 100%; margin-inline: auto; }
.banner.info { border-color: var(--accent); background: var(--accent-soft); }
.banner.ok { border-color: var(--good); background: var(--good-soft); }
.banner.bad { border-color: var(--bad); background: var(--bad-soft); }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .legend { font-size: 0.875rem; font-weight: 600; }
.field small { color: var(--muted); font-size: 0.8125rem; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; }
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--surface); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.option b { display: block; font-weight: 600; }
.option span span { color: var(--muted); font-size: 0.875rem; }
.check.top { align-items: flex-start; }
.check.top input { margin-top: 3px; flex: none; }
.form-msg { font-size: 0.9375rem; border-inline-start: 3px solid var(--bad); background: var(--bad-soft); padding: 8px 12px; border-radius: 0 var(--radius) var(--radius) 0; }
.form-msg.ok { border-color: var(--good); background: var(--good-soft); }
.alt { color: var(--muted); font-size: 0.9375rem; }

/* ---------- landing ---------- */
.landing { display: flex; flex-direction: column; gap: 44px; }
.landing-hero { display: flex; flex-direction: column; gap: 14px; padding-block: 16px 4px; }
.landing-hero h1 { font-size: 2.25rem; max-width: 20ch; }
.landing-hero .lead { font-size: 1.0625rem; }
.section { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.partlist { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; font-size: 0.9375rem; }
.partlist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.partlist li span:first-child { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); padding-top: 3px; }
.ticks { display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-inline-start: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--good); font-weight: 700; }
.faq details > p { padding: 0 14px 14px; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 8px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.price { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 500; direction: ltr; text-align: start; }
.per { color: var(--muted); font-size: 0.8125rem; }

/* ---------- exam additions ---------- */
.stepper li.now span { display: block; }
.materials { font-size: 0.9375rem; }
.materials .inner { gap: 8px; }
.materials dl { margin: 0; display: flex; flex-direction: column; gap: 8px; direction: ltr; text-align: left; }
.materials dt { font-weight: 600; font-size: 0.8125rem; color: var(--muted); }
.materials dd { margin: 0; }
.task { border-inline-start: 3px solid var(--accent); padding: 8px 12px; background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.task b { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.mono { min-height: 260px; direction: ltr; text-align: left; }
.speech-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.terms-list { display: flex; flex-direction: column; gap: 10px; counter-reset: t; }
.terms-list li { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 10px; align-items: center; }
.terms-list label { font-weight: 600; direction: ltr; unicode-bidi: isolate; text-align: start; overflow-wrap: anywhere; }
.terms-list input { direction: ltr; text-align: left; }
.btn.mic.busy { opacity: 0.7; }
.tc { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tc th { text-align: start; font-size: 0.75rem; color: var(--muted); font-weight: 600; padding: 6px 8px; }
.tc td { border-top: 1px solid var(--line); padding: 8px; vertical-align: top; overflow-wrap: anywhere; }
.tc td.de { direction: ltr; text-align: left; }
.tc .st { font-family: var(--font-mono); font-weight: 500; width: 28px; }
.tc .ok .st { color: var(--good); } .tc .partial .st { color: var(--warn); } .tc .wrong .st { color: var(--bad); }
.tc-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scores { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- history and account ---------- */
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.hist a:hover { border-color: var(--accent); }
.hist .when { color: var(--muted); font-size: 0.8125rem; }
.hist .ttl { font-family: var(--font-display); font-weight: 600; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.legal { max-width: 70ch; display: flex; flex-direction: column; gap: 12px; }
.legal h2 { margin-top: 10px; }
.legal mark { background: var(--warn-soft); color: inherit; padding: 0 3px; }
.case-sub { font-size: 0.875rem; color: var(--muted); text-align: start; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 760px) {
  h1 { font-size: 1.4rem; }
  .landing-hero h1 { font-size: 1.7rem; }
  .wrap { padding-inline: 14px; }
  .top .wrap { gap: 8px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; flex-wrap: nowrap; }
  .nav a, .nav button { white-space: nowrap; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .exam-body { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail textarea { min-height: 110px; }
  .msg { max-width: 94%; }
  .composer { flex-wrap: wrap; }
  .composer textarea { flex-basis: 100%; }
  .composer .btn { flex: 1; }
  .fix-row { grid-template-columns: 1fr; gap: 2px; }
  .stepper li { flex: 0 0 34px; padding: 8px 4px; align-items: center; justify-content: center; }
  .stepper li b, .stepper li span { display: none; }
  .stepper li .idx { display: block; }
  .stepper li.now { flex: 1 1 auto; min-width: 0; align-items: flex-start; padding-inline: 10px; }
  .stepper li.now .idx { display: none; }
  .stepper li.now b { display: block; }
  .stepper li.now span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .tc thead { display: none; }
  .tc tr { display: grid; grid-template-columns: 28px minmax(0, 1fr); border-top: 1px solid var(--line); padding: 8px 4px; }
  .tc tr:first-child { border-top: 0; }
  .tc td { border: 0; padding: 2px 8px; grid-column: 2; }
  .tc td.st { grid-column: 1; grid-row: 1 / span 3; }
  .tc td.term { font-weight: 600; }
  .tc td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.8125rem; }
  .exam-head { flex-wrap: nowrap; }
  .stepper { flex: 1 1 auto; min-width: 0; }
  .timer { min-width: 96px; padding: 4px 10px; }
  .timer-val { font-size: 1.25rem; }
  .terms-list li { grid-template-columns: 1fr; gap: 4px; }
  .chat { max-height: 46vh; min-height: 200px; }
  .letter { min-height: 360px; }
  .exam-foot .btn { flex: 1; }
  .panel { padding: 14px; }
}

a.btn { text-decoration: none; color: var(--ink); }
a.btn.primary { color: var(--accent-ink); }
a.btn.quiet { color: var(--muted); }
a.case { text-decoration: none; color: inherit; }
.hero .partlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.work > h2 { font-size: 1.125rem; }
.stepper .idx { display: none; font-style: normal; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; }

/* ---------- motion and illustration ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.88); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { 0% { stroke-dashoffset: 100; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(178, 54, 43, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(178, 54, 43, 0); } }
@keyframes tickline { 0%, 8% { stroke-dashoffset: 1; } 38%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

.enter > * { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.enter > *:nth-child(2) { animation-delay: 0.07s; }
.enter > *:nth-child(3) { animation-delay: 0.14s; }
.enter > *:nth-child(n+4) { animation-delay: 0.2s; }
.enter .landing > * { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.enter .landing > *:nth-child(2) { animation-delay: 0.12s; }
.enter .landing > *:nth-child(n+3) { animation-delay: 0.22s; }
.enter .cases li, .enter .hist li { animation: rise 0.4s both; animation-delay: calc(var(--i, 0) * 35ms + 140ms); }
.enter .score { animation: rise 0.45s both; }
.enter .score:nth-child(2) { animation-delay: 0.08s; } .enter .score:nth-child(3) { animation-delay: 0.16s; }
.enter .score:nth-child(4) { animation-delay: 0.24s; } .enter .score:nth-child(5) { animation-delay: 0.32s; }
.enter .report-title .pill { animation: pop 0.4s 0.35s both; }
.enter .bar i { transform-origin: left; animation: grow 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
[dir="rtl"] .enter .bar i { transform-origin: right; }
.msg { animation: rise 0.28s ease both; }

.btn { transition: transform 0.12s, border-color 0.15s, background 0.15s, filter 0.15s; }
.btn:active { transform: scale(0.97); }
.lift, .case, .hist a, .option, .plan { transition: transform 0.18s, box-shadow 0.18s, border-color 0.15s, background 0.15s; }
@media (hover: hover) {
  .lift:hover, .case:hover, .hist a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.45); }
}
.btn.mic.on { animation: ring 1.2s infinite; }

.typing { display: inline-flex; gap: 4px; align-items: center; height: 1.2em; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.ecg { display: block; width: 100%; height: 44px; color: var(--accent); }
.ecg path { stroke-dasharray: 100; animation: draw 3.6s ease-in-out infinite; }

.opt-ico, .card-ico, .demo-ico { display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); transition: background 0.2s, color 0.2s; }
.opt-ico { width: 44px; height: 44px; }
.opt-ico svg { width: 26px; height: 26px; }
.card-ico { width: 52px; height: 52px; }
.card-ico svg { width: 30px; height: 30px; }
.option:has(input:checked) .opt-ico { background: var(--accent); color: var(--accent-ink); animation: pop 0.32s; }
.option { align-items: center; }
.option input { margin-top: 0; }
.step-no.big { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 1rem; }

.landing-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.hero-text .ecg { width: 170px; height: 34px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.45); transition: opacity 0.4s, transform 0.4s; }
.demo.out { opacity: 0; transform: translateY(8px); }
.demo-head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.demo-ico { width: 28px; height: 28px; border-radius: 8px; }
.demo-ico svg { width: 18px; height: 18px; }
.demo-step { margin-inline-start: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.demo-chat { height: 340px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding-top: 10px; }
.demo-chat .msg { max-width: 90%; }
.demo-chat .bubble { font-size: 0.9375rem; padding: 7px 10px; min-height: 2.3em; }
.demo-report { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); display: grid; gap: 6px; font-size: 0.875rem; animation: rise 0.45s both; }
.demo-tag { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.demo-item { display: flex; gap: 8px; align-items: baseline; }
.demo-item i { font-style: normal; font-family: var(--font-mono); font-weight: 500; }
.demo-item.ok i { color: var(--good); } .demo-item.no i { color: var(--bad); }
.demo-fix { direction: ltr; text-align: left; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 6px; }
.demo-fix s { color: var(--bad); } .demo-fix b { color: var(--good); font-weight: 500; }

.auth { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); max-width: 900px; width: 100%; margin-inline: auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.auth .panel { border: 0; border-radius: 0; max-width: none; margin: 0; }
.auth-art { background: var(--accent); color: var(--accent-ink); padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-art .ecg { color: currentColor; height: 56px; opacity: 0.9; }
.auth-art h2 { font-size: 1.5rem; }
.auth-steps { display: grid; gap: 10px; }
.auth-steps li { display: flex; gap: 10px; align-items: center; animation: rise 0.5s 0.35s both; }
.auth-steps li:nth-child(2) { animation-delay: 0.6s; } .auth-steps li:nth-child(3) { animation-delay: 0.85s; }
.auth-steps li span { width: 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8125rem; flex: none; }

.intro-top { display: flex; gap: 16px; align-items: center; }
.waiting-person { position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.waiting-person svg { width: 34px; height: 34px; }
.waiting-person .typing { position: absolute; top: -8px; inset-inline-end: -18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; height: auto; }
.clip { width: 72px; color: var(--accent); }
.clip .l1, .clip .l2, .clip .l3 { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tickline 3.4s infinite; }
.clip .l2 { animation-delay: 0.45s; } .clip .l3 { animation-delay: 0.9s; }
.eval-status { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); min-height: 1.4em; }
.eval-status.swap { animation: rise 0.35s both; }

@media (max-width: 760px) {
  .landing-hero { grid-template-columns: 1fr; gap: 22px; }
  .demo-chat { height: 310px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 16px 18px; gap: 6px; }
  .auth-art .ecg { height: 36px; }
  .auth-art h2 { font-size: 1.0625rem; }
  .auth-steps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .clip .l1, .clip .l2, .clip .l3 { stroke-dashoffset: 0; }
}
.demo-head b { white-space: nowrap; }
.demo-step { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.quota { font-weight: 600; color: var(--accent); }
.plan.off { opacity: 0.55; cursor: default; }
#f-buy h2 { margin-top: 6px; }

/* ---------- more motion ---------- */
@keyframes sheen { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes glow { from { transform: scale(0.92); opacity: 0.55; } to { transform: scale(1.06); opacity: 0.95; } }
@keyframes bars { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes shuffle { 0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate(var(--x, 0), -4px) rotate(0deg); } }
@keyframes drift { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(8deg); } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx, 0), 360px) rotate(var(--rot, 180deg)); opacity: 0; } }

.enter .landing > .section { animation: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%); transform: translateX(-130%); animation: sheen 4.2s ease-in-out 1s infinite; pointer-events: none; }

.demo-wrap { position: relative; }
.demo-wrap .glow { position: absolute; inset: -6% -4%; border-radius: 40%; background: radial-gradient(closest-side, var(--accent-soft), transparent 78%); filter: blur(18px); animation: glow 5s ease-in-out infinite alternate; pointer-events: none; }
.demo { position: relative; }
.demo-chat .msg.typing-now .bubble::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -2px; background: currentColor; animation: caret 0.8s steps(1) infinite; }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(0.35); animation: bars 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 0.12s; } .wave i:nth-child(3) { animation-delay: 0.24s; }
.wave i:nth-child(4) { animation-delay: 0.36s; } .wave i:nth-child(5) { animation-delay: 0.48s; }
.btn.mic .wave { display: none; }
.btn.mic.on svg { display: none; }
.btn.mic.on .wave { display: inline-flex; }

.how-art { height: 56px; display: flex; align-items: center; color: var(--accent); }
.how-art .wave { height: 34px; gap: 5px; }
.how-art .wave i { width: 5px; }
.how-art .clip { width: 40px; }
.how-n { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.mini-cards { position: relative; width: 64px; height: 44px; display: block; }
.mini-cards i { position: absolute; inset-block-start: 4px; width: 34px; height: 40px; border-radius: 5px; border: 2px solid var(--accent); background: var(--surface); animation: shuffle 2.8s ease-in-out infinite; }
.mini-cards i:nth-child(1) { left: 0; --r: -8deg; --x: -3px; }
.mini-cards i:nth-child(2) { left: 14px; --r: 0deg; --x: 0px; animation-delay: 0.25s; background: var(--accent-soft); }
.mini-cards i:nth-child(3) { left: 28px; --r: 8deg; --x: 3px; animation-delay: 0.5s; }

.auth-art { position: relative; overflow: hidden; }
.auth-art > *:not(.float) { position: relative; }
.float { position: absolute; opacity: 0.16; animation: drift 7s ease-in-out infinite alternate; }
.float svg { display: block; width: 100%; height: 100%; }
.float.f1 { width: 88px; height: 88px; top: 6%; inset-inline-end: 6%; }
.float.f2 { width: 64px; height: 64px; bottom: 8%; inset-inline-end: 22%; animation-duration: 9s; animation-delay: -3s; }

.timebar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: -8px; }
.timebar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear, background 0.4s; }
.timebar.warn i { background: var(--warn); }
.timebar.over i { background: var(--bad); }
.timer.last .timer-val { animation: beat 1s ease-in-out infinite; }

.progress { display: grid; gap: 6px; font-size: 0.875rem; color: var(--muted); max-width: 360px; }
.progress .bar i { background: var(--accent); }

.report-head { position: relative; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti i { position: absolute; top: -6px; width: 8px; height: 12px; border-radius: 2px; animation: fall 2.4s cubic-bezier(0.3, 0.6, 0.6, 1) forwards; }

@media (max-width: 760px) {
  .float.f1 { width: 56px; height: 56px; top: 10%; }
  .float.f2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- footer: information, legal pages and the withdrawal button ---------- */
.foot-row { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-links { row-gap: 6px; }
.withdraw-btn { display: inline-flex; align-items: center; border: 1.5px solid var(--accent); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.withdraw-btn:hover, .withdraw-btn:focus-visible { background: var(--accent); color: var(--accent-ink); }

/* ---------- information pages, legal pages, forms ---------- */
.landing.info { gap: 32px; }
.landing.info .section h1 { max-width: 24ch; }
.chips.static .chip { cursor: default; }
.legal .form-lines { list-style: none; padding-inline-start: 0; gap: 10px; }
.legal .form-lines li { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.legal-note { margin-bottom: 4px; }
.binding { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8125rem; }
.feedback { margin-top: 6px; }
.feedback select, .feedback textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; background: var(--surface); color: inherit; }
.panel > .feedback { margin: 0; border: 0; }
.panel > .feedback > summary { padding-inline: 0; }
.prerender .partlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* ---------- pre-launch review: footer groups, learning pages, keyboard access ---------- */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
#app:focus { outline: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 14px 40px; align-items: start; flex: 1 1 320px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.foot-cols b { color: var(--ink, inherit); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.foot-row { align-items: flex-start; }
@media (max-width: 560px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } }
a.card.learn { text-decoration: none; color: inherit; display: block; }
a.card.learn h3 { color: var(--accent); }
.gl-q { width: 100%; max-width: 420px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); color: inherit; }
.gl-q:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pairs.gl th { text-align: left; font-size: 0.75rem; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; }
.pairs.gl td:first-child { color: inherit; font-weight: 600; width: 42%; }
.pairs.gl td { overflow-wrap: anywhere; }
.phrases { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; }
.phrases li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.phrases li > span { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; }
.phrases q { quotes: none; font-weight: 500; text-align: left; }
.phrases .say { align-self: center; }
.tips { padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.tips h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.tips p { margin: 0; color: var(--muted); max-width: 68ch; }
.tips li::marker { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }

/* ---------- reviews: stars, the form under a report, the section on the start page ---------- */
:root { --star: #d79a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --star: #f0c04a; } }
:root[data-theme="dark"] { --star: #f0c04a; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: 18px; height: 18px; display: inline-flex; flex: none; color: var(--line); }
.stars i svg { width: 100%; height: 100%; fill: currentColor; }
.stars i.on { color: var(--star); }
.stars-in { display: flex; gap: 4px; }
.stars-in .star { width: 46px; height: 46px; padding: 6px; border: 0; background: none; cursor: pointer; color: var(--line); border-radius: 50%; transition: transform 0.12s, color 0.15s; }
.stars-in .star svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.stars-in .star.on { color: var(--star); }
.stars-in .star:hover { transform: scale(1.12); }
.stars-in .star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stars-in .star.pick { animation: starpop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes starpop { 0% { transform: scale(0.4) rotate(-18deg); opacity: 0.3; } 60% { transform: scale(1.25) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes starin { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
@keyframes sentglow { 0% { box-shadow: 0 0 0 0 rgba(28, 122, 75, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(28, 122, 75, 0); } }
.review-box.sent { animation: sentglow 1.2s ease; }
.review-box h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#rv-name { max-width: 320px; }

.rv-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-num { font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2ch; }
.rv-meter { position: relative; }
.rv-meter i { width: 26px; height: 26px; }
.rv-fill { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; width: var(--w); flex-wrap: nowrap; }
.rv-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rv-card { margin: 0; gap: 12px; }
.rv-card blockquote { margin: 0; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.rv-card blockquote::before { content: "“"; }
.rv-card blockquote::after { content: "”"; }
:root[lang="de"] .rv-card blockquote::before { content: "„"; }
:root[lang="de"] .rv-card blockquote::after { content: "“"; }
.rv-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; font-size: 0.9375rem; }
.rv-card figcaption span { color: var(--muted); font-size: 0.8125rem; }
/* The section comes alive when it scrolls into view: the average counts up, its stars fill, the cards rise one after another. */
.reviews.anim .rv-fill { width: 0; }
.reviews.anim.in .rv-fill { width: var(--w); transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.reviews.anim .rv-card { opacity: 0; transform: translateY(22px) scale(0.97); }
.reviews.anim.in .rv-card { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d) * 110ms + 200ms); }
.reviews.anim .stars.pop i.on svg { transform: scale(0); }
.reviews.anim.in .stars.pop i.on svg { animation: starin 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; animation-delay: calc(var(--d) * 110ms + var(--i) * 70ms + 420ms); }
@media (max-width: 760px) {
  .rv-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .rv-track::-webkit-scrollbar { display: none; }
  .rv-card { flex: 0 0 84%; scroll-snap-align: center; }
  .rv-num { font-size: 2.25rem; }
}

/* ---------- admin page ---------- */
.admin { display: flex; flex-direction: column; gap: 18px; }
.admin h2 { font-size: 1.125rem; }
#adm-body { display: flex; flex-direction: column; gap: 20px; }
.adm-tabs .chip { display: inline-flex; align-items: center; gap: 6px; }
.adm-badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: 0.6875rem; padding: 0 6px; font-weight: 600; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.adm-tile { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 4px; animation: rise 0.45s both; animation-delay: calc(var(--i) * 40ms); }
.adm-val { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.adm-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adm-chart { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.adm-bars { display: flex; align-items: flex-end; gap: 2px; height: 84px; border-bottom: 1px solid var(--line); }
.adm-bars i { flex: 1; height: max(3px, var(--h)); background: var(--accent); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: growy 0.5s both; animation-delay: calc(var(--i) * 12ms); }
.adm-bars i.zero { background: var(--line); height: 2px; }
@keyframes growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.adm-t { font-size: 0.875rem; min-width: 620px; }
.adm-two { align-items: start; }
.adm-two .adm-t { min-width: 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; text-align: start; overflow-wrap: anywhere; }
.adm-find input, .adm-find select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; min-height: 42px; font: inherit; color: inherit; }
.adm-find input { flex: 1; min-width: 180px; }
.adm-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.adm-reviews blockquote { margin: 0; overflow-wrap: anywhere; }
.adm-detail h3 { margin-top: 6px; }
.adm-detail code, .admin code { font-family: var(--font-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .adm-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .adm-tile, .adm-bars i, .stars-in .star.pick, .review-box.sent { animation: none; } }
/* On phones the glow behind the demo must not reach past the screen edge, or the page can be pushed sideways. */
@media (max-width: 760px) { .demo-wrap .glow { inset: -6% 0; } }
