/* sarano.ch — static landing page. No external requests. */
:root {
  --green: #1B4332;
  --green-700: #163828;
  --green-600: #2D6A4F;
  --green-50: #E8F0EC;
  --green-25: #F2F7F4;
  --ink: #111814;
  --text: #172B4D;
  --muted: #4B5563;
  --subtle: #6B7280;
  --line: #E5E7EB;
  --bg: #F8F9FB;
  --white: #FFFFFF;
  --amber: #B45309;
  --amber-50: #FEF3C7;
  --red: #B91C1C;
  --red-50: #FEE2E2;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 20, .04), 0 8px 24px -12px rgba(17, 24, 20, .12);
  --shadow-lg: 0 2px 4px rgba(17, 24, 20, .04), 0 24px 48px -20px rgba(27, 67, 50, .28);
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-700); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #CBD5CF; background: var(--green-25); color: var(--ink); }
.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--green-50); color: var(--green); }
.btn--outline-light { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.lbl-short { display: none; }
.btn svg { width: 16px; height: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: 12px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang-switch a, .lang-switch span[aria-current] {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 6px; text-decoration: none;
}
.lang-switch a { color: var(--subtle); }
.lang-switch a:hover { color: var(--ink); background: var(--bg); }
.lang-switch span[aria-current] { color: var(--green); background: var(--green-50); }
.lang-switch .sep { color: var(--line); }
.link-login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 0 6px; }
.link-login:hover { color: var(--green); }

/* Hero */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; background:
  radial-gradient(900px 480px at 85% 10%, var(--green-50), transparent 70%),
  linear-gradient(180deg, var(--white), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; margin-bottom: 24px;
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.badge .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green-50); display: grid; place-items: center; }
.badge .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-sub { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--subtle); }
.hero-note a { font-weight: 600; }

/* Mock-ups */
.mock-stage { position: relative; padding: 0 0 150px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mock-main { position: relative; padding: 22px; box-shadow: var(--shadow-lg); border-radius: 12px; }
.mock-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mock-title strong { color: var(--ink); font-size: .98rem; }
.mock-title small { display: block; color: var(--subtle); font-size: .78rem; font-weight: 500; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.pill--green { background: var(--green-50); color: var(--green); }
.pill--amber { background: var(--amber-50); color: var(--amber); }
.pill--red { background: var(--red-50); color: var(--red); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kpi span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; color: var(--subtle); font-weight: 500; }
.kpi b { display: block; white-space: nowrap; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
.progress-block { margin-top: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.bar i { display: block; height: 100%; }
.bar .b1 { background: var(--green); }
.bar .b2 { background: #74A98E; }
.bar .b3 { background: #E0A43A; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: .72rem; color: var(--subtle); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.legend .l1::before { background: var(--green); }
.legend .l2::before { background: #74A98E; }
.legend .l3::before { background: #E0A43A; }
.spark { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.spark-label { font-size: .75rem; color: var(--subtle); margin-bottom: 8px; }
.spark-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.spark-bars i { flex: 1; background: var(--green-50); border-radius: 3px 3px 0 0; }
.spark-bars i.on { background: var(--green); }

.mock-float { position: absolute; padding: 14px 16px; width: 260px; }
.mock-quiz { right: -20px; bottom: -36px; }
.mock-attn { left: -32px; bottom: -4px; width: 236px; }
.quiz-q { font-size: .82rem; color: var(--ink); font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.opt { display: flex; align-items: center; gap: 8px; font-size: .78rem; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; color: var(--muted); }
.opt::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #CBD5CF; flex-shrink: 0; }
.opt.ok { border-color: #9FC2B0; background: var(--green-25); color: var(--green); font-weight: 600; }
.opt.ok::before { border-color: var(--green); background: radial-gradient(circle, var(--green) 45%, transparent 50%); }
.feedback { margin-top: 10px; font-size: .74rem; color: var(--green); display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.feedback svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.attn-head { font-size: .78rem; font-weight: 650; color: var(--ink); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.attn-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.attn-row:first-of-type { border-top: 0; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: .62rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.attn-row .pill { margin-left: auto; }

/* Value points */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value .icon, .feature .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--green-50); color: var(--green);
  display: grid; place-items: center; margin-bottom: 16px;
}
.value .icon svg, .feature .icon svg { width: 20px; height: 20px; }
.value p, .feature p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 700; font-size: .9rem; margin-bottom: 18px;
}
.step p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.step-visual { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.file-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding: 6px 0; }
.file-ico { width: 26px; height: 30px; border-radius: 4px; background: var(--green-50); color: var(--green); font-size: .55rem; font-weight: 800; display: grid; place-items: end center; padding-bottom: 4px; flex-shrink: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.chip--on { background: var(--green); border-color: var(--green); color: var(--white); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-stats div { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.mini-stats span { display: block; font-size: .68rem; color: var(--subtle); }
.mini-stats b { font-size: 1rem; color: var(--ink); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; transition: border-color .15s ease, transform .15s ease; }
.feature:hover { border-color: #CBD5CF; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.feature li { position: relative; padding-left: 20px; margin-top: 6px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 5px; border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(-45deg); }

/* Dialogue showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-copy p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-top: 12px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-50); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 6px); width: 8px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.chat { padding: 20px; box-shadow: var(--shadow-lg); border-radius: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 30px; height: 30px; background: var(--green); color: var(--white); font-size: .72rem; }
.chat-head strong { font-size: .9rem; color: var(--ink); display: block; line-height: 1.2; }
.chat-head small { font-size: .75rem; color: var(--subtle); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.45; margin-top: 10px; }
.msg--bot { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-top-left-radius: 4px; }
.msg--me { background: var(--green); color: var(--white); margin-left: auto; border-top-right-radius: 4px; }
.chat-foot { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: .75rem; color: var(--subtle); }

/* Trust */
.trust { background: var(--green); color: #D6E5DC; }
.trust h2 { color: var(--white); }
.trust .eyebrow { color: #9FC2B0; }
.trust .section-head p { color: #C3D8CB; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.trust-item { background: var(--green); padding: 28px; }
.trust-item .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--white); display: grid; place-items: center; margin-bottom: 16px; }
.trust-item .icon svg { width: 20px; height: 20px; }
.trust-item h3 { color: var(--white); }
.trust-item p { margin-top: 8px; font-size: .95rem; color: #C3D8CB; }

/* CTA band */
.cta-band { padding: 96px 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 20px; padding: 64px 56px;
  background: var(--ink); color: #C9D4CE;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-box::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid rgba(116,169,142,.10); pointer-events: none;
}
.cta-box h2 { color: var(--white); }
.cta-box p { margin-top: 14px; font-size: 1.08rem; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 48px 0 40px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--subtle); font-size: .85rem; }

/* Legal page */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 40px; }
.legal p, .legal address { margin-top: 12px; color: var(--text); font-style: normal; }
.placeholder { background: var(--amber-50); color: var(--amber); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 56px; }
  .hero-grid > :first-child { max-width: 640px; }
  .mock-stage { max-width: 560px; margin: 0 auto; width: 100%; }
  .mock-quiz { right: -8px; }
  .mock-attn { left: -8px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 48px 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section, .cta-band { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .section-head { margin-bottom: 36px; }
  .values, .features, .trust-grid { grid-template-columns: 1fr; }
  .link-login { display: none; }
  .header-actions .btn { padding: 0 14px; font-size: .88rem; }
  .header-inner { gap: 12px; }
  .brand img { height: 24px; }
  .mock-stage { padding: 0; }
  .mock-float { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin-top: 12px; }
  .kpi b { font-size: 1.05rem; }
  .cta-box { padding: 40px 22px; border-radius: 16px; }
  .hero-ctas .btn, .cta-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .lbl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lbl-short { display: inline; }
  .lang-switch a, .lang-switch span[aria-current] { padding: 0 6px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 0 10px; font-size: .82rem; }
  .brand img { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.cta-logo { height: 26px; width: auto; margin-bottom: 28px; }

/* Mock-up proportions (kept out of inline styles for the CSP). */
.bar .b1 { width: 65%; }
.bar .b2 { width: 23%; }
.bar .b3 { width: 12%; }
.spark-bars .h1 { height: 30%; }
.spark-bars .h2 { height: 45%; }
.spark-bars .h3 { height: 38%; }
.spark-bars .h4 { height: 62%; }
.spark-bars .h5 { height: 55%; }
.spark-bars .h6 { height: 78%; }
.spark-bars .h7 { height: 92%; }

/* ---------- Try it: interactive examples (assets/demo.js) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section--line { border-top: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }

.try-tabs {
  display: flex; gap: 4px; margin: 0 auto 32px; padding: 4px; width: max-content; max-width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto;
}
.try-tabs[hidden] { display: none; }
.try-tabs [role="tab"] {
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); background: transparent;
  border: 0; border-radius: 7px; min-height: 40px; padding: 0 16px; cursor: pointer; white-space: nowrap;
}
.try-tabs [role="tab"]:hover { color: var(--ink); }
.try-tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--green); box-shadow: 0 1px 2px rgba(17,24,20,.08), 0 0 0 1px var(--line); }

.try-panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1000px; margin: 0 auto; }
.try-panel[hidden] { display: none; }
.try-panel + .try-panel { margin-top: 48px; }
.demo-ready .try-panel + .try-panel { margin-top: 0; }
.try-intro { padding-top: 8px; }
.try-intro h3 { font-size: 1.35rem; margin-top: 14px; }
.try-intro p { margin-top: 10px; color: var(--muted); }
.demo { padding: 24px; box-shadow: var(--shadow-lg); border-radius: 12px; min-height: 420px; min-width: 0; }
.demo-nojs { color: var(--subtle); font-size: .95rem; }
.demo h4 { margin: 0; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.demo [tabindex="-1"]:focus { outline: none; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-actions--center { justify-content: center; }

/* Quiz */
.q-count { font-size: .8rem; font-weight: 600; color: var(--subtle); }
.q-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 20px; }
.q-progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .4s ease; }
.q-progress--slow i { transition: width 2s linear; }
.q-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-text { padding: 0; font-size: 1.05rem; font-weight: 650; color: var(--ink); line-height: 1.4; }
.q-hint { font-size: .82rem; color: var(--subtle); margin-top: 4px; }
.q-opt {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; color: var(--text); background: var(--white);
  transition: border-color .15s ease, background-color .15s ease;
}
.q-opt:hover { border-color: #CBD5CF; }
.q-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.q-opt:has(input:checked) { border-color: var(--green); background: var(--green-25); }
.q-opt:has(input:focus-visible) { outline: 3px solid var(--green-600); outline-offset: 2px; }
.q-opt:has(input:disabled) { cursor: default; }
.q-opt.is-correct { border-color: #74A98E; background: var(--green-25); color: var(--green); font-weight: 600; }
.q-opt.is-wrong { border-color: #F2B8B8; background: #FEF5F5; color: var(--red); }
.q-feedback:empty { display: none; }
.q-feedback { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: .9rem; line-height: 1.5; }
.q-feedback.is-ok { background: var(--green-50); color: var(--green); }
.q-feedback.is-bad { background: var(--amber-50); color: #92400E; }
.q-result { text-align: center; padding: 24px 0 8px; }
.q-ring {
  --p: 0; width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--green-50) 0);
}
.q-ring span { width: 94px; height: 94px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.q-result-score { margin-top: 6px; font-weight: 600; color: var(--text); }
.q-result-msg { margin-top: 4px; color: var(--muted); }

/* Dialogue */
.demo--chat { display: flex; flex-direction: column; }
.demo--chat .chat-head small { display: block; }
.chat-log { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; padding: 2px 2px 6px; }
.chat-log .msg { max-width: 88%; animation: msg-in .25s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg--typing { display: inline-flex; gap: 4px; align-items: center; width: max-content; padding: 12px 14px; }
.msg--typing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); animation: blink 1s infinite ease-in-out; }
.msg--typing .dot:nth-child(3) { animation-delay: .15s; }
.msg--typing .dot:nth-child(4) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-choices { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.chat-prompt { font-size: .8rem; font-weight: 600; color: var(--subtle); margin-bottom: 8px; }
.chat-options { display: grid; gap: 8px; }
.chat-choice {
  font: inherit; font-size: .9rem; text-align: left; line-height: 1.45; color: var(--ink); cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.chat-choice:hover { border-color: var(--green); background: var(--green-25); }
.chat-feedback { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); }
.fb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-level { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.fb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.fb-cols > :only-child { grid-column: 1 / -1; }
.fb-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fb-good .fb-label { color: var(--green); }
.fb-try .fb-label { color: var(--amber); }
.fb-block ul { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; color: var(--text); }
.fb-block li { margin-top: 4px; }

/* Analytics */
.demo--analytics { position: relative; }
.an-top strong { color: var(--ink); }
.an-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.seg-btn { font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 6px; min-height: 32px; padding: 0 12px; cursor: pointer; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--white); color: var(--green); box-shadow: 0 0 0 1px var(--line); }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bar i.anim { transition: width .6s ease; }
.spark-bars i.anim { transition: height .6s ease, background-color .3s ease; height: 0; }
.an-attn { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.an-attn .btn { margin-top: 10px; }
.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); font-size: .85rem; font-weight: 500; padding: 10px 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: max-content; max-width: calc(100% - 32px); text-align: center; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Document to exercises */
.doc-prompt { font-size: .9rem; font-weight: 600; color: var(--subtle); margin-bottom: 12px; }
.doc-list { display: grid; gap: 10px; }
.doc-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease;
}
.doc-btn:hover { border-color: var(--green); background: var(--green-25); }
.doc-txt { display: flex; flex-direction: column; min-width: 0; }
.doc-txt strong { color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.doc-txt small { color: var(--subtle); font-size: .8rem; }
.doc-analyse { padding-top: 40px; max-width: 360px; margin: 0 auto; }
.doc-status { margin-top: 18px; font-weight: 650; color: var(--ink); }
.doc-analyse .q-progress { margin: 10px 0 8px; }
.doc-step { font-size: .85rem; color: var(--subtle); }
.doc-done p { color: var(--subtle); font-size: .85rem; margin-top: 2px; overflow-wrap: anywhere; }
.doc-items { list-style: none; margin: 16px 0 0; padding: 0; }
.doc-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); animation: msg-in .3s ease both; }
.doc-item:nth-child(2) { animation-delay: .08s; }
.doc-item:nth-child(3) { animation-delay: .16s; }
.doc-item:nth-child(4) { animation-delay: .24s; }
.doc-item .chip { flex-shrink: 0; min-width: 124px; text-align: center; background: var(--green-50); border-color: var(--green-50); color: var(--green); }
.doc-note { margin-top: 10px; font-size: .82rem; color: var(--subtle); }

@media (max-width: 960px) {
  .try-panel { grid-template-columns: 1fr; gap: 20px; max-width: 640px; }
  .try-tabs { width: 100%; }
  .try-tabs [role="tab"] { flex: 1 0 auto; }
}
@media (max-width: 640px) {
  .demo { padding: 18px 16px; min-height: 0; }
  .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-cols { grid-template-columns: 1fr; }
  .doc-item { flex-direction: column; gap: 6px; }
  .doc-item .chip { min-width: 0; }
  .try-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .try-tabs [role="tab"] { padding: 6px 10px; font-size: .85rem; white-space: normal; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .q-progress i, .bar i.anim, .spark-bars i.anim, .toast { transition: none !important; }
  .chat-log .msg, .doc-item, .msg--typing .dot { animation: none !important; }
}
