/* =========================================================================
   AgnessaAI — one-page selling site
   Light "Mint + Orange" palette, balanced 60-30-10:

     60% dominant background  Pure White     #FFFFFF
     30% structure & text     Slate Tech     #0F172A   (headings, body)
                              Soft Ice       #F4F7F6   (cards, panels, insets)
     10% brand / CTA          Hyper Mint     #0DD394   (logo, CTA, AI icons)
         sales accent        Active Orange  #FF6B35   (money, won deals, closing)

   CONTRAST RULE FOR THIS PALETTE — both accent fills are light, so neither ever
   carries white text:
     ink #0F172A on mint   #0DD394 = 9.2:1      white on mint   = 1.9:1  x
     ink #0F172A on orange #FF6B35 = 6.3:1      white on orange = 2.8:1  x
   Text and icons in accent colour therefore use the darkened -soft ramps
   (#047857 mint, #C2410C orange), which clear 4.5:1 on white and on Soft Ice.
   ========================================================================= */

/* ------------------------------- Tokens ------------------------------- */
:root {
  color-scheme: light;

  --font-body: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* 60% — dominant background */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7F6;   /* Soft Ice: cards, panels, side menu */
  --color-bg-deep: #E9EFED;  /* derived: denser insets, counters */

  /* 30% — structure + text */
  --color-surface: #FFFFFF;
  --color-surface-2: #F4F7F6;
  --color-rule: rgba(15, 23, 42, .14);
  --color-rule-2: rgba(15, 23, 42, .08);

  --color-ink: #0F172A;
  --color-ink-2: #334155;
  --color-muted: #475569;
  --color-neutral: #5A6879;  /* labels/meta — >=5:1 on white and Soft Ice */

  /* 10% — Hyper Mint: brand, CTA, AI functions */
  --color-accent: #0DD394;
  --color-accent-hover: #089A6E;
  --color-accent-soft: #047857;   /* mint as text/icon on light */
  --color-accent-bright: #036B4E; /* mint text on a mint tint */
  /* Green of the eyebrow/label text that introduces a heading. One step
     lighter than --color-accent-soft, and as light as it can go while still
     clearing 4.5:1 on white (5.00) and on Soft Ice (4.63). */
  --color-accent-heading: #057F5E;
  --color-accent-tint: rgba(13, 211, 148, .10);
  --color-accent-tint-2: #E7FBF4;
  --color-accent-rule: rgba(13, 211, 148, .34);

  /* Sales — Active Orange: money, won deals, closing */
  --color-sales: #FF6B35;
  --color-sales-hover: #F2551B;
  --color-sales-soft: #C2410C;    /* orange as text on light */
  --color-sales-tint-2: #FFF1EA;
  --color-sales-rule: rgba(255, 107, 53, .32);

  /* ---- Button fills and the text that sits on them ----------------------
     Brand rule: text on a coloured button is WHITE. Both accent hues are light
     fills, so white text on them is below WCAG AA (mint 1.95:1, orange 2.84:1)
     — that is a deliberate brand decision here, not an oversight.
     To make white text AA-compliant without touching the brand accents used
     everywhere else (icons, tints, glows, charts), deepen ONLY these two fills:
        --fill-accent: #047857;   -> white on mint   = 5.48:1
        --fill-sales:  #C2410C;   -> white on orange = 5.18:1
     Or keep these fills and set the two -on- tokens to var(--color-ink).
     Current fills: mint #0ABE85 (white 2.41:1), orange #FF6B35 (white 2.84:1). */
  --fill-accent: #0ABE85;   /* buttons + logo "AI": one step darker than the brand mint */
  --fill-sales: var(--color-sales);
  --color-on-accent: #FFFFFF;
  --color-on-sales: #FFFFFF;

  /* Readable display-text gradient: both stops >=5:1 on white. The bright
     #0DD394 / #FF6B35 pair is decorative-only (logo mark, avatars). */
  --grad-text: linear-gradient(90deg, var(--color-accent-heading) 0%, #C2410C 100%);
  --grad-brand: linear-gradient(90deg, #0DD394 0%, #34D399 45%, #FF6B35 100%);

  --space-2xs: .25rem;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --canvas-max: 1440px; /* whole page canvas: capped and centred on wide screens */
  --page-max: 1180px; /* 1180 - 2x40 gutter = 1100px content column */
  --page-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-btn: 6px;

  --shadow-card: 0 18px 40px -24px rgba(15, 23, 42, .22);
  --shadow-soft: 0 6px 18px -12px rgba(15, 23, 42, .18);
  --shadow-glow-mint: 0 10px 24px -12px rgba(13, 211, 148, .6);
  --shadow-glow-orange: 0 10px 24px -12px rgba(255, 107, 53, .55);

  --dur-micro: .12s;
  --dur-short: .22s;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--color-bg); }

body {
  margin: 0;
  /* The canvas stops growing at 1440px and centres; beyond that the page is
     letterboxed on the base background instead of stretching. */
  max-width: var(--canvas-max);
  margin-inline: auto;
  background: var(--color-bg);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(13, 211, 148, .22); color: var(--color-ink); }

img { max-width: 100%; display: block; }
a { color: var(--color-accent-soft); text-decoration: none; }
a:hover { color: var(--color-accent-bright); }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--color-ink); }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--color-accent); color: var(--color-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--color-ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-btn); border: 1px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.1; cursor: pointer;
  transition: background var(--dur-micro), color var(--dur-micro), border-color var(--dur-micro), box-shadow var(--dur-micro);
}

/* Brand / registration action — Hyper Mint fill, white text (brand rule) */
.btn--accent { background: var(--fill-accent); color: var(--color-on-accent); box-shadow: var(--shadow-glow-mint); }
.btn--accent:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

/* Sales / launch action — Active Orange fill, white text (brand rule) */
.btn--sales { background: var(--fill-sales); color: var(--color-on-sales); box-shadow: var(--shadow-glow-orange); }
.btn--sales:hover { background: var(--color-sales-hover); color: var(--color-on-sales); }

.btn--lg { font-size: 18px; padding: 15px 28px; }
.btn--ghost { background: transparent; border-color: var(--color-rule); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-accent-soft); color: var(--color-accent-soft); }

.btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 24px; border-radius: var(--radius-btn); border: 0;
  background: var(--fill-accent); color: var(--color-on-accent);
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-glow-mint);
  transition: background var(--dur-micro), box-shadow var(--dur-micro), transform var(--dur-micro);
}
.btn-hero:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-hero:active { transform: translateY(1px); }

.btn-hero--sales { background: var(--fill-sales); color: var(--color-on-sales); box-shadow: var(--shadow-glow-orange); }
.btn-hero--sales:hover { background: var(--color-sales-hover); color: var(--color-on-sales); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 22px; border-radius: var(--radius-btn);
  background: transparent; border: 1px solid var(--color-rule); color: var(--color-ink);
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: border-color var(--dur-micro), background var(--dur-micro), color var(--dur-micro);
}
.btn-hero-ghost:hover { background: var(--color-bg-alt); border-color: var(--color-accent-soft); color: var(--color-accent-soft); }

/* ------------------------------- Header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule-2);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-lg); min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--color-ink); flex: none; }
.logo:hover { color: var(--color-ink); }
/* The mark is a transparent PNG star, so there is no tile to round. */
.logo__mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
.logo__text { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
/* "AI" carries the Active Orange of the closing/sales fill (same token as the
   orange buttons, so the two stay in step). Note: at 2.84:1 on white this is
   below WCAG AA — the documented brand tradeoff, see "Правило кнопок". */
.logo__ai { color: var(--fill-sales); }

.site-nav { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem); }
.site-nav__list a {
  color: var(--color-muted); font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color var(--dur-micro), border-color var(--dur-micro);
}
.site-nav__list a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent-soft); }
.site-nav__cta { padding: 11px 20px; flex: none; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-md); margin-left: var(--space-md); }
.site-header__mail {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--color-muted); font-size: 14px; font-weight: 500;
}
.site-header__mail:hover { color: var(--color-accent-soft); }
.site-header__mail .ico { width: 17px; height: 17px; }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--color-bg-alt); border: 1px solid var(--color-rule); color: var(--color-ink); cursor: pointer;
}
.burger .ico { width: 22px; height: 22px; }

/* ------------------------------ AI glows ------------------------------- */
/* Airy mint + orange radial washes on white: enough to read as "living
   intelligence", light enough to keep the page clean. */
.hero, .final-cta { position: relative; overflow: hidden; }
.hero > .container, .final-cta > .container { position: relative; z-index: 1; }

.hero::before, .final-cta::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -280px; left: -200px; width: 660px; height: 660px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 211, 148, .26) 0%, rgba(13, 211, 148, 0) 70%);
  filter: blur(80px);
}
.hero::after, .final-cta::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  bottom: -280px; right: -180px; width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, .20) 0%, rgba(255, 107, 53, 0) 70%);
  filter: blur(90px);
}

/* --------------------------------- Hero -------------------------------- */
.hero {
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  border-bottom: 1px solid var(--color-rule-2);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero__copy { max-width: 590px; }

.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--color-accent-heading); margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(2rem, 2.2vw + 1rem, 3rem); line-height: 1.05; font-weight: 800;
  letter-spacing: -.02em; color: var(--color-ink); margin-bottom: 20px;
}
.grad {
  font-style: normal;
  background-image: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  box-decoration-break: slice; -webkit-box-decoration-break: slice;
}
.hero__sub { font-size: clamp(1.05rem, .4vw + 1rem, 1.32rem); line-height: 1.42; color: var(--color-muted); margin-bottom: 25px; max-width: 534px; }
.hero__five { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--color-ink); margin: 0 0 20px; }
.hero__five .ico { width: 18px; height: 18px; color: var(--color-accent-soft); stroke-width: 2.6; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__demo { justify-self: end; width: 100%; max-width: 400px; }

/* ------------------------------ Chat card ------------------------------ */
.chat-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-rule-2); border-radius: var(--radius);
  box-shadow: var(--shadow-card); color: var(--color-ink-2);
}
.chat-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 14px 8px 16px; border-bottom: 1px solid var(--color-rule-2);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral);
}
.chat-card__badge {
  padding: 3px 9px; border-radius: 999px; background: var(--color-accent-tint-2); color: var(--color-accent-bright);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: none;
}
.chat-card__messages { display: flex; flex-direction: column; gap: 8px; padding: 14px; }

.chat-msg { max-width: 86%; padding: 7px 11px; border-radius: 12px; font-size: .8rem; line-height: 1.4; word-break: break-word; }
.chat-msg--client { align-self: flex-end; background: var(--color-surface-2); border: 1px solid var(--color-rule-2); border-bottom-right-radius: 4px; color: var(--color-ink); }
.chat-msg--agent { align-self: flex-start; background: var(--color-accent-tint-2); border-bottom-left-radius: 4px; color: var(--color-ink); }

.chat-lead {
  display: flex; align-items: center; gap: 9px; margin-top: 4px; padding: 9px 12px;
  background: var(--color-sales-tint-2); border: 1px solid var(--color-sales-rule); border-radius: 10px;
}
.chat-lead__icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-sales); color: var(--color-ink); }
.chat-lead__icon .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.chat-lead__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chat-lead__title { font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--color-ink); }
.chat-lead__sub { font-size: 11px; font-weight: 500; line-height: 1.35; color: var(--color-sales-soft); }

/* ------------------------------- Sections ------------------------------ */
.section { padding: 96px 0 64px; }
/* Alternating sections keep the white field dominant and separate with a
   hairline; the soft gray is spent on cards and insets, not on full bands. */
.section--paper { background: var(--color-bg); border-top: 1px solid var(--color-rule-2); }

.section__lead { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--color-accent-heading); margin-bottom: 12px;
}
.section__eyebrow--left { text-align: left; }
.section__title { font-size: clamp(1.6rem, 1.1vw + 1.3rem, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--color-ink); }
.section__title--left { text-align: left; }
.section__sub { margin-top: 16px; color: var(--color-muted); font-size: 17px; line-height: 1.55; }

.section__cta { display: flex; justify-content: center; margin-top: 32px; }
.section__after { margin-top: 18px; text-align: center; font-size: 15px; font-weight: 600; color: var(--color-muted); }

.subhead { font-size: 20px; font-weight: 700; margin: 48px 0 20px; color: var(--color-ink); }

.note {
  max-width: 720px; margin: 32px auto 0; padding: 14px 18px;
  background: var(--color-surface-2); border: 1px solid var(--color-rule-2); border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--color-ink-2);
}

/* -------------------------------- Cards -------------------------------- */
/* Cards sit on soft gray per the palette; on a soft-gray band they flip to
   white so they never disappear into their own background. */
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cardv {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; background: var(--color-surface-2); border: 1px solid var(--color-rule-2); border-radius: var(--radius);
  transition: border-color var(--dur-short), box-shadow var(--dur-short), transform var(--dur-short);
}
.cardv:hover { border-color: var(--color-accent-rule); box-shadow: var(--shadow-soft); }

.cardv__icon {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 10px; background: var(--color-accent-tint-2); color: var(--color-accent-soft);
}
.cardv__icon .ico { width: 19px; height: 19px; }
.cardv__icon--brand { background: var(--color-accent-tint-2); color: var(--color-accent-soft); }
.cardv__icon--sales { background: var(--color-sales-tint-2); color: var(--color-sales-soft); }
.cardv__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--color-ink); }
.cardv__text { font-size: 15px; line-height: 1.55; color: var(--color-muted); }
.cardv__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent-heading); margin-bottom: 10px;
}
.cardv__meta { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--color-accent-soft); }
.cardv--step { padding-top: 22px; }
.cardv--accent { background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-accent-tint-2) 100%); border-color: var(--color-accent-rule); }

/* -------------------------------- Split -------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.split__aside { max-width: 460px; }
.split__text { margin-top: 16px; color: var(--color-muted); font-size: 17px; line-height: 1.55; }

.stat { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--color-sales-soft); }
.stat__label { font-size: 15px; color: var(--color-muted); }

.teaser {
  position: relative; margin-top: 32px; padding: 26px 22px 26px;
  border: 1px solid var(--color-rule-2); border-radius: var(--radius); background: var(--color-bg-alt);
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .10) 1px, transparent 0);
  background-size: 14px 14px;
}
.teaser__site {
  display: inline-block; margin-bottom: 18px; padding: 5px 10px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-rule-2);
  font-size: 12px; color: var(--color-muted);
}
.teaser__bubble {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: var(--color-surface); border: 1px solid var(--color-rule-2); border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-soft); max-width: 330px;
}
/* The real brand mark, not a stand-in chip: the widget's own teaser carries the same artwork. */
.teaser__avatar { flex: none; width: 34px; height: 34px; object-fit: contain; }
.teaser__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.teaser__name { font-size: 12px; font-weight: 700; color: var(--color-ink); display: flex; align-items: center; gap: 6px; }
.teaser__online { font-style: normal; font-size: 10px; font-weight: 600; color: var(--color-accent-soft); }
.teaser__msg { font-size: 13.5px; line-height: 1.4; color: var(--color-ink-2); }
.teaser__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.teaser__chips i {
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--color-accent-bright);
  border: 1px solid var(--color-accent-rule); background: var(--color-accent-tint); border-radius: 999px; padding: 3px 9px;
}

/* -------------------------------- Steps -------------------------------- */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--color-rule-2); }
.step:first-child { border-top: 0; }
.step__num { flex: none; width: 44px; font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--color-accent-heading); line-height: 1.3; }
.step__body { min-width: 0; }
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--color-ink); }
.step__text { font-size: 15px; line-height: 1.55; color: var(--color-muted); }
.steps--compact .step { padding: 18px 0; }

/* ----------------------------- Knowledge base -------------------------- */
.kb { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.kb-mock { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.kb-mock__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--color-rule-2); }
.kb-mock__title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral); }
.kb-mock__count { font-size: 12px; font-weight: 700; color: var(--color-accent-soft); }
.kb-mock__list { padding: 8px; }
.kb-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); }
.kb-file + .kb-file { border-top: 1px solid var(--color-rule-2); }
.kb-file .ico { width: 18px; height: 18px; color: var(--color-accent-soft); }
.kb-file__name { font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-ink-2); }
.kb-file__tag { margin-left: auto; flex: none; font-size: 12px; color: var(--color-neutral); }
.kb-mock__answer { padding: 16px; background: var(--color-bg-alt); border-top: 1px solid var(--color-rule-2); }
.kb-mock__q { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--color-ink); }
.kb-mock__a { font-size: 14px; line-height: 1.5; color: var(--color-ink); padding: 10px 12px; background: var(--color-accent-tint-2); border-radius: 10px 10px 10px 4px; }
.kb-mock__src { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--color-muted); }
.kb-mock__src b { color: var(--color-ink-2); }

/* ------------------------------- Badges -------------------------------- */

/* ------------------------------- Channels ------------------------------ */
.chan {
  display: flex; flex-direction: column; padding: 22px;
  background: var(--color-surface-2); border: 1px solid var(--color-rule-2); border-radius: var(--radius);
  transition: border-color var(--dur-short), box-shadow var(--dur-short);
}
.chan:hover { border-color: var(--color-accent-rule); box-shadow: var(--shadow-soft); }
.chan__ico {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; background: var(--color-accent-tint-2); color: var(--color-accent-soft);
}
.chan__ico .ico { width: 21px; height: 21px; }
.chan__kind {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-neutral); margin-bottom: 6px;
}
.chan__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--color-ink); }
.chan__text { font-size: 14px; line-height: 1.5; color: var(--color-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tags li {
  font-size: 11.5px; font-weight: 600; color: var(--color-muted);
  background: var(--color-bg-alt); border: 1px solid var(--color-rule-2); border-radius: 999px; padding: 3px 9px;
}
.tags--center { justify-content: center; margin-top: 18px; }

.dialogs { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.dialogs__title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--color-ink); }
.dialogs__sub { font-size: 16px; color: var(--color-muted); line-height: 1.55; }
.dialogs__list { display: flex; flex-direction: column; gap: 8px; }
.dialog-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--color-surface-2); border: 1px solid var(--color-rule-2); border-radius: var(--radius-sm);
}
.dialog-item__ava {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-size: 14px; font-weight: 700; color: var(--color-ink); background: var(--color-accent);
}
.dialog-item__ava--1 { background: #0DD394; }
.dialog-item__ava--2 { background: #5EEAD4; }
.dialog-item__ava--3 { background: #FFB38A; }
.dialog-item__ava--4 { background: var(--color-sales); }
.dialog-item__body { display: flex; flex-direction: column; min-width: 0; }
.dialog-item__name { font-size: 14px; color: var(--color-ink); }
.dialog-item__msg { font-size: 13.5px; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-item__state { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.dialog-item__state--ok { color: var(--color-accent-bright); background: var(--color-accent-tint-2); }
.dialog-item__state--lead { color: var(--color-ink); background: var(--color-sales); }

/* ------------------------------- Fields -------------------------------- */
.fields { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.field-chip {
  font-size: 13px; font-weight: 600; color: var(--color-accent-bright);
  background: var(--color-accent-tint-2); border-radius: 999px; padding: 5px 12px;
}

.install { margin-top: 48px; text-align: center; }
.install__text { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--color-ink); }

/* The one deliberately dark element: a terminal reads as code, and its area is
   negligible for the 60-30-10 balance. */
.code {
  margin: 0 auto; max-width: 100%; padding: 14px 18px; overflow-x: auto;
  background: var(--color-ink); color: #E2E8F0; border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; text-align: left;
}
.install .code { max-width: 760px; }

/* -------------------- Corporate ecosystem: doc checklist ----------------
   The left column of #ecosystem reuses the .teaser treatment from #hooks
   (dotted grid, chip, white card, soft shadow) so both sections read as one
   design, but the card holds a compliance checklist instead of a chat bubble. */
.doc-mock {
  position: relative; margin-top: 32px; padding: 26px 22px 22px;
  border: 1px solid var(--color-rule-2); border-radius: var(--radius); background: var(--color-bg-alt);
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .10) 1px, transparent 0);
  background-size: 14px 14px;
}
.doc-mock__tag {
  display: inline-block; margin-bottom: 16px; padding: 5px 10px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-rule-2);
  font-size: 12px; color: var(--color-muted);
}
.doc-mock__list {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px; background: var(--color-surface);
  border: 1px solid var(--color-rule-2); border-radius: 12px; box-shadow: var(--shadow-soft);
}
.doc-mock__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--color-ink-2); }
.doc-mock__list .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--color-accent-soft); }
.doc-mock__foot {
  margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--color-neutral);
}

/* ------------------------------ Register ------------------------------- */
.register { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.register__points { display: flex; flex-direction: column; gap: 14px; }
.register__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 500; color: var(--color-ink-2); }
.register__points .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--color-accent-soft); stroke-width: 2.6; }

/* Contacts card: same box treatment the lead form had (Soft Ice, hairline,
   soft shadow), so only the content of the section changed, not its weight. */
.contacts { padding: 28px; background: var(--color-surface-2); border: 1px solid var(--color-rule); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.contacts__org { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--color-ink); }
.contacts__list { display: flex; flex-direction: column; margin-top: 20px; }
.contacts__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--color-rule-2); }
.contacts__item:first-child { border-top: 0; padding-top: 0; }
.contacts__item:last-child { padding-bottom: 0; }
.contacts__ico {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; background: var(--color-accent-tint-2); color: var(--color-accent-soft);
}
.contacts__ico .ico { width: 18px; height: 18px; }
.contacts__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contacts__label { font-size: 12.5px; color: var(--color-neutral); }
.contacts__value { font-size: 17px; font-weight: 700; color: var(--color-ink); overflow-wrap: anywhere; }
.contacts__value:hover { color: var(--color-accent-soft); text-decoration: underline; }

/* --------------------------------- FAQ --------------------------------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-rule-2); }
.faq-item__q {
  display: flex; align-items: center; gap: 14px; padding: 18px 0; cursor: pointer;
  font-size: 18px; font-weight: 500; color: var(--color-ink); list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--color-accent-soft); }
.faq-item__chevron { margin-left: auto; width: 20px; height: 20px; color: var(--color-neutral); transition: transform var(--dur-short) var(--ease-out); }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); color: var(--color-accent-soft); }
.faq-item__a { padding: 0 42px 22px 42px; }
.faq-item__a p { font-size: 16px; line-height: 1.6; color: var(--color-muted); }

/* ------------------------------ Final CTA ------------------------------ */
.final-cta {
  background: linear-gradient(135deg, var(--color-accent-tint-2) 0%, var(--color-bg) 48%, var(--color-sales-tint-2) 100%);
  border-top: 1px solid var(--color-rule-2);
  color: var(--color-ink); padding: 72px 0;
}
.final-cta__inner { text-align: center; }
.final-cta__title { font-size: clamp(1.6rem, 1.2vw + 1.3rem, 2.25rem); font-weight: 800; letter-spacing: -.02em; color: var(--color-ink); }
.final-cta__sub { margin: 14px auto 28px; max-width: 620px; font-size: 17px; color: var(--color-muted); }

/* -------------------------------- Footer ------------------------------- */
.site-footer { background: var(--color-bg-alt); color: var(--color-muted); padding: 56px 0 28px; font-size: 14.5px; border-top: 1px solid var(--color-rule-2); }

/* Two columns: brand block + contacts, spread across the full canvas. */
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 6rem);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--color-rule-2);
}

.logo--footer { margin-bottom: 16px; }
.site-footer__tagline { max-width: 330px; line-height: 1.55; margin-bottom: 20px; }

.site-footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.site-footer__contacts li { display: flex; align-items: center; gap: 9px; }
.site-footer__contacts .ico { width: 17px; height: 17px; flex: none; color: var(--color-accent-soft); }
.site-footer__contacts a { color: var(--color-ink); font-weight: 500; }
.site-footer__contacts a:hover { color: var(--color-accent-soft); }
.site-footer__org { max-width: 380px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--color-ink); }
.site-footer__cta { padding: 11px 20px; }

.site-footer__title {
  margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-neutral);
}


.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 22px; font-size: 13px; color: var(--color-neutral);
}
.site-footer__legal { line-height: 1.6; }
.site-footer__copy { white-space: nowrap; }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header__mail { display: none; }
}

/* Below this width the inline nav no longer fits: switch to the burger. */
@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 12px var(--page-gutter) 20px;
    background: var(--color-bg); border-bottom: 1px solid var(--color-rule);
    box-shadow: var(--shadow-card);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-short), transform var(--dur-short);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--color-rule-2); }
  .site-nav__list a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 0; }
  .site-nav__cta { margin-top: 16px; width: 100%; padding: 14px 20px; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__demo { justify-self: start; max-width: 460px; }
  .split, .kb, .dialogs, .register { grid-template-columns: minmax(0, 1fr); }
  /* Once the split stacks, the checklist would stretch to the full column and
     lose its card proportions — cap it like .teaser__bubble does. */
  .doc-mock { max-width: 460px; }
  .split__aside { max-width: none; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }

  .site-header__inner { min-height: 62px; }
  .site-nav { inset: 62px 0 auto; max-height: calc(100vh - 62px); }

  /* Keep the washes from dominating a narrow viewport. */
  .hero::before, .final-cta::before { width: 380px; height: 380px; top: -180px; left: -150px; filter: blur(70px); }
  .hero::after, .final-cta::after { width: 340px; height: 340px; bottom: -180px; right: -140px; filter: blur(75px); }

  .section { padding: 64px 0 48px; }
  .section__lead { margin-bottom: 40px; }
  .cardv, .chan, .contacts { padding: 20px; }
  .cards--3, .cards--4 { grid-template-columns: minmax(0, 1fr); }
  .contacts__value { font-size: 16px; }
  .step { gap: 16px; }
  .step__num { width: 34px; font-size: 18px; }
  .doc-mock { padding: 20px 16px 18px; }
  .doc-mock__list { padding: 14px; }
  .faq-item__q { font-size: 16.5px; }
  .faq-item__a { padding-left: 0; padding-right: 0; }
  .chat-card__messages { max-height: 420px; overflow-y: auto; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__ctas .btn-hero, .hero__ctas .btn-hero-ghost { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
