/* MentorIA Cancún · diseño propio sobre la plantilla base de Sakbé Digital.
   Crema cálido, tinta índigo y acento terracota; títulos en Fraunces, texto en Inter. */
:root {
  --bg: #FBF7F1;
  --soft: #F3ECE2;
  --card: #FFFDF9;
  --ink: #1B1A2E;
  --text: #2B2A3A;
  --muted: #6B6878;
  --line: #E6DED2;
  --accent: #D9532B;
  --accent-ink: #A93C1B;
  --accent-soft: #F8E1D6;
  --dark: #1B1A2E;
  --dark-2: #26253D;
  --cream: #F4EEE4;
  --radius: 18px;
  --wrap: 1180px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.015em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(40px, 5.6vw, 70px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 76px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 13px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin-top: 20px; max-width: 640px; }
.fine { font-size: 14px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font: 600 16px/1.2 var(--body); text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(217, 83, 43, .7); }
.btn--accent:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font: 600 23px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo em { color: var(--accent); font-style: italic; }
.logo small { font: 500 13px/1 var(--body); color: var(--muted); letter-spacing: .04em; margin-left: 2px; }
.logo__mark { width: 38px; height: 34px; flex: none; }
/* Logo mark: mentor bubble (outline) + student bubble (terracotta) with the AI spark */
.lm-back { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.lm-front { fill: var(--accent); }
.lm-spark { fill: none; stroke: var(--bg); stroke-width: 3.6; stroke-linecap: round; }
.js .logo__mark .lm-back { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s ease forwards .2s; }
.js .logo__mark .lm-front { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards 1.1s; }
.js .logo__mark .lm-spark { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s ease forwards 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: 600 13px/1 var(--body); color: var(--muted); padding: 8px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -220px; top: -180px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, rgba(248, 225, 214, 0) 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { display: block; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Chat demo */
.demo { position: relative; }
.demo__tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.demo__tabs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 14px/1 var(--body); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.demo__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo__win { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(27, 26, 46, .35), 0 2px 6px rgba(27, 26, 46, .04); padding: 0 20px 22px; min-height: 360px; }
.demo__bar { display: flex; align-items: center; gap: 6px; height: 48px; border-bottom: 1px solid var(--line); margin: 0 -20px 18px; padding: 0 18px; }
.demo__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo__bar p { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.demo__panel + .demo__panel { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.js .demo__panel + .demo__panel { margin-top: 0; padding-top: 0; border-top: 0; }
.js .demo__panel { display: none; }
.js .demo__panel.is-active { display: block; }
.msg { font-size: 15px; line-height: 1.55; padding: 14px 16px; border-radius: 16px; max-width: 92%; }
.msg--you { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg--ai { margin-top: 14px; background: var(--soft); color: var(--text); border-bottom-left-radius: 4px; }
.msg--ai p + p { margin-top: 8px; }
.msg--ai strong { color: var(--ink); }
.msg .file { display: inline-block; margin-top: 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; }
.demo__typing { display: none; gap: 5px; padding: 14px 16px; margin-top: 14px; background: var(--soft); border-radius: 16px; border-bottom-left-radius: 4px; width: max-content; }
.demo__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.demo__typing span:nth-child(2) { animation-delay: .15s; }
.demo__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
/* Secuencia animada (main.js la activa solo con JavaScript y sin "reducir movimiento") */
.demo__panel.is-asking .msg--you { animation: rise .5s ease both; }
.demo__panel.is-thinking .msg--ai { display: none; }
.demo__panel.is-thinking .demo__typing { display: flex; animation: rise .3s ease both; }
.demo__panel.is-answering .msg--ai { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo__caption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tools li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); background: var(--card); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 780px; margin-bottom: 48px; }

/* Por qué ahora */
.why { padding: 88px 0; background: var(--accent-soft); }
.why__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.why h2 { font-size: clamp(28px, 3.4vw, 42px); }
.why .eyebrow { color: var(--accent-ink); }
.why__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: w; }
.why__points li { counter-increment: w; position: relative; display: grid; gap: 4px; padding: 20px 22px 20px 70px; background: var(--card); border-radius: var(--radius); }
.why__points li::before { content: counter(w, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font: italic 600 26px/1 var(--display); color: var(--accent); }
.why__points strong { font: 600 19px/1.25 var(--display); color: var(--ink); }
.why__points span { font-size: 15px; color: var(--muted); }

/* Para quién */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who__card { padding: 32px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.who__tag { display: inline-block; font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.who__card h3 { font-size: 23px; margin-bottom: 18px; }
.who__card .ticks { font-size: 16px; }
.who__more { margin-top: 26px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Programa (sección oscura) */
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: #F08A63; }
.section--dark .eyebrow { color: #F08A63; }
.section--dark .lead { color: rgba(244, 238, 228, .72); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); }
.step::after { content: ""; position: absolute; top: 40px; right: -13px; width: 10px; height: 2px; background: rgba(240, 138, 99, .55); }
.step:last-child::after { display: none; }
.step__n { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #F08A63; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: rgba(244, 238, 228, .72); }
.step--free { background: transparent; border: 1.5px dashed rgba(240, 138, 99, .55); }
.rhythm { margin-top: 40px; padding: 28px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.rhythm__title { font: 600 14px/1.3 var(--body); color: rgba(244, 238, 228, .72); margin-bottom: 18px; }
.rhythm ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: r; }
.rhythm li { counter-increment: r; display: grid; gap: 4px; padding-left: 44px; position: relative; }
.rhythm li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 15px/32px var(--body); text-align: center; }
.rhythm strong { font: 600 19px/1.2 var(--display); color: #fff; }
.rhythm span { font-size: 14px; color: rgba(244, 238, 228, .72); }

/* Lo que te llevas */
.gets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.get { padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.get svg { width: 40px; height: 40px; margin-bottom: 18px; padding: 8px; border-radius: 12px; background: var(--accent-soft); }
.get svg path, .get svg circle { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.get h3 { margin-bottom: 8px; }
.get p { color: var(--muted); font-size: 15px; }

/* Precios */
.prices { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: stretch; }
.price { position: relative; padding: 34px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.price h3 { font-size: 22px; }
.price__amount { font: 600 46px/1 var(--display); color: var(--ink); margin-top: 18px; letter-spacing: -.02em; }
.price__amount small { font: 600 15px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.price__sub { font-size: 14px; color: var(--muted); margin: 10px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price .ticks { font-size: 15px; }
.price--main { background: var(--dark); border-color: var(--dark); color: var(--cream); transform: translateY(-10px); box-shadow: 0 30px 60px -30px rgba(27, 26, 46, .55); }
.price--main h3, .price--main .price__amount { color: #fff; }
.price--main .price__amount small, .price--main .price__sub { color: rgba(244, 238, 228, .7); }
.price--main .price__sub { border-bottom-color: rgba(255, 255, 255, .12); }
.price--main .ticks li::before { border-color: #F08A63; }
.price__badge { position: absolute; top: -13px; left: 30px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
.prices__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; }
.prices__foot p { max-width: 680px; color: var(--muted); font-size: 15px; }
.prices__foot .btn { flex: none; }

/* Sobre mí */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; border-radius: 24px; aspect-ratio: 900 / 1035; object-fit: cover; }
.about__lead { font: 500 21px/1.4 var(--display); color: var(--ink); margin: 18px 0 18px; }
.about__text > p:not(.eyebrow):not(.about__lead) { color: var(--text); margin-top: 14px; }
/* What I've built with AI: real work, as proof */
.made { margin-top: 30px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.made__title { font: 600 13px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.made ul { list-style: none; margin: 0; padding: 0; }
.made li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.made li:last-child { border-bottom: 0; padding-bottom: 2px; }
.made__n { width: 34px; font: italic 600 24px/1 var(--display); color: var(--accent); }
.made li div { display: grid; gap: 2px; }
.made strong { font: 600 18px/1.25 var(--display); color: var(--ink); }
.made li div span { font-size: 14.5px; color: var(--muted); }
.made a, .made button { font: 600 14px var(--body); color: var(--accent-ink); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; white-space: nowrap; }
.made a:hover, .made button:hover { color: var(--ink); }

/* Preguntas */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font: 600 19px/1.3 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact__list li > span:first-child { color: var(--muted); }
.contact__list a { font-weight: 600; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; text-align: right; }
.contact__list a:hover { color: var(--accent-ink); }
.form { display: grid; gap: 14px; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(27, 26, 46, .3); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 400 16px var(--body); color: var(--ink); background: #fff; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.is-error input { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { min-height: 1.4em; font-size: 15px; }
.form__note.is-success { color: var(--accent-ink); }
.form__note.is-error { color: #b03a2e; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- AI assistant chat (adapted from Sakbé Digital and M&W) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.chat__fab { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 18px 40px -14px rgba(27, 26, 46, .7); transition: transform .4s ease, background .3s, opacity .4s; }
.chat__fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); animation: chatPulse 2.8s ease infinite; pointer-events: none; }
.chat__fab:hover { transform: scale(1.06); background: var(--accent); }
.chat__fab svg { position: absolute; width: 26px; height: 26px; transition: transform .4s ease, opacity .3s; }
.chat__fab-open { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.chat__fab-open circle { fill: #F08A63; stroke: none; }
.chat__fab-close { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__fab::after { animation: none; opacity: 0; }
.chat.is-open .chat__fab-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat__fab-close { opacity: 1; transform: none; }
@keyframes chatPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.chat__hint { position: absolute; right: 76px; bottom: 12px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 14px 30px -18px rgba(27, 26, 46, .45); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.chat__hint em { font-style: normal; color: var(--accent-ink); font-weight: 600; }
.chat__hint.is-visible { opacity: 1; transform: none; }
.chat__panel { position: absolute; right: 0; bottom: 80px; display: flex; flex-direction: column; width: 390px; height: min(600px, calc(100vh - 130px)); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(27, 26, 46, .55); overflow: hidden; transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); transition: opacity .4s ease, transform .5s ease, visibility 0s .5s; }
.chat.is-open .chat__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease, transform .5s ease; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: var(--dark); color: #fff; }
.chat__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.chat__avatar svg { width: 30px; height: 27px; }
.chat__avatar .lm-back { stroke: #fff; }
.chat__avatar .lm-front { fill: var(--accent); }
.chat__avatar .lm-spark { stroke: #fff; }
.chat__title { display: grid; gap: 2px; margin-right: auto; }
.chat__title strong { font: 600 18px/1.1 var(--display); color: #fff; }
.chat__title span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(244, 238, 228, .72); }
.online { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62, 207, 142, .18); }
.chat__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; transition: background .3s; }
.chat__close:hover { background: var(--accent); border-color: var(--accent); }
.chat__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(80% 40% at 100% 0%, var(--accent-soft), transparent 70%), var(--bg); }
.bubble { max-width: 86%; padding: 12px 15px; font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; animation: bubbleIn .4s ease both; }
.bubble--bot { align-self: flex-start; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; }
.bubble--user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble--error { border-color: rgba(192, 57, 43, .4); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble--typing { display: flex; gap: 5px; padding: 15px 16px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.bubble--typing span:nth-child(2) { animation-delay: .15s; }
.bubble--typing span:nth-child(3) { animation-delay: .3s; }
.bubble-link { align-self: flex-start; margin: -2px 0 4px 4px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.bubble-link:hover { color: var(--ink); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { padding: 9px 14px; border: 1px solid rgba(217, 83, 43, .4); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 13.5px var(--body); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 10px 16px; background: var(--card); border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; max-height: 120px; padding: 11px 0; border: 0; background: transparent; font: 400 16px/1.4 var(--body); color: var(--ink); resize: none; }
.chat__form textarea::placeholder { color: var(--muted); }
.chat__form textarea:focus { outline: none; }
.chat__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; transition: background .3s, transform .3s; }
.chat__send:hover { background: var(--accent-ink); transform: translateX(2px); }
.chat__send:disabled { opacity: .45; cursor: default; transform: none; }
.chat__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat__note { padding: 0 16px 12px; background: var(--card); font-size: 11px; line-height: 1.4; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .chat { right: 16px; bottom: 16px; }
  .chat__fab { width: 58px; height: 58px; }
  .chat__hint { right: 70px; bottom: 11px; }
  .chat__panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; transform: translateY(24px); }
  .chat.is-open .chat__fab { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat__fab::after, .bubble { animation: none; }
}

/* Reveal: only while JS runs; content is never hidden without it */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .price--main.reveal.is-in { transform: translateY(-10px); }

/* Legal page */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); margin-top: 10px; }
.legal ul { padding-left: 22px; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .gets { grid-template-columns: repeat(2, 1fr); }
  .why__in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; margin: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .header__tools { margin-left: auto; }
  .hero__in, .who, .about, .contact { grid-template-columns: 1fr; }
  .hero__in { gap: 44px; }
  .prices { grid-template-columns: 1fr; max-width: 520px; }
  .price--main, .js .price--main.reveal.is-in { transform: none; }
  .price--main { margin-top: 10px; }
  .prices__foot { flex-direction: column; align-items: flex-start; }
  .rhythm ol { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about { gap: 36px; }
  .about__photo { max-width: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .hero { padding: 44px 0 40px; }
  .section { padding: 72px 0; }
  .ctas .btn, .prices__foot .btn { width: 100%; }
  .logo small { display: none; }
  .logo span { font-size: 21px; }
  .steps, .gets, .who { grid-template-columns: 1fr; }
  .why { padding: 64px 0; }
  .why__points li { padding: 18px 18px 18px 60px; }
  .why__points li::before { left: 18px; }
  .rhythm { padding: 24px 20px; }
  .rhythm ol { grid-template-columns: 1fr; }
  .who__card, .price, .form { padding: 24px; }
  .demo__tabs { gap: 4px; }
  .demo__tabs button { font-size: 13px; padding: 9px 11px; }
  .demo__win { padding: 0 14px 18px; min-height: 0; }
  .demo__bar { margin: 0 -14px 16px; }
  .msg { max-width: 100%; }
  .contact__list li { flex-direction: column; gap: 4px; }
  .made { padding: 18px; }
  .made li { grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
  .made__n { padding-top: 2px; }
  .made li > a, .made li > button { grid-column: 2; justify-self: start; padding: 2px 0 0; }
  .contact__list a { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .logo__mark .lm-back, .js .logo__mark .lm-spark { animation: none; stroke-dashoffset: 0; }
  .js .logo__mark .lm-front { animation: none; opacity: 1; }
  .demo__panel .msg--you, .demo__panel .msg--ai { animation: none !important; }
}
