/* ============================================================
   MergifAI CPM — assets/css/main.css
   Собрано из design-system/colors_and_type.css + styles.css
   Inter подключается отдельно через wp_head (см. functions.php)
   ============================================================ */

/* ============================================================
   MergifAI Design System — Colors & Type
   Source: Figma "mergifai brandbook"
   ============================================================ */

/* ---------- Webfonts ---------- */
/* Manrope and Golos Text are bundled locally as variable TTFs.
   Inter remains hosted (no brand TTF supplied — used only for tags/dense UI). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../design-system/fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations'),
       url('../design-system/fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../design-system/fonts/GolosText-VariableFont_wght.ttf') format('truetype-variations'),
       url('../design-system/fonts/GolosText-VariableFont_wght.ttf') format('truetype');
}

:root {
  /* ============================================================
     COLORS — Brand
     The brand mark is a tri-stop gradient flowing
     blue → teal → green. These are the three brand anchors.
     ============================================================ */
  --brand-blue:        rgb(60, 139, 235);   /* #3C8BEB — gradient stop 0%   */
  --brand-teal:        rgb(66, 177, 185);   /* #42B1B9 — gradient stop 50%  */
  --brand-green:       rgb(73, 218, 132);   /* #49DA84 — gradient stop 100% */

  /* Wordmark / "MergifAI" lockup */
  --brand-deep:        rgb(2, 64, 89);      /* #024059 — primary wordmark   */
  --brand-deep-alt:    rgb(0, 125, 9);      /* #007D09 — alt monochrome     */

  /* The signature gradient (use as fill / background) */
  --brand-gradient:    linear-gradient(
                         135deg,
                         var(--brand-blue) 0%,
                         var(--brand-teal) 50%,
                         var(--brand-green) 100%
                       );
  --brand-gradient-h:  linear-gradient(
                         90deg,
                         var(--brand-blue) 0%,
                         var(--brand-teal) 50%,
                         var(--brand-green) 100%
                       );

  /* ============================================================
     COLORS — Neutrals
     ============================================================ */
  --black:             rgb(0, 0, 0);        /* #000000 — body copy, headings */
  --ink:               rgb(30, 30, 30);     /* #1E1E1E — secondary text     */
  --slate:             rgb(28, 30, 36);     /* #1C1E24 — UI strokes         */
  --gray-700:          rgb(91, 91, 91);     /* #5B5B5B */
  --gray-600:          rgb(95, 95, 95);     /* #5F5F5F */
  --gray-500:          rgb(148, 148, 148);  /* #949494 — placeholder, meta  */
  --gray-300:          rgb(217, 217, 217);  /* #D9D9D9 */
  --gray-200:          rgb(229, 229, 229);  /* #E5E5E5 — hairline border    */
  --paper:             rgb(252, 249, 249);  /* #FCF9F9 — soft page bg       */
  --white:             rgb(255, 255, 255);  /* #FFFFFF */

  /* ============================================================
     COLORS — Semantic / Status
     Used in tags, badges, status pills throughout the product
     ============================================================ */
  /* Blue (informational / "В работе" / All) */
  --blue-500:          rgb(0, 133, 255);    /* #0085FF */
  --blue-600:          rgb(59, 140, 235);   /* #3B8CEB */
  --blue-100:          rgb(179, 217, 255);  /* #B3D9FF */
  --blue-100-soft:     rgba(0, 133, 255, 0.10);
  --blue-ink:          rgb(2, 64, 128);     /* #024080 */

  /* Orange (warning / "В обработке" / change-request) */
  --orange-500:        rgb(255, 159, 45);   /* #FF9F2D */
  --orange-100:        rgb(255, 220, 175);  /* approximated soft */
  --orange-100-soft:   rgba(255, 150, 27, 0.10);

  /* Red (error / blocker / "Проблема") */
  --red-500:           rgb(217, 0, 0);      /* #D90000 */
  --red-100:           rgb(255, 210, 210);  /* #FFD2D2 */
  --red-warn:          rgb(255, 0, 0);      /* #FF0000 — "X" prohibition glyph */

  /* Green (success / "Закрыта" / "Низкий") */
  --green-700:         rgb(0, 84, 6);       /* #005406 */
  --green-600:         rgb(0, 159, 55);     /* #009F37 */
  --green-500:         rgb(64, 196, 88);    /* #40C458 */
  --green-100:         rgb(210, 229, 217);  /* #D2E5D9 */
  --green-100-soft:    rgba(32, 124, 64, 0.20);
  --green-ink:         rgb(32, 124, 64);    /* #207C40 */

  /* ============================================================
     SHADOW & ELEVATION
     ============================================================ */
  --shadow-1:          0 4px 4px rgba(0, 0, 0, 0.10);
  --shadow-2:          0 4px 4px rgba(0, 0, 0, 0.25);   /* card-emphasis */
  --shadow-3:          0 8px 24px rgba(0, 0, 0, 0.12);

  /* ============================================================
     RADII
     ============================================================ */
  --radius-xs:         2px;     /* sections */
  --radius-sm:         4px;     /* tags, pills */
  --radius-md:         5px;     /* small cards */
  --radius-lg:         20px;    /* primary cards */
  --radius-pill:       999px;   /* search, capsules */

  /* ============================================================
     SPACING — 4px base scale
     ============================================================ */
  --space-1:           4px;
  --space-2:           8px;
  --space-3:           12px;
  --space-4:           16px;
  --space-5:           20px;
  --space-6:           24px;
  --space-8:           32px;
  --space-10:          40px;
  --space-12:          48px;
  --space-16:          64px;
  --space-18:          72px;     /* slide / page edge gutter */
  --space-20:          80px;

  /* ============================================================
     TYPOGRAPHY — base families
     Manrope = primary (headings + UI body, ~60% of file)
     Golos Text = secondary editorial / display
     Inter = strict UI (tags, table cells, dense controls)
     ============================================================ */
  --font-display:      'Manrope', system-ui, -apple-system, sans-serif;
  --font-body:         'Manrope', system-ui, -apple-system, sans-serif;
  --font-editorial:    'Golos Text', 'Manrope', system-ui, sans-serif;
  --font-ui:           'Inter', 'Manrope', system-ui, sans-serif;
  --font-mono:         ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ============================================================
     TYPOGRAPHY — semantic role tokens
     Sizes drawn directly from frame inventory in METADATA.md.
     ============================================================ */
  --t-hero:            128px;    /* brandbook covers, gigantic display */
  --t-display:         96px;     /* "MergifAI" hero wordmark */
  --t-h1:              81px;     /* slide titles ("Видение") */
  --t-h2:              64px;     /* page titles ("Логотип", "Шрифты") */
  --t-h3:              40px;     /* section headers, slide subtitles */
  --t-h4:              36px;     /* card titles, body lead */
  --t-h5:              32px;
  --t-h6:              28px;
  --t-body-lg:         24px;     /* slide body, primary copy */
  --t-body:            20px;
  --t-body-sm:         16px;     /* dense UI, button labels */
  --t-meta:            14px;     /* tags, meta, captions */
  --t-micro:           12px;

  --lh-tight:          1.0;      /* almost everything in the file uses 100% */
  --lh-snug:           1.2;
  --lh-normal:         1.4;
  --lh-loose:          1.6;

  --tracking-tight:    -0.010em;
  --tracking-normal:   0em;
  --tracking-wide:     0.02em;

  /* ============================================================
     SEMANTIC FG/BG TOKENS
     ============================================================ */
  --bg-page:           var(--white);
  --bg-page-soft:      var(--paper);
  --bg-surface:        var(--white);
  --bg-surface-2:      var(--paper);
  --bg-inverse:        var(--brand-deep);

  --fg-primary:        var(--black);
  --fg-secondary:      var(--ink);
  --fg-muted:          var(--gray-500);
  --fg-on-dark:        var(--white);
  --fg-brand:          var(--brand-deep);
  --fg-brand-alt:      var(--brand-deep-alt);

  --border-subtle:     rgba(148, 148, 148, 0.30);
  --border-hairline:   var(--gray-200);
  --border-strong:     var(--slate);
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Use directly: <h1>, <h2>, <p>, <code>, etc.
   ============================================================ */
.h-hero,
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  color: var(--fg-brand);
  letter-spacing: var(--tracking-tight);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  color: var(--fg-primary);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;     /* big titles in the brandbook are Regular */
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
  color: var(--fg-primary);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: var(--lh-tight);
  color: var(--fg-primary);
  margin: 0;
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h4);
  line-height: var(--lh-normal);
  color: var(--fg-primary);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

h5, .h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h5);
  line-height: var(--lh-snug);
  color: var(--fg-primary);
  margin: 0;
}

h6, .h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h6);
  line-height: var(--lh-snug);
  color: var(--fg-primary);
  margin: 0;
}

p, .body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  color: var(--fg-primary);
  margin: 0;
}

.body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-body-lg);
  line-height: var(--lh-normal);
  color: var(--fg-primary);
}

.body-sm {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-body-sm);
  line-height: var(--lh-snug);
  color: var(--fg-primary);
}

.meta {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--t-meta);
  line-height: var(--lh-tight);
  color: var(--fg-muted);
}

.editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: var(--t-body-lg);
  line-height: var(--lh-normal);
  color: var(--fg-primary);
}

code, .code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
}

/* ============================================================
   MergifAI CPM Landing — styles (было styles.css)
   ============================================================ */
/* MergifAI CPM Landing — styles */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg-primary);
  background:
    linear-gradient(160deg, rgba(60,139,235,0.14) 0%, rgba(66,177,185,0.08) 35%, rgba(73,218,132,0.12) 70%, rgba(243,248,253,0.6) 100%),
    var(--bg-page);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:root {
  --container: 1280px;
  --gutter: 80px;
  --section-pad: 120px;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: block;
  width: 92px;
  height: 32px;
  flex-shrink: 0;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--brand-gradient-h);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.product-tag .tag-beta {
  margin-left: 4px;
  padding: 0;
  background: none;
  color: rgba(255,255,255,0.85);
  font-size: 10px;
  font-weight: 600;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-secondary);
  transition: color 150ms ease;
}
.header-nav a:hover { color: var(--brand-deep); }
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--brand-deep);
  background: transparent;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 14px;
}
.header-nav .btn-header {
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-header:hover {
  background: var(--brand-deep);
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background: var(--brand-gradient-h);
  box-shadow: 0 8px 24px -8px rgba(66, 177, 185, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(66, 177, 185, 0.65);
  filter: brightness(1.04);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-deep);
  height: 56px;
  padding: 0 8px;
}
.btn-ghost:hover { color: var(--brand-blue); }
.btn-ghost .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn-ghost:hover .arrow { transform: translateY(2px); }

/* ============================================================
   SECTIONS — common
   ============================================================ */
section {
  padding: var(--section-pad) 0;
  position: relative;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin: 12px 0 0;
  text-wrap: balance;
}
.section-title .grad {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-lead {
  font-family: var(--font-editorial);
  font-size: 20px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 18px 0 0;
  max-width: 720px;
  text-wrap: pretty;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head.center .kicker { justify-self: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(73, 218, 132, 0.30) 0%, rgba(66, 177, 185, 0.15) 35%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 250px;
  left: -250px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(60, 139, 235, 0.18) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 159, 45, 0.14);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: #B05A00;
  letter-spacing: 0.01em;
}
.hero-eyebrow .pill { display: none; }
.beta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 0 rgba(255, 159, 45, 0.6);
  animation: betaPulse 2s ease-out infinite;
}
@keyframes betaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 159, 45, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 159, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 45, 0); }
}
.tag-beta {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 159, 45, 0.18);
  color: #B05A00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .beta-dot { animation: none; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--brand-deep);
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-family: var(--font-editorial);
  font-size: 21px;
  line-height: 1.5;
  color: var(--gray-700);
  margin: 24px 0 0;
  max-width: 560px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-marks {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  max-width: 560px;
}
.hero-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-mark .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
}
.hero-mark .v .grad {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-mark .l {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.3;
}

/* Dashboard mockup */
.hero-visual { position: relative; }
.dash {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(2, 64, 89, 0.20),
              0 12px 24px -12px rgba(0, 0, 0, 0.10);
  animation: dashFloat var(--anim-dash-float, 6s) ease-in-out infinite;
}
@keyframes dashFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-0.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dash { animation: none; }
}

/* Floating badges around the dashboard mockup */
.dash-badge {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-teal);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -10px rgba(2, 64, 89, 0.30);
  z-index: 2;
}
.dash-trend {
  position: absolute;
  left: -22px;
  bottom: 64px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-teal);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px -8px rgba(2, 64, 89, 0.28);
  z-index: 2;
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--gray-200);
}
.dash-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray-300);
}
.dash-bar .label {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}
.dash-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  padding-top: 14px;
}
.dash-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
}
.dash-card .ttl {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.dash-card .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dash-card .delta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-ink);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(32, 124, 64, 0.12);
}
.dash-card.warn .delta {
  color: #B05A00;
  background: rgba(255, 159, 45, 0.15);
}
.dash-chart {
  grid-column: 1 / -1;
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
}
.dash-chart .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.dash-chart .head .ttl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-deep);
}
.dash-chart .legend {
  display: flex; gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--gray-600);
}
.dash-chart .legend span {
  display: inline-flex; align-items: center; gap: 5px;
}
.dash-chart .legend i {
  width: 8px; height: 8px; border-radius: 2px;
}
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dash-floater {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 260px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 36px -12px rgba(2, 64, 89, 0.30);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-floater .ai-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff;
}
.dash-floater .tx {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.dash-floater .tx b { color: var(--brand-deep); }

/* ---------- Dashboard chart draw-in animation ---------- */
.chart-line {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.chart-area { opacity: 0; }
.chart-dot { opacity: 0; transform: scale(0); transform-origin: center; transform-box: fill-box; }

.dash.is-animated .chart-line-plan {
  animation: chartDraw var(--anim-chart-draw, 1.4s) cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}
.dash.is-animated .chart-line-fact {
  animation: chartDraw var(--anim-chart-draw, 1.4s) cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}
.dash.is-animated .chart-area-plan {
  animation: chartFill var(--anim-chart-fill, 0.9s) ease-out 0.9s forwards;
}
.dash.is-animated .chart-area-fact {
  animation: chartFill var(--anim-chart-fill, 0.9s) ease-out 1.05s forwards;
}
.dash.is-animated .chart-dot-plan {
  animation: chartDot var(--anim-chart-dot, 0.4s) cubic-bezier(0.34, 1.56, 0.64, 1) 1.45s forwards;
}
.dash.is-animated .chart-dot-fact {
  animation: chartDot var(--anim-chart-dot, 0.4s) cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
}

@keyframes chartDraw { to { stroke-dashoffset: 0; } }
@keyframes chartFill { to { opacity: 1; } }
@keyframes chartDot  { to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
  .chart-dot { opacity: 1; transform: scale(1); }
}

/* ============================================================
   PROBLEM
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pain-card {
  background: #fff;
  border: 1px solid rgba(66, 177, 185, 0.30);
  border-radius: 20px;
  padding: 28px;
  transition: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: rgba(66, 177, 185, 0.55);
}
.pain-card .warn {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(217, 0, 0, 0.08);
  color: var(--red-500);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--fg-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.pain-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}

/* ============================================================
   SOLUTION — 3 principles
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.principle {
  position: relative;
  padding: 32px 28px;
  border: 1px solid rgba(66, 177, 185, 0.30);
  border-radius: 20px;
  background: #fff;
  transition: all 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.principle-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--fg-primary);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.principle p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}
.principle:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 177, 185, 0.5);
  box-shadow: 0 20px 40px -20px rgba(2, 64, 89, 0.20);
}

/* ============================================================
   FEATURES — 6 cards
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(66, 177, 185, 0.30);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-card .icon-wrap {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--brand-teal);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--fg-primary);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.feature-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 177, 185, 0.55);
  box-shadow: 0 18px 40px -18px rgba(2, 64, 89, 0.16);
}

/* ============================================================
   SCENARIOS
   ============================================================ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.scenario-card {
  background: #fff;
  border: 1px solid rgba(66, 177, 185, 0.30);
  border-radius: 20px;
  padding: 28px;
  transition: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 177, 185, 0.55);
  box-shadow: 0 18px 40px -18px rgba(2, 64, 89, 0.16);
}
.scenario-card .icon-wrap {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--brand-teal);
  margin-bottom: 20px;
}
.scenario-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--fg-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.scenario-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}

/* ============================================================
   AI — Ваш цифровой финансовый аналитик
   ============================================================ */
.ai-section { background: transparent; }
.ai-section .section-lead,
.problem .section-lead,
.features .section-lead,
.scenarios .section-lead { max-width: none; }
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.ai-list { display: flex; flex-direction: column; gap: 24px; }
.ai-item {
  display: flex;
  gap: 20px;
  transition: transform 250ms ease;
}
.ai-item:hover {
  transform: translateX(4px);
}
.ai-item .ic {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px -4px rgba(2, 64, 89, 0.15);
  color: var(--brand-teal);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ai-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--brand-deep);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.ai-item p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}

.ai-visual {
  position: relative;
  max-width: 530px;
  background: #fff;
  border-radius: 20px;
  padding: 54px 20px 54px 30px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(2, 64, 89, 0.20);
}
.ai-chat-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 25px;
}
.ai-chat-row .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient-h);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
}
.ai-chat-row .av.user { background: var(--brand-blue); }
.ai-chat-row .av.alert { background: var(--brand-deep); }
.ai-chat-row .bubble {
  width: fit-content;
  max-width: 425px;
  background: #fff;
  border: 0.5px solid #949494;
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: -0.03em;
  color: #000;
}
.ai-chat-row .bubble b { font-weight: 400; color: inherit; }
.ai-chat-row .bubble.assistant {
  width: 425px;
  border: 0.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              var(--brand-gradient-h) border-box;
}
.ai-chat-row .bubble.insight {
  max-width: 307px;
  background: linear-gradient(var(--brand-deep), var(--brand-deep)) padding-box,
              var(--brand-gradient-h) border-box;
  border: 0.5px solid transparent;
  color: #fff;
}
.ai-chat-row .meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: 5px;
}
.ai-chat-row .bubble.assistant .meta,
.ai-chat-row .bubble.insight .meta {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ai-chat-row .time {
  font-family: var(--font-body);
  font-size: 11px;
  color: #808080;
  margin-top: 6px;
}
.ai-chat-row .bubble.assistant .time,
.ai-chat-row .bubble.insight .time { color: #C1C1C1; }
.ai-typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  background: #EFEFEF;
  border-radius: 10px;
  height: 20px;
  padding: 0 10px;
}
.ai-typing span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #D7D7D7;
}

/* ============================================================
   ISLAMIC FINANCE — Shariah showcase card (LIGHT variant)
   ============================================================ */
.shariah-card {
  position: relative;
  background: linear-gradient(135deg, rgba(60,139,235,0.16) 0%, rgba(66,177,185,0.14) 45%, rgba(73,218,132,0.20) 100%);
  color: var(--fg-primary);
  border-radius: 32px;
  padding: 56px 64px 32px;
}

/* Top: heading row */
.shariah-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(2, 64, 89, 0.12);
}
.shariah-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  margin: 12px 0 0;
  text-wrap: balance;
}
.shariah-title .grad {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.shariah-text {
  font-family: var(--font-editorial);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
  text-wrap: pretty;
}

/* Middle: two modules side by side */
.shariah-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 36px 0;
}
.sh-module {
  background: #fff;
  border: 1px solid rgba(66, 177, 185, 0.30);
  border-radius: 20px;
  padding: 32px;
  transition: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sh-module:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 177, 185, 0.55);
  box-shadow: 0 18px 40px -18px rgba(2, 64, 89, 0.16);
}
.sh-mod-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.sh-mod-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  margin: 0 0 10px;
}
.sh-module:nth-child(2) .sh-mod-title { color: var(--brand-green); }
.sh-mod-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}

/* Bottom ribbon */
.shariah-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(2, 64, 89, 0.12);
}
.shariah-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-primary);
}
.shariah-mark svg { color: var(--brand-teal); }

@media (max-width: 1100px) {
  .shariah-card { padding: 44px 36px 24px; border-radius: 24px; }
  .shariah-head { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .shariah-modules { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}
@media (max-width: 720px) {
  .shariah-card { padding: 32px 22px 20px; }
  .shariah-title { font-size: 28px; }
  .sh-module { padding: 24px; }
  .sh-mod-title { font-size: 22px; }
  .shariah-ribbon { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   CTA + FORM
   ============================================================ */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand-teal);
  margin: 12px 0 0;
  text-wrap: balance;
}
.cta-sub {
  font-family: var(--font-editorial);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 22px 0 0;
  max-width: 460px;
  text-wrap: pretty;
}
.cta-marks {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-mark {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-primary);
}
.cta-mark .ic {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--brand-teal);
  display: grid; place-items: center;
}

.form-card {
  background: #fff;
  border: 1px solid rgba(66, 177, 185, 0.30);
  border-radius: 22px;
  padding: 40px;
  color: var(--fg-primary);
  box-shadow: 0 30px 60px -30px rgba(2, 64, 89, 0.20);
}
.form-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--fg-primary);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-deep);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-primary);
  background: var(--paper);
  outline: none;
  transition: all 150ms ease;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--brand-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(66, 177, 185, 0.15);
}
.form-row textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 22px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-700);
}
.form-consent input { margin-top: 2px; accent-color: var(--brand-teal); }
.form-consent a { text-decoration: underline; color: var(--fg-primary); }
.form-card .btn { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-grid .col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
}
.footer-grid .col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-grid .col a,
.footer-grid .col li {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: color 150ms ease;
}
.footer-grid .col a:hover { color: var(--brand-green); }
.footer-blurb {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 14px 0 0;
  max-width: 340px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}
.footer-legal a:hover { color: #fff; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-reveal, 600ms) cubic-bezier(0.2, 0.8, 0.2, 1),
              transform var(--anim-reveal, 600ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  :root { --gutter: 48px; --section-pad: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid, .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .col:last-child { grid-column: 1 / -1; }
  .dash-floater { right: 8px; }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; --section-pad: 72px; }
  .header-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 16px 32px -16px rgba(0,0,0,0.18);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
  .header-nav .btn-header { margin: 14px 0 0; text-align: center; }
  .burger {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--brand-deep);
  }
  .hero { padding: 48px 0 72px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .section-title { font-size: 32px; }
  .solution-grid, .feature-grid, .scenario-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .col:first-child { grid-column: 1 / -1; }
  .form-card { padding: 28px; }
  .hero-marks { gap: 20px; flex-wrap: wrap; }
  .dash-floater { right: 8px; bottom: -24px; width: 220px; }
  .mvp-countdown { flex-direction: column; align-items: flex-start; padding: 22px; }
  .countdown-grid { gap: 8px; }
  .cd-cell { min-width: 60px; }
  .cd-cell .num { font-size: 28px; }
}

/* ============================================================
   404 — по макету из Figma (скриншоты 404 / mobile 404)
   ============================================================ */
.btn-header.filled,
.btn-header.filled:hover {
  background: var(--brand-deep);
  color: #fff;
  border-color: var(--brand-deep);
}
.btn-header.filled {
  box-shadow: 0 8px 20px -8px rgba(2, 64, 89, 0.55);
}
.btn-header.filled:hover {
  box-shadow: 0 14px 28px -8px rgba(2, 64, 89, 0.65);
}

.error-404 {
  padding: 140px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-404::before {
  content: "";
  position: absolute;
  inset: -10% -10% 30% -10%;
  background:
    radial-gradient(circle at 15% 30%, rgba(60, 139, 235, 0.20), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(73, 218, 132, 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.error-404 .container { position: relative; z-index: 1; }
.error-404-inner {
  max-width: 640px;
  margin: 0 auto;
}
.error-404-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 14vw, 168px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
  margin: 0;
}
.error-404-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  color: var(--fg-primary);
  margin: 8px 0 40px;
}

@media (max-width: 720px) {
  .error-404 { padding: 90px 0 100px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Отдельная запись блога (single.php) — контент собирается из тех же блоков. */
.post-article {
  padding-block: 60px;
}
