/* Маркер — лендинг в стиле MindMarket: тёплый сторибук на крем-бумаге.
   Гигантский Inter, скруглённые 50px карточки-«наклейки», бумажные
   персонажи прямо на канве, единственный структурный акцент — зелёный.
   Глубина — только сдвигом поверхности (крем → белый), без теней. */
:root {
  --cream: #f5f1e4;
  --white: #ffffff;
  --ink: #2c2e2a;
  --sand: #e0dbce;
  --stone: #80827f;
  --mist: #d5d5d4;
  --pure: #000000;
  --green: #8ed462;
  --sky: #2ba0ff;
  --coral: #ff705d;
  --sun: #f5e211;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", cursive;
  --r-pill: 50px;
  --r-ill: 64px;
  --r-chip: 10px;
  --spring: cubic-bezier(.22, 1.2, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 12px; }

.container { max-width: none; padding: 0 24px; }
section[id] { scroll-margin-top: 110px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: -64px;
  left: 24px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: top .2s;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Типографика ---------- */
.display {
  margin: 0;
  font-weight: 500;
  font-size: clamp(56px, 9.6vw, 138px);
  line-height: .95;
  letter-spacing: -.06em;
  text-align: center;
}
.h2 {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.h3 {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.sub {
  margin: 24px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
  max-width: 620px;
  text-align: center;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--stone);
}
.label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.body { color: var(--ink); font-size: 17px; max-width: 560px; margin: 0 0 28px; }
.muted { color: var(--stone); }

/* ---------- Кнопки: пилюли с точкой-афордансом ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--spring), background .2s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  transition: transform .3s var(--spring);
}
.btn:hover .dot { transform: scale(1.25); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light .dot { background: var(--sky); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral .dot { background: var(--white); width: 10px; height: 10px; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green .dot { background: var(--ink); width: 10px; height: 10px; }
.link-ghost {
  display: inline-block;
  padding: 10px 2px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  transition: border-color .2s, color .2s;
}
.link-ghost:hover { border-color: var(--ink); }

/* ---------- Плавающая pill-навигация ---------- */
.nav-wrap { position: sticky; top: 16px; z-index: 100; padding: 0 16px; }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 72px;
  padding: 0 12px 0 20px;
  background: var(--white);
  border-radius: var(--r-pill);
}
.nav-drop { transform: translateY(-140%); transition: transform .7s var(--spring) .15s; }
.nav-drop.in { transform: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: 8px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 22px; height: 20px; }
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s;
}
.nav-links a:hover { background: var(--cream); }
.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-left: 6px;
  transition: transform .3s var(--spring);
  touch-action: manipulation;
}
.menu-btn:hover { transform: scale(1.08); }
.menu-btn svg { width: 18px; height: 14px; }
.nav .btn { margin-left: 6px; }
.menu-panel {
  position: absolute;
  top: 84px;
  right: 40px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--white);
  border-radius: 32px;
  min-width: 240px;
}
.menu-panel.open { display: flex; }
.menu-panel a {
  padding: 12px 18px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.menu-panel a:hover { background: var(--cream); }
@media (max-width: 1120px) { .nav-links { display: none; } }

/* ---------- Герой ---------- */
.hero { padding: 64px 0 0; }
.hero .kicker {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero .kicker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-chip);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
}
.hero .kicker i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin: 20px 0 0; font-size: 15px; color: var(--stone); text-align: center; }
.hero-note strong { color: var(--ink); font-weight: 500; }

/* ---------- Иллюстрации ---------- */
.ill { width: 100%; height: auto; display: block; }
.ill-scene { margin-top: 8px; }
.ill [data-float] { animation: bob 5s ease-in-out infinite alternate; }
.ill [data-float="b"] { animation-duration: 6.4s; animation-delay: -1.6s; }
.ill [data-float="c"] { animation-duration: 4.2s; animation-delay: -2.8s; }
@keyframes bob {
  from { transform: translateY(-7px) rotate(-1.2deg); }
  to { transform: translateY(8px) rotate(1.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ill [data-float] { animation: none; }
}

/* ---------- Секции ---------- */
.section { padding: 110px 0; }
@media (max-width: 760px) { .section { padding: 76px 0; } }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
}
.split.flip > .visual { order: 1; }
@media (max-width: 980px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > .visual { order: 0; }
}

/* Белая карточка — главный контейнер текста */
.card {
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 40px 44px;
}
.card-sm { border-radius: 40px; padding: 28px 32px; }
@media (max-width: 640px) { .card { padding: 28px 24px; border-radius: 32px; } }

/* ---------- Шаги урока ---------- */
.steps-card { max-width: 760px; margin: 0 auto; display: grid; gap: 30px; text-align: left; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; text-align: left; }
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 26px;
  flex: none;
}
.step:nth-child(1) .step-num { background: var(--green); }
.step:nth-child(2) .step-num { background: var(--sky); color: var(--white); }
.step:nth-child(3) .step-num { background: var(--coral); color: var(--white); }
.step:nth-child(4) .step-num { background: var(--sun); }
.step p { margin: 0; color: var(--ink); font-size: 16px; max-width: 52ch; }
.step kbd {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  background: var(--cream);
  border-radius: 8px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* ---------- Сравнение до/после ---------- */
.compare {
  position: relative;
  border-radius: var(--r-ill);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background: var(--white);
}
.compare canvas { display: block; width: 100%; height: auto; }
.compare-after { position: absolute; inset: 0; overflow: hidden; }
.compare-after canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: fill; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--ink);
  cursor: ew-resize;
  touch-action: none;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: ew-resize;
}
.compare-tags { display: flex; justify-content: space-between; margin: 16px 6px 0; }
.compare-tags span {
  padding: 6px 16px;
  border-radius: var(--r-chip);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: opacity .2s;
}
.compare-caption { margin: 20px 6px 0; font-size: 15px; color: var(--stone); }

/* ---------- Демо ---------- */
.demo-window { border-radius: var(--r-ill); overflow: hidden; background: var(--white); }
.demo-window iframe { display: block; width: 100%; height: min(72vh, 640px); border: 0; background: #fff; }
.demo-caption { margin: 20px 6px 0; font-size: 15px; color: var(--stone); }

/* ---------- Цены ---------- */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 9999px;
  background: var(--white);
  margin-bottom: 52px;
}
.billing button {
  padding: 10px 24px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s;
  touch-action: manipulation;
}
.billing button[aria-pressed="true"] { background: var(--green); }
.billing .save-hint {
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  padding: 0 16px 0 6px;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 32px 36px;
  text-align: left;
  transition: transform .4s var(--spring);
}
.plan:hover { transform: translateY(-8px) rotate(-.4deg); }
.plan-pro { background: var(--white); box-shadow: 0 0 0 3px var(--green); }
.plan-badge {
  position: absolute;
  top: -18px;
  left: 40px;
  padding: 8px 18px;
  border-radius: var(--r-chip);
  background: var(--sun);
  font-size: 14px;
  font-weight: 500;
  transform: rotate(-2deg);
}
.plan .price-row { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 6px; }
.plan .amount {
  font-weight: 500;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  transition: opacity .2s, transform .2s;
}
.plan .amount.flip { opacity: 0; transform: translateY(10px); }
.plan .per { font-size: 16px; color: var(--stone); }
.plan .plan-note {
  display: inline-block;
  margin: 2px 0 24px;
  padding: 6px 14px;
  border-radius: var(--r-chip);
  background: var(--green);
  font-size: 14px;
  font-weight: 500;
  transform: rotate(-1deg);
  width: fit-content;
}
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; }
.plan li { display: flex; gap: 12px; padding: 7px 0; font-size: 16px; }
.plan li i { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; flex: none; }
.plan li:nth-child(odd) i { background: var(--green); }
.plan li:nth-child(even) i { background: var(--sky); }
.plan .btn { margin-top: auto; justify-content: center; }
.pricing-note { margin: 32px auto 0; font-size: 15px; color: var(--stone); max-width: 640px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 32px; padding: 0 26px; transition: transform .4s var(--spring); }
.faq details:hover { transform: rotate(-.5deg); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 500;
  transition: transform .3s var(--spring);
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--coral); color: var(--white); }
.faq .faq-body { padding: 0 44px 20px 0; color: var(--ink); font-size: 16px; max-width: 62ch; }

/* ---------- Жёлтый футер-финал ---------- */
.final {
  background: var(--sun);
  border-radius: var(--r-ill) var(--r-ill) 0 0;
  padding: 88px 24px 72px;
  margin-top: 60px;
}
.final-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.final .display { font-size: clamp(44px, 6.4vw, 92px); }
.final p { margin: 24px auto 36px; max-width: 560px; font-size: 18px; }
.footer {
  background: var(--sun);
  padding: 0 24px 40px;
}
.footer-feedback { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.footer-feedback a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 16px 32px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 15px;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.footer-inner nav { display: flex; gap: 24px; margin-left: auto; }
.footer-inner a { text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; transition: border-color .2s; }
.footer-inner a:hover { border-color: var(--ink); }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

/* Ревил заголовка: слова выплывают из маски */
.word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.word-mask > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(112%) rotate(4deg);
  transition: transform .85s var(--spring);
  transition-delay: var(--d, 0s);
  will-change: transform;
}
.words-in .word-mask > i { transform: none; }

/* Появление элементов при скролле */
html.js [data-reveal] { opacity: 0; will-change: transform, opacity; }
html.js [data-reveal="up"] { transform: translateY(48px); transition: opacity .7s ease-out, transform .7s var(--spring); transition-delay: var(--d, 0s); }
html.js [data-reveal="pop"] { transform: translateY(28px) scale(.92); transition: opacity .6s ease-out, transform .6s var(--spring); transition-delay: var(--d, 0s); }
html.js [data-reveal="left"] { transform: translateX(-64px) rotate(-1deg); transition: opacity .7s ease-out, transform .7s var(--spring); transition-delay: var(--d, 0s); }
html.js [data-reveal="right"] { transform: translateX(64px) rotate(1deg); transition: opacity .7s ease-out, transform .7s var(--spring); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* Параллакс-слой */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .word-mask > i { transform: none; transition: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .nav-drop { transform: none; transition: none; }
}

/* модалка аккаунта на лендинге */
#authRoot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(44, 46, 42, .45); }
#authRoot[hidden] { display: none; }
.auth-land { width: min(460px, 92vw); }

/* ---------- Окно аккаунта на лендинге (сценка + форма) ---------- */
.modal.al-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(44, 46, 42, .45); padding: 16px; }
.modal.al-overlay[hidden] { display: none; }
.al-card {
  width: min(700px, 94vw);
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(44, 46, 42, .3);
}
.al-side { background: #f5f1e4; border-right: 1.5px solid #ece7db; padding: 10px 6px; user-select: none; }
.al-side svg { width: 100%; height: 100%; display: block; }
.al-main { padding: 22px 24px; min-width: 0; max-height: 90vh; overflow: auto; }
.al-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.al-head h2 { font-size: 21px; font-weight: 600; margin: 0; }
.al-x { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--ink); }
.al-x:hover { background: var(--paper-2, #f5f1e4); }
.al-x svg { width: 20px; height: 20px; display: block; }
.al-note { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0 0 14px; }
.al-field { display: grid; gap: 5px; margin: 0 0 14px; }
.al-field span { font-size: 12.5px; color: var(--ink-2); }
.al-field input { font-size: 14.5px; padding: 10px 13px; border: 1.5px solid #d8d4c8; border-radius: 12px; outline: none; font-family: inherit; color: var(--ink); }
.al-field input:focus { border-color: #8ed462; }
.al-consent { display: flex; gap: 8px; align-items: start; font-size: 12.5px; color: var(--ink-2); margin: 0 0 14px; }
.al-consent input { margin-top: 2px; }
.al-consent a { color: var(--ink); }
.al-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.al-actions button, .al-actions a { font-size: 14px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid #d8d4c8; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; font-weight: 500; transition: transform .15s cubic-bezier(.22, 1.2, .36, 1); display: inline-flex; align-items: center; gap: 8px; }
.al-actions .al-accent { background: #8ed462; border-color: #8ed462; }
.al-actions button:hover, .al-actions a:hover { transform: translateY(-2px); }
.al-ghost { background: transparent !important; border-color: transparent !important; }
.al-status { color: #E5484D !important; }
.al-link .dot { width: 8px; height: 8px; background: #8ed462; border-radius: 50%; display: inline-block; }
/* анимации сценки */
@keyframes alFmt { 0%, 12% { opacity: 0; transform: translateY(-6px); } 24%, 72% { opacity: 1; transform: translateY(0); } 84%, 100% { opacity: 0; } }
@keyframes alLine { 0%, 16% { stroke-dashoffset: 1; } 32%, 68% { stroke-dashoffset: 0; } 84%, 100% { stroke-dashoffset: 1; } }
@keyframes alEraser { 0%, 20% { transform: translateX(6px); opacity: 0; } 30%, 70% { opacity: 1; } 74%, 80% { transform: translateX(156px); opacity: 1; } 88%, 100% { transform: translateX(156px); opacity: 0; } }
@keyframes alBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.al-fmt { animation: alFmt 6.5s ease-in-out infinite; }
.al-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: alLine 6.5s ease-in-out infinite; }
.al-eraser { animation: alEraser 6.5s ease-in-out infinite; }
.al-bob { animation: alBob 3.2s ease-in-out infinite; }
@media (max-width: 760px) { .al-card { grid-template-columns: 1fr; } .al-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .al-fmt, .al-line, .al-eraser, .al-bob { animation: none; } .al-fmt { opacity: 1; } .al-line { stroke-dashoffset: 0; } }
