/* Дизайн-система — композиція як у лендингу Jarvis, приглушена помаранчева палітра, Inter.
   Mobile-first (база 375px). Шрифт підключено локально, без Google Fonts (GDPR). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  color-scheme: light;
  --canvas: #fdfdfc;
  --surface: #f8f4f0;
  --surface2: #faf8f5;
  --divider: #ebe4dd;
  --border: #d1c6bb;
  --ink: #2a231d;
  --muted: #726964;
  --faded: #a9a9a9;
  --brand: #c8642c;
  --brand-hover: #d6713a;
  --brand-soft: #f7f0ea;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --grad: linear-gradient(120deg, #ad7655 25%, #c1a07e);
  --shadow: 0 1px 2px rgba(33, 53, 71, 0.04), 0 8px 24px rgba(33, 53, 71, 0.06);
  --on-brand: #ffffff;
  --brand-text: var(--brand);
  --brand-soft-border: #e7d9d0;
  --brand-glow: rgba(200, 100, 44, 0.22);
  --blob: linear-gradient(-45deg, #debca2 50%, #e3cfb6 50%);
  --blob-o: 0.19;
  --blob-o-md: 0.27;
  --glass: rgba(253, 253, 252, 0.9);
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --danger-soft: #fee2e2;
  --radius: 14px;
  --sticky-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 16px; } }
input, select, textarea, button { font: inherit; }
input, select, textarea { font-size: 16px; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(24px, 7vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(22px, 6.2vw, 38px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 750; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; }
b, strong { font-weight: 650; }
a { color: var(--brand-text); }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--divider); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.brand-icon svg { width: 20px; height: 20px; }
.brand-name { font-weight: 750; font-size: 16px; line-height: 1.1; }
/* «ШІ» у назві виділено кольором, щоб гра слів «ШІ + школа» читалась одразу */
.wm-ai { color: var(--brand-text); font-weight: 800; letter-spacing: 0.02em; }
.brand-sub { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.nav { display: none; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (min-width: 768px) { .nav { display: flex; } }

/* ---------- Sections ---------- */
section { padding: 56px 0; scroll-margin-top: 64px; }
@media (min-width: 768px) { section { padding: 88px 0; } }
.alt { background: var(--surface); }
.eyebrow { display: block; text-align: center; font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 600px; margin: 12px auto 0; }
.section-head { text-align: center; margin-bottom: 36px; }

/* ---------- Hero ---------- */
.hero { display: none; position: relative; overflow: hidden; text-align: center; padding: 28px 0 48px; }
html[data-v="a"] .hero-a, html[data-v="b"] .hero-b { display: block; }
.hero-blob { position: absolute; left: 50%; top: -40px; width: 520px; height: 420px; transform: translateX(-50%); border-radius: 50%;
  background: var(--blob); filter: blur(80px); opacity: var(--blob-o); pointer-events: none; z-index: 0; }
@media (min-width: 768px) { .hero { padding: 72px 0 88px; } .hero-blob { width: 680px; height: 520px; opacity: var(--blob-o-md); } }
.hero .wrap { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--divider); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; box-shadow: var(--shadow); text-align: left; }
.pill-dot { flex: none; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: var(--on-brand); font-size: 12px; font-weight: 700; }
.hero h1 { max-width: 880px; margin: 0 auto; }
/* Кольорова частина заголовка — з нового рядка, без розриву посеред фрази */
h1 .text-grad, h2 .text-grad { display: block; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; margin: 0; }
.bubble.tutor { background: var(--surface); border: 1px solid var(--divider); border-top-left-radius: 4px; }
.bubble.kid { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-top-right-radius: 4px; }
.bubble.kid b { font-weight: 600; opacity: 0.8; }
.bubble-name { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 16px 18px; text-align: center; white-space: nowrap; font-size: clamp(15px, 4.2vw, 17px) !important; border: 0; border-radius: 12px;
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 28px var(--brand-glow); transition: background-color 150ms ease, transform 100ms ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { background: var(--canvas); color: var(--ink); border: 1px solid var(--border); box-shadow: none; font-weight: 600; min-height: 52px; }
.btn.ghost:hover { background: var(--surface); }
@media (min-width: 640px) { .btn { width: auto; min-height: 56px; padding: 16px 28px; } }
.linklike { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.four { grid-template-columns: 1fr 1fr; } }
.card { background: var(--canvas); border: 1px solid var(--divider); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.muted { background: var(--surface2); box-shadow: none; }
.card.hl { border: 1.5px solid var(--brand); box-shadow: 0 10px 28px var(--brand-glow); }
.card-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card.hl .card-label { color: var(--brand-text); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.check-card { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--border); border-radius: 5px; background: var(--canvas); }

.callout { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-soft-border); text-align: center; font-size: 17px; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-border); text-align: left; }
.foot-note { margin-top: 20px; text-align: center; color: var(--ink); }
.after-demo { margin-top: 20px; color: var(--ink); text-align: left; }

/* Кроки з номерами */
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: var(--on-brand); font-weight: 700; font-size: 15px; display: grid; place-items: center; margin-bottom: 12px; }
.step ul, .ticks { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.step li { position: relative; padding-left: 18px; font-size: inherit; color: var(--ink); }
.step li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* Галочки */
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; margin-top: 1px; }
.tick svg { width: 14px; height: 14px; }
.cross { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }

/* Порівняння */
.vs-quote { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--border); background: var(--canvas); border-radius: 8px; color: var(--muted); font-size: 15px; }
.topic { text-align: center; color: var(--muted); margin-bottom: 20px; }
.badge-row { margin-top: 16px; }

/* Можливості голосу */
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-soft-border); display: grid; place-items: center; font-size: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: 13px; font-weight: 600; }

/* Автор */
.author { display: block; }
.author-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.author-head b { display: block; font-size: 18px; }
.author-sub { display: block; color: var(--muted); font-size: 15px; }
.avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); display: grid; place-items: center; color: var(--on-brand); font-weight: 800; font-size: 22px; flex: none; }


/* Ціна */
.price-box { max-width: 760px; margin: 0 auto; background: var(--canvas); border: 1px solid var(--divider); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.price-row { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--divider); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.price-note .ok { color: var(--success); font-weight: 600; }
@media (min-width: 640px) { .price-row { flex-direction: row; align-items: center; justify-content: space-between; } .price-box { padding: 28px; } }

/* FAQ */
details { border: 1px solid var(--divider); border-radius: var(--radius); background: var(--canvas); margin: 10px 0; }
summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Form ---------- */
.form-card { max-width: 640px; margin: 0 auto; background: var(--canvas); border: 1px solid var(--divider); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card h2 { text-align: center; margin-bottom: 8px; }
form label { display: block; margin: 16px 0 0; font-weight: 600; }
form label small, legend small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
input:not([type]), input[type="text"], textarea { width: 100%; margin-top: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--canvas); color: var(--ink); }
input:not([type]):focus, input[type="text"]:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
fieldset label { display: flex; gap: 12px; align-items: center; margin: 8px 0 0; min-height: 52px; padding: 12px 14px; border: 1px solid var(--divider); border-radius: 12px; font-weight: 500; cursor: pointer; background: var(--canvas); }
fieldset label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(6, 1fr); } }
.chips label { margin: 0; justify-content: center; padding: 0; min-height: 48px; gap: 6px; }

.consent-check { display: flex !important; gap: 12px; align-items: flex-start; min-height: 44px; font-weight: 400 !important; font-size: 15px; color: var(--muted); margin-top: 20px !important; }
.consent-check a { color: var(--brand-text); }
.consent-check input { margin-top: 3px; }
.err { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.err:empty { display: none; }
#turnstile { margin: 18px 0 0; }
#waitlist-form .btn { width: 100%; margin-top: 18px; }
.form-sub { text-align: center; color: var(--muted); margin: 0 0 4px; }
.price-row .btn { width: 100%; }
@media (min-width: 640px) { .price-row .btn { width: auto; } }
.price-box h3 { margin-bottom: 12px; }
.card.hl h3, .card.muted h3 { margin-bottom: 10px; }
.note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
#thanks { text-align: center; }
#thanks .btn { margin: 16px 0 8px; width: 100%; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; text-align: center; }
.final .hero-blob { top: 10%; }
.final .wrap { position: relative; z-index: 1; }

/* ---------- Footer & banners ---------- */
footer { border-top: 1px solid var(--divider); padding: 24px 0 calc(var(--sticky-h) + 24px); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: center; }
footer a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { footer { padding-bottom: 24px; } }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(12px); border-top: 1px solid var(--divider); transition: transform 200ms ease; }
.sticky-cta .btn { min-height: 52px; padding: 12px 16px; }
.sticky-cta.off { transform: translateY(110%); }
@media (min-width: 768px) { .sticky-cta { display: none; } }

.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 560px; margin: 0 auto; padding: 16px; background: var(--canvas); border: 1px solid var(--divider); border-radius: 16px; box-shadow: 0 12px 40px rgba(33, 53, 71, 0.18); }
.consent p { font-size: 15px; margin: 0 0 12px; }
.consent .btn { min-height: 48px; padding: 12px 18px; margin: 4px 8px 0 0; width: auto; }

[hidden] { display: none !important; }
#b6-demo { scroll-margin-top: 72px; margin-bottom: 16px; }

/* ---------- Документ (політика) ---------- */
.doc-back { font-size: 15px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 56px; }
.doc h1 { font-size: clamp(28px, 7vw, 44px); margin-bottom: 8px; }
.doc-meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.doc-card { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); }
.doc-card dt { color: var(--muted); font-size: 15px; }
.doc-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .doc-card { grid-template-columns: 1fr; gap: 2px; } .doc-card dd { margin-bottom: 10px; } .doc-card dd:last-child { margin-bottom: 0; } }
.doc-toc { margin: 0 0 32px; padding: 16px 20px; border-left: 3px solid var(--brand); background: var(--surface2); border-radius: 0 var(--radius) var(--radius) 0; }
.doc-toc-title { font-weight: 700; margin-bottom: 6px; }
.doc-toc ol { margin: 0; padding-left: 22px; }
.doc-toc li { padding: 3px 0; }
.doc section { padding: 0; margin: 0 0 28px; scroll-margin-top: 76px; }
.doc h2 { font-size: clamp(20px, 5vw, 24px); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
.doc section ul { padding-left: 22px; }
.doc section li { margin-bottom: 8px; }
.doc-page footer { padding-bottom: 24px; }

.price-hint { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
html[data-v="b"] .not-b { display: none; }

/* ---------- Більше повітря на телефоні (відгук: на iPhone 14 Pro Max «все стиснуто») ---------- */
body { line-height: 1.6; }
h1 { line-height: 1.15; }
h2 { line-height: 1.22; }
.hero { padding: 36px 0 56px; }
.pill { margin-bottom: 22px; }
.hero .lead { margin-top: 18px; line-height: 1.6; }
.hero-cta { margin-top: 32px; gap: 14px; }
section { padding: 64px 0; }
.section-head { margin-bottom: 40px; }
.section-head .lead { margin-top: 14px; }
.grid { gap: 16px; }
.card { padding: 20px; }
@media (min-width: 400px) { .wrap { padding: 0 22px; } .doc { padding-left: 22px; padding-right: 22px; } }

/* ---------- Перший екран: 3 тези «що це / для чого / що робить» ---------- */
.theses { list-style: none; margin: 22px auto 0; padding: 0; max-width: 520px; display: grid; gap: 10px; text-align: left; }
.theses li { display: flex; gap: 12px; align-items: flex-start; background: var(--glass); border: 1px solid var(--divider); border-radius: 14px; padding: 12px 14px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.th-ico { flex: none; font-size: 20px; line-height: 1.3; }

/* ---------- Для кого ---------- */
.who-card { text-align: center; }
.who-ico { display: block; font-size: 34px; line-height: 1; margin-bottom: 10px; }
.who-card h3 { margin-bottom: 6px; }
.who-card p { margin: 0; color: var(--muted); }

/* Тонка межа між секціями: у різних варіантах сусідні секції можуть мати однаковий фон */
main > section:not(.hero) { border-top: 1px solid var(--divider); }

/* ---------- Перший екран: логотип + «Що таке ШІкола?» замість заголовка-гачка ---------- */
.hero-logo { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; background: var(--brand); box-shadow: 0 10px 28px var(--brand-glow); }
.hero-logo svg { width: 38px; height: 38px; }

/* ---------- Телефон: без верхньої шапки на головній — логотип уже є на першому екрані (рішення автора 2026-10-07) ---------- */
@media (max-width: 640px) {
  body:not(.doc-page) .topbar { display: none; }
  body:not(.doc-page) section { scroll-margin-top: 12px; }
}

/* ---------- Терміни з підказкою (ГДЗ): інший колір, підказка при наведенні або дотику ---------- */
.term { position: relative; color: var(--brand-text); text-decoration: underline dotted 1.5px; text-underline-offset: 3px; cursor: help; }
.term::after { content: attr(data-tip); box-sizing: border-box; position: absolute; left: var(--tip-x, 0px); bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: min(260px, 80vw); padding: 8px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; box-shadow: var(--shadow); display: none; pointer-events: none; }
/* Прихована підказка не повинна займати місце: інакше на телефоні сторінка ширша за екран */
.term:hover::after, .term:focus::after, .term.open::after { display: block; }
.term:focus { outline: none; }
.term:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Страховка: ніщо не робить сторінку ширшою за екран (на Android вона «з'їжджала» вбік) */
html, body { overflow-x: clip; }

/* ---------- Наочно в чаті: ряд емодзі всередині репліки (блок 5) ---------- */
.em-row { display: block; margin: 6px 0; font-size: 20px; letter-spacing: 2px; line-height: 1.3; white-space: nowrap; }
.chat-sep { align-self: center; margin: 8px 0 2px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 13px; font-weight: 700; }

/* ---------- Довгий діалог: згорнутий до перших реплік, розгортається кнопкою ---------- */
.chat.is-collapsed > :nth-child(n+4) { display: none; }
.chat.is-collapsed { position: relative; }
.chat.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(to bottom, rgba(253, 253, 252, 0), var(--canvas)); pointer-events: none; }
.chat-more { display: block; width: 100%; margin-top: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--brand-soft-border); border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); font-weight: 650; font-size: 15px; cursor: pointer; }
.chat-more[hidden] { display: none; }

/* ---------- Макет голосового інтерфейсу (блок 6) ---------- */
.voice-ui { margin-top: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--divider); padding: 16px; display: grid; gap: 12px; }
.vu-head { display: flex; align-items: center; gap: 12px; }
.vu-mascot { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: var(--canvas); box-shadow: 0 0 0 3px var(--brand), 0 0 0 9px var(--brand-glow); animation: vu-pulse 1.6s ease-in-out infinite; }
.vu-who { display: grid; line-height: 1.25; }
.vu-who span { font-size: 13px; color: var(--brand-text); font-weight: 600; }
.vu-wave { margin-left: auto; display: flex; gap: 3px; align-items: center; height: 24px; }
.vu-wave i { width: 4px; border-radius: 2px; background: var(--brand); animation: vu-bar 0.9s ease-in-out infinite; }
.vu-wave i:nth-child(2) { animation-delay: .15s; } .vu-wave i:nth-child(3) { animation-delay: .3s; } .vu-wave i:nth-child(4) { animation-delay: .45s; } .vu-wave i:nth-child(5) { animation-delay: .6s; }
.vu-task { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--canvas); border: 1px dashed var(--border); }
.vu-task-l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vu-eq { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vu-eq > span:first-child { color: var(--muted); }
.vu-hl, .vu-say { -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 8px; padding: 0 6px; background: linear-gradient(var(--hl, #ffe08a), var(--hl, #ffe08a)) no-repeat 0 0 / 0 100%; animation: vu-mark 3.2s ease-in-out infinite; }
.vu-log { display: grid; gap: 6px; opacity: .55; font-size: 14px; line-height: 1.45; }
.vu-log p { margin: 0; }
.vu-k { display: flex; gap: 6px; align-items: center; justify-content: flex-end; color: var(--brand-text); font-weight: 600; }
.vu-k svg, .vu-mic svg { width: 16px; height: 16px; }
/* Той самий шрифт, що й у попередніх репліках (14px, звичайний); виділяють лише рамка, повна яскравість і маркер */
.vu-now { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--canvas); border: 2px solid var(--brand); font-size: 14px; line-height: 1.45; font-weight: 400; box-shadow: 0 8px 24px var(--brand-glow); }
.vu-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vu-btn { padding: 10px 16px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--divider); font-weight: 650; font-size: 15px; }
.vu-mic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 22px var(--brand-glow); }
.vu-mic svg { width: 26px; height: 26px; }
.vu-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@keyframes vu-pulse { 50% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 14px rgba(200, 100, 44, 0.08); } }
@keyframes vu-bar { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@keyframes vu-mark { 0% { background-size: 0 100%; } 45%, 85% { background-size: 100% 100%; } 100% { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .vu-mascot, .vu-wave i, .vu-hl, .vu-say { animation: none; } .vu-hl, .vu-say { background-size: 100% 100%; } }
.vu-photo { justify-self: end; max-width: 82%; padding: 10px 12px; border-radius: 6px; background: #fffef6; border: 1px solid #e6dfc8; box-shadow: 0 2px 6px rgba(0,0,0,.08); transform: rotate(-1.5deg); display: grid; gap: 4px; font-size: 14px; color: var(--ink); }
.vu-photo-l { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.vu-task { flex-direction: column; align-items: flex-start; }
.vu-pens { display: flex; flex-wrap: wrap; gap: 6px; }
.vu-pens > span { padding: 4px 6px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 18px; letter-spacing: 1px; background: var(--surface2); }
.vu-now-l { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }

/* ---------- Приклад звіту батькам (блок 4) ---------- */
.report-demo { margin-top: 24px; }
.report-l { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.report-msg { max-width: 420px; margin: 0 auto; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--canvas); border: 1px solid var(--divider); box-shadow: var(--shadow); font-size: 15px; line-height: 1.5; }
.report-msg p { margin: 0 0 4px; }
.report-msg p:last-child { margin: 0; }

/* ---------- Кроки: номер в одному рядку із заголовком ---------- */
.card.step { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; align-content: start; }
.card.step .step-num { margin: 0; }
.card.step h3 { margin: 0; }
.card.step > :not(.step-num):not(h3) { grid-column: 1 / -1; margin-top: 10px; }
@media (min-width: 900px) { .card.step h3 { min-height: 2.6em; display: flex; align-items: center; } }

/* ---------- Блок 12: умови поруч із ціною — не дрібним текстом ---------- */
.price-sub { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.price-terms { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--warn-border); background: var(--warn-bg); display: grid; gap: 6px; }
.price-terms p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }

/* ---------- Банер cookies: компактний і спокійний, як на більшості сайтів ---------- */
.consent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; max-width: 640px; padding: 10px 12px 10px 16px; border-radius: 14px; bottom: calc(var(--sticky-h) + 8px); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; color: var(--muted); }
.consent p a { color: var(--muted); }
.consent-btns { display: flex; gap: 8px; margin-left: auto; }
.consent-no, .consent-ok { min-height: 40px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.consent-no { background: transparent; border: 1px solid var(--divider); color: var(--muted); }
.consent-ok { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
@media (min-width: 768px) { .consent { bottom: 16px; flex-wrap: nowrap; max-width: 720px; } .consent p { flex: 1; } }

/* ---------- Демо дробів: підсумок-правило в чаті ---------- */
.bubble.tutor.bubble-rule { max-width: 100%; border: 2px solid var(--brand); background: var(--canvas); }
.rule { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.rule li { padding-left: 2px; }
