/* ============ EduNeyro — landing ============ */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  color-scheme: dark;
  --bg: #0e1518;
  --bg2: #131d21;
  --panel: #18242a;
  --line: rgba(255,255,255,.09);
  --ink: #eef4f3;
  --muted: #9db0b4;
  --accent: #35d6b0;      /* mint/teal — voice, live */
  --accent-ink: #06281f;
  --warm: #f2a65a;        /* lamp warmth from hero art */
  --radius: 18px;
  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-b); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200; font-weight: 700; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--font-b); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  min-height: 44px; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4ce6c0; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 26px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(14,21,24,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-d); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo em { font-style: normal; color: var(--accent); }
.logo-mark { color: var(--accent); display: inline-flex; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.hdr-btns { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s; }
.mnav { position: fixed; inset: 60px 0 auto 0; z-index: 99; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 18px clamp(16px,4vw,44px) 24px; display: flex; flex-direction: column; gap: 4px; }
.mnav[hidden] { display: none; } /* CSS display beats the [hidden] UA rule — must re-assert */
.mnav a { padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mnav-btns { display: flex; gap: 10px; margin-top: 16px; }
.mnav-btns .btn { flex: 1; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 44px) clamp(30px, 5vw, 56px);
}
.hero-kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); }
.hero h1 .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; color: var(--muted); font-size: 14.5px; }
.hero-facts b { color: var(--ink); font-size: 16px; }
.hero-fig { margin: 0; position: relative; }
.hero-fig img { border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 1px solid var(--line); }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,21,24,.78); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; padding: 13px 0; }
.ticker-track { display: flex; gap: 46px; width: max-content; animation: tick 26s linear infinite; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.ticker-track span::before { content: "●"; color: var(--accent); margin-right: 46px; font-size: 8px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 44px); }
.sec-dark { background: var(--bg2); border-block: 1px solid var(--line); max-width: none; }
.sec-dark > * { max-width: 1240px; margin-inline: auto; }
.sec-title { font-size: clamp(26px, 3.6vw, 40px); max-width: 24ch; }
.sec-lead { color: var(--muted); max-width: 62ch; margin-bottom: 40px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.plans-loading { color: var(--muted); }
.plans-note { color: var(--muted); font-size: 13.5px; max-width: 84ch; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.plan-hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 48px -22px rgba(53, 214, 176, .45); }
.plan-badge { position: absolute; top: -13px; left: 22px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-family: var(--font-d); font-size: 18px; margin: 4px 0 14px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font-family: var(--font-d); font-size: 30px; color: var(--ink); }
.plan-price s { color: var(--muted); font-size: 16px; }
.plan-per { color: var(--muted); font-size: 13.5px; margin-top: 6px; display: block; }
.plan-feats { list-style: none; margin: 18px 0 22px; padding: 0; color: var(--muted); font-size: 14.5px; display: grid; gap: 8px; }
.plan-feats li { padding-left: 22px; position: relative; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-buy { margin-top: auto; text-align: center; }
@media (max-width: 1020px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; counter-reset: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step-n { font-family: var(--font-d); font-weight: 700; color: var(--accent); font-size: 15px; letter-spacing: .06em; display: block; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* teachers */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tcard img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top; }
.tcard img.tpos-chest { object-position: 50% 28%; }
.tcard-b { padding: 20px 22px 24px; }
.tcard h3 { font-size: 20px; margin-bottom: 2px; }
.tlang { color: var(--accent); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.tcard-b > p:not(.tlang) { color: var(--muted); font-size: 15px; margin: 0; }
.tcard-cta { justify-content: center; border-style: dashed; }
.tcard-cta h3 { color: var(--warm); }
.tcard-cta .btn { margin-top: 16px; }

/* why grid */
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.wcard h3 { font-size: 18px; color: var(--accent); font-family: var(--font-b); font-weight: 800; }
.wcard p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* strip */
.strip-sec { padding-block: clamp(34px, 5vw, 56px); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip-item { border-left: 2px solid var(--accent); padding: 6px 0 6px 16px; }
.strip-item b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.strip-item span { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }

/* cta */
.cta {
  position: relative; background: url('/media/land-cta.webp') center/cover no-repeat;
  border-block: 1px solid var(--line);
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,21,24,.92) 30%, rgba(14,21,24,.55)); }
.cta-in { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 44px); }
.cta-in h2 { font-size: clamp(28px, 4vw, 44px); max-width: 16ch; }
.cta-in p { color: #cddbdd; max-width: 46ch; }
.cta-in .btn { margin-top: 10px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; list-style: none; position: relative; padding-right: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 15.5px; margin: 0; }

/* contact */
.cgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.cform { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.frow { margin-bottom: 16px; }
.frow label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.frow input, .frow textarea, .frow select {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; font: 500 15.5px/1.4 var(--font-b);
  transition: border-color .15s;
}
.frow input:focus, .frow textarea:focus, .frow select:focus { border-color: var(--accent); outline: none; }
.frow textarea { resize: vertical; min-height: 100px; }
.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.cform-ok { color: var(--accent); font-weight: 700; margin-top: 14px; }
.cform-err { color: #ff8a7a; font-weight: 600; margin-top: 14px; }
.cform-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.cinfo { background: transparent; border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px 26px; }
.cinfo h3 { font-size: 18px; }
.cinfo ul { list-style: none; margin: 0 0 22px; padding: 0; }
.cinfo li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.cinfo li b { color: var(--ink); }
.tbd em { font-style: normal; color: var(--warm); font-size: 12.5px; }
.cinfo-note { padding-top: 6px; }
.cinfo-note p { color: var(--muted); font-size: 14.5px; }

/* footer */
.ftr { border-top: 1px solid var(--line); background: var(--bg2); }
.ftr-in { max-width: 1240px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.ftr-logo { font-size: 16px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.ftr-nav a:hover { color: var(--accent); }
.ftr-copy { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- chat widget ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  border-radius: 999px; padding: 14px 20px; min-height: 52px;
  font: 800 15px/1 var(--font-b);
  box-shadow: 0 12px 32px rgba(53,214,176,.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(53,214,176,.45); }
.chat-fab[hidden] { display: none; }
.chat-win {
  position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 151;
  width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  overflow: hidden;
}
.chat-win[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg2);
}
.chat-head-t { display: flex; flex-direction: column; gap: 1px; }
.chat-head-t b { font-size: 15px; }
.chat-head-t span { color: var(--muted); font-size: 12px; }
.chat-close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 17px; padding: 8px; min-width: 40px; min-height: 40px; border-radius: 10px; }
.chat-close:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; scrollbar-width: thin; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; white-space: pre-wrap; }
.chat-msg.bot { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; font-weight: 600; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-msg.err { align-self: center; background: rgba(255,138,122,.12); border: 1px solid rgba(255,138,122,.35); color: #ffb3a7; font-size: 13.5px; }
.chat-note { padding: 8px 16px; font-size: 12px; color: var(--muted); background: var(--bg2); border-top: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg2); }
.chat-input {
  flex: 1; background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 16px; font: 500 14.5px/1.3 var(--font-b); min-height: 44px;
}
.chat-input:focus { border-color: var(--accent); outline: none; }
.chat-send {
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
  border-radius: 50%; width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s ease;
}
.chat-send:hover { transform: scale(1.06); }
.chat-send[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 480px) {
  .chat-win { right: 12px; left: 12px; width: auto; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .chat-fab { right: 12px; }
  .chat-fab-txt { display: none; }
  .chat-fab { padding: 14px; }
  /* bottom-sheet feel: dim the page while chat is open */
  body.chat-open::after {
    content: ""; position: fixed; inset: 0; z-index: 149;
    background: rgba(8,12,14,.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  }
  body.chat-open .chat-win { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-height: 72vh; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fig { order: -1; }
  .hero-fig img { aspect-ratio: 16/9; object-fit: cover; }
  .tgrid, .wgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cgrid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav, .hdr-btns { display: none; }
  .burger { display: block; }
  .tgrid, .wgrid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .hero { padding-top: 26px; }
  .hero-badge { left: 12px; bottom: 12px; }
  .cta::before { background: linear-gradient(180deg, rgba(14,21,24,.88), rgba(14,21,24,.7)); }
}
@media (max-width: 380px) {
  body { font-size: 16px; }
  .btn-lg { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-badge .dot { animation: none; }
  .btn { transition: none; }
}
