/* Гранка landing, second edition — implemented from the Figma «new landing»
   page: desktop frame 616:3937, mobile frame 629:3110 (ADR 0113).
   Fonts self-hosted (the edge CSP allows font-src 'self' only). */

/* ---------- fonts ---------- */
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/pt-serif-normal-400-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/pt-serif-normal-400-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/pt-serif-normal-400-latin.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; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/pt-serif-normal-700-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/pt-serif-normal-700-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(assets/fonts/pt-serif-normal-700-latin.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; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-normal-100-900-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-normal-100-900-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-normal-100-900-latin.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; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-italic-100-900-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-italic-100-900-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-italic-100-900-latin.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; }

/* Inter Tight carries the card and bullet headings. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/inter-tight-normal-400-700-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/inter-tight-normal-400-700-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/inter-tight-normal-400-700-latin.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; }

@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/fira-code-normal-300-700-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/fira-code-normal-300-700-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Code"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/fira-code-normal-300-700-latin.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; }

/* Playpen Sans appears only in the two hero annotations, so it ships
   subset to exactly those glyphs (3.9 KB instead of 187 KB). */
@font-face { font-family: "Playpen Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/playpen-sans-normal-400-subset.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #f9f8f5;
  --white: #fff;
  --ink: #000;
  --ink-54: rgba(0, 0, 0, 0.54);
  --ink-36: rgba(0, 0, 0, 0.36);
  --ink-24: rgba(0, 0, 0, 0.24);
  --ink-10: rgba(0, 0, 0, 0.10);
  --paper-54: rgba(255, 255, 255, 0.54);

  --brand: #c52e27;        /* wordmark */
  --brick: #c65938;        /* eyebrow labels, contact link */
  --orange: #ff6325;       /* hero underline */
  --indigo: #36577d;       /* hero first line */
  --green: #347d4a;        /* mode-card ticks */
  --green-ok: #5f944d;     /* «Одобрить» tick */
  --red-no: #ff6767;       /* «Отклонить» cross */
  --link: #007bfd;

  /* The hand-drawn marker stroke under the headline (Figma 616:4006/4007). */
  --stroke:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 547 6" fill="none" preserveAspectRatio="none"><path d="M1 4.6C92 2.4 210 1.2 330 1c72-.1 146 .5 216 2.4" stroke="%23ff6325" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke"/></svg>');

  --hair: #e6e1df;         /* screenshot frames, card borders, stitches */
  --peach: #ffeedd;
  --panel: #e8e8e8;
  --panel-soft: #ececec;
  --panel-flat: #ddd;      /* «До» card */
  --illo-cream: #fff3d7;
  --illo-blue: #d9f0ff;
  --illo-violet: #f0d9ff;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --tight: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fira Code", "SF Mono", Menlo, monospace;
  --hand: "Playpen Sans", "Comic Sans MS", cursive;

  --col: 672px;            /* the content column */
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.375;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

.container { width: var(--col); max-width: calc(100% - 48px); margin: 0 auto; }
.dim { color: var(--ink-54); }

/* Section rule: a 0.5px hairline across the column. */
.rule { border: 0; height: 0; border-top: 0.5px solid var(--ink-24); }

/* The 1px vertical stitch that links two consecutive feature blocks. */
.stitch { width: 1px; height: 80px; margin: 0 auto; background: var(--hair); }

/* A line break the desktop measure wants and the phone does not. */
br.dt { display: initial; }

/* ---------- type ---------- */
.h-serif {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 36px; text-align: center;
}
.h-serif-tight { line-height: 32px; }
.eyebrow {
  font-family: var(--sans); font-weight: 500;
  font-size: 14px; line-height: 24px; text-align: center; color: var(--ink-54);
}
.eyebrow.brick { color: var(--brick); font-size: 16px; line-height: 28px; }
.lede {
  font-size: 16px; line-height: 22px; text-align: center; margin-inline: auto;
}
.lede b { font-weight: 600; }
.mono-caps {
  font-family: var(--mono); font-weight: 500;
  font-size: 14px; line-height: 20px; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 8px 24px; border-radius: 6px;
  font-family: var(--mono); font-weight: 450; font-size: 18px; line-height: 30px;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--ink-10); color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid var(--hair); height: 48px; }
.btn-sm {
  height: 28px; padding: 4px 24px; border-radius: 6px;
  font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 20px;
  letter-spacing: 0; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
}
.btn-block { width: 100%; }

/* The frames draw no hover, so these follow the first edition's language:
   filled buttons lift a shade, outlined ones take on the ink they carry. */
.btn, .btn-sm, .btn-login, .demo, .demo b, .faq summary {
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover, .btn-primary:focus-visible { background: #2e2e2e; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(0, 0, 0, 0.16); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--ink); }
.btn-sm:hover, .btn-sm:focus-visible { background: #2e2e2e; }
.btn-login:hover, .btn-login:focus-visible { background: var(--ink); color: var(--white); }

/* ---------- header ---------- */
.site-header {
  width: 850px; max-width: calc(100% - 48px);
  margin: 24px auto 0; height: 48px; padding: 0 10px;
  display: flex; align-items: center; gap: 16px;
  border-radius: 10px;
}
/* header.js sets these classes; without it the header simply stays where the
   frame puts it, at the top of the page. */
body.nav-sticky .site-header {
  position: sticky; top: 12px; z-index: 20;
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
body.nav-floating .site-header {
  background: var(--white); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}
body.nav-hidden .site-header { transform: translateY(calc(-100% - 16px)); }
/* …so an anchor never lands under the floating header. */
#solutions, #demo, #audience, #pricing, #faq { scroll-margin-top: 84px; }

.logo { display: block; color: var(--brand); }
.logo svg { width: 82px; height: 24px; }
.site-nav {
  display: flex; gap: 20px; margin: 0 auto;
  font-size: 16px; line-height: 20px;
}
.site-nav a { color: var(--ink-54); text-decoration: none; }
.site-nav a:hover, .site-nav a.here { color: var(--ink); }
.btn-login {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 4px 24px; border: 1px solid #494543; border-radius: 6px;
  font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 20px;
  text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.burger { display: none; flex: none; width: 24px; height: 24px; position: relative; }
.burger span, .burger span::after {
  position: absolute; left: 4px; width: 16px; height: 2px;
  border-radius: 100px; background: var(--ink-54);
}
.burger span { top: 8px; }
.burger span::after { content: ""; left: 0; top: 6px; }

/* :target opens the drawer; every in-page link inside it re-targets and closes it. */
.drawer {
  position: fixed; inset: 0 0 auto; z-index: 30;
  background: var(--bg); padding: 24px;
  display: none; flex-direction: column; gap: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.drawer:target { display: flex; }
.drawer-nav { display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.drawer-nav a { text-decoration: none; }
.drawer-close { align-self: flex-end; font-size: 24px; line-height: 1; text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding-top: 80px; text-align: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 32px;
  margin-top: 6px;
}
.hero h1 .lead { color: var(--indigo); }
/* The two orange marker strokes under the headline. They are decorative and
   ride the text as a background, so a line that re-wraps gets one stroke per
   visual line (box-decoration-break) rather than one bar across the break. */
.hero h1 .mark, .hero h1 .mark-m {
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: no-repeat 50% 100% / 100% 6px var(--stroke);
}
/* Each stroke hangs at the offset its own frame vector has: the upper one
   just clears the line below it, the lower one has nothing under it. */
.hero h1 .mark.short { padding-bottom: 4px; background-size: 100% 3px; }
/* The inner span only carries a stroke once the outer one has lost it. */
.hero h1 .mark-m { background-image: none; }
.hero .sub {
  font-size: 18px; line-height: 24px; width: 622px; max-width: 100%;
  margin: 28px auto 0;
}
.hero .sub b { font-weight: 600; }
.hero-cta { display: flex; justify-content: center; gap: 17px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- hero composite (Figma frame 616:3976, 1038×755) ---------- */
.stage-wrap { margin-top: 80px; display: flex; justify-content: center; }
.stage-scale { width: 1038px; transform-origin: top center; }
.stage {
  position: relative; width: 1038px; height: 755px;
  border-radius: 20px; overflow: hidden; isolation: isolate;
}
/* The Figma fill is this bitmap at 38% over the page colour. */
.stage-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; opacity: 0.38; z-index: -1;
}
.stage h2 {
  position: absolute; top: 60px; left: 0; right: 0;
  font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 32px;
  text-align: center;
}
.stage .stage-lede {
  position: absolute; top: 108px; left: 50%; transform: translateX(-50%);
  width: 500px; font-size: 16px; line-height: 22px; text-align: center;
}
.stage .stage-lede b { font-weight: 600; }

.source-pills {
  position: absolute; top: 222px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.pill {
  width: 56px; height: 36px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
}
.pill img { width: auto; height: auto; }
.pill.url {
  background: #565656; color: var(--white);
  font-weight: 500; font-size: 16px; line-height: 24px;
}
.pill.add { border: 1px solid var(--ink); }
.pill.add img { width: 14px; height: 14px; }

/* The bubbles and their arrows sit ON the screenshot in the frame (it is the
   stage's bottom layer there), so they claim a layer above it. */
.stage-wires, .stage-notes {
  position: absolute; inset: 0; width: 1038px; height: 755px; pointer-events: none;
  z-index: 2;
}
.stage-wires-m { display: none; }
/* Both annotations are written at a slight angle, each its own; the bubbles
   behind them carry their own (Figma 646:4840/4849 and 646:4808/4847). */
.note {
  position: absolute; font-family: var(--hand); font-weight: 400;
  font-size: 14px; line-height: 22px; text-align: center;
  transform-origin: 0 0; z-index: 2;
  /* The frame's own box, to a fraction of a pixel; the <br>s set the lines,
     so nothing may re-wrap if our Playpen renders a hair wider. */
  white-space: nowrap;
}
.note.left { left: 31.26px; top: 279.56px; width: 168px; transform: rotate(-3.363deg); }
.note.right { left: 803.42px; top: 270.28px; width: 234px; transform: rotate(8.332deg); }

.stage-shot {
  position: absolute; left: 184px; top: 340px; width: 670px; height: 444px;
  border-radius: 12px; box-shadow: 0 4px 40px 10px rgba(0, 0, 0, 0.10);
}

/* ---------- feature blocks ---------- */
.feature { text-align: center; }
#solutions { margin-top: 135px; }
.after-stitch { margin-top: 36px; }
.cta-note { margin-top: 16px; }
.eyebrow.brick + .h-serif { margin-top: 2px; }
.feature h2 { margin-inline: auto; }
.feature .lede { margin-top: 16px; width: 604px; max-width: 100%; }
.shot {
  display: block; width: 670px; height: auto; max-width: 100%; margin: 24px auto 0;
  border: 4px solid var(--hair); border-radius: 12px;
}

/* The filters screenshot carries a floating event card over its lower third
   (Figma 643:3790). Every size inside it is an em, so the mobile frame's
   0.55x miniature is a single font-size override. */
.shot-stack { position: relative; width: 701px; max-width: 100%; margin: 24px auto 0; }
.shot-stack .shot { margin: 0 auto; }
.event-card {
  position: absolute; left: 0; right: 0; bottom: 80px;
  font-size: 16px;
  background: var(--white); border-radius: 0.625em; padding: 0.75em;
  box-shadow: 0 0.25em 1.25em rgba(0, 0, 0, 0.16);
  text-align: left;
}
.event-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1em; line-height: 1.5; }
.event-card .meta { display: flex; gap: 1.5em; color: var(--ink-54); font-size: 0.875em; line-height: 1.571; }
.event-card .tags { position: absolute; top: 0.75em; right: 0.75em; display: flex; gap: 0.5em; }
.tag { padding: 0.125em 0.5em; border-radius: 100px; font-size: 0.875em; line-height: 1.429; }
.tag.urgent { background: #ffdfde; color: #6c1f1d; }
.tag.focus { background: #c6fce1; color: #006343; }
.srcs { display: flex; gap: 0.5em; margin-top: 0.25em; }
.src {
  display: inline-flex; align-items: center; gap: 0.25em; padding: 0 0.25em;
  border: 1px solid #c7c7c7; border-radius: 100px;
  color: var(--ink-54); font-size: 0.875em; line-height: 1.714;
}
.src .at { width: 1.143em; height: 1.143em; opacity: 0.54; }
.src time { border-left: 1px solid #e5e5e5; padding: 0 0.571em; font-size: 0.857em; line-height: 1.5; }

/* ---------- the 80% block ---------- */
.saving { width: 560px; max-width: 100%; margin: 81px auto 0; }
.saving .grad {
  background: linear-gradient(90deg, #399dd2, #206405);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.bot-card {
  display: grid; grid-template-columns: 335px 335px;
  width: 670px; max-width: 100%; margin: 48px auto 0;
  background: var(--white); border-radius: 20px; overflow: hidden;
}
.bot-copy { padding: 86px 24px 24px; text-align: left; }
.bot-chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 0 8px;
  border: 1px solid var(--ink); border-radius: 100px;
  font-size: 16px; line-height: 22px;
}
.bot-chip img { width: 12px; height: auto; margin: 0 4px; }
.bot-copy h3 { font-weight: 600; font-size: 20px; line-height: 26px; margin-top: 24px; width: 296px; max-width: 100%; }
.bot-copy p { font-size: 16px; line-height: 22px; margin-top: 24px; width: 262px; max-width: 100%; }
.bot-copy p b { font-weight: 600; }
.bot-panel { background: var(--panel); padding: 24px 0 24px 37px; text-align: left; }

.tg-post { width: 262px; background: var(--white); border-radius: 12px; overflow: hidden; }
.tg-post .shots { display: grid; grid-template-columns: 1fr 1fr; height: 160px; }
.tg-post .shots img { width: 100%; height: 100%; object-fit: cover; }
.tg-post .body { padding: 8px; }
.tg-post .body p { font-size: 12px; line-height: 16px; margin-top: 8px; }
.tg-post .body p:first-child { margin-top: 0; font-weight: 600; }
.tg-post .body a { color: var(--link); }
.tg-post .handle { color: var(--link); font-size: 12px; line-height: 16px; }
.found { color: var(--ink-54); font-family: var(--tight); font-size: 12px; line-height: 18px; margin-top: 6px; }
.found u { text-decoration-color: var(--ink-54); }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; width: 262px; }
.verdict button {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 30px; border: 0; border-radius: 8px; background: var(--white);
  font-family: var(--mono); font-weight: 450; font-size: 14px; line-height: 18px;
  color: var(--ink); cursor: default;
}
.verdict button.wide { grid-column: 1 / -1; }
.verdict img { width: 16px; height: 16px; }

/* ---------- demo channels ---------- */
.demo-grid {
  display: grid; grid-template-columns: repeat(2, 328px); gap: 16px;
  justify-content: center; margin-top: 48px;
}
.demo {
  display: block; padding: 12px; text-decoration: none; text-align: left;
  background: var(--white); border: 1px solid var(--hair); border-radius: 10px;
}
.demo img { width: 60px; height: 60px; border-radius: 10px; }
.demo b { display: block; margin-top: 22px; font-weight: 500; font-size: 18px; line-height: 24px; text-decoration: underline; }
.demo span { display: block; margin-top: 8px; color: var(--ink-54); font-size: 14px; line-height: 20px; }
/* The frame sets «Newaix ↗» as text, underlined along with the name — and no
   Inter subset Google serves carries U+2197, so the browser substitutes a
   stranger's arrow. An <img> or inline <svg> would be an atomic inline and
   cut the underline, so the glyph rides in as a mask on an empty inline box
   whose padding is the gap plus the glyph's own advance. */
.demo .ne {
  padding-inline: 0.28em 0.58em;
  background: currentColor;
  -webkit-mask: no-repeat right 0 top 0.1em / 0.58em 0.58em url(assets/icons/arrow-outward.svg);
  mask: no-repeat right 0 top 0.1em / 0.58em 0.58em url(assets/icons/arrow-outward.svg);
}
.demo:hover, .demo:focus-visible { border-color: var(--ink-36); }
.demo:hover b, .demo:focus-visible b { color: var(--brick); }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  width: 624px; max-width: 100%; margin: 36px auto 0;
}
.chip {
  padding: 4px 12px; border: 1px solid var(--ink-36); border-radius: 100px;
  color: var(--ink-36); font-weight: 500; font-size: 14px; line-height: 20px;
}
.chip.solid { border-color: var(--ink); color: var(--ink); }

/* ---------- white band ---------- */
.band { background: var(--white); margin-top: 92px; padding: 80px 0; }

.ba-grid { display: grid; grid-template-columns: repeat(2, 324px); gap: 24px; justify-content: center; margin-top: 36px; }
.ba {
  position: relative; height: 320px; border-radius: 20px; overflow: hidden;
  text-align: center; padding-top: 16px;
}
.ba.before { background: var(--panel-flat); }
.ba.after { background: no-repeat center/cover url(assets/img/after-bg.webp); }
.ba h3 { font-weight: 500; font-size: 20px; line-height: 26px; }
.ba p { font-size: 14px; line-height: 20px; margin: 7px auto 0; width: 282px; }
.ba .strip {
  position: absolute; top: 105px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-start; gap: 12px; width: 432px;
}
.ba .strip img { width: 136px; height: auto; }
.ba-post {
  position: absolute; top: 105px; left: 50%; transform: translateX(-50%);
  width: 186px; background: var(--white); border-radius: 8.5px; overflow: hidden; text-align: left;
}
.ba-post img { width: 100%; height: 114px; object-fit: cover; }
.ba-post .body { padding: 6px; font-size: 8.5px; line-height: 11.4px; }
.ba-post .body p { width: auto; margin: 6px 0 0; font-size: 8.5px; line-height: 11.4px; }
.ba-post .body p:first-child { margin: 0; font-weight: 600; }
.ba-post .handle { display: block; margin-top: 6px; color: #004e9d; font-size: 8.5px; line-height: 11.4px; }

.media-note {
  display: flex; align-items: center; gap: 16px;
  width: 672px; max-width: 100%; margin: 48px auto 0;
  padding: 24px 16px; background: var(--peach); border-radius: 20px;
}
.media-note { text-align: left; }
.media-note img { width: 36px; height: 36px; flex: none; }
.media-note p { font-family: var(--serif); font-size: 20px; line-height: 26px; }

.tri { display: grid; grid-template-columns: repeat(3, 208px); gap: 24px; justify-content: center; margin-top: 48px; text-align: left; }
.tri li { font-family: var(--tight); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--ink-54); }
.tri li b { font-weight: 500; color: var(--ink); }
.tri li::before { content: ""; display: block; width: 16px; height: 16px; background: var(--ink); margin-bottom: 16px; }

/* ---------- modes ---------- */
.modes {
  display: grid; grid-template-columns: repeat(3, 328px); gap: 16px;
  justify-content: center; margin-top: 37px;
  width: 1008px; max-width: calc(100vw - 48px);
  margin-left: 50%; transform: translateX(-50%);
}
.mode {
  display: flex; flex-direction: column; padding: 8px;
  background: var(--white); border: 1px solid var(--ink-24); border-radius: 10px;
  text-align: left;
}
.mode .illo { height: 137px; border-radius: 6px; display: grid; justify-items: center; overflow: hidden; }
.mode .illo img { max-width: none; }
.mode.signals .illo { background: var(--illo-cream); }
.mode.review .illo { background: var(--illo-blue); }
.mode.auto .illo { background: var(--illo-violet); }
.mode h3 { font-family: var(--tight); font-weight: 600; font-size: 18px; line-height: 26px; margin: 15px 8px 0; }
.mode .sub { color: var(--ink-54); font-size: 16px; line-height: 22px; margin: 8px 8px 0; }
.mode ul { margin: 24px 8px; display: flex; flex-direction: column; gap: 16px; }
.mode li {
  display: grid; grid-template-columns: 16px 1fr; gap: 12px;
  font-weight: 500; font-size: 16px; line-height: 22px;
}
.mode li::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px;
  background: var(--green); mask: no-repeat center/16px url(assets/icons/check.svg);
  -webkit-mask: no-repeat center/16px url(assets/icons/check.svg);
}
.mode .btn-outline { margin: auto 8px 8px; }

/* ---------- audience ---------- */
.who { display: grid; grid-template-columns: repeat(2, 300px); gap: 48px 72px; justify-content: center; margin-top: 80px; text-align: left; }
.who-card img { width: 55px; height: auto; }
.who-card h3 { font-family: var(--tight); font-weight: 600; font-size: 16px; line-height: 24px; margin-top: 24px; }
.who-card p { font-family: var(--tight); font-weight: 400; font-size: 16px; line-height: 24px; color: var(--ink-54); }

/* ---------- pricing ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, 208px); gap: 24px;
  justify-content: center; margin-top: 48px;
}
.plan { position: relative; text-align: left; }
.plan + .plan::before {
  content: ""; position: absolute; left: -12px; top: 0; width: 1px; height: 398px;
  background: var(--ink-24);
}
.plan .name { color: var(--ink-54); font-size: 16px; line-height: 24px; }
.plan .popular {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 100px;
  background: var(--green); color: #fff;
  font-size: 10px; line-height: 18px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.plan .price { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 24px; margin-top: 24px; min-height: 50px; }
.plan .was { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ink-54); text-decoration: line-through; }
.plan .btn-sm { margin-top: 24px; width: 100%; }
.plan ul { margin-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.plan li { font-size: 14px; line-height: 20px; color: var(--ink-54); }
.plan li b { display: block; font-weight: 500; color: var(--ink); }
.plan li.head { font-weight: 500; color: var(--ink); }
.types { display: flex; gap: 4px; margin-top: 2px; }
.types img { width: 20px; height: 20px; }

.custom-plan {
  width: 672px; max-width: 100%; margin: 60px auto 0; padding: 16px;
  background: var(--panel-soft); border-radius: 20px;
  font-size: 14px; line-height: 20px; text-align: left;
}
.custom-plan b { font-weight: 600; }
.custom-plan a { color: var(--brick); }

/* ---------- social proof ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 318px); gap: 24px 36px; justify-content: center; margin-top: 40px; }
.quotes blockquote {
  padding: 16px 0 16px 16px; background: var(--peach);
  border-left: 2px solid var(--brick);
  font-size: 16px; line-height: 22px; font-style: italic; text-align: left;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; }
.faq details { border-bottom: 1px solid var(--ink-10); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 16px; line-height: 24px; text-align: left;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; background: var(--ink);
  mask: no-repeat center/18px url(assets/icons/plus-18.svg);
  -webkit-mask: no-repeat center/18px url(assets/icons/plus-18.svg);
}
.faq details[open] summary::after {
  mask: no-repeat center/14px url(assets/icons/minus.svg);
  -webkit-mask: no-repeat center/14px url(assets/icons/minus.svg);
}
.faq .answer { padding-bottom: 16px; color: var(--ink-54); font-size: 14px; line-height: 20px; text-align: left; }
.faq .answer a { color: var(--ink); }
.faq summary:hover, .faq summary:focus-visible { opacity: 0.65; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 36px 0 56px; }
.site-footer .logo { color: var(--white); }
.site-footer .logo svg { width: 102px; height: 30px; }
.f-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-size: 16px; line-height: 20px; }
.f-nav a { color: var(--paper-54); text-decoration: none; }
.f-nav a:hover, .f-nav a:focus-visible { color: var(--white); }
.f-title { margin-top: 70px; }
.f-desc { width: 476px; max-width: 100%; margin-top: 7px; color: var(--paper-54); font-size: 14px; line-height: 20px; }
.f-legal { margin-top: 24px; color: var(--paper-54); font-size: 12px; line-height: 18px; }
.f-legal a { color: var(--paper-54); }
.f-legal a:hover, .f-legal a:focus-visible { color: var(--white); }

/* ---------- analytics consent strip (ADR 0102) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  max-width: 440px; padding: 16px 18px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.25);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 20px; }
.consent a { color: inherit; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-consent {
  font-family: var(--mono); cursor: pointer;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-consent:hover, .btn-consent:focus-visible { background: var(--ink); color: #fff; }
.btn-consent.primary { background: var(--ink); color: #fff; }
.btn-consent.primary:hover, .btn-consent.primary:focus-visible { background: var(--orange); border-color: var(--orange); }

/* ---------- free-month offer (promo.js; Figma 864:5537) ---------- */
/* No `display` here: a closed dialog must stay hidden. The reset above
   zeroes the margin that centres a modal dialog, so it is set again. */
.promo {
  position: fixed; inset: 0; margin: auto;
  width: 438px; max-width: calc(100% - 32px);
  padding: 20px; border: 0; border-radius: 10px;
  background: var(--white); color: var(--ink); text-align: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}
.promo::backdrop { background: rgba(0, 0, 0, 0.6); }
.promo-tg { margin: 0 auto; }
.promo-title {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 28px;
}
.promo-text {
  width: 352px; max-width: 100%; margin: 16px auto 0;
  font-size: 16px; line-height: 22px;
}
.promo-text .grad {
  background: linear-gradient(90deg, #ba7300, #8a4300);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo .btn { margin-top: 16px; }
.promo-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.06); color: var(--ink-54); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.promo-close:hover, .promo-close:focus-visible { background: var(--ink-10); color: var(--ink); }

/* ---------- responsive ---------- */
/* The hero composite is a fixed 1038px stage; below that it scales as a
   whole, the way the «mobile» Figma frame shows it. */
@media (max-width: 1103px) {
  .modes {
    width: calc(100vw - 48px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .stage-scale { transform: scale(0.82); }
  .stage-wrap { height: 619px; }
}
@media (max-width: 900px) {
  .stage-scale { transform: scale(0.66); }
  .stage-wrap { height: 498px; }
}

@media (max-width: 760px) {
  :root { --col: 354px; }
  .site-header { width: auto; max-width: none; margin: 0 12px; padding: 0 8px; gap: 8px; }
  .logo svg { width: 68px; height: 20px; }
  .site-nav { display: none; }
  .btn-login { margin-left: auto; }
  .burger { display: block; }

  #solutions { margin-top: 80px; }
  .after-stitch { margin-top: 24px; }
  .cta-note { margin-top: 24px; }
  .eyebrow.brick + .h-serif { margin-top: 8px; }
  .bot-card { margin-top: 36px; }
  .demo-grid { margin-top: 24px; }
  .ba-grid { margin-top: 24px; }
  .media-note { margin-top: 24px; }
  .hero { padding-top: 47px; }
  .hero h1 { font-size: 24px; line-height: 28px; }
  /* At this width the long line wraps, and a stroke per fragment would cut
     the break in half, so the stroke moves to the phrase the mobile frame
     marks — «не тратя часы на мониторинг», which holds one line here. */
  .hero h1 .mark:not(.short) { background-image: none; }
  .hero h1 .mark-m { background-image: var(--stroke); }
  .hero .sub { font-size: 14px; line-height: 20px; margin-top: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 17px; margin-top: 24px; }
  .btn { height: 46px; font-size: 16px; }

  .stage-wrap { height: auto; margin-top: 66px; }
  .stage-scale { width: 100%; transform: none; }
  .stage { width: 100%; height: auto; border-radius: 0; padding: 48px 0 0; }
  .stage h2, .stage .stage-lede, .source-pills, .stage-shot { position: static; transform: none; }
  .stage h2 { font-size: 24px; line-height: 28px; padding: 0 24px; }
  .stage .stage-lede { width: auto; margin: 20px auto 0; padding: 0 24px; font-size: 14px; line-height: 20px; }
  .source-pills { justify-content: center; gap: 3px; margin-top: 25px; }
  .pill { width: 48px; height: 31px; }
  .pill img { transform: scale(0.852); }
  .pill.url { font-size: 14px; }
  .stage-wires, .stage-notes, .note { display: none; }
  .stage-wires-m { display: block; width: calc(100% - 21px); margin: 3px auto 0; }
  .stage-shot { width: calc(100% - 32px); height: auto; margin: 20px auto 0; }
  .stage::after {
    content: ""; display: block; height: 24px;
  }

  br.dt { display: none; }
  .h-serif { font-size: 24px; line-height: 31.2px; }
  .lede, .feature .lede { font-size: 14px; line-height: 20px; }
  /* Cards and screenshots sit on 16px gutters, the text column on 24px. */
  .shot, .shot-stack, .bot-card, .ba-grid, .demo-grid, .modes, .media-note {
    width: calc(100% + 16px); margin-inline: -8px;
  }
  .shot, .shot-stack { margin-top: 24px; }
  .event-card { font-size: 8.81px; bottom: 43px; left: -8px; right: -8px; }

  .saving { margin-top: 81px; }
  .bot-card { grid-template-columns: 1fr; }
  .bot-copy { padding: 24px; }
  .bot-copy h3, .bot-copy p { width: auto; }
  .bot-panel { padding: 24px 0; display: grid; justify-content: center; }

  .demo-grid { grid-template-columns: 1fr; gap: 8px; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba { width: 100%; }
  .tri { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .tri li::before { margin-inline: auto; }
  .modes { grid-template-columns: 1fr; width: auto; margin-left: 0; transform: none; }
  .mode { width: 100%; }
  .who { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .plans { grid-template-columns: 1fr; gap: 0; }
  .plan { padding-bottom: 40px; border-bottom: 0.5px solid var(--ink-36); }
  .plan:last-child { border-bottom: 0; }
  .plan + .plan { padding-top: 40px; }
  .plan + .plan::before { content: none; }
  .plan .btn-sm { height: 36px; }
  .quotes { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .media-note { gap: 16px; padding: 24px 16px 24px 16px; }
  .band { margin-top: 80px; padding: 80px 0; }
  .f-title { margin-top: 48px; }
  .f-nav {
    gap: 12px 20px; font-family: var(--mono); font-weight: 450;
    font-size: 14px; line-height: 20px; text-transform: uppercase;
  }

  /* No frame draws the offer on a phone. It takes the text column's 24px
     gutters and the phone's type scale, so it reads as a note over the page
     and not as a second screen. */
  .promo { max-width: calc(100% - 48px); padding: 16px; }
  .promo-tg { width: 28px; height: 28px; }
  .promo-title { margin-top: 8px; font-size: 20px; line-height: 24px; text-wrap: balance; }
  .promo-text { margin-top: 8px; font-size: 14px; line-height: 20px; text-wrap: balance; }
  .promo .btn {
    height: 40px; margin-top: 16px; padding: 8px 12px;
    font-size: 14px; line-height: 24px; letter-spacing: 0.5px;
  }
  .promo-close { top: 8px; right: 8px; }
}

/* Narrower than the mobile frame: the closing headline line stops fitting on
   one line (so its stroke would read as a strikethrough) and the wide CTA
   label stops fitting its button. */
@media (max-width: 359px) {
  .hero h1 { font-size: 22px; line-height: 26px; }
  .hero h1 .mark, .hero h1 .mark-m { background-image: none; padding-bottom: 0; }
  .btn { font-size: 14px; padding: 8px 16px; letter-spacing: 0.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .btn, .btn-sm, .btn-login, .demo, .demo b, .faq summary,
  .promo-close {
    transition: none;
  }
}
