/* Mogus Business landing. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/onest-cyrillic-v11.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/onest-latin-v11.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --ink: #0c1430;
  --ink-2: #2f3a5c;
  --muted: #56617f;
  --line: #e1e7f2;
  --line-2: #d3dbea;
  --navy: #0c1430;
  --navy-2: #17214d;
  --blue: #2e7bff;
  --blue-strong: #1757d6;
  --blue-ink: #1449b8;
  --indigo: #3f55e6;
  --violet: #6d5dfc;
  --violet-ink: #4b3bd4;
  --blue-soft: #e8f0ff;
  --violet-soft: #efecff;
  --web-bg: #e8f0ff;   --web-ink: #1449b8;
  --file-bg: #fff1e6;  --file-ink: #a3480f;
  --mail-bg: #fdeaf4;  --mail-ink: #a1306f;
  --task-bg: #efecff;  --task-ink: #4b3bd4;
  --mem-bg: #e3f6f1;   --mem-ink: #0b6e5d;
  --srv-bg: #eef1f7;   --srv-ink: #2f3a5c;
  --ok: #12805c;
  --warn: #b54708;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 48, .06), 0 2px 8px rgba(12, 20, 48, .04);
  --shadow: 0 1px 2px rgba(12, 20, 48, .05), 0 12px 32px -8px rgba(23, 50, 120, .16);
  --shadow-lg: 0 2px 4px rgba(12, 20, 48, .04), 0 32px 64px -20px rgba(31, 61, 160, .28);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--violet-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.nowrap { white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; flex: none; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-strong); color: #fff; box-shadow: 0 6px 18px -6px rgba(23, 87, 214, .55); }
.btn-primary:hover { background: #0f49bd; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: #b6c3dc; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--blue-ink); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { color: #fff; border-color: #fff; transform: translateY(-1px); }

/* ---------- Shared product vocabulary ---------- */
.t-web { --tb: var(--web-bg); --ti: var(--web-ink); }
.t-file { --tb: var(--file-bg); --ti: var(--file-ink); }
.t-mail { --tb: var(--mail-bg); --ti: var(--mail-ink); }
.t-task { --tb: var(--task-bg); --ti: var(--task-ink); }
.t-mem { --tb: var(--mem-bg); --ti: var(--mem-ink); }
.t-server { --tb: var(--srv-bg); --ti: var(--srv-ink); }
.tool-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--tb); color: var(--ti); }
.mark-ava { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.ava-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.ava-violet { background: var(--violet-soft); color: var(--violet-ink); }
.ava-mint { background: var(--mem-bg); color: var(--mem-ink); }
.ava-gray { background: var(--srv-bg); color: #6b7490; }
.demo-tag { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.file-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; max-width: 100%; }
.file-pill > span:last-child { min-width: 0; }
.file-pill b { display: block; font-size: 14px; }
.file-pill small { display: block; font-size: 12.5px; color: var(--muted); }
.mini-btn { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mini-btn-blue { color: var(--blue-ink); border-color: rgba(46, 123, 255, .35); background: var(--blue-soft); }
.mini-btn-primary { color: #fff; border-color: var(--blue-strong); background: var(--blue-strong); }
.msg { max-width: 92%; border-radius: 16px; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.msg-user { align-self: flex-end; background: var(--blue-strong); color: #fff; border-bottom-right-radius: 6px; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-bot .file-pill { margin-bottom: 8px; }
.msg-who { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.work-dot { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--blue-strong), var(--violet)); color: #fff; }
.work-dot .ic { width: 15px; height: 15px; }
.source-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(46, 123, 255, .45); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.source-num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12px; font-weight: 700; line-height: 1; }
.scene-note { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; }
.file-chip { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sched { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font-size: 13px; font-weight: 600; }
.sched .ic { width: 14px; height: 14px; }
.draft { padding: 12px 14px; border-radius: 12px; border: 1.5px dashed rgba(161, 48, 111, .35); background: #fffafd; font-size: 14.5px; line-height: 1.5; }
.draft-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--mail-ink); margin-bottom: 2px; }
.confirm-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.confirm-note .ic { color: #17a673; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 252, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(211, 219, 234, .7);
}
.header-row { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-word { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -.035em; }
.brand-word:hover { color: var(--blue-ink); }
.brand-badge { padding: 4px 9px 5px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .01em; line-height: 1; text-decoration: none; }
.brand-badge:hover { color: #fff; background: var(--navy-2); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a, .link-quiet { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap; }
.header-nav a:hover, .link-quiet:hover { color: var(--blue-ink); }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.mobile-menu { display: none; }

/* ---------- Ribbons: static SVG, transform-only drift ---------- */
.ribbon { position: absolute; pointer-events: none; z-index: -1; overflow: hidden; }
.ribbon-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ribbon-hero { inset: -20px 0 0 0; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.ribbon-hero .ribbon-layer { inset: 0 -6%; width: 112%; }
.ribbon.is-live .ribbon-layer { will-change: transform; }
.ribbon.is-live .ribbon-a { animation: drift-a 19s ease-in-out infinite alternate; }
.ribbon.is-live .ribbon-b { animation: drift-b 26s ease-in-out infinite alternate; }
.ribbon.is-live.is-paused .ribbon-layer { animation-play-state: paused; will-change: auto; }
@keyframes drift-a { from { transform: translate3d(-2.5%, 0, 0) scaleY(1); } to { transform: translate3d(2.5%, -2%, 0) scaleY(1.07); } }
@keyframes drift-b { from { transform: translate3d(3%, 1.5%, 0) scaleY(1.05); } to { transform: translate3d(-3%, -1%, 0) scaleY(.95); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.042em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 24px; max-width: 32em; color: var(--ink-2); font-size: clamp(17.5px, 1.5vw, 20px); line-height: 1.52; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row-center { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.trust li { display: flex; align-items: flex-start; gap: 9px; }
.trust li::before { content: ""; width: 5px; height: 5px; margin-top: .6em; flex: none; border-radius: 50%; background: var(--blue-strong); }

/* Telegram scene (hero + channels) */
.tg { margin: 0; }
.tg-hero { width: 100%; max-width: 440px; justify-self: end; }
.tg-hero .tg-chat { gap: 9px; padding: 16px 14px 14px; }
.tg-hero .tg-msg { font-size: 14.5px; }
.tg-window { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid rgba(211, 219, 234, .9); box-shadow: var(--shadow-lg); }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.tg-ava { width: 36px; height: 36px; border-radius: 50%; }
.tg-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tg-name b { font-size: 15px; }
.tg-name small { font-size: 12.5px; color: var(--muted); }
.tg-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12.5px; font-weight: 600; }
.tg-badge .ic { width: 14px; height: 14px; }
.tg-chat {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(109, 93, 252, .12), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(46, 123, 255, .12), transparent 60%),
    #eef3fb;
}
.tg-msg { max-width: 88%; padding: 10px 13px 11px; border-radius: 18px; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1.5px rgba(12, 20, 48, .08); }
.tg-out { align-self: flex-end; background: #dceaff; border-bottom-right-radius: 6px; }
.tg-in { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.tg-in .file-pill { margin-top: 10px; background: var(--surface-2); }
.tg-who { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--blue-ink); }
.voice { display: flex; align-items: center; gap: 10px; }
.voice-play { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--blue-strong); color: #fff; }
.voice-play .ic { width: 18px; height: 18px; margin-left: 2px; }
.voice-wave { width: 148px; height: 20px; flex: none; color: #5b8ff0; }
.voice-time { font-size: 12.5px; font-weight: 600; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.voice-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(23, 87, 214, .14); font-size: 14.5px; color: var(--ink-2); }
.tg-status { display: flex; align-items: center; gap: 9px; align-self: flex-start; max-width: 96%; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.tg-status b { font-weight: 700; color: var(--ink); }
.tg-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 18px; border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: #6b7490; }
.tg-mic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); }

/* Hero sequence (JS only, played once); the finished state is the default. */
.tg-hero.is-playing [class*="js-"] { transition: opacity .45s ease, transform .45s ease; }
.tg-hero.is-playing:not(.s2):not(.s3):not(.s4):not(.s5) .js-2,
.tg-hero.is-playing:not(.s3):not(.s4):not(.s5) .js-3,
.tg-hero.is-playing:not(.s4):not(.s5) .js-4,
.tg-hero.is-playing:not(.s5) .js-5 { opacity: 0; transform: translateY(8px); }
.tg-hero.is-playing.s3 .tg-status { border-color: rgba(109, 93, 252, .45); box-shadow: 0 0 0 4px rgba(109, 93, 252, .1); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.section h2, .implementation h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.032em; font-weight: 700; text-wrap: balance; }
.section-lead { margin-top: 18px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; }
.demo-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- 2. Why: before / after ---------- */
.why { background: linear-gradient(180deg, var(--bg) 0%, #fff 22%, #fff 100%); }
.compare { width: 100%; max-width: 1000px; margin: 0 auto; border-collapse: separate; border-spacing: 18px 0; table-layout: fixed; }
.compare th, .compare td { padding: 18px 26px; text-align: left; vertical-align: middle; }
.compare th { padding-top: 22px; padding-bottom: 16px; font-size: 15px; font-weight: 700; }
.compare th.c-was { color: var(--muted); }
.compare th.c-now { color: #fff; }
.brand-badge-light { display: inline-block; margin-right: 10px; background: rgba(255, 255, 255, .14); vertical-align: 1px; }
.compare .c-was { background: var(--surface-2); color: #6b7490; border-inline: 1px solid var(--line); font-size: 16.5px; }
.compare .c-now { position: relative; background: var(--navy); color: #fff; font-size: 17px; font-weight: 600; }
.compare td.c-was { border-top: 1px solid var(--line); }
.compare td.c-now { border-top: 1px solid rgba(255, 255, 255, .1); }
.compare th.c-was { border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; }
.compare th.c-now { border-radius: 22px 22px 0 0; background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.compare tbody tr:last-child td { padding-bottom: 24px; }
.compare tbody tr:last-child td.c-was { border-bottom: 1px solid var(--line); border-radius: 0 0 22px 22px; }
.compare tbody tr:last-child td.c-now { border-radius: 0 0 22px 22px; }
.compare td.c-was::before, .compare td.c-now::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 12px; vertical-align: -4px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.compare td.c-was::before { background-color: #e1e6f0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='%236b7490' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.compare td.c-now::before { background-color: #2e7bff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); }
.compare td { text-indent: -32px; padding-left: 58px; }
.compare td.c-was::after { content: "→"; position: absolute; right: -27px; top: 50%; transform: translateY(-50%); width: 36px; text-indent: 0; text-align: center; font-size: 18px; color: #9aa6c2; }
.compare td.c-was { position: relative; }

/* ---------- 3. Scenarios: tabs ---------- */
.scenarios { background: #fff; }
.tabs { max-width: 1120px; margin: 0 auto; }
.tablist { display: none; }
.js .tablist { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tablist [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font: 600 15.5px/1 var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tablist [role="tab"] .ic { width: 17px; height: 17px; opacity: .8; }
.tablist [role="tab"]:hover { border-color: #b6c3dc; color: var(--ink); }
.tablist [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panels { display: flex; flex-direction: column; gap: 20px; }
.tab-panel {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center;
  padding: 36px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line);
}
.js .tab-panels { display: grid; }
.js .tab-panel { grid-area: 1 / 1; transition: opacity .3s ease; }
.js .tab-panel:not(.is-active) { visibility: hidden; opacity: 0; }
.panel-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dept { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.dept .tool-dot { width: 32px; height: 32px; }
.ask { position: relative; padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.38; letter-spacing: -.01em; text-wrap: pretty; }
.did { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.panel-scene { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.scene-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(211, 219, 234, .9); box-shadow: var(--shadow); font-size: 14.5px; }
.scene-card .file-pill { align-self: flex-start; }
.scene-kind { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.scene-kind .ic { color: var(--mail-ink); }
/* Sales: mail draft */
.mail-meta { display: flex; flex-direction: column; border-block: 1px solid var(--line); }
.mail-meta div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 7px 0; font-size: 14px; }
.mail-meta div + div { border-top: 1px solid var(--line); }
.mail-meta dt { color: var(--muted); }
.mail-meta dd { font-weight: 600; }
.mail-body { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); line-height: 1.5; }
.mail-body b { color: var(--ink); }
.mail-actions { display: flex; gap: 8px; }
/* Service: answer + source */
.answer-main { font-size: 17px; font-weight: 700; line-height: 1.4; }
.answer-main .source-num { margin-left: 6px; vertical-align: 3px; }
.answer-sub { margin-top: -4px; color: var(--ink-2); }
.footnote { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
/* Contracts: sources + table */
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.src-card { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.src-card > .ic { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--tb); color: var(--ti); }
.src-card b { display: block; font-size: 13.5px; }
.src-card small { display: block; color: var(--muted); font-size: 12px; }
.tbl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.tr:first-child { border-top: 0; }
.th { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.tr > [role="rowheader"] { font-weight: 600; }
.tr .bad { color: var(--warn); font-weight: 700; }
/* Head: scheduled report */
.report-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.report-title { font-size: 16px; font-weight: 700; }
.kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; row-gap: 8px; }
.kpi-num { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--blue-ink); }
.kpi-label { color: var(--ink-2); }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-strong), var(--violet)); }
.report-list { display: flex; flex-direction: column; }
.report-list li { display: flex; flex-direction: column; padding: 8px 0 8px 18px; border-top: 1px solid var(--line); position: relative; }
.report-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.report-list span { color: var(--muted); font-size: 13.5px; }
/* Marketing: changes summary */
.changes li { padding: 9px 0; border-top: 1px solid var(--line); }
.changes li:first-child { border-top: 0; }
.changes b { display: block; font-size: 13.5px; }
.changes .same { color: var(--muted); }
.sources-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sources-note .ic { width: 14px; height: 14px; }

/* ---------- 5. Knowledge ---------- */
.knowledge { background: #fff; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 40px; }
.benefits li { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.benefits h3 { margin-top: 14px; font-size: 19px; letter-spacing: -.012em; line-height: 1.25; text-wrap: balance; }
.benefits p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.layer-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-ink); }
.layer-ic .ic { width: 20px; height: 20px; }
.kn-scene { max-width: 980px; margin: 0 auto; }
.kn-window { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.kn-files { padding: 22px 18px; background: var(--surface-2); border-right: 1px solid var(--line); min-width: 0; }
.kn-files-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.kn-files-title .ic { color: var(--violet-ink); }
.kn-files-sub { margin: 2px 0 14px 24px; font-size: 12.5px; color: var(--muted); }
.kn-files li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
.kn-files .fname { flex: 1 1 0; min-width: 0; }
.kn-files li small { flex-basis: 100%; margin-left: 42px; margin-top: -4px; font-size: 12px; color: var(--muted); }
.kn-files li.is-hit { background: #fff; border: 1px solid rgba(46, 123, 255, .45); box-shadow: 0 0 0 3px rgba(46, 123, 255, .08); color: var(--ink); font-weight: 600; }
.ftype { display: grid; place-items: center; width: 32px; height: 26px; flex: none; border-radius: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.ftype-pdf { background: #fde8e8; color: #b42318; }
.ftype-doc { background: var(--web-bg); color: var(--web-ink); }
.ftype-faq { background: var(--violet-soft); color: var(--violet-ink); font-size: 14px; }
.kn-chat { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 26px 24px; min-width: 0; }
.kn-chat .msg-bot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.kn-chat .msg-bot p { font-weight: 600; color: var(--ink); }
.kn-action { margin-top: 2px; }

/* ---------- 4. Channels (before Knowledge: where the team works, then what the company adds) ---------- */
.channels { background: linear-gradient(180deg, #fff 0%, var(--bg) 30%, var(--bg) 100%); }
.ch-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.ch-points { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.ch-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.ch-scene { position: relative; padding-bottom: 56px; }
.device { margin: 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.web-device { width: 76%; }
.device-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.device-url { flex: 1; max-width: 260px; padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.web-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 380px; }
.web-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--surface-2); border-right: 1px solid var(--line); min-width: 0; }
.side-title { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; font-size: 15px; font-weight: 700; }
.new-chat { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 12px; border-radius: 11px; background: #fff; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; }
.new-chat .ic { width: 14px; height: 14px; color: var(--blue-ink); }
.side-group { margin: 6px 4px 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.side-conv { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-conv.is-active { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.side-conv-tg { border: 1px dashed rgba(46, 123, 255, .5); background: #fff; }
.side-conv-tg.is-active { background: var(--blue-soft); border-style: solid; }
.side-conv-tg .ic { width: 14px; height: 14px; color: var(--blue-ink); }
.web-chat { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 16px; min-width: 0; padding-right: 64px; }
.web-chat-title { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; color: #6b7490; }
.composer-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-strong); color: #fff; }
.tg-phone { position: absolute; right: 0; bottom: 0; width: 284px; padding: 8px; border-radius: 34px; background: var(--navy); box-shadow: var(--shadow-lg), 0 30px 60px -24px rgba(12, 20, 48, .5); }
.tg-phone .tg-window { border-radius: 27px; border: 0; box-shadow: none; }
.tg-phone .tg-top { padding: 14px 14px 10px; }
.tg-phone .tg-ava { width: 32px; height: 32px; }
.tg-phone .tg-chat { padding: 14px 12px; }
.tg-phone .tg-msg { font-size: 13.5px; max-width: 94%; }
.tg-phone .voice-wave { width: 110px; }
.tg-phone .voice-text { font-size: 13px; }
.remind { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-ink); }
.remind .ic { width: 18px; height: 18px; }
.remind b { display: block; font-size: 14px; color: var(--ink); }
.remind small { display: block; font-size: 12px; color: var(--ink-2); }
.qs { margin-top: 8px; padding-left: 18px; list-style: decimal; color: var(--ink-2); }
.qs li + li { margin-top: 2px; }
.ch-scene .scene-note { position: absolute; left: 0; bottom: 20px; text-align: left; }
.ch-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.tools-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 32px; margin-top: 56px; padding: 22px 26px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.tools-title { font-size: 16px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; max-width: 600px; }
.tool-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.tool-chips .tool-dot { width: 28px; height: 28px; border-radius: 50%; }
.tool-chips .ic { width: 15px; height: 15px; }
.tools-sub, .tools-extra { grid-column: 2; font-size: 14px; color: var(--muted); }
.tools-extra { display: flex; align-items: flex-start; gap: 8px; margin-top: -6px; font-size: 13px; line-height: 1.7; }
.tools-extra .ic { width: 15px; height: 15px; margin-top: 4px; }
.tech { display: inline-block; padding: 0 7px; line-height: 1.6; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* ---------- 6. Control: the full-bleed navy band ---------- */
.control {
  color: #fff;
  background: radial-gradient(55% 70% at 100% 0%, rgba(109, 93, 252, .28), transparent 70%), radial-gradient(45% 60% at 0% 100%, rgba(46, 123, 255, .22), transparent 70%), var(--navy);
}
.control .section-lead { color: rgba(255, 255, 255, .8); }
.control :focus-visible { outline-color: #9fc0ff; }
.control-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin-top: 36px; }
.facts li { display: flex; flex-direction: column; gap: 12px; }
.facts h3 { font-size: 18px; letter-spacing: -.01em; }
.facts p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .74); }
.fact-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--blue-soft); color: var(--blue-ink); }
.fact-ic .ic { width: 19px; height: 19px; }
.control .fact-ic { background: rgba(255, 255, 255, .1); color: #fff; }
.control .console-window { color: var(--ink); border-color: rgba(255, 255, 255, .2); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55); }
.console { margin: 0; position: relative; }
.console-window { position: relative; z-index: 1; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.console-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.console-body { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.members { display: flex; flex-direction: column; gap: 6px; }
.c-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-weight: 700; font-size: 15px; }
.member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 128px; align-items: center; gap: 12px; padding: 8px 12px 8px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; }
.m-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.member.is-off { background: var(--surface-2); }
.member.is-off b, .member.is-off .role { color: #6b7490; }
.st { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.st-on { color: var(--ok); } .st-on::before { background: #17a673; }
.st-wait { color: var(--warn); } .st-wait::before { background: #f79009; }
.st-off { color: #6b7490; } .st-off::before { background: #b3bfd6; }
.fs { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.fs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.legend { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.check { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.check::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1.5px solid #b3bfd6; background: #fff; transition: background-color .3s ease, border-color .3s ease; }
.check::after { content: ""; position: absolute; left: 6px; top: 50%; margin-top: -6px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s ease; }
.check.is-on::before { background: var(--blue-strong); border-color: var(--blue-strong); }
.check.is-on::after { transform: rotate(45deg) scale(1); }
.balance { display: flex; align-items: center; gap: 24px; padding: 14px 16px; border-radius: 12px; background: var(--navy); color: #fff; }
.balance small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.balance b { font-size: 19px; font-variant-numeric: tabular-nums; }
.balance .mini-btn { margin-left: auto; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.console-privacy { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.console-privacy .ic { color: var(--ok); }
/* Tools are ticked one by one when the console scrolls into view (JS only). */
.js .console:not(.is-in) .tick.is-on::before { background: #fff; border-color: #b3bfd6; }
.js .console:not(.is-in) .tick.is-on::after { transform: rotate(45deg) scale(0); }
.js .console .tick::before, .js .console .tick::after { transition-delay: calc(300ms + var(--i) * 140ms); }

/* ---------- 7. Implementation: light card, so the dark control band above stays the only dark block mid-page ---------- */
.implementation { padding: 104px 0 24px; }
.impl-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 72px 56px 60px; color: var(--ink);
  background: radial-gradient(50% 70% at 100% 0%, rgba(109, 93, 252, .09), transparent 70%), radial-gradient(45% 60% at 0% 100%, rgba(46, 123, 255, .08), transparent 70%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ribbon-impl { inset: 0; opacity: .5; }
.ribbon-impl .ribbon-layer { inset: 0 -5%; width: 110%; }
.impl-head { max-width: 760px; }
.impl-lead { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; color: var(--ink-2); }
.flows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.flow { padding: 22px 22px 24px; border-radius: 22px; background: rgba(248, 250, 255, .88); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flow-title { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); }
.flow-title .ic { width: 18px; height: 18px; color: var(--violet-ink); }
.chain { display: flex; flex-direction: column; margin-top: 16px; }
.chain li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: calc(50% + 20px); height: calc(100% - 40px + 16px); width: 2px; transform: translateY(-8px); background: linear-gradient(180deg, rgba(46, 123, 255, .55), rgba(109, 93, 252, .35)); }
.chain-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--blue-soft); color: var(--blue-ink); }
.chain-human { color: var(--ink); }
.chain-human .chain-ic { background: linear-gradient(135deg, var(--blue-strong), var(--violet)); color: #fff; }
.impl-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.impl-foot p { max-width: 44em; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.impl-foot b { color: var(--ink); }

/* ---------- 8. Start ---------- */
.start { background: transparent; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; z-index: 0; background: linear-gradient(90deg, var(--blue-strong), var(--indigo), var(--violet)); opacity: .3; }
.step { position: relative; z-index: 1; padding: 0 12px; text-align: center; }
.step-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 21px; font-weight: 700; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.step h3 { margin-top: 18px; font-size: 20px; letter-spacing: -.015em; text-wrap: balance; }
.step p { margin: 8px auto 0; max-width: 22em; color: var(--ink-2); font-size: 16px; }
.start-note { max-width: 36em; margin: 40px auto 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.start-cta { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- 9. FAQ ---------- */
.faq-section { background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 14px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: 20px; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; max-width: 44em; color: var(--ink-2); }

/* ---------- 10. Final ---------- */
.final { padding: 104px 0; background: #fff; }
.final-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 32px;
  padding: 100px 32px 116px; text-align: center; color: #fff;
  background: radial-gradient(60% 80% at 100% 0%, rgba(109, 93, 252, .45), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(46, 123, 255, .35), transparent 70%), var(--navy);
}
.ribbon-final { inset: 0; }
.ribbon-final .ribbon-layer { inset: 0 -5%; width: 110%; }
.final-copy { position: relative; max-width: 760px; margin: 0 auto; }
.final h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.final-lead { margin: 18px auto 0; max-width: 32em; font-size: clamp(17px, 1.4vw, 19.5px); color: rgba(255, 255, 255, .82); }
.final-quiet { margin-top: 22px; font-size: 16px; }
.final-quiet a { color: rgba(255, 255, 255, .85); }
.final-quiet a:hover { color: #fff; }
.final :focus-visible { outline-color: #9fc0ff; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; background: #fff; }
.footer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px 28px; }
.brand-small .brand-word { font-size: 20px; }
.brand-small .brand-badge { font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; }
.footer-product-link { justify-self: end; color: var(--ink-2); font-size: 15px; }
.footer-nav a { color: var(--ink-2); }
.footer-product-link:hover { color: var(--violet-ink); }
.footer-legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-owner { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; text-align: center; }
.footer-owner a { color: inherit; }
.cookie-notice {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: min(430px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px;
  background: #11172a; color: #fff; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(10, 20, 45, .28);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice strong { display: block; margin-bottom: 4px; font-size: 16px; }
.cookie-notice p { margin: 0; color: rgba(255,255,255,.78); font-size: 13.5px; line-height: 1.45; }
.cookie-notice a { color: #c8d7ff; }
.cookie-notice .btn { flex: none; }


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon .ribbon-layer { animation: none !important; }
  .js .console:not(.is-in) .tick.is-on::before { background: var(--blue-strong); border-color: var(--blue-strong); }
  .js .console:not(.is-in) .tick.is-on::after { transform: rotate(45deg) scale(1); }
  .btn, .check::before, .check::after, .faq summary::after, .tablist [role="tab"], .js .tab-panel { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-row { gap: 24px; }
  .header-nav { gap: 20px; }
}
@media (max-width: 1020px) {
  .header-nav, .header-actions { display: none; }
  .mobile-menu { display: block; margin-left: auto; position: relative; }
  .mobile-menu summary { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; cursor: pointer; list-style: none; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 15px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; } .burger::after { top: 5px; }
  .mobile-menu[open] .burger { background: transparent; }
  .mobile-menu[open] .burger::before { transform: translateY(5px) rotate(45deg); }
  .mobile-menu[open] .burger::after { transform: translateY(-5px) rotate(-45deg); }
  .mobile-menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .mobile-menu-panel nav { display: flex; flex-direction: column; }
  .mobile-menu-panel nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
  .mobile-menu-panel nav a:hover { background: var(--surface-2); }
  .menu-sep { height: 1px; margin: 6px 12px; background: var(--line); }
}
@media (max-width: 1080px) {
  .hero-grid, .control-grid, .ch-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tg-hero { justify-self: start; }
  .tab-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .flows { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .impl-card { padding: 60px 40px 48px; }
}
@media (max-width: 860px) {
  .ribbon-hero { inset: -20px 0 auto 0; height: 380px; }
  .ribbon-hero .ribbon-layer { inset: 0 -30% 0 -10%; width: 140%; opacity: .7; }
  .ribbon-hero .ribbon-b { display: none; }
  /* Before / after becomes a stack of cards */
  .compare, .compare thead, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare { border-spacing: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody { display: flex; flex-direction: column; gap: 12px; }
  .compare tr { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .compare td { text-indent: 0; padding: 14px 18px 14px 50px; position: relative; border: 0 !important; border-radius: 0 !important; }
  .compare tbody tr:last-child td { padding-bottom: 14px; }
  .compare td::before { position: absolute; left: 18px; top: 33px; margin: 0; }
  .compare td[data-label]::after, .compare td.c-was::after { content: attr(data-label); position: static; transform: none; display: block; order: -1; width: auto; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
  .compare td { display: flex; flex-direction: column; }
  .compare td.c-was::after { color: #8a94ad; }
  .compare td.c-now::after { color: rgba(255, 255, 255, .6); }
  .compare td.c-was { border-bottom: 1px solid var(--line) !important; font-size: 15.5px; }
  .compare td.c-now { font-size: 16.5px; }
  .web-device { width: 100%; }
  .web-chat { padding-right: 20px; }
  .ch-scene { padding-bottom: 0; }
  .ch-scene .scene-note { position: static; }
  .tg-phone { position: relative; right: auto; bottom: auto; width: min(320px, 100%); margin: -64px 0 0 auto; }
  .benefits { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .benefits li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .benefits .layer-ic { grid-row: span 2; }
  .benefits h3 { margin-top: 0; }
  .kn-window { grid-template-columns: minmax(0, 1fr); }
  .kn-files { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 520px; margin-inline: auto; }
  .steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue-strong), var(--violet)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .step-badge { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .step p { margin: 6px 0 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tools-strip { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 44px; }
  .tools-sub, .tools-extra { grid-column: auto; }
  .tools-extra { margin-top: -4px; }
  /* Tabs become a horizontal chip row; panels stop sharing one cell */
  .js .tablist { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: -24px; padding: 2px 24px 4px; scroll-padding-inline: 24px; }
  .js .tablist::-webkit-scrollbar { display: none; }
  .tablist [role="tab"] { flex: none; }
  .js .tab-panels { display: flex; }
  .js .tab-panel:not(.is-active) { display: none; }
}
@media (max-width: 600px) {
  .cookie-notice { left: 16px; right: 16px; bottom: 16px; width: auto; align-items: stretch; flex-direction: column; gap: 12px; }
  .cookie-notice .btn { width: 100%; }

  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  :root { --header-h: 60px; }
  .brand-word { font-size: 22px; }
  .hero { padding: 40px 0 64px; }
  .cta-row { flex-direction: column; margin-top: 28px; }
  .cta-row .btn { width: 100%; }
  .trust { gap: 6px 18px; font-size: 14px; }
  .tg-chat { padding: 14px 12px; }
  .tg-msg { max-width: 94%; }
  .voice-wave { width: 112px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; text-align: left; }
  .js .tablist { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .tab-panel { padding: 20px 16px; border-radius: 22px; }
  .scene-card { padding: 16px; }
  .tr { grid-template-columns: 1.15fr 1fr 1fr; padding: 9px 10px; font-size: 13.5px; }
  .web-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .web-side { display: none; }
  .tg-phone { margin-top: -40px; }
  .kn-chat { padding: 18px 14px; }
  .console-body { padding: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .facts li { flex-direction: row; gap: 14px; }
  .member { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
  .member .ava { grid-row: span 2; }
  .member .role { grid-column: 2; grid-row: 2; justify-self: start; }
  .member .st { grid-column: 3; grid-row: 1 / span 2; }
  .tools-strip { padding: 18px 16px; }
  .fs-grid { grid-template-columns: minmax(0, 1fr); }
  .balance { flex-wrap: wrap; gap: 12px 20px; }
  .balance .mini-btn { margin-left: 0; }
  .implementation { padding: 72px 0 0; }
  .impl-card { padding: 48px 20px 36px; border-radius: 26px; }
  .impl-foot .btn { width: 100%; }
  .final { padding: 72px 0; }
  .final-card { padding: 64px 20px 80px; border-radius: 26px; }
  .footer-row { grid-template-columns: 1fr; justify-items: start; }
  .footer-nav { justify-content: flex-start; }
  .footer-product-link { justify-self: start; }
}
@media (max-width: 380px) {
  .mobile-menu-label { display: none; }
  .mobile-menu summary { padding: 0 12px; }
  .section h2, .implementation h2 { font-size: 28px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .hero h1 { font-size: 34px; }
  .src-card { width: 100%; }
  .voice-wave { width: 84px; }
  .tg-phone .voice-wave { width: 80px; }
}
