/* =========================================================
   InteligentnyAgent.pl — Design system
   ========================================================= */

:root {
  --bg: #ffffff;
  --text-strong: #282624;
  --text: #474645;
  --text-muted: #77736f;
  --card: #f8f7f4;
  --subtle: #f6f4f0;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --cta: #171717;
  --cta-hover: #000000;
  --accent: #ff6b52;
  --accent-light: #ff8a73;
  --accent-soft: #fff1ed;

  --container: 1072px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 12px 40px -12px rgba(23, 23, 23, 0.16), 0 2px 8px rgba(23, 23, 23, 0.04);
  --shadow-lg: 0 40px 90px -30px rgba(23, 23, 23, 0.28), 0 8px 24px rgba(23, 23, 23, 0.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--text-strong); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--text-strong); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cta); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

.sep {
  height: 0;
  border-top: 1px dashed var(--line-strong);
  opacity: 0.9;
}

/* dividers span the inner content width */
.sep.container { border: none; }
.sep.container::after {
  content: "";
  display: block;
  max-width: var(--container);
  margin-inline: auto;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 20px;
  font-size: 1.17rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.22) 48%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-dark { background: var(--cta); color: #fff; }
.btn-dark:hover { background: var(--cta-hover); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.4); transform: translateY(-1px); }

.btn-outline { background: #fff; color: var(--text-strong); border-color: var(--line-strong); }
.btn-outline:hover { border-color: rgba(0, 0, 0, 0.28); background: var(--subtle); transform: translateY(-1px); }

.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--text-strong);
}
.btn-link .arrow, .badge-arrow { transition: transform 0.2s var(--ease); }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-link .arrow img, .badge-arrow img { width: 16px; height: 16px; opacity: 0.7; }

.link-quiet { font-weight: 500; font-size: 15px; color: var(--text); transition: color 0.18s var(--ease); }
.link-quiet:hover { color: var(--text-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.page-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ff9a74 55%, #ffcfbd);
  box-shadow: 0 0 12px rgba(255, 107, 82, 0.42);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 24px -20px rgba(0, 0, 0, 0.4);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-strong); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.06); }
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-size: 16.5px; letter-spacing: -0.02em; }

.main-nav { margin-left: 8px; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.main-nav a:hover { color: var(--text-strong); background: var(--subtle); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.main-nav a, .header-actions a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) { .main-nav ul { gap: 0; } .main-nav a { padding-inline: 10px; } .header-actions { gap: 12px; } .header-actions .btn { padding-inline: 16px; } }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; align-items: center; justify-content: center;
}
.nav-toggle img { width: 20px; height: 20px; }
.nav-toggle .nav-close-icon, .nav-toggle[aria-expanded="true"] .nav-menu-icon { display: none; }
.nav-toggle[aria-expanded="true"] .nav-close-icon { display: block; }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 24px 22px;
  display: flex; flex-direction: column; gap: 2px;
  animation: mobileNavIn 0.42s var(--ease-spring) both;
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 6px; font-size: 17px; font-weight: 500; color: var(--text-strong); border-bottom: 1px solid var(--line); }
.mobile-nav-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav-actions .link-quiet { padding: 8px 0; }
.mobile-nav-actions .btn-dark { color: #fff; border-bottom: 0; padding: 12px 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 44px;
  max-width: 900px;
  position: relative;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero::before {
  width: 420px;
  height: 420px;
  top: 24px;
  left: -190px;
  background: radial-gradient(circle, rgba(255, 107, 82, 0.11), transparent 68%);
  animation: heroGlowLeft 9s ease-in-out infinite alternate;
}
.hero::after {
  width: 360px;
  height: 360px;
  right: -150px;
  top: 90px;
  background: radial-gradient(circle, rgba(121, 154, 255, 0.09), transparent 68%);
  animation: heroGlowRight 11s ease-in-out infinite alternate;
}
@keyframes heroGlowLeft { to { transform: translate(34px, 24px) scale(1.12); } }
@keyframes heroGlowRight { to { transform: translate(-28px, -20px) scale(0.92); } }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--subtle);
  border: 1px solid var(--line);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.badge:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-1px); }
.badge:hover .badge-arrow { transform: translateX(3px); }
.badge-tag {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: var(--radius-pill);
  animation: badgePulse 3.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 82, 0); }
  50% { box-shadow: 0 0 0 5px rgba(255, 107, 82, 0.11); }
}
.badge-arrow { color: var(--text-muted); }

.hero-title {
  margin-top: 30px;
  font-size: clamp(2.6rem, 6.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text-strong);
}
.hero-word { display: inline-block; }
.hero-title.in .hero-word {
  animation: heroWordIn 0.9s var(--ease-spring) both;
  animation-delay: calc(0.12s + var(--word-i) * 0.075s);
}
@keyframes heroWordIn {
  from { opacity: 0; transform: translateY(28px) rotate(1.5deg); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero-lead {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--text-muted);
  line-height: 1.55;
}
.hero-actions {
  margin-top: 34px;
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.hero-note { margin-top: 26px; font-size: 14.5px; color: var(--text-muted); }
.hero-note .dot, .cta-note .dot { color: var(--line-strong); margin: 0 4px; }

/* =========================================================
   BROWSER MOCKUP (shared)
   ========================================================= */
.hero-mockup-wrap {
  padding-top: 8px;
  padding-bottom: 40px;
}
.browser {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  will-change: transform;
}
.hero-mockup-wrap .browser { max-width: var(--container); margin-inline: auto; }
.hero-mockup-wrap.in .browser { animation: browserSettle 1.15s var(--ease-spring) both; }
@keyframes browserSettle {
  from { box-shadow: 0 18px 50px -28px rgba(23, 23, 23, 0.18); }
  to { box-shadow: var(--shadow-lg); }
}

.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 16px;
  background: linear-gradient(180deg, #fbfaf8, #f6f4f0);
  border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #dedbd6; }
.dots i:nth-child(1) { background: #f0a89c; }
.dots i:nth-child(2) { background: #f2d09a; }
.dots i:nth-child(3) { background: #a9d8b0; }
.hero-mockup-wrap.in .dots i { animation: dotWake 0.55s var(--ease-spring) both; }
.hero-mockup-wrap.in .dots i:nth-child(2) { animation-delay: 0.08s; }
.hero-mockup-wrap.in .dots i:nth-child(3) { animation-delay: 0.16s; }
@keyframes dotWake { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
.url-pill {
  flex: 1 1 auto; min-width: 0; max-width: 320px; height: 28px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-align: center; font-size: 11.5px; line-height: 26px; color: var(--text-muted);
  padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(-1px);
}
.browser-bar-spacer { width: 40px; }

.browser-body { background: var(--card); }

/* ---- storefront inside hero mockup ---- */
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.hero-mockup-wrap .store-layout { height: 520px; min-height: 0; overflow: hidden; }
.store { padding: 24px; min-width: 0; background: #faf9f7; }
.store-topbar { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; min-width: 0; }
.store-logo { display: inline-flex; align-items: baseline; gap: 5px; flex: none; color: #242322; line-height: 1; }
.store-logo > span { font-size: 23px; font-weight: 800; letter-spacing: -0.075em; }
.store-logo img { display: block; height: 22px; width: auto; }
.store-logo small { font-size: 8px; letter-spacing: 0.2em; font-weight: 800; }
.store-menu { display: flex; gap: 18px; margin-left: auto; font-size: 10px; font-weight: 600; color: #77716d; white-space: nowrap; }
.store-cart { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e8e4df; background: #fff; display: grid; place-items: center; flex: none; }
.store-cart img { width: 14px; height: 14px; }

.store-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; background: #f1eee9; border-radius: 14px; padding: 10px 10px 10px 23px; margin-bottom: 18px; min-height: 180px; overflow: hidden; }
.store-hero-text { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.store-kicker { font-size: 9px; font-weight: 800; letter-spacing: 0.13em; color: #9b564b; }
.store-hero-text strong { font-size: clamp(19px, 2.25vw, 28px); line-height: 1.08; letter-spacing: -0.045em; color: #242322; max-width: 220px; }
.store-hero-text p { font-size: 10px; line-height: 1.45; color: #77716d; max-width: 220px; }
.store-hero-img { border-radius: 10px; min-height: 150px; background: #fff url('../img/aevii/light-cloud.jpg') center / contain no-repeat; }
.store-hero-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: #fff; background: var(--cta); border-radius: 999px; padding: 7px 11px; margin-top: 6px; font-size: 9px; font-weight: 700; line-height: 1; white-space: nowrap; }
.store-hero-btn img { width: 11px; height: 11px; filter: invert(1); }

.l { height: 9px; border-radius: 5px; background: #e7e3dd; }
.l.soft { background: #eceae5; }
.l-40 { width: 40%; } .l-50 { width: 50%; } .l-60 { width: 60%; } .l-70 { width: 70%; } .l-80 { width: 80%; } .l-90 { width: 90%; }

.store-grid-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 11px; }
.store-grid-head strong { font-size: 13px; color: var(--text-strong); letter-spacing: -0.025em; }
.store-grid-head span { font-size: 10px; color: var(--text-muted); }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.store-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px; display: flex; flex-direction: column; gap: 3px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.store-card-img { height: 88px; border-radius: 8px; margin-bottom: 6px; }
.store-card span { font-size: 10px; color: #57534f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card strong { font-size: 11px; color: var(--text-strong); }
.store-disclaimer { color: #9b9791; font-size: 9px; margin-top: 12px; }
.product-photo { background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: contain; }
.photo-1 { background-image: url('../img/aevii/light-cloud.jpg'); }
.photo-2 { background-image: url('../img/aevii/soft-cleanse.jpg'); }
.photo-3 { background-image: url('../img/aevii/aqua-drop.jpg'); }
.photo-4 { background-image: url('../img/aevii/balance-serum.jpg'); }
.photo-5 { background-image: url('../img/aevii/barrier-cream.jpg'); }
.photo-6 { background-image: url('../img/aevii/daily-shield.jpg'); }

/* =========================================================
   CHAT WIDGET
   ========================================================= */
.widget {
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.hero-mockup-wrap .widget { height: 100%; min-height: 0; overflow: hidden; }
.widget-head {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 16px; border-bottom: 1px solid var(--line);
}
.widget-avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
}
.widget-avatar img { width: 34px; height: 34px; object-fit: contain; }
.widget-head-text { display: flex; flex-direction: column; line-height: 1.3; }
.widget-head-text strong { font-size: 14.5px; color: var(--text-strong); }
.widget-status { font-size: 11.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #35c07a; box-shadow: 0 0 0 3px rgba(53, 192, 122, 0.18); animation: onlinePulse 2.6s ease-out infinite; }
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 192, 122, 0.18); }
  55% { box-shadow: 0 0 0 7px rgba(53, 192, 122, 0); }
}

.widget-body {
  flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; min-height: 0;
  background: linear-gradient(180deg, #fdfcfb, #fff);
  scrollbar-width: thin;
  scrollbar-color: #d9d3cc transparent;
}
.hero-mockup-wrap .widget-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  transition: opacity 0.5s var(--ease);
}
.hero-mockup-wrap .widget-body.is-resetting { opacity: 0; }
.hero-mockup-wrap .widget-body::-webkit-scrollbar { width: 6px; }
.hero-mockup-wrap .widget-body::-webkit-scrollbar-track { background: transparent; }
.hero-mockup-wrap .widget-body::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-pill);
}

.widget-input {
  display: flex; align-items: center; gap: 10px;
  margin: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--text-muted); font-size: 13.5px; background: var(--subtle);
}
.widget-send { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--cta); flex: none; position: relative; }
.widget-send::after { content: ""; position: absolute; inset: 0; background: url('/assets/img/icons/arrow-up.svg') center / 15px no-repeat; filter: invert(1); }

/* chat messages */
.chat-msg { display: flex; max-width: 88%; }
.chat-msg.has-products, .chat-msg.has-form { width: 100%; max-width: 100%; }
.chat-msg.user { align-self: flex-end; justify-content: flex-end; }
.chat-msg.ai { align-self: flex-start; }
.bubble {
  padding: 10px 14px; border-radius: 15px; font-size: 14px; line-height: 1.5; white-space: pre-line;
  box-shadow: var(--shadow-sm);
}
.chat-msg.ai .bubble { background: var(--card); color: var(--text-strong); border-bottom-left-radius: 5px; }
.chat-msg.user .bubble { background: var(--cta); color: #fff; border-bottom-right-radius: 5px; }

.reveal-in { animation: bubbleIn 0.5s var(--ease) both; }
.hero-mockup-wrap .reveal-in {
  animation-duration: 0.72s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes productIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* typing indicator */
.typing { display: inline-flex; gap: 4px; padding: 12px 15px; background: var(--card); border-radius: 15px; border-bottom-left-radius: 5px; }
.hero-mockup-wrap .typing { transition: opacity 0.26s var(--ease), transform 0.26s var(--ease); }
.hero-mockup-wrap .chat-msg.is-leaving .typing { opacity: 0; transform: translateY(-4px) scale(0.96); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #c3bfb8; animation: typingDot 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* product cards inside chat */
.chat-products { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.chat-prod {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px;
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
  min-width: 0;
}
.chat-prod.picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); }
.chat-prod-img { width: 44px; height: 44px; border-radius: 9px; flex: none; }
.chat-prod-info { flex: 1; min-width: 0; }
.chat-prod-name { font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.chat-prod-benefit { font-size: 11.5px; color: var(--text-muted); }
.chat-prod-price { font-size: 13px; font-weight: 700; color: var(--text-strong); margin-top: 1px; }
.chat-prod-btn { font-size: 11px; font-weight: 600; color: #fff; background: var(--cta); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }

.chat-note {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--accent-soft); color: #b23f2b; border: 1px solid #ffd9cf;
  font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 10px;
}
.chat-note::before { content: ""; width: 14px; height: 14px; background: url('/assets/img/icons/check.svg') center / contain no-repeat; }

/* =========================================================
   INTEGRATIONS MARQUEE
   ========================================================= */
.integrations { padding-block: 40px 8px; text-align: center; }
.marquee-label { font-size: 15px; color: var(--text-muted); margin-bottom: 26px; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex; width: max-content; gap: 56px; align-items: center;
  white-space: nowrap; padding-block: 9px;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .integration-logo {
  display: block; flex: none; width: auto; max-width: 126px; height: 22px;
  object-fit: contain; opacity: 0.78; filter: grayscale(1);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.marquee-track .integration-logo-compact { max-width: 140px; height: 18px; }
.marquee-track .integration-logo-presta { max-width: 155px; height: 18px; }
.marquee-track .integration-logo-anthropic { max-width: 155px; height: 18px; }
.marquee-track .integration-logo:hover { opacity: 1; filter: grayscale(0); transform: translateY(-1px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   RESULTS (4 cols)
   ========================================================= */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.result h3 { font-size: 1.06rem; margin: 16px 0 8px; letter-spacing: -0.02em; }
.result p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.result-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text-strong);
}
.result-ico img { width: 22px; height: 22px; }

/* =========================================================
   QUOTE / SOCIAL PROOF
   ========================================================= */
.quote-block { display: grid; grid-template-columns: 1.14fr 0.86fr; gap: 30px; align-items: stretch; background: #f6f4f0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: relative; overflow: hidden; }
.case-slide { min-height: 440px; }
.case-slide[hidden] { display: none; }
.case-slide.is-entering { animation: caseSlideIn 0.48s var(--ease-spring) both; }
@keyframes caseSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quote-content { padding: clamp(20px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.quote-eyebrow { color: #ae5b4c; font-size: 11px; font-weight: 800; letter-spacing: 0.13em; }
.quote-text { font-size: clamp(1.65rem, 3.3vw, 2.7rem); line-height: 1.13; letter-spacing: -0.042em; color: var(--text-strong); margin-top: 18px; max-width: 570px; }
.quote-description { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin-top: 18px; max-width: 520px; }
.quote-meta { margin-top: 28px; display: flex; align-items: center; gap: 12px; text-align: left; }
.quote-avatar { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 1px solid #e4ded7; display: grid; place-items: center; flex: none; }
.quote-avatar img { width: 23px; height: 23px; }
.quote-avatar-logo img { width: 32px; height: 32px; object-fit: contain; }
.quote-wordmark strong { display: block; font-family: Georgia, serif; font-size: 17px; letter-spacing: -0.035em; color: #242322; }
.quote-wordmark span { display: block; font-size: 11px; color: var(--text-muted); }
.quote-link { display: inline-flex; gap: 7px; align-items: center; border-bottom: 1px solid #b99d96; color: #7b3c30; font-size: 13px; font-weight: 700; padding-bottom: 3px; margin-top: 24px; }
.quote-link img { width: 15px; height: 15px; opacity: 0.7; }
.quote-disclaimer { margin-top: 16px; font-size: 11px; color: #9c9690; }
.quote-visual { min-height: 345px; border-radius: 16px; background: linear-gradient(0deg, rgba(19, 20, 19, 0.45), transparent 40%), #ded8d2 url('../img/kwiaty-cmentarz.jpg') center / cover no-repeat; display: flex; align-items: flex-end; padding: 20px; }
.quote-visual span { color: #fff; font-family: Georgia, serif; font-size: 21px; line-height: 1.15; max-width: 200px; text-shadow: 0 1px 7px rgba(0,0,0,0.25); }
.quote-visual-tech { background-image: linear-gradient(0deg, rgba(19, 20, 19, 0.30), transparent 45%), url('../img/aevii/light-cloud.jpg'); background-color: #f6f1ee; background-size: cover, contain; background-repeat: no-repeat; background-position: center; }
.quote-visual-beauty { background-image: linear-gradient(0deg, rgba(19, 20, 19, 0.38), transparent 45%), url('../img/aevii/balance-serum.jpg'); background-color: #f6f1ee; background-size: cover, contain; background-repeat: no-repeat; background-position: center; }
.case-controls { display: flex; align-items: center; gap: 18px; min-height: 58px; padding: 14px 4px 0; }
.case-count { color: var(--text-strong); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.case-count span { color: var(--text-muted); font-weight: 500; }
.case-dots { display: flex; gap: 6px; align-items: center; }
.case-dots span { width: 6px; height: 6px; border-radius: 999px; background: #d8d2cc; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.case-dots span.active { width: 23px; background: var(--accent); }
.case-buttons { margin-left: auto; display: flex; gap: 8px; }
.case-arrow { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; display: grid; place-items: center; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.case-arrow:hover { background: var(--subtle); transform: translateY(-2px); }
.case-arrow img { width: 17px; height: 17px; }

/* =========================================================
   FEATURE BLOCKS
   ========================================================= */
.feature-head { max-width: 640px; margin-bottom: 48px; }
.feature-grid-2 {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: center;
}
.feature-grid-2.reverse .feature-list { order: 2; }
.feature-grid-2.reverse .viz { order: 1; }
.product-compare-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 56px;
}

.feature-list { display: flex; flex-direction: column; }
.feature-list li {
  position: relative; padding: 17px 0 17px 38px;
  font-size: 16px; line-height: 1.45; color: var(--text-strong); border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid #ffd0c4;
  transform: translateY(-50%);
}
.feature-list li::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 20px; height: 20px;
  background: url('/assets/img/icons/check.svg') center / 12px no-repeat;
  transform: translateY(-50%);
}

/* ---------- generic viz shell ---------- */
.viz {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px; position: relative; overflow: hidden;
}
.viz::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 107, 82, 0.05), transparent 60%);
}
.viz-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.viz-dot-title { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.viz-badge {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--subtle); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
}
.viz-badge.ok { color: #2f8f5b; background: #eaf7ef; border-color: #cdeed9; }

/* knowledge base panel */
.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.kb-ico { width: 30px; height: 30px; border-radius: 8px; flex: none; background: #eeece8; display: grid; place-items: center; }
.kb-ico img { width: 16px; height: 16px; opacity: 0.72; }
.kb-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-strong); }
.kb-tag { font-size: 12px; color: var(--text-muted); }
.kb-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }
.kb-source b { color: var(--text-strong); }

/* compare panel */
.viz-compare { padding: 26px; }
.viz-compare .viz-panel-head { margin-bottom: 22px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.compare-col {
  min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center;
  display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.compare-col.best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-3px); }
.compare-thumb { width: 100%; height: 102px; border-radius: 12px; margin-bottom: 16px; }
.compare-name { display: block; font-size: 14px; line-height: 1.3; color: var(--text-strong); white-space: normal; }
.compare-price { display: block; font-size: 16px; font-weight: 700; color: var(--text-strong); margin: 5px 0 14px; }
.compare-specs { display: flex; flex-direction: column; gap: 6px; }
.compare-specs li {
  min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11.5px; line-height: 1.3; color: var(--text-muted); padding: 7px 6px; border-radius: 9px; background: #fff; border: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.compare-specs li b { color: var(--text-strong); }
.compare-specs li.hl { background: var(--accent-soft); border-color: #ffd0c4; }
.compare-verdict {
  margin-top: 16px; display: flex; align-items: center; gap: 10px;
  background: var(--accent-soft); border: 1px solid #ffd9cf; border-radius: 12px; padding: 14px 16px;
  font-size: 13.5px; line-height: 1.45; color: #9a3826; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.compare-verdict.show { opacity: 1; transform: none; }
.compare-verdict b { color: #7c2c1c; }
.compare-verdict-ico { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.compare-verdict-ico img { width: 13px; height: 13px; filter: invert(1); }

/* handoff panel */
.viz-handoff { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.viz-handoff::before { display: none; }
.handoff-stage { position: relative; isolation: isolate; padding-top: 278px; }
.hc-teaser { position: absolute; z-index: 2; top: 106px; left: 50%; width: min(314px, calc(100% - 16px)); padding: 15px; border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-50%) scale(1); transform-origin: 70% 75%; transition: opacity 0.34s var(--ease), transform 0.65s var(--ease-spring), visibility 0s linear 0.34s; }
.hc-teaser::after { content: ""; position: absolute; right: 15px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.hc-teaser-top { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; white-space: nowrap; }
.hc-teaser-top img { width: 22px; height: 22px; object-fit: contain; }
.hc-teaser-top strong { font-size: 12px; color: var(--text-strong); }
.hc-teaser-top > span { margin-left: auto; color: #2f8f5b; font-size: 10px; }
.hc-teaser p { font-size: 13px; line-height: 1.45; color: var(--text-strong); }
.hc-teaser-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 11px; border-radius: 10px; background: var(--accent-soft); color: #ad422e; font-size: 11.5px; font-weight: 700; position: relative; }
.hc-teaser-action::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--accent); border-radius: 13px; opacity: 0; pointer-events: none; }
.handoff-stage.is-focusing .hc-teaser { transform: translateX(-50%) scale(1.11); }
.handoff-stage.is-clicking .hc-teaser { transform: translateX(-50%) scale(1.04); }
.handoff-stage.is-clicking .hc-teaser-action::after { animation: hcClick 0.55s var(--ease) both; }
@keyframes hcClick { 15% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
.handoff-stage:is(.is-chat, .is-complete) .hc-teaser { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-12px) scale(0.84); }
.hc-cursor { position: absolute; z-index: 3; left: 76%; top: 66%; opacity: 0; transform: translate(30px, 42px) rotate(-12deg); filter: drop-shadow(1px 3px 2px rgba(0,0,0,0.18)); transition: transform 0.72s var(--ease-spring), opacity 0.24s var(--ease); pointer-events: none; }
.handoff-stage.is-focusing .hc-cursor { opacity: 1; transform: translate(-26px, -16px); }
.handoff-stage.is-clicking .hc-cursor { opacity: 1; transform: translate(-26px, -16px) scale(0.86); }
.handoff-stage.is-chat .hc-cursor { opacity: 0; transform: translate(-26px, -30px) scale(0.78); }
.hc-chatbox { position: absolute; inset: 10px 9px auto; height: 260px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px) scale(0.97); transition: inset 0.7s var(--ease-spring), height 0.7s var(--ease-spring), opacity 0.42s var(--ease), transform 0.7s var(--ease-spring), box-shadow 0.7s var(--ease); }
.handoff-stage:is(.is-chat, .is-complete) .hc-chatbox { opacity: 1; transform: none; }
.handoff-stage.is-input-focus .hc-chatbox { transform: scale(1.018); box-shadow: 0 18px 40px rgba(46, 35, 26, 0.13); }
.handoff-stage.is-thread-focus .hc-chatbox { inset: 0 0 auto; height: 278px; }
.handoff-stage:is(.is-lead, .is-complete) .hc-chatbox { inset: 0 0 auto; height: 278px; transform: none; box-shadow: var(--shadow-sm); }
.hc-chat-head { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.9); }
.hc-avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card); }
.hc-avatar img { width: 23px; height: 23px; object-fit: contain; }
.hc-chat-name { display: flex; flex-direction: column; min-width: 0; }
.hc-chat-name strong { font-size: 11.5px; line-height: 1.25; color: var(--text-strong); }
.hc-chat-name small { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--text-muted); }
.hc-chat-name small i { width: 6px; height: 6px; border-radius: 50%; background: #2fbf71; }
.hc-chat-dots { margin-left: auto; color: var(--text-muted); font-size: 18px; letter-spacing: 2px; }
.handoff-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; background: #fdfcfb; position: relative; overflow: hidden; }
.hc-msg { max-width: 86%; font-size: 11.5px; line-height: 1.32; padding: 6px 10px; border-radius: 11px; opacity: 0; transform: translateY(9px) scale(0.97); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease-spring); }
.hc-who { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.hc-msg.ai { align-self: flex-start; background: #fff; color: var(--text-strong); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.hc-msg.user { align-self: flex-end; background: var(--cta); color: #fff; border-bottom-right-radius: 4px; }
.hc-msg.human { align-self: flex-start; background: #eef4ff; color: #2b3e63; border: 1px solid #dbe6ff; border-bottom-left-radius: 4px; }
.hc-handoff-line { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.hc-handoff-line span { flex: 1; height: 1px; background: var(--line-strong); }
.handoff-stage:is(.is-sent, .is-complete) .hc-msg.user,
.handoff-stage:is(.is-agent, .is-complete) .hc-msg.ai,
.handoff-stage:is(.is-human, .is-complete) .hc-msg.human,
.handoff-stage:is(.is-handoff, .is-complete) .hc-handoff-line { opacity: 1; transform: none; }
.hc-typing { position: absolute; left: 14px; top: 57px; display: flex; align-items: center; gap: 4px; width: 42px; height: 23px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px 10px 10px 4px; background: #fff; opacity: 0; transform: translateY(5px); transition: opacity 0.25s, transform 0.3s; }
.hc-typing i { width: 5px; height: 5px; border-radius: 50%; background: #aaa39c; animation: typingDot 1.1s var(--ease) infinite; }
.hc-typing i:nth-child(2) { animation-delay: 0.15s; }
.hc-typing i:nth-child(3) { animation-delay: 0.3s; }
.handoff-stage.is-agent-typing:not(.is-agent) .hc-typing { opacity: 1; transform: none; }
.hc-compose { display: flex; align-items: center; gap: 2px; min-height: 39px; padding: 7px 12px; border-top: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--text-strong); transition: min-height 0.45s var(--ease), font-size 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.handoff-stage.is-input-focus .hc-compose { min-height: 50px; background: #fff6f2; box-shadow: inset 0 2px 0 rgba(229, 98, 74, 0.35); font-size: 14px; }
.hc-compose [data-hc-compose] { min-width: 0; white-space: nowrap; overflow: hidden; transition: opacity 0.18s var(--ease), transform 0.25s var(--ease); }
.hc-compose [data-hc-compose]:empty::before { content: "Napisz wiadomość…"; color: #a49f99; }
.handoff-stage.is-sending .hc-compose [data-hc-compose] { opacity: 0; transform: translateY(-8px); }
.hc-caret { width: 1px; height: 14px; background: var(--accent); animation: blink 0.9s steps(2, start) infinite; }
.handoff-stage:is(.is-sending, .is-sent, .is-complete) .hc-caret { opacity: 0; animation: none; }
.hc-send { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--cta); color: #fff; font-size: 15px; font-weight: 700; transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.handoff-stage.is-sending .hc-send { transform: scale(0.87); background: var(--accent); }
.lead-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.95s var(--ease); }
.lead-reveal-inner { min-height: 0; overflow: hidden; }
.handoff-stage.is-initializing .lead-reveal,
.handoff-stage.is-initializing .lead-card { transition: none; }
.handoff-stage:is(.is-lead, .is-complete) .lead-reveal { grid-template-rows: 1fr; }
.lead-card { margin: 14px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; opacity: 0; transform: translateY(-12px) scale(0.985); transition: opacity 0.55s var(--ease), transform 0.85s var(--ease-spring); }
.handoff-stage:is(.is-lead, .is-complete) .lead-card { opacity: 1; transform: none; }
.lead-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lead-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.lead-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.handoff-stage.is-lead .lead-badge { animation: hcBadgeIn 0.6s 0.28s var(--ease-spring) both; }
@keyframes hcBadgeIn { from { opacity: 0; transform: translateY(6px) scale(0.88); } to { opacity: 1; transform: none; } }
.lead-time { font-size: 12px; color: var(--text-muted); }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-fields dt { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.lead-fields dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
body.handoff-preview-visible .iac-teaser.is-visible { opacity: 0; transform: translateY(12px) scale(0.92); pointer-events: none; }
body.how-preview-visible .iac-teaser.is-visible { opacity: 0; transform: translateY(12px) scale(0.92); pointer-events: none; }

/* analytics panel */
@media (min-width: 961px) {
  #wiedza .feature-grid-2 { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); gap: 44px; }
}
.viz-analytics { min-width: 0; }
.an-journey { height: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; position: relative; }
.an-app { display: grid; grid-template-columns: 128px minmax(0, 1fr); width: 100%; height: 100%; transform-origin: 16% 52%; transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1); }
.an-journey.is-focusing .an-app, .an-journey.is-opening .an-app { transform: translateX(25%) scale(1.66); }
.an-sidebar { min-width: 0; padding: 15px 8px; background: #faf9f7; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.an-brand { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px 14px; margin-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.an-brand img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.an-menu-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 550; color: #817d78; white-space: nowrap; position: relative; transition: background 0.38s var(--ease), color 0.38s var(--ease), box-shadow 0.38s var(--ease); }
.an-menu-icon { width: 14px; height: 14px; flex: none; opacity: 0.7; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; }
.an-menu-home { --icon: url('/assets/img/icons/layout-dashboard.svg'); }
.an-menu-chat { --icon: url('/assets/img/icons/messages-square.svg'); }
.an-menu-bars { --icon: url('/assets/img/icons/chart-no-axes-column.svg'); }
.an-menu-book { --icon: url('/assets/img/icons/book-open.svg'); }
.an-menu-arrow { margin-left: auto; font-size: 17px; line-height: 1; opacity: 0; transform: translateX(-4px); transition: opacity 0.3s, transform 0.3s; }
.an-journey.is-focusing .an-menu-analytics, .an-journey.is-opening .an-menu-analytics, .an-journey.is-complete .an-menu-analytics { background: var(--accent-soft); color: #bd4b35; box-shadow: inset 0 0 0 1px #ffd9cf; }
.an-journey.is-focusing .an-menu-arrow, .an-journey.is-opening .an-menu-arrow, .an-journey.is-complete .an-menu-arrow { opacity: 1; transform: none; }
.an-menu-analytics::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--accent); border-radius: 12px; opacity: 0; transform: scale(0.88); pointer-events: none; }
.an-journey.is-opening .an-menu-analytics::after { animation: anClick 0.65s var(--ease) both; }
@keyframes anClick { 20% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
.an-sidebar-bottom { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 0 7px; }
.an-sidebar-bottom span { width: 20px; height: 20px; border-radius: 50%; background: #e8e4df; }
.an-sidebar-bottom i { width: 55px; height: 7px; border-radius: 99px; background: #e8e4df; }
.an-content { min-width: 0; position: relative; overflow: hidden; background: #fff; }
.an-skeleton, .an-dashboard { position: absolute; inset: 0; padding: 14px; transition: opacity 0.42s var(--ease), transform 0.55s var(--ease-spring); }
.an-skeleton { opacity: 1; }
.an-journey.is-opening .an-skeleton, .an-journey.is-complete .an-skeleton { opacity: 0; transform: translateY(-8px); }
.an-dashboard { opacity: 0; transform: translateY(12px) scale(0.98); }
.an-journey.is-opening .an-dashboard, .an-journey.is-complete .an-dashboard { opacity: 1; transform: none; }
.an-sk-line, .an-sk-cards span, .an-sk-chart, .an-sk-chart span, .an-sk-foot span { display: block; background: #efede9; border-radius: 7px; }
.an-skeleton > div { opacity: 0.88; }
.an-sk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.an-sk-line { height: 13px; }
.an-sk-line.wide { width: 43%; }
.an-sk-line.short { width: 25%; height: 9px; }
.an-sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.an-sk-cards span { height: 63px; }
.an-sk-chart { height: 112px; display: flex; align-items: flex-end; gap: 8px; padding: 12px 9px; margin-bottom: 17px; }
.an-sk-chart span { flex: 1; height: 30%; background: #e2ded9; }
.an-sk-chart span:nth-child(2), .an-sk-chart span:nth-child(5) { height: 48%; }
.an-sk-chart span:nth-child(3), .an-sk-chart span:nth-child(6) { height: 66%; }
.an-sk-chart span:nth-child(4), .an-sk-chart span:nth-child(7) { height: 82%; }
.an-sk-foot { display: flex; flex-wrap: wrap; gap: 7px; }
.an-sk-foot span { height: 20px; width: 28%; border-radius: 99px; }
.an-sk-foot span:nth-child(2) { width: 38%; }
.an-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.78) 50%, transparent 70%); transform: translateX(-120%); animation: anShimmer 2.5s ease-in-out infinite; pointer-events: none; }
@keyframes anShimmer { 60%, 100% { transform: translateX(120%); } }
.an-dashboard-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-bottom: 11px; }
.an-dashboard-head strong { font-size: 13px; line-height: 1.2; color: var(--text-strong); }
.an-dashboard-head > span { font-size: 9px; color: var(--text-muted); white-space: nowrap; }
.an-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.an-stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 5px; text-align: center; min-width: 0; }
.an-num { display: block; font-size: 1.3rem; line-height: 1.25; font-weight: 700; color: var(--text-strong); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.an-lab { display: block; font-size: 9px; color: var(--text-muted); white-space: nowrap; }
.an-chart { display: flex; align-items: flex-end; gap: 6px; height: 104px; padding: 10px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.an-bar { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); transform-origin: bottom; transform: scaleY(0); transition: transform 0.6s var(--ease-spring); }
.an-chart.animate .an-bar { transform: scaleY(1); }
.an-chart.animate .an-bar:nth-child(2) { transition-delay: 0.05s; }
.an-chart.animate .an-bar:nth-child(3) { transition-delay: 0.10s; }
.an-chart.animate .an-bar:nth-child(4) { transition-delay: 0.15s; }
.an-chart.animate .an-bar:nth-child(5) { transition-delay: 0.20s; }
.an-chart.animate .an-bar:nth-child(6) { transition-delay: 0.25s; }
.an-chart.animate .an-bar:nth-child(7) { transition-delay: 0.30s; }
.an-chart.animate .an-bar:nth-child(8) { transition-delay: 0.35s; }
.an-topics { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.an-topics-title { width: 100%; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1px; }
.an-chip { font-size: 9.5px; line-height: 1.2; color: var(--text-strong); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.an-chip b { color: var(--accent); margin-left: 4px; }
.an-chip.warn { background: var(--accent-soft); border-color: #ffd9cf; }
.an-chip.warn b { color: #b23f2b; }
.an-insight { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 9px; line-height: 1.2; }
.an-insight-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.an-insight strong { margin-left: auto; color: #b23f2b; font-size: 10px; }
.an-journey.is-playing .an-stat,
.an-journey.is-playing .an-chart,
.an-journey.is-playing .an-topics-title,
.an-journey.is-playing .an-chip,
.an-journey.is-playing .an-insight { opacity: 0; transform: translateY(12px) scale(0.97); }
.an-journey.is-playing.is-animating .an-stat,
.an-journey.is-playing.is-animating .an-chart,
.an-journey.is-playing.is-animating .an-topics-title,
.an-journey.is-playing.is-animating .an-chip,
.an-journey.is-playing.is-animating .an-insight { animation: anMetricIn 0.62s var(--ease-spring) both; }
.an-journey.is-playing.is-animating .an-stat:nth-child(2) { animation-delay: 0.08s; }
.an-journey.is-playing.is-animating .an-stat:nth-child(3) { animation-delay: 0.16s; }
.an-journey.is-playing.is-animating .an-chart { animation-delay: 0.22s; }
.an-journey.is-playing.is-animating .an-topics-title { animation-delay: 0.42s; }
.an-journey.is-playing.is-animating .an-chip:nth-child(2) { animation-delay: 0.50s; }
.an-journey.is-playing.is-animating .an-chip:nth-child(3) { animation-delay: 0.57s; }
.an-journey.is-playing.is-animating .an-chip:nth-child(4) { animation-delay: 0.64s; }
.an-journey.is-playing.is-animating .an-chip:nth-child(5) { animation-delay: 0.71s; }
.an-journey.is-playing.is-animating .an-insight { animation-delay: 0.8s; }
@keyframes anMetricIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .an-journey { height: 315px; }
  .an-app { grid-template-columns: 100px minmax(0, 1fr); }
  .an-sidebar { padding: 12px 5px; }
  .an-brand { font-size: 9px; padding-inline: 3px; }
  .an-brand img { width: 17px; height: 17px; }
  .an-menu-item { font-size: 9px; gap: 4px; padding-inline: 5px; }
  .an-menu-icon { width: 11px; height: 11px; }
  .an-skeleton, .an-dashboard { padding: 10px; }
  .an-dashboard-head strong { font-size: 10px; }
  .an-dashboard-head > span { font-size: 8px; }
  .an-num { font-size: 14px; }
  .an-lab { font-size: 8px; }
  .an-stat { padding: 8px 2px; }
  .an-chart { height: 87px; }
  .an-chip { font-size: 8px; padding: 4px 6px; }
  .an-insight { display: none; }
}

/* =========================================================
   HOW IT WORKS — sticky storytelling
   ========================================================= */
.how {
  padding-block: 104px;
  background: linear-gradient(180deg, #fff 0%, #fcfbf9 18%, #fcfbf9 82%, #fff 100%);
}
.how-head { max-width: 640px; margin-bottom: 56px; }
.how-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: start; min-height: clamp(1450px, 240vh, 1850px); }

.how-steps { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 80px; align-self: start; }
.how-step {
  display: flex; align-items: center; padding: 0 4px;
  opacity: 0.84;
  transition: opacity 0.55s var(--ease);
}
.how-step-card {
  width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; position: relative;
  border: 1px solid transparent; border-radius: 16px; background: transparent;
  box-shadow: none;
  transform: translateX(0);
  overflow: hidden;
  transition:
    background 0.55s var(--ease),
    border-color 0.55s var(--ease),
    transform 0.55s var(--ease-spring),
    box-shadow 0.55s var(--ease);
}
.how-step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.6s var(--ease-spring);
}
.how-step h3 { font-size: 15.5px; line-height: 1.35; margin-bottom: 4px; letter-spacing: -0.01em; transition: color 0.3s var(--ease); }
.how-step p { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.how-num {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); color: var(--text-muted);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease);
}
.how-step.active { opacity: 1; }
.how-step.active .how-step-card { background: rgba(255, 255, 255, 0.96); border-color: var(--line); transform: translateX(6px); box-shadow: 0 16px 36px -27px rgba(23, 23, 23, 0.28); }
.how-step.active .how-step-card::before { transform: scaleY(1); }
.how-step.active .how-num { background: var(--cta); color: #fff; border-color: var(--cta); transform: scale(1.04); box-shadow: 0 10px 22px -14px rgba(23, 23, 23, 0.7); }
.how-step.active h3 { color: var(--text-strong); }

.how-sticky { position: sticky; top: 92px; align-self: start; }
.how-viz { min-height: 480px; }
.how-stage { position: relative; min-height: 480px; background: linear-gradient(145deg, #f9f8f5, #f5f3ef); }
.how-scene {
  position: absolute; inset: 0; padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(4px); pointer-events: none;
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease-spring), filter 0.75s var(--ease);
}
.how-scene.active { opacity: 1; transform: none; filter: blur(0); }
.how-scene.active > * { animation: sceneContentIn 0.9s var(--ease-spring) both; }
@keyframes sceneContentIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.scene-center { text-align: center; max-width: 360px; margin-inline: auto; }
.scene-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.url-input {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 15px 18px; font-size: 16px; color: var(--text-strong); font-weight: 500; box-shadow: var(--shadow-sm);
}
.caret { width: 2px; height: 18px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scene-btn { margin-top: 16px; background: var(--cta); color: #fff; border: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.scene-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55); }

.learn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 650; color: var(--text-strong); }
.learn-badge { flex: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-muted); font-size: 10px; font-weight: 600; }
.learn-flow { position: relative; display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 42%); align-items: center; min-height: 280px; }
.learn-network { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.learn-network path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.learn-network .learn-track { stroke: #ddd8d2; stroke-width: 1.4; }
.learn-network .learn-signal { stroke: var(--accent); stroke-width: 2.3; stroke-dasharray: 22 100; stroke-dashoffset: 100; opacity: 0; }
.how-scene.active .learn-network .learn-signal { animation: neuralSignal 3.2s var(--signal-delay, 0s) linear infinite; }
@keyframes neuralSignal { 0% { stroke-dashoffset: 100; opacity: 0; } 15% { opacity: 1; } 82% { opacity: 1; } 100% { stroke-dashoffset: -22; opacity: 0; } }
.learn-sources { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; }
.learn-source { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text-strong); font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(23,23,23,0.025); transition: background .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.learn-source-icon { flex: none; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #eeece8; }
.learn-source-icon img { display: block; width: 16px; height: 16px; opacity: 0.72; }
.learn-source small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 10px; font-weight: 400; }
.learn-state { flex: none; width: 14px; height: 14px; margin-left: auto; border: 1.5px solid #dedbd5; border-radius: 50%; }
.how-scene.active .learn-source:nth-child(1) { animation: learnRead 3.2s ease-in-out infinite; }
.how-scene.active .learn-source:nth-child(2) { animation: learnRead 3.2s -0.8s ease-in-out infinite; }
.how-scene.active .learn-source:nth-child(3) { animation: learnRead 3.2s -1.6s ease-in-out infinite; }
.how-scene.active .learn-source:nth-child(4) { animation: learnRead 3.2s -2.4s ease-in-out infinite; }
@keyframes learnRead { 0%, 74%, 100% { background: #fff; border-color: var(--line); transform: none; box-shadow: 0 2px 8px rgba(23,23,23,0.025); } 12%, 32% { background: #fff8f5; border-color: #f5c9bc; transform: translateX(3px); box-shadow: 0 7px 18px rgba(194,65,43,.11); } }
.learn-agent { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 114px; height: 114px; }
.learn-orb { position: relative; z-index: 2; display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid #f3ded6; border-radius: 50%; background: #fff; box-shadow: 0 12px 26px rgba(23,23,23,.11); }
.learn-orb img { width: 50px; height: 50px; object-fit: contain; }
.learn-ring { position: absolute; inset: 12px; border: 1.5px solid rgba(255,107,82,.36); border-radius: 50%; }
.how-scene.active .learn-ring { animation: kbRing 1.4s ease-out infinite; }
.how-scene.active .learn-ring-delay { animation-delay: 1.2s; }
.learn-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 12px; border: 1px solid #e9e5df; border-radius: 10px; background: rgba(255,255,255,.72); color: var(--text-muted); font-size: 11px; }
.learn-foot-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: none; }
.learn-foot-icon img { width: 15px; height: 15px; opacity: .65; }

.kb2-head { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-bottom: 16px; }
.kb2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kb2-grid span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; text-align: center; font-size: 13px; font-weight: 500; color: var(--text-strong); }
.kb2-foot { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

.mini-chat { display: flex; flex-direction: column; gap: 10px; }

.rec-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.rec-thumb { width: 60px; height: 60px; border-radius: 12px; flex: none; }
.rec-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rec-body strong { font-size: 15px; color: var(--text-strong); }
.rec-price { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.rec-tag { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.rec-check { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.rec-check img { width: 17px; height: 17px; filter: invert(1); }
.rec-note { margin-top: 14px; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid #ffd9cf; color: #b23f2b; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 10px; }
.rec-lead { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }

.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.res-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.res-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text-strong); }
.res-stats span:not(.res-num) { font-size: 12px; color: var(--text-muted); }
.res-chart { display: flex; align-items: flex-end; gap: 10px; height: 90px; }
.res-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); }

.how-progress { display: flex; align-items: center; justify-content: center; gap: 7px; height: 3px; margin-top: 18px; }
.how-progress span { display: block; width: 22px; height: 2px; border-radius: 999px; background: var(--line-strong); transition: width 0.5s var(--ease-spring), background 0.5s var(--ease); }
.how-progress span.is-active { width: 34px; background: var(--cta); }

/* =========================================================
   INTERACTIVE DEMO
   ========================================================= */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; height: 500px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.demo-store { padding: 24px; }
.demo-store-product { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 18px; }
.demo-store-img { border-radius: 12px; min-height: 190px; }
.demo-store-info { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.demo-store-info h3 { font-size: 23px; line-height: 1.2; }
.demo-store-info p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.demo-store-price { color: var(--text-strong); font-size: 20px; line-height: 1.2; }
.demo-widget { background: #fff; border-left: 1px solid var(--line); height: 100%; min-height: 0; overflow: hidden; }
.demo-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.demo-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.chip-q {
  font-size: 13px; font-weight: 500; color: var(--text-strong);
  background: var(--subtle); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.chip-q:hover { background: #fff; border-color: var(--line-strong); transform: translateY(-1px); }
.chip-q:disabled { opacity: 0.45; cursor: default; transform: none; }
.chip-q.active { background: var(--cta); color: #fff; border-color: var(--cta); }

/* lead form inside chat */
.chat-form { width: 100%; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow-sm); }
.chat-form-title { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.chat-form-intro { font-size: 12px; line-height: 1.45; color: var(--text-muted); margin-top: -5px; }
.chat-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.chat-form input { display: block; width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 11px; font-size: 13px; font-family: inherit; background: #fbfaf8; }
.chat-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.chat-form button { display: block; width: 100%; background: var(--cta); color: #fff; border: none; border-radius: 9px; padding: 11px; font-size: 13px; font-weight: 600; }
.chat-form-note { color: #9b9690; font-size: 10px; line-height: 1.4; text-align: center; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-toggle {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 44px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.pt-btn {
  border: none; background: transparent; border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pt-btn.active { background: #fff; color: var(--text-strong); box-shadow: var(--shadow-sm); }
.pt-save { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.popular { border-color: rgba(255, 107, 82, 0.55); box-shadow: 0 0 0 1px rgba(255, 107, 82, 0.35), var(--shadow); }
.price-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.price-flag.is-dark { background: #171717; color: #fff; }
.price-head h3 { font-size: 1.35rem; }
.price-desc { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.price-amount { margin-top: 20px; font-size: 15px; color: var(--text-muted); }
.price-num { font-size: 2.5rem; font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; }
.price-num.price-changing { display: inline-block; animation: priceFlip 0.5s var(--ease-spring); }
@keyframes priceFlip {
  from { opacity: 0; transform: translateY(9px) scale(0.96); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.price-per { font-size: 14px; color: var(--text-muted); }
.price-cycle-note { font-size: 12px; color: var(--accent); margin-top: 6px; font-weight: 600; }
.price-was { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); text-decoration-thickness: 2px; text-decoration-color: rgba(255, 107, 82, 0.7); margin-right: 2px; }
.price-unit { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; color: var(--text-muted); }
.price-unit b { color: var(--text-strong); font-weight: 650; font-variant-numeric: tabular-nums; }
.price-unit .dot { color: #c9c4bd; }
.price-roi { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 22px; padding: 11px 13px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #ffd9cf; font-size: 13px; line-height: 1.45; color: #7a3426; }
.price-roi b { color: #c2412b; font-weight: 700; }
.price-roi-ico { flex: none; width: 17px; height: 17px; margin-top: 1px; background: #c2412b; -webkit-mask: url('/assets/img/icons/trending-up.svg') center / contain no-repeat; mask: url('/assets/img/icons/trending-up.svg') center / contain no-repeat; }
.price-feats li b { color: var(--text-strong); font-weight: 650; }
.price-card.popular { background: linear-gradient(180deg, #fffaf8, #fff 38%); }
.price-card .btn { margin: 22px 0 24px; }
.price-feats { display: flex; flex-direction: column; gap: 12px; }
.price-feats li { position: relative; padding-left: 27px; font-size: 14.5px; color: var(--text); }
.price-feats li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid #ffd0c4;
}
.price-feats li::after { content: ""; position: absolute; left: 2px; top: 7px; width: 13px; height: 13px; background: url('/assets/img/icons/check.svg') center / contain no-repeat; }
.price-feats li.feat-head { padding-left: 0; font-weight: 700; color: var(--text-strong); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.price-feats li.feat-head::before, .price-feats li.feat-head::after { display: none; }

.pricing-enterprise {
  margin-top: 28px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.pricing-enterprise p { color: var(--text); font-size: 15.5px; }
.pricing-fineprint { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--text-muted); }

/* =========================================================
   SECURITY
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.security-grid { grid-template-columns: repeat(4, 1fr); }
.sec-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.sec-item p { font-size: 14.5px; color: var(--text-strong); font-weight: 500; }
.sec-ico { font-size: 20px; flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.sec-ico img { width: 20px; height: 20px; }

/* =========================================================
   IMPLEMENTATION STEPS
   ========================================================= */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--accent); font-size: 15px; margin-bottom: 18px; }
.step-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step-card p { font-size: 15px; color: var(--text-muted); }

/* =========================================================
   MAIN CTA + FORM
   ========================================================= */
.cta-section { padding-block: 40px; }
.cta-inner {
  background: linear-gradient(165deg, #1f1e1c, #171717 60%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center; max-width: calc(var(--container) + 48px); position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 107, 82, 0.35), transparent 62%); pointer-events: none;
  animation: ctaGlow 7s ease-in-out infinite alternate;
}
@keyframes ctaGlow { to { transform: translate(-54px, 36px) scale(1.16); opacity: 0.72; } }
.cta-title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; max-width: 720px; margin: 0 auto; letter-spacing: -0.03em; }
.cta-lead { color: rgba(255, 255, 255, 0.72); font-size: 1.15rem; margin: 20px auto 0; max-width: 560px; }

.demo-form { margin: 34px auto 0; max-width: 620px; position: relative; z-index: 1; }
.df-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.df-field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.df-field span { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.02em; }
.df-field input {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; color: #fff; font-family: inherit; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.df-field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.df-field input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.df-field input.invalid { border-color: #ff7a63; }
.df-submit { margin-top: 16px; width: 100%; background: #fff; color: var(--cta); }
.df-submit:hover { background: #fff; color: #000; box-shadow: 0 10px 30px -8px rgba(255, 107, 82, 0.5); }
.df-consent-note { margin-top: 12px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.5); }
.df-submit[disabled] { opacity: 0.7; pointer-events: none; }
.df-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.df-status.ok { color: #7fe0a8; }
.df-status.err { color: #ff9d8b; }
.cta-note { margin-top: 24px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.cta-note .dot { color: rgba(255, 255, 255, 0.3); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-size: 1.08rem; font-weight: 600; color: var(--text-strong);
  cursor: pointer; list-style: none; transition: color 0.25s var(--ease), padding-left 0.35s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #000; padding-left: 10px; }
.faq-ico { flex: none; width: 20px; height: 20px; background: url('/assets/img/icons/chevron-down.svg') center / contain no-repeat; transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-ico { transform: rotate(180deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 4px 24px; color: var(--text-muted); font-size: 16px; line-height: 1.6; max-width: 660px; }
.faq-item[open] .faq-body { animation: faqOpen 0.55s var(--ease-spring); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-9px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand { max-width: 280px; }
.footer-desc { margin-top: 16px; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.footer-col h4, .footer-col .footer-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--text); transition: color 0.18s var(--ease), transform 0.25s var(--ease); }
.footer-col a:hover { color: var(--text-strong); transform: translateX(4px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-muted); }

/* =========================================================
   MOTION EXPERIENCE
   ========================================================= */
.motion-magnetic {
  --mag-x: 0px;
  --mag-y: 0px;
  translate: var(--mag-x) var(--mag-y);
  transition:
    translate 0.28s var(--ease-spring),
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.motion-surface {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
}
.motion-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--pointer-x) var(--pointer-y), rgba(255, 107, 82, 0.085), transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.motion-surface:hover::after { opacity: 1; }

.sep.container::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s var(--ease-spring);
}
.sep.container.motion-in::after { transform: scaleX(1); }

.result {
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-spring);
}
.result:hover { transform: translateY(-6px); }
.result-ico {
  transition: transform 0.4s var(--ease-spring), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.result:hover .result-ico {
  transform: translateY(-2px) rotate(-4deg) scale(1.08);
  background: var(--accent-soft);
  box-shadow: 0 12px 25px -16px rgba(255, 107, 82, 0.7);
}

.feature-list li {
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease), background 0.35s var(--ease);
}
.feature-list li:hover {
  padding-left: 42px;
  background: linear-gradient(90deg, rgba(255, 107, 82, 0.045), transparent 72%);
}
.feature-list li::before,
.feature-list li::after { transition: transform 0.35s var(--ease-spring), background 0.3s var(--ease); }
.feature-list li:hover::before { transform: translateY(-50%) scale(1.16); background: #ffe3dc; }
.feature-list li:hover::after { transform: translateY(-50%) scale(1.12); }

.viz,
.quote-block,
.demo-grid,
.price-card,
.step-card,
.sec-item {
  transition:
    transform 0.42s var(--ease-spring),
    box-shadow 0.42s var(--ease),
    border-color 0.35s var(--ease);
}
.viz:hover,
.quote-block:hover,
.demo-grid:hover,
.step-card:hover,
.sec-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
}

.viz.in .kb-list li {
  animation: panelItemIn 0.72s var(--ease-spring) both;
}
.viz.in .kb-list li:nth-child(2) { animation-delay: 0.08s; }
.viz.in .kb-list li:nth-child(3) { animation-delay: 0.16s; }
.viz.in .kb-list li:nth-child(4) { animation-delay: 0.24s; }
.viz.in .kb-list li:nth-child(5) { animation-delay: 0.32s; }
@keyframes panelItemIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.kb-list li,
.an-stat,
.an-chip,
.sec-ico,
.step-num {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.kb-list li:hover,
.an-stat:hover,
.an-chip:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.sec-item:hover .sec-ico,
.step-card:hover .step-num { transform: rotate(-4deg) scale(1.08); box-shadow: var(--shadow-sm); }

.pricing-enterprise {
  transition: transform 0.4s var(--ease-spring), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pricing-enterprise:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity 0.85s var(--ease-spring), transform 0.85s var(--ease-spring), filter 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.reveal-left { transform: translateX(-34px); }
.reveal.reveal-right { transform: translateX(34px); }
.reveal.reveal-scale { transform: translateY(20px) scale(0.975); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

.stagger .reveal { transition-delay: 0s; }
.stagger.in-view .reveal { opacity: 1; transform: none; filter: blur(0); }
.stagger.in-view .reveal:nth-child(1) { transition-delay: 0.04s; }
.stagger.in-view .reveal:nth-child(2) { transition-delay: 0.13s; }
.stagger.in-view .reveal:nth-child(3) { transition-delay: 0.22s; }
.stagger.in-view .reveal:nth-child(4) { transition-delay: 0.31s; }
.stagger.in-view .reveal:nth-child(5) { transition-delay: 0.40s; }
.stagger.in-view .reveal:nth-child(6) { transition-delay: 0.49s; }
.stagger.in-view .reveal:nth-child(7) { transition-delay: 0.58s; }
.stagger.in-view .reveal:nth-child(8) { transition-delay: 0.67s; }

.pricing-toggle.reveal { transform: translate(-50%, 28px); }
.pricing-toggle.reveal.in { transform: translateX(-50%); }
.result.reveal.in:hover { transform: translateY(-6px); }
.viz.reveal.in:hover,
.quote-block.reveal.in:hover,
.demo-grid.reveal.in:hover,
.step-card.reveal.in:hover,
.sec-item.reveal.in:hover { transform: translateY(-5px); }
.viz.viz-handoff:hover,
.viz.viz-handoff.reveal.in:hover { transform: none; border-color: transparent; box-shadow: none; }
.stagger.in-view .price-card.reveal:hover { transform: translateY(-4px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .feature-grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid-2.reverse .feature-list { order: 2; }
  .feature-grid-2.reverse .viz { order: 1; }

  .how-grid { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
  .how-sticky { position: sticky; top: 72px; order: -1; width: 100%; z-index: 5; background: #fcfbf9; padding-bottom: 7px; }
  .how-viz { min-height: 0; }
  .how-stage { min-height: 0; height: 360px; }
  .how-scene { padding: 18px; }
  .how-steps { position: static; width: 100%; gap: 10px; }
  .how-step { min-height: clamp(106px, 13vh, 116px); opacity: 0.8; }
  .how-step-card { padding: 15px 16px; }
  .how-step h3 { font-size: 15.5px; }
  .how-step p { font-size: 13px; }
  .learn-head { margin-bottom: 10px; }
  .learn-flow { grid-template-columns: minmax(0, 60%) minmax(0, 40%); min-height: 225px; }
  .learn-sources { gap: 6px; }
  .learn-source { min-height: 48px; padding: 6px 8px; }
  .learn-agent { width: 90px; height: 90px; }
  .learn-orb { width: 65px; height: 65px; }
  .learn-orb img { width: 42px; height: 42px; }
  .learn-foot { margin-top: 10px; padding: 8px 10px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .store-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .store-menu { gap: 10px; }
  .store { padding: 18px; }
  .store-card-img { height: 72px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .how { padding-block: 64px; }

  .store-layout { grid-template-columns: 1fr; }
  .store { display: block; }
  .hero-mockup-wrap .store-layout { height: auto; min-height: 0; }
  .hero-mockup-wrap .widget { height: 390px; border-left: none; border-top: 1px solid var(--line); }

  .demo-grid { grid-template-columns: 1fr; }
  .demo-store { display: block; }
  .demo-grid { height: auto; }
  .demo-widget { height: 500px; border-left: none; border-top: 1px solid var(--line); }

  .quote-block { grid-template-columns: 1fr; }
  .quote-visual { min-height: 280px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.popular { order: -1; }

  .steps-3 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .compare-grid { grid-template-columns: 1fr; }
  .lead-fields { grid-template-columns: 1fr; }
  .df-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .marquee-track { gap: 32px; padding-block: 7px; }
  .marquee-track .integration-logo { max-width: 108px; height: 19px; }
  .marquee-track .integration-logo-compact { max-width: 120px; height: 15px; }
  .marquee-track .integration-logo-presta { max-width: 132px; height: 15px; }
  .marquee-track .integration-logo-anthropic { max-width: 132px; height: 15px; }
  .grid-4 { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-actions { flex-direction: column; gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .store-hero { grid-template-columns: 1fr 0.8fr; min-height: 155px; padding-left: 14px; }
  .store-hero-text strong { font-size: 18px; }
  .store-hero-text p { display: none; }
  .store-menu { display: none; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-card-img { height: 92px; }
  .demo-store-product { grid-template-columns: 1fr; padding: 12px; }
  .demo-store-img { min-height: 180px; }
  .demo-store-info { padding: 5px 4px 10px; }
  .quote-content { padding: 18px 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .learn-head { gap: 8px; margin-bottom: 8px; font-size: 11px; }
  .learn-badge { padding: 3px 7px; font-size: 8px; }
  .learn-flow { grid-template-columns: minmax(0, 66%) minmax(0, 34%); min-height: 0; }
  .learn-sources { gap: 5px; }
  .learn-source { gap: 6px; min-height: 45px; padding: 5px 7px; font-size: 10px; }
  .learn-source-icon { width: 23px; height: 23px; }
  .learn-source-icon img { width: 13px; height: 13px; }
  .learn-source small { font-size: 8px; }
  .learn-state { width: 11px; height: 11px; }
  .learn-agent { width: 72px; height: 72px; }
  .learn-orb { width: 56px; height: 56px; }
  .learn-orb img { width: 36px; height: 36px; }
  .learn-ring { inset: 8px; }
  .learn-foot { margin-top: 8px; padding: 7px 8px; font-size: 9px; }
  .kb2-head { font-size: 13px; margin-bottom: 10px; }
  .kb2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .kb2-grid span { padding: 8px 3px; font-size: 10px; }
  .kb2-foot { margin-top: 9px; font-size: 10px; }
  .how-stage { height: 310px; }
  .how-scene { padding: 14px; }
  .how-step { min-height: 110px; }
  .demo-widget { height: 470px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .pricing-toggle.reveal { transform: translateX(-50%) !important; }
  .marquee-track { animation: none !important; }
  .caret { animation: none !important; }
}

/* ---------- breadcrumbs (subpages) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--text-strong); }
.crumbs [aria-current="page"] { color: var(--text-strong); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs-bar { padding-top: 28px; }
.price-note { margin: -8px 0 20px; font-size: 13px; line-height: 1.45; color: var(--text-muted); text-align: center; }

/* Knowledge panel animation */
.kb-status { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 14px; font-weight: 600; color: var(--text-strong); min-height: 22px; }
.kb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e4e0da; border-top-color: var(--accent); animation: kbSpin 0.8s linear infinite; flex: none; }
.kb-ready .kb-spin { animation: none; border-color: #2f8f5b; background: #2f8f5b; }
.kbx { position: relative; display: grid; grid-template-columns: 1fr 44%; gap: 0 10px; min-height: 300px; }
.kbx-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.kbx-lines path { fill: none; stroke: #e0dcd6; stroke-width: 1.6; stroke-dasharray: 3 6; transition: stroke 0.4s; }
.kbx-lines path.on { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 7; animation: kbFlow 0.56s linear infinite; }
.kbx-lines path.done { stroke: #9fd8b6; stroke-dasharray: none; }
.kbx-chips { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.kbx-chip { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; font-size: 13px; font-weight: 500; color: var(--text-strong); transition: all 0.32s var(--ease); }
.kbx-ico { width: 26px; height: 26px; border-radius: 8px; background: #eeece8; display: grid; place-items: center; flex: none; transition: background 0.4s; }
.kbx-ico img { width: 14px; height: 14px; opacity: 0.72; }
.kbx-name { flex: 1; min-width: 0; line-height: 1.25; }
.kbx-state { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e4e0da; flex: none; transition: all 0.3s; }
.kbx-chip.is-reading { background: #fff6f2; border-color: #ffd9cf; transform: translateX(4px); box-shadow: 0 6px 16px rgba(194, 65, 43, 0.12); }
.kbx-chip.is-reading .kbx-state { border-color: #ffd9cf; border-top-color: var(--accent); animation: kbSpin 0.7s linear infinite; }
.kbx-chip.is-done .kbx-state { background: #2f8f5b url('/assets/img/icons/check.svg') center / 10px no-repeat; border-color: #2f8f5b; }
.kbx-chip.is-done .kbx-ico { background: #eaf7ef; }
.kbx-agent { position: relative; z-index: 1; align-self: start; justify-self: center; width: 92px; height: 92px; margin-top: 6px; display: grid; place-items: center; }
.kbx-orb { width: 66px; height: 66px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); display: grid; place-items: center; position: relative; z-index: 2; }
.kbx-orb img { width: 44px; height: 44px; object-fit: contain; }
.kbx-ring { position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgba(255, 107, 77, 0.35); animation: kbRing 1.92s ease-out infinite; }
.kbx-ring.r2 { animation-delay: 0.96s; }
.kb-ready .kbx-ring { border-color: rgba(47, 143, 91, 0.4); }
.kbx-prog { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.kbx-prog circle { fill: none; stroke: #eeece8; stroke-width: 3; }
.kbx-prog .kbx-prog-fill { stroke: var(--accent); stroke-linecap: round; stroke-dashoffset: 289; transition: stroke-dashoffset 0.64s var(--ease), stroke 0.32s; }
.kb-ready .kbx-prog-fill { stroke: #2f8f5b; }
.kbx-check { position: absolute; right: 4px; bottom: 6px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: #2f8f5b; display: grid; place-items: center; transform: scale(0); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.kbx-check img { width: 14px; height: 14px; filter: invert(1); }
.kb-ready .kbx-check { transform: scale(1); }
.kbx-chat { grid-column: 2; align-self: end; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; opacity: 0; transform: translateY(10px); transition: all 0.4s var(--ease); margin-top: -46px; }
.kbx.show-chat .kbx-chat { opacity: 1; transform: none; }
.kbx-q { align-self: flex-end; background: var(--cta); color: #fff; font-size: 12px; padding: 7px 11px; border-radius: 13px 13px 4px 13px; }
.kbx-a { background: #fff; border: 1px solid var(--line); font-size: 12px; line-height: 1.4; padding: 8px 11px; border-radius: 13px 13px 13px 4px; box-shadow: var(--shadow-sm); }
.kbx-a small { display: block; margin-top: 4px; font-size: 10px; color: #2f8f5b; font-weight: 600; }
@keyframes kbSpin { to { transform: rotate(360deg); } }
@keyframes kbFlow { to { stroke-dashoffset: -24; } }
@keyframes kbRing { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kb-spin, .kbx-ring, .kbx-lines path.on { animation: none; } .kbx-chat { opacity: 1; transform: none; } }
.res-note { margin: 0 0 10px; font-size: 11px; color: var(--text-muted); text-align: center; }

/* Hero: shop input → /start */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-start { margin: 34px auto 0; max-width: 620px; width: 100%; transition: opacity 0.3s, transform 0.3s var(--ease); }
.hero-start.is-leaving { opacity: 0; transform: translateY(-8px) scale(0.98); }
.hs-pill { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); isolation: isolate; }
.hs-pill::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1; background: conic-gradient(from var(--hs-ang, 0deg), rgba(255, 107, 82, 0.9), rgba(255, 208, 168, 0.5), rgba(124, 156, 255, 0.7), rgba(255, 107, 82, 0.9)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hsSpin 6s linear infinite; opacity: 0.75; transition: opacity 0.3s; }
.hs-pill:focus-within::before { opacity: 1; animation-duration: 3s; }
@property --hs-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes hsSpin { to { --hs-ang: 360deg; } }
.hs-ico { opacity: 0.55; flex: none; }
.hs-pill input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--text-strong); padding: 12px 0; }
.hs-pill input::placeholder { color: #8d8883; }
.hs-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 99px; padding: 14px 24px; background: var(--cta); color: #fff; font-size: 16px; font-weight: 650; white-space: nowrap; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s; }
.hs-btn img { filter: invert(1); transition: transform 0.25s var(--ease); }
.hs-btn:hover { background: #000; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); transform: translateY(-1px); }
.hs-btn:hover img { transform: translateX(4px); }
.hs-pill.shake { animation: hsShake 0.4s; }
@keyframes hsShake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.hero-start + .hero-actions { margin-top: 22px; }
@media (max-width: 560px) {
  .hs-pill { display: grid; grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 4px; border-radius: 20px; }
  .hs-ico { display: none; }
  .hs-pill input { width: 100%; padding: 9px 8px; font-size: 15px; }
  .hs-btn { width: 100%; justify-content: center; padding: 13px 16px; font-size: 15px; }
  .hero-start + .hero-actions { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hs-pill::before { animation: none; } }

.integrations-note { max-width: 62ch; margin: 14px auto 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); text-align: center; }
