/* ================================================================
   Mindexa — landing page
   Shares brand DNA with the admin console: warm stone neutrals,
   muted industrial-orange accent, Manrope + JetBrains Mono.
   All classes prefixed .l-
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --stone-00: #ffffff;
  --stone-50: #fafaf8;
  --stone-100: #f4f3ef;
  --stone-150: #ecebe6;
  --stone-200: #e2dfd9;
  --stone-300: #cbc7be;
  --stone-400: #a09c92;
  --stone-500: #6f6c64;
  --stone-600: #4e4c46;
  --stone-700: #34332f;
  --stone-800: #21201d;
  --stone-900: #131312;
  --stone-950: #0a0a09;

  --accent-50:  #fff5ec;
  --accent-100: #ffe4cc;
  --accent-300: #f7b27a;
  --accent-500: #e07a2f;
  --accent-600: #c5621a;
  --accent-700: #9e4e15;

  --success: #3a8a52;
  --success-bg: #e6f1e8;

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper: #f0eee8;
  --maxw: 1160px;
  --gut: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* visible keyboard focus for all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: 6px;
}
a, button { -webkit-tap-highlight-color: transparent; }
button, .l-btn, .l-faq-q, .l-showcase-step, .l-menu-toggle { touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01';
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.l-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* eyebrow / mono labels */
.l-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.l-eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--accent-500);
}
.l-eyebrow.is-light { color: var(--accent-300); }
.l-eyebrow.is-light::before { background: var(--accent-300); }

/* section scaffolding */
.l-section { padding: 96px 0; }
.l-section-head { max-width: 720px; margin-bottom: 52px; }
.l-section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.l-section-head.is-center .l-eyebrow { justify-content: center; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
.l-h2 { font-size: clamp(30px, 4vw, 46px); color: var(--stone-900); }
.l-h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.l-lede { font-size: 19px; color: var(--stone-600); margin: 18px 0 0; line-height: 1.55; text-wrap: pretty; }

/* ─── Buttons ──────────────────────────────────────────────── */
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 16px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .14s, border-color .14s, transform .14s, box-shadow .14s;
}
.l-btn svg { width: 19px; height: 19px; }
.l-btn-primary {
  background: var(--accent-600);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -12px rgba(197,98,26,0.6);
}
.l-btn-primary:hover { background: var(--accent-700); transform: translateY(-1px); }
.l-btn-secondary {
  background: var(--stone-00);
  color: var(--stone-800);
  border-color: var(--stone-300);
}
.l-btn-secondary:hover { border-color: var(--stone-400); background: var(--stone-50); }
.l-btn-dark {
  background: var(--stone-900);
  color: #fff;
}
.l-btn-dark:hover { background: var(--stone-800); transform: translateY(-1px); }
.l-btn-light {
  background: #fff;
  color: var(--stone-900);
}
.l-btn-light:hover { background: var(--stone-100); transform: translateY(-1px); }
.l-btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.l-btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.l-btn-sm { height: 42px; font-size: 14.5px; padding: 0 18px; }

/* ─── Header ───────────────────────────────────────────────── */
.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240,238,232,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.l-header.is-stuck { border-bottom-color: var(--stone-200); background: rgba(240,238,232,0.92); }
.l-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.l-brand { display: flex; align-items: center; gap: 11px; }
.l-brand-mark { color: var(--accent-600); display: flex; }
.l-brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--stone-900); }
.l-nav { display: flex; gap: 4px; margin-left: 8px; }
.l-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--stone-600);
  transition: background .12s, color .12s;
}
.l-nav a:hover { background: var(--stone-150); color: var(--stone-900); }
.l-header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* hamburger */
.l-menu-toggle {
  display: none;
  width: 42px; height: 42px;
  margin-left: auto;
  border: 1px solid var(--stone-200);
  border-radius: 9px;
  background: var(--stone-00);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.l-menu-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--stone-800);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s;
}
.l-menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.l-menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.l-menu-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.l-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.l-menu-toggle.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* mobile dropdown panel */
.l-mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 16px 32px -16px rgba(19,19,18,0.18);
  padding: 14px var(--gut) 22px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .26s;
}
.l-mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
.l-mobile-nav a:not(.l-btn) {
  padding: 13px 12px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 500;
  color: var(--stone-700);
}
.l-mobile-nav a:not(.l-btn):active { background: var(--stone-150); }
.l-mobile-nav .l-btn { margin-top: 8px; width: 100%; justify-content: center; }
body.l-nav-open { overflow: hidden; }

/* dark backdrop behind the dropdown panel, dims the rest of the page */
.l-nav-backdrop {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  height: calc(100vh - 68px); /* header has backdrop-filter -> its own containing block for fixed children, so bottom:0 would collapse against the 68px header box instead of the viewport */
  z-index: 48;
  background: rgba(10,10,9,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.l-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ─── Hero ─────────────────────────────────────────────────── */
.l-hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.l-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}
.l-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--stone-900);
}
.l-hero h1 .l-mark { color: var(--accent-600); }
.l-hero-sub { font-size: 19.5px; color: var(--stone-600); margin: 24px 0 0; max-width: 560px; line-height: 1.55; text-wrap: pretty; }
.l-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }
.l-trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--stone-600);
  font-weight: 500;
}
.l-trust svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

/* channel chips */
.l-channels {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--stone-200);
}
.l-channels-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin: 0 0 14px;
}
.l-channel-row { display: flex; flex-wrap: wrap; gap: 10px; }
.l-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--stone-00);
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--stone-700);
}
.l-chip .l-chip-ico {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid; place-content: center;
  flex-shrink: 0;
  object-fit: contain;
}
.l-chip .l-chip-ico-fallback {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* hero visual */
.l-hero-visual { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.l-chat-hero { max-width: 100%; margin: 0; }
.l-chat-hero .l-chat-body { height: 400px; }
.l-demo-restart-hero { align-self: center; margin-top: 18px; }
.l-device {
  background: var(--stone-00);
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 40px 80px -40px rgba(19,19,18,0.32);
  overflow: hidden;
}
.l-device-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--stone-150);
  background: var(--stone-50);
}
.l-device-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--stone-200); }
.l-device-label {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-500);
}
.l-hero-slot { display: block; width: 100%; }

/* ─── Pain section ─────────────────────────────────────────── */
.l-pain { background: var(--stone-900); color: #fff; }
.l-pain .l-h2 { color: #fff; }
.l-pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.l-pain-card {
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.l-pain-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-300);
  margin-bottom: 14px;
}
.l-pain-card p { margin: 0; color: #d8d5cc; font-size: 16px; line-height: 1.5; }
.l-pain-card b { color: #fff; font-weight: 600; }

/* ─── How it works ─────────────────────────────────────────── */
.l-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.l-step {
  position: relative;
  padding: 0 24px;
  border-left: 1px solid var(--stone-200);
}
.l-step:first-child { padding-left: 0; border-left: none; }
.l-step-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-50);
  border: 1px solid var(--accent-300);
  color: var(--accent-700);
  display: grid; place-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
}
.l-step h3 { margin-bottom: 10px; }
.l-step p { margin: 0; color: var(--stone-600); font-size: 16px; }
.l-step p .l-chan { font-weight: 600; color: var(--stone-800); }
.l-step-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 5px 10px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-700);
}
.l-step-note svg { width: 15px; height: 15px; }

/* ─── Feature grid ─────────────────────────────────────────── */
.l-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.l-feature {
  padding: 30px 26px;
  background: var(--stone-00);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.l-feature:hover {
  border-color: var(--stone-300);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(19,19,18,0.3);
}
.l-feature-ico {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--accent-50);
  color: var(--accent-600);
  border: 1px solid var(--accent-100);
  display: grid; place-content: center;
  margin-bottom: 20px;
}
.l-feature-ico svg { width: 24px; height: 24px; }
.l-feature h3 { margin-bottom: 9px; }
.l-feature p { margin: 0; color: var(--stone-600); font-size: 15.5px; line-height: 1.55; }

/* ─── Demo chat ────────────────────────────────────────────── */
.l-demo { background: var(--stone-100); }
.l-demo-grid {
  display: grid;
  grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr);
  gap: 56px;
  align-items: center;
}
.l-chat {
  background: var(--stone-00);
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -44px rgba(19,19,18,0.3);
  max-width: 520px;
}
.l-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stone-150);
  background: var(--stone-50);
}
.l-chat-ava {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-600);
  color: #fff;
  display: grid; place-content: center;
}
.l-chat-ava svg { width: 20px; height: 20px; }
.l-chat-id { line-height: 1.25; }
.l-chat-id b { font-size: 15px; font-weight: 700; }
.l-chat-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--success); font-weight: 500; }
.l-chat-status .l-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.l-chat-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    repeating-linear-gradient(transparent, transparent 23px, rgba(0,0,0,0.014) 23px, rgba(0,0,0,0.014) 24px);
}
.l-msg {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  animation: l-msg-in .32s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes l-msg-in { from { opacity: 0; transform: translateY(8px); } }
.l-msg-bot {
  align-self: flex-start;
  background: var(--stone-100);
  color: var(--stone-800);
  border-bottom-left-radius: 4px;
}
.l-msg-user {
  align-self: flex-end;
  background: var(--accent-600);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.l-msg-sys {
  align-self: center;
  max-width: 92%;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-700);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
}
.l-msg-sys svg { width: 16px; height: 16px; flex-shrink: 0; }
.l-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.l-typing span {
  width: 7px; height: 7px; border-radius: 999px; background: var(--stone-400);
  animation: l-bounce 1.2s infinite;
}
.l-typing span:nth-child(2) { animation-delay: .15s; }
.l-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes l-bounce { 0%,60%,100%{ transform: translateY(0); opacity:.5 } 30%{ transform: translateY(-5px); opacity:1 } }
.l-chat-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--stone-150);
  background: var(--stone-00);
}
.l-chat-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--stone-50);
  font: 15px var(--font-sans);
  color: var(--stone-500);
  display: flex; align-items: center;
}
.l-chat-send {
  width: 42px; height: 42px;
  border-radius: 999px;
  border: none;
  background: var(--accent-600);
  color: #fff;
  cursor: pointer;
  display: grid; place-content: center;
  flex-shrink: 0;
}
.l-chat-send:hover { background: var(--accent-700); }
.l-chat-send svg { width: 19px; height: 19px; }
.l-demo-restart {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--accent-600);
  font: 600 14.5px var(--font-sans);
  cursor: pointer;
  padding: 0;
}
.l-demo-restart svg { width: 16px; height: 16px; }
.l-demo-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--stone-500);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 440px;
}
.l-demo-note svg { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; color: var(--stone-400); }

/* live widget mount (user installs their own chat here) */
.l-demo-widget { display: flex; justify-content: center; }
.l-live-mount {
  width: 100%;
  max-width: 520px;
}
.l-live-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  min-height: 460px;
  padding: 40px 32px;
  border: 1.5px dashed var(--stone-300);
  border-radius: 16px;
  background: var(--stone-00);
  justify-content: center;
}
.l-live-ph-ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-600);
  display: grid; place-content: center;
}
.l-live-ph-ico svg { width: 28px; height: 28px; }
.l-live-ph b { font-size: 18px; color: var(--stone-800); letter-spacing: -0.01em; }
.l-live-ph span:last-child { font-size: 14.5px; color: var(--stone-500); max-width: 320px; line-height: 1.5; }
.l-live-ph code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--stone-100);
  color: var(--accent-700);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ─── Mindexa Chat Widget (markup on page, behaviour from CDN JS) ───────────
   Local tokens fall back to the page palette, so the widget also works
   standalone on any client site. */
.mxa-chat {
  --mxa-ink: var(--stone-800, #21201d);
  --mxa-muted: var(--stone-500, #6f6c64);
  --mxa-line: var(--stone-200, #e2dfd9);
  --mxa-panel: var(--stone-00, #ffffff);
  --mxa-soft: var(--stone-100, #f4f3ef);
  --mxa-brand: var(--accent-500, #e07a2f);
  --mxa-brand-dark: var(--accent-600, #c5621a);
  --mxa-brand-deep: var(--accent-700, #9e4e15);
  --mxa-accent: var(--accent-300, #f7b27a);
  --mxa-danger: #b43b3b;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: min(620px, 78vh);
  min-height: 460px;
  overflow: hidden;
  background: var(--mxa-panel);
  border: 1px solid var(--mxa-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(33, 32, 29, 0.12), 0 4px 16px rgba(33, 32, 29, 0.06);
  color: var(--mxa-ink);
  font-family: var(--font-sans, system-ui, sans-serif);
}
.mxa-chat, .mxa-chat * { box-sizing: border-box; }

.mxa-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--mxa-panel);
  border-bottom: 1px solid var(--mxa-line);
}
.mxa-chat__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mxa-chat__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--mxa-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.mxa-chat__heading { min-width: 0; }
.mxa-chat__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mxa-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mxa-chat__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  min-height: 16px;
  font-size: 12px;
  color: var(--mxa-muted);
}
.mxa-chat__status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--mxa-accent);
}
.mxa-chat__status-dot[data-state="online"] { background: var(--success, #3a8a52); }
.mxa-chat__status-dot[data-state="error"] { background: var(--mxa-danger); }

.mxa-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--mxa-soft);
  scroll-behavior: smooth;
}
.mxa-chat__empty {
  align-self: center;
  margin: auto 0;
  max-width: 260px;
  padding: 14px;
  border: 1px solid var(--mxa-line);
  border-radius: 10px;
  background: var(--mxa-panel);
  color: var(--mxa-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.mxa-message { display: flex; width: 100%; }
.mxa-message[data-side="out"] { justify-content: flex-end; }
.mxa-message[data-side="in"] { justify-content: flex-start; }
.mxa-message__bubble {
  max-width: min(82%, 320px);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.mxa-message[data-side="out"] .mxa-message__bubble { background: var(--mxa-brand); color: #fff; }
.mxa-message[data-side="in"] .mxa-message__bubble {
  background: var(--mxa-panel);
  border: 1px solid var(--mxa-line);
  color: var(--mxa-ink);
}
.mxa-message__meta {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.66;
}
.mxa-message__text { white-space: pre-wrap; }

.mxa-typing { display: inline-flex; align-items: center; gap: 7px; }
.mxa-typing__label { color: var(--mxa-muted); font-size: 13px; font-weight: 600; }
.mxa-typing__dots { display: inline-flex; align-items: center; gap: 4px; }
.mxa-typing__dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--mxa-brand);
  opacity: 0.38;
  animation: mxa-typing-pulse 1s ease-in-out infinite;
}
.mxa-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.mxa-typing__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes mxa-typing-pulse {
  0%, 80%, 100% { opacity: 0.32; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.mxa-message__markdown { display: grid; gap: 8px; white-space: normal; }
.mxa-message__markdown p,
.mxa-message__markdown ul,
.mxa-message__markdown ol,
.mxa-message__markdown pre,
.mxa-message__markdown blockquote,
.mxa-message__markdown h1,
.mxa-message__markdown h2,
.mxa-message__markdown h3 { margin: 0; }
.mxa-message__markdown h1,
.mxa-message__markdown h2,
.mxa-message__markdown h3 { font-size: 15px; line-height: 1.28; }
.mxa-message__markdown ul,
.mxa-message__markdown ol { padding-left: 18px; }
.mxa-message__markdown li + li { margin-top: 4px; }
.mxa-message__markdown code {
  padding: 1px 4px;
  border: 1px solid var(--accent-100, rgba(224, 122, 47, 0.14));
  border-radius: 4px;
  background: var(--accent-50, rgba(224, 122, 47, 0.1));
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.92em;
}
.mxa-message__markdown pre {
  padding: 10px;
  border-radius: 8px;
  background: var(--stone-900, #131312);
  color: #f4f3ef;
  overflow-x: auto;
}
.mxa-message__markdown pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: pre;
}
.mxa-message__markdown a {
  color: var(--mxa-brand-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mxa-message__markdown blockquote {
  padding-left: 10px;
  border-left: 3px solid var(--mxa-line);
  color: var(--mxa-muted);
}

.mxa-chat__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: var(--mxa-panel);
  border-top: 1px solid var(--mxa-line);
}
.mxa-chat__input {
  flex: 1 1 auto;
  min-height: 42px;
  max-height: 126px;
  padding: 10px 12px;
  border: 1px solid var(--mxa-line);
  border-radius: 10px;
  background: var(--mxa-panel);
  color: var(--mxa-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: 0;
}
.mxa-chat__input:focus { border-color: var(--mxa-brand); }
.mxa-chat__input::placeholder { color: var(--stone-400, #a09c92); }
.mxa-chat__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--mxa-brand);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.mxa-chat__send:hover { background: var(--mxa-brand-dark); }
.mxa-chat__send:active { transform: translateY(1px); }
.mxa-chat__send:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.mxa-chat__send svg { width: 18px; height: 18px; }

/* ─── Video showcase (Telegram-Premium style) ──────────────── */
.l-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
/* media frame is pinned while the feature list scrolls past */
.l-showcase-media { position: sticky; top: 92px; }
.l-showcase-frame {
  background: var(--stone-900);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 30px 70px -30px rgba(19,19,18,0.55);
}
.l-showcase-bar { display: flex; gap: 7px; padding: 6px 6px 12px; }
.l-showcase-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.l-showcase-bar span:first-child { background: var(--accent-500); }
.l-showcase-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--stone-800);
}
.l-showcase-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s ease, transform .7s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.l-showcase-video.is-active { opacity: 1; transform: none; }
/* empty-state label shown when a slot has no <source> yet */
.l-showcase-stage::after {
  content: 'Видео-демо';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  z-index: -1;
}

.l-showcase-list { display: flex; flex-direction: column; gap: 12px; }
.l-showcase-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--stone-00);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.62;
  transition: opacity .3s, border-color .3s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.l-showcase-step:hover { opacity: 0.85; }
.l-showcase-step.is-active {
  opacity: 1;
  border-color: var(--accent-300);
  box-shadow: 0 12px 30px -18px rgba(197,98,26,0.5);
}
.l-showcase-ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--stone-100);
  color: var(--stone-500);
  transition: background .3s, color .3s;
}
.l-showcase-ico svg { width: 22px; height: 22px; }
.l-showcase-step.is-active .l-showcase-ico { background: var(--accent-50); color: var(--accent-600); }
.l-showcase-text b { display: block; font-size: 17px; color: var(--stone-900); margin-bottom: 4px; }
.l-showcase-text span { font-size: 14.5px; color: var(--stone-600); line-height: 1.5; }
/* auto-advance progress bar */
.l-showcase-prog {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: transparent;
}
.l-showcase-prog i {
  display: block; height: 100%; width: 0;
  background: var(--accent-500);
}
.l-showcase-step.is-active .l-showcase-prog i {
  animation: l-prog var(--showcase-dur, 6000ms) linear forwards;
}
@keyframes l-prog { from { width: 0; } to { width: 100%; } }

/* ─── Dual offer ───────────────────────────────────────────── */
.l-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.l-offer-card {
  padding: 38px 34px;
  border-radius: 16px;
  border: 1px solid var(--stone-200);
  background: var(--stone-00);
  display: flex;
  flex-direction: column;
}
.l-offer-card.is-accent {
  background: var(--stone-900);
  border-color: var(--stone-900);
  color: #fff;
}
.l-offer-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.l-offer-card.is-accent .l-offer-kicker { color: var(--accent-300); }
.l-offer-card h3 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 14px; }
.l-offer-card.is-accent h3 { color: #fff; }
.l-offer-card > p { margin: 0 0 22px; color: var(--stone-600); font-size: 16.5px; line-height: 1.55; }
.l-offer-card.is-accent > p { color: #cfccc3; }
.l-offer-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.l-offer-list li { display: flex; gap: 11px; font-size: 15.5px; color: var(--stone-700); }
.l-offer-card.is-accent .l-offer-list li { color: #d8d5cc; }
.l-offer-list svg { width: 19px; height: 19px; color: var(--accent-600); flex-shrink: 0; margin-top: 1px; }
.l-offer-card.is-accent .l-offer-list svg { color: var(--accent-300); }
.l-offer-foot { margin-top: auto; }

/* ─── Segments ─────────────────────────────────────────────── */
.l-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.l-segment {
  padding: 30px 28px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: var(--stone-00);
}
.l-segment-ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--stone-100);
  color: var(--stone-700);
  display: grid; place-content: center;
  margin-bottom: 18px;
}
.l-segment-ico svg { width: 23px; height: 23px; }
.l-segment h3 { margin-bottom: 10px; }
.l-segment p { margin: 0 0 16px; color: var(--stone-600); font-size: 15.5px; line-height: 1.5; }
.l-segment-result {
  font-size: 14px;
  color: var(--stone-500);
  padding-top: 14px;
  border-top: 1px solid var(--stone-150);
}
.l-segment-result b { color: var(--accent-700); font-weight: 600; }
.l-ph {
  font-family: var(--font-mono);
  background: var(--accent-50);
  color: var(--accent-700);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ─── Why us ───────────────────────────────────────────────── */
.l-why { background: var(--stone-900); color: #fff; }
.l-why .l-h2 { color: #fff; }
.l-why .l-lede { color: #b8b4aa; }
.l-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.l-why-card {
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}
.l-why-ico { color: var(--accent-300); margin-bottom: 16px; }
.l-why-ico svg { width: 26px; height: 26px; }
.l-why-card h3 { color: #fff; font-size: 18px; margin-bottom: 9px; }
.l-why-card p { margin: 0; color: #b8b4aa; font-size: 15px; line-height: 1.5; }

/* ─── Pricing ──────────────────────────────────────────────── */
.l-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.l-plan {
  padding: 32px 30px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  background: var(--stone-00);
  display: flex;
  flex-direction: column;
  position: relative;
}
.l-plan.is-featured {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 1px var(--accent-500), 0 30px 60px -36px rgba(197,98,26,0.4);
}
.l-plan-flag {
  position: absolute;
  top: -12px; left: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-600);
  color: #fff;
  padding: 4px 11px;
  border-radius: 6px;
}
.l-plan-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--stone-900); font-family: var(--font-mono); }
.l-plan.is-featured .l-plan-name { color: var(--accent-600); }
.l-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 6px; }
.l-plan-amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--stone-900); font-family: var(--font-mono); }
.l-plan-per { font-size: 15px; color: var(--stone-500); }
.l-plan-desc { font-size: 14.5px; color: var(--stone-600); margin: 14px 0 22px; min-height: 42px; }
.l-plan-feats { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.l-plan-feats li { display: flex; gap: 10px; font-size: 15px; color: var(--stone-700); }
.l-plan-feats svg { width: 18px; height: 18px; color: var(--accent-600); flex-shrink: 0; margin-top: 1px; }
.l-plan-feats .l-ph { font-size: 13px; }
.l-plan-foot { margin-top: auto; }
.l-plan-foot .l-btn { width: 100%; }

.l-pricing-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--stone-500);
  margin: 24px 0 0;
}

/* ─── FAQ ──────────────────────────────────────────────────── */
.l-faq { max-width: 820px; margin: 0 auto; }
.l-faq-item {
  border-bottom: 1px solid var(--stone-200);
}
.l-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font: 600 19px var(--font-sans);
  color: var(--stone-900);
  text-align: left;
  letter-spacing: -0.015em;
}
.l-faq-q:hover { color: var(--accent-700); }
.l-faq-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--accent-600);
  transition: transform .25s;
}
.l-faq-item.is-open .l-faq-icon { transform: rotate(45deg); }
.l-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.l-faq-a-inner {
  padding: 0 4px 26px;
  color: var(--stone-600);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 700px;
}

/* ─── Final CTA / contacts ─────────────────────────────────── */
.l-cta {
  background: var(--accent-600);
  background-image: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  color: #fff;
}
.l-cta-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.l-cta h2 { font-size: clamp(32px, 4.5vw, 50px); color: #fff; }
.l-cta-sub { font-size: 19px; color: rgba(255,255,255,0.86); margin: 18px 0 0; }
.l-contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.l-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  transition: background .14s, transform .14s;
}
.l-contact:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.l-contact-ico { color: #fff; margin-bottom: 8px; }
.l-contact-ico svg { width: 26px; height: 26px; }
.l-contact-label { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.l-contact-value { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }

/* ─── Footer ───────────────────────────────────────────────── */
.l-footer { background: var(--stone-950); color: #9a968d; padding: 56px 0 40px; }
.l-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.l-footer .l-brand-name { color: #fff; }
.l-footer-tagline { margin: 16px 0 0; font-size: 15px; max-width: 320px; line-height: 1.55; }
.l-footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.l-footer-col h4 { font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #6f6c64; margin: 0 0 16px; font-weight: 600; }
.l-footer-col a { display: block; font-size: 15px; color: #c4c0b7; margin-bottom: 11px; }
.l-footer-col a:hover { color: #fff; }
.l-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13.5px;
  color: #6f6c64;
}

/* ─── Responsive ───────────────────────────────────────────── */
/* collapse nav to hamburger before items would wrap */
@media (max-width: 920px) {
  .l-nav { display: none; }
  .l-header-actions { display: none; }
  .l-menu-toggle { display: block; }
  .l-mobile-nav { display: flex; }
  .l-nav-backdrop { display: block; }
}
@media (max-width: 980px) {
  .l-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .l-demo-grid, .l-offer-grid { grid-template-columns: 1fr; gap: 36px; }
  .l-pain-grid, .l-why-grid { grid-template-columns: repeat(2, 1fr); }
  .l-features, .l-segments, .l-pricing-grid, .l-contacts { grid-template-columns: repeat(2, 1fr); }
  .l-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .l-step { padding: 0 20px; }
  .l-step:nth-child(odd) { padding-left: 0; border-left: none; }
  .l-chat { max-width: none; }
  /* showcase: media on top, no longer pinned */
  .l-showcase { grid-template-columns: 1fr; gap: 24px; }
  .l-showcase-media { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .l-section { padding: 64px 0; }
  .l-features, .l-segments, .l-pricing-grid, .l-contacts,
  .l-pain-grid, .l-why-grid, .l-steps { grid-template-columns: 1fr; }
  .l-showcase-step { padding: 16px 18px; gap: 13px; }
  .l-showcase-text b { font-size: 16px; }
  .l-step { padding: 0; border-left: none; }
  .l-hero-cta .l-btn { flex: 1; }
  .l-header-actions .l-btn span { display: none; }
}

/* ─── Scroll-reveal animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* directional variants */
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-scale { transform: scale(0.94); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible { transform: none; }

/* hero entrance plays on load (no scroll needed) */
@keyframes l-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.l-anim-rise {
  opacity: 0;
  animation: l-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

/* gentle float on the hero chat card */
@keyframes l-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.l-chat-hero { animation: l-float 6s ease-in-out infinite; }

/* nav link underline grow */
.l-nav a { position: relative; }
.l-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.l-nav a:hover::after { transform: scaleX(1); }

/* lift cards on hover */
.l-pain-card, .l-feature, .l-segment, .l-why-card, .l-plan, .l-offer-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.l-feature:hover, .l-segment:hover, .l-why-card:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .l-anim-rise { opacity: 1 !important; transform: none !important; animation: none !important; }
  .l-chat-hero { animation: none; }
  .l-showcase-video { transition: opacity .2s; }
  .l-showcase-step.is-active .l-showcase-prog i { animation: none; width: 100%; }
  html { scroll-behavior: auto; }
}
