/* Дизайн-система — композиція як у лендингу 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(34px, 8.5vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(26px, 6vw, 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(--blob); 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: 12px; 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: 64px 0; }
@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: 640px; margin: 14px auto 0; }
.section-head { text-align: center; margin-bottom: 36px; }

/* ---------- Hero ---------- */
.hero { display: none; position: relative; overflow: hidden; text-align: center; padding: 40px 0 56px; }
html[data-v="a"] .hero-a, html[data-v="b"] .hero-b, html[data-v="c"] .hero-c { 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; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--divider); font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; box-shadow: var(--shadow); }
.pill-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; color: var(--on-brand); font-size: 12px; }
.hero h1 { max-width: 880px; margin: 0 auto; }
.hero .lead { font-size: 18px; color: var(--muted); }
.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; }

/* Макет чату / голосу в першому екрані */
.mock { max-width: 440px; margin: 32px auto 0; text-align: left; background: var(--canvas); border: 1px solid var(--divider); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.mock-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 2px 4px 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.mock-foot { font-size: 12px; color: var(--muted); padding: 10px 4px 2px; display: 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: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 4px; }
.voice { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 8px 8px; }
.mic { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 28px var(--brand-glow); }
.mic svg { width: 28px; height: 28px; }
.wave { display: flex; gap: 4px; align-items: center; height: 28px; }
.wave i { width: 4px; border-radius: 2px; background: var(--brand); opacity: 0.6; }
.voice p { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
.voice-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--divider); background: var(--surface); font-weight: 600; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 60px; padding: 18px 24px; 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(--divider); box-shadow: none; font-weight: 500; }
.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: 11px; 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(--muted); font-style: italic; }

/* Кроки з номерами */
.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: 15px; color: var(--muted); }
.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; }

/* Можливості голосу */
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--divider); 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: flex; flex-direction: column; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--blob); display: grid; place-items: center; color: var(--on-brand); font-weight: 800; font-size: 22px; flex: none; }
@media (min-width: 640px) { .author { flex-direction: row; } }

/* Ціна */
.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(6, 1fr); gap: 8px; }
.chips label { margin: 0; justify-content: center; padding: 0; min-height: 48px; gap: 6px; }
@media (max-width: 380px) { .chips { grid-template-columns: repeat(4, 1fr); } }
.consent-check { display: flex !important; gap: 12px; align-items: flex-start; min-height: 44px; font-weight: 400 !important; font-size: 15px; color: var(--muted); }
.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; }
.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: 56px; padding: 14px 20px; }
.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; }
