/* ==========================================================================
   Performator — design system. Single source of truth for the whole site:
   marketing pages, SEO pages, pricing, app (tokens only in app.css).
   Mood: Apple-services register on white — white/light-gray surfaces,
   near-black type, one restrained blue accent, diffuse shadows.
   See DESIGN.md for rationale. Every color/spacing/radius/shadow/type value
   is a token; components reference tokens only.
   ========================================================================== */

/* ------------------------------ fonts ---------------------------------- */

@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ------------------------------ tokens --------------------------------- */

:root {
  /* surfaces */
  --bg:        oklch(1     0     0);      /* page background — pure white */
  --bg-alt:    oklch(0.973 0     0);      /* Apple #f5f5f7 — alternating sections */
  --surface:   oklch(1     0     0);      /* cards on white */
  --surface-2: oklch(0.955 0     0);      /* hover / raised / sidebar */

  /* text */
  --ink:   oklch(0.19 0 0);               /* ~#1d1d1f, 15:1 on white */
  --muted: oklch(0.42 0 0);               /* 7.5:1 */
  --faint: oklch(0.56 0 0);               /* 4.6:1 — meta/large only */

  /* lines */
  --line:      oklch(0.88 0 0);
  --line-soft: oklch(0.925 0 0);

  /* brand */
  --primary:      oklch(0.52 0.19 258);
  --primary-ink:  oklch(1    0    0);
  --primary-dim:  oklch(0.52 0.19 258 / 0.10);
  --primary-line: oklch(0.52 0.19 258 / 0.35);
  --primary-hover: oklch(0.47 0.19 258);

  /* status — semantic, never brand blue */
  --danger:     oklch(0.55 0.21 25);
  --danger-dim: oklch(0.55 0.21 25 / 0.10);
  --warning:    oklch(0.55 0.16 55);
  --warning-dim: oklch(0.55 0.16 55 / 0.10);
  --success:    oklch(0.5  0.14 150);
  --success-dim: oklch(0.5  0.14 150 / 0.10);

  /* platform identity — semantic dots/badges, not brand */
  --yandex:  oklch(0.58 0.21 25);
  --google:  oklch(0.62 0.16 75);
  --vk:      oklch(0.42 0.02 260);

  /* platform logo fills — integration cards / detail pages */
  --integ-yandex:      oklch(0.58 0.21 25);
  --integ-google:      oklch(0.62 0.16 75);
  --integ-vk:          oklch(0.19 0 0);       /* near-black */
  --integ-metrika:     oklch(0.58 0.21 25);    /* shares Yandex brand */
  --integ-roistat:     oklch(0.64 0.2 256);   /* Roistat's actual brand blue, not semantic warning */
  --integ-calltouch:   oklch(0.6 0.13 200);    /* blue-cyan */

  /* accent palette — tinted backgrounds for visual illustrations */
  --accent-blue:   oklch(0.55 0.19 265);
  --accent-teal:   oklch(0.5 0.14 150);
  --accent-purple: oklch(0.52 0.18 295);
  --accent-amber:  oklch(0.55 0.16 65);

  /* spacing scale (4pt base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 28px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-14: 56px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 22px; --r-pill: 999px;
  /* legacy aliases (app.css, privacy, hero flow) */
  --radius: 14px;
  --radius-sm: var(--r-sm);
  --radius-lg: var(--r-lg);

  /* shadows — diffuse, Apple-like */
  --sh-1: 0 1px 2px oklch(0 0 0 / 0.05), 0 10px 24px -14px oklch(0 0 0 / 0.12);
  --sh-2: 0 1px 2px oklch(0 0 0 / 0.05), 0 24px 48px -24px oklch(0 0 0 / 0.18);
  --sh-3: 0 2px 6px oklch(0 0 0 / 0.06), 0 36px 80px -32px oklch(0 0 0 / 0.24);

  /* type scale */
  --text-xs:  0.75rem;   /* 12 */
  --text-sm:  0.8125rem; /* 13 */
  --text-base: 0.9375rem;/* 15 */
  --text-md:  1rem;      /* 16 */
  --text-lg:  1.125rem;  /* 18 */
  --text-xl:  1.375rem;  /* 22 */
  --text-2xl: 1.75rem;   /* 28 */
  --text-3xl: 2.25rem;   /* 36 */
  --text-4xl: 3rem;      /* 48 */

  /* fonts */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --wrap-max: 1180px;
  --section-pad: clamp(60px, 9vw, 108px);

  /* z-scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* tooltip — Apple-style dark popover (selection modal, form hints) */
  --tooltip-bg: oklch(0.19 0 0);
  --tooltip-fg: oklch(1 0 0);

  /* form controls — checkbox/radio hit area */
  --control-size: 20px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------ base ----------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--primary); color: var(--primary-ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* --------------------------- typography -------------------------------- */

.h1 {
  font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 2.6vw + 1.3rem, 3.75rem); line-height: 1.06;
}
.h2 {
  font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(1.75rem, 1.4vw + 1.2rem, 2.5rem); line-height: 1.12;
}
.h3 { font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); line-height: 1.2; font-weight: 620; }
.eyebrow-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--primary); font-weight: 600; letter-spacing: 0.01em; }
.lede { font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem); color: var(--muted); line-height: 1.6; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }
.prose { max-width: 720px; font-size: var(--text-md); }
.prose p { color: var(--muted); font-size: var(--text-md); line-height: 1.7; margin: 0 0 var(--sp-4); }
.prose p + p { margin-top: var(--sp-4); }
.prose ul, .prose ol { color: var(--muted); font-size: var(--text-md); line-height: 1.7; padding-left: 22px; margin: 0 0 var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--primary); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose h2 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); margin: var(--sp-12) 0 var(--sp-4); letter-spacing: -0.02em; }
.prose h3 { font-size: var(--text-lg); margin: var(--sp-8) 0 var(--sp-3); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-4); font-size: var(--text-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.prose th { color: var(--faint); font-weight: 620; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; }

/* --------------------------- layout ------------------------------------ */

.wrap { max-width: var(--wrap-max); margin-inline: auto; padding-inline: clamp(24px, 5vw, 48px); }
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }

.band { padding: var(--section-pad) 0; }
.band.alt { background: var(--bg-alt); }
.band + .band, .band.alt + .band { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h2 { margin-bottom: var(--sp-4); }
.section-head .lede { margin-top: var(--sp-3); }
.section-head.center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip .copy { order: 2; }
.split.flip .visual { order: 1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.flip .copy, .split.flip .visual { order: 0; } }

/* ------------------------- header / nav base --------------------------- */

header.site {
  position: sticky; top: 0; z-index: var(--z-sticky);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: oklch(1 0 0 / 0.8); border-bottom: 1px solid var(--line-soft);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 25px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: var(--sp-7); font-size: var(--text-base); color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); font-weight: 600; }

/* ------------------------- hero (home + inner) ------------------------- */

.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }
.hero-copy .h1 { margin-bottom: var(--sp-5); }
.hero-copy .h1 em { font-style: normal; color: var(--primary); }
.hero-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero-note { margin-top: var(--sp-4); font-size: var(--text-sm); color: var(--faint); }
.hero-kicker { font-family: var(--font-mono); color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--sp-5); }

.inner-hero { padding-block: clamp(48px, 7vw, 84px) clamp(32px, 4vw, 48px); }
.inner-hero .eyebrow-label { margin-bottom: var(--sp-4); display: block; }
.inner-hero h1 { max-width: 20ch; font-size: clamp(2rem, 2.2vw + 1.2rem, 3.25rem); }
.inner-hero .lede { margin-top: var(--sp-4); max-width: 60ch; }
.breadcrumb { font-size: var(--text-sm); color: var(--faint); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* -------------------------- buttons & pills ---------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 46px; padding-inline: 24px; border-radius: var(--r-pill);
  font-size: var(--text-base); font-weight: 560; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo), border-color 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px -8px oklch(0.52 0.19 258 / 0.5); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); background: var(--bg-alt); }
.btn-sm { height: 38px; padding-inline: 18px; font-size: var(--text-sm); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding-inline: 12px; border-radius: var(--r-pill);
  font-size: var(--text-xs); font-weight: 560; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pill-success { background: var(--success-dim); color: var(--success); }
.pill-success::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-dim); }
.pill-warning { background: var(--warning-dim); color: var(--warning); }
.pill-warning::before { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-dim); }
.pill-danger { background: var(--danger-dim); color: var(--danger); }
.pill-danger::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-dim); }
.pill-neutral { background: var(--surface-2); color: var(--muted); }
.pill-neutral::before { background: var(--faint); }
.pill-primary { background: var(--primary-dim); color: var(--primary); }
.pill-primary::before { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.pill-ai { background: var(--primary-dim); color: var(--primary); }
.pill-ai::before { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

.platform {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 36px; padding-inline: 14px 16px; border-radius: var(--r-pill);
  background: var(--bg-alt); border: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink);
}
.platform .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.platform.yandex .dot { background: var(--yandex); }
.platform.google .dot { background: var(--google); }
.platform.vk .dot { background: var(--vk); }

/* ------------------------------ cards ----------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5); box-shadow: var(--sh-1);
}
.card .k { font-size: var(--text-xs); color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 620; margin-bottom: var(--sp-3); display: block; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.card p { color: var(--muted); font-size: var(--text-base); line-height: 1.65; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--sp-4); }
.card-grid > .card { display: flex; flex-direction: column; }

.feature-point { display: flex; gap: var(--sp-4); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line-soft); }
.feature-point:last-child { border-bottom: none; }
.feature-point .mark {
  flex: none; width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--primary-dim); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-point h3 { font-size: var(--text-lg); margin-bottom: var(--sp-1); }
.feature-point p { color: var(--muted); font-size: var(--text-base); line-height: 1.65; max-width: 60ch; }

.feature-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-5); }
.feature-list li { display: flex; gap: var(--sp-4); }
.feature-list .mark { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--primary-dim); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature-list .mark svg { width: 13px; height: 13px; }
.feature-list h4 { font-size: var(--text-base); margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: var(--text-base); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-4); }
.stat {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-6); box-shadow: var(--sh-1);
}
.stat .label { font-size: var(--text-xs); color: var(--faint); margin-bottom: var(--sp-2); }
.stat .value { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; }
.stat .delta { font-size: var(--text-xs); margin-top: var(--sp-1); color: var(--faint); }
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--danger); }

/* --------------------------- console (safety) --------------------------- */

.console-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--sp-6); font-size: var(--text-sm); box-shadow: var(--sh-2);
}
.console-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.console-head .mono { color: var(--faint); font-size: var(--text-xs); }
.console-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); }
.console-row:first-of-type { border-top: none; }
.console-row .label { display: flex; flex-direction: column; gap: 2px; }
.console-row .label span:first-child { color: var(--ink); font-weight: 560; }
.console-row .label span.mono { color: var(--faint); font-weight: 400; }
.diff-plus { color: var(--success); font-weight: 600; }
.diff-minus { color: var(--danger); text-decoration: line-through; opacity: 0.75; }
.confirm-bar { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }

/* ----------------------------- steps ------------------------------------ */

.steps { counter-reset: step; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-5); padding: var(--sp-6) 0; border-top: 1px solid var(--line-soft); }
.step:first-child { border-top: none; padding-top: 0; }
.step-num { counter-increment: step; font-family: var(--font-mono); font-size: var(--text-base); color: var(--primary); padding-top: 2px; }
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-size: var(--text-lg); margin-bottom: var(--sp-1); }
.step p { color: var(--muted); max-width: 56ch; }

/* --------------------------- checklist / diff --------------------------- */

.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-3); }
.check-item {
  display: flex; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: var(--sp-4); font-size: var(--text-base); color: var(--ink); line-height: 1.55;
}
.check-item .tick {
  flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--success-dim);
  color: var(--success); display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

.diff-card { background: var(--bg-alt); border-radius: var(--r-md); padding: var(--sp-4); }
.diff-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); font-size: var(--text-sm); padding: var(--sp-2) 0; }
.diff-row .field { color: var(--muted); }
.diff-row .d-old { color: var(--danger); text-decoration: line-through; opacity: 0.75; font-family: var(--font-mono); }
.diff-row .d-new { color: var(--success); font-weight: 600; font-family: var(--font-mono); }
.diff-confirm { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }

/* ------------------------ CSS product visuals --------------------------- */

.dash {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); overflow: hidden;
}
.dash-chrome { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.dash-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dash-body { padding: var(--sp-5); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.dash-kpi { background: var(--bg-alt); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); min-width: 0; }
.dash-kpi .l { font-size: var(--text-xs); color: var(--faint); }
.dash-kpi .v { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; margin-top: 2px; white-space: nowrap; }
.dash-kpi .d { font-size: var(--text-xs); margin-top: 2px; }
.dash-kpi .d.up { color: var(--success); }
.dash-kpi .d.down { color: var(--danger); }
@media (max-width: 480px) {
  .dash-kpis { gap: var(--sp-2); }
  .dash-kpi { padding: var(--sp-2) var(--sp-3); }
  .dash-kpi .v { font-size: var(--text-sm); }
}
.bars { display: flex; align-items: flex-end; gap: var(--sp-2); height: 96px; }
.bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--primary); }

.flowline { display: flex; align-items: stretch; gap: var(--sp-3); flex-wrap: wrap; }
.flow-step {
  flex: 1; min-width: 150px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--sh-1);
}
.flow-step .n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--primary); margin-bottom: var(--sp-2); display: block; }
.flow-step h4 { font-size: var(--text-base); margin-bottom: var(--sp-1); }
.flow-step p { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.flow-arrow { align-self: center; color: var(--line); font-size: var(--text-md); flex: none; }
@media (max-width: 640px) {
  .flow-step { min-width: 100%; }
  .flow-arrow { transform: rotate(90deg); align-self: center; margin: 0 auto; }
}

/* --------------------- pillar visuals (home) ---------------------------- */

.pillar { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 88px) 0; }
.pillar:first-of-type { padding-top: clamp(20px, 4vw, 40px); }
.pillar + .pillar { border-top: 1px solid var(--line-soft); }
.pillar.reverse .pillar-copy { order: 2; }
.pillar.reverse .pillar-visual { order: 1; }
@media (max-width: 860px) {
  .pillar, .pillar.reverse { grid-template-columns: 1fr; }
  .pillar .pillar-copy, .pillar.reverse .pillar-copy { order: 2; }
  .pillar .pillar-visual, .pillar.reverse .pillar-visual { order: 1; }
}
.pillar-index { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--primary); margin-bottom: var(--sp-4); font-weight: 600; }
.pillar-copy h3 { font-size: clamp(1.4rem, 1vw + 1.15rem, 1.75rem); letter-spacing: -0.02em; margin-bottom: var(--sp-3); }
.pillar-copy p { color: var(--muted); font-size: var(--text-base); line-height: 1.65; max-width: 46ch; }
.pillar-copy ul { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.pillar-copy li { display: flex; gap: var(--sp-2); font-size: var(--text-base); color: var(--muted); }
.pillar-copy li svg { flex: none; margin-top: 4px; color: var(--primary); }

.pillar-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); overflow: hidden;
}
.pillar-frame-head { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.pillar-frame-head span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.pillar-frame-body { padding: var(--sp-5); }

.seg-tabs { display: flex; gap: 4px; margin-bottom: var(--sp-5); flex-wrap: wrap; }
.seg-tab { font-size: var(--text-xs); padding: 5px 10px; border-radius: var(--r-pill); color: var(--faint); background: var(--bg-alt); }
.seg-tab.active { color: var(--primary); background: var(--primary-dim); font-weight: 560; }
.mini-chart { display: flex; align-items: flex-end; gap: var(--sp-2); height: 84px; margin-bottom: var(--sp-5); }
.mini-bar { flex: 1; border-radius: 5px 5px 2px 2px; }
.mini-kpis { display: flex; gap: var(--sp-5); }
.mini-kpi .v { display: block; font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; }
.mini-kpi .l { font-size: var(--text-xs); color: var(--faint); margin-top: 2px; }
.mini-head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.mini-title { font-size: var(--text-base); font-weight: 600; }
.ai-badge { font-family: var(--font-mono); font-size: var(--text-xs); background: var(--primary-dim); color: var(--primary); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.audit-mini-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.audit-mini-list li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-base); color: var(--ink); }
.mini-tag { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mini-tag.danger { background: var(--danger); }
.mini-tag.warn { background: var(--warning); }
.mini-tag.primary { background: var(--primary); }
.mini-tag.success { background: var(--success); }
.mini-summary { font-size: var(--text-base); color: var(--muted); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.mini-summary strong { color: var(--ink); }
.hyp-card { background: var(--bg-alt); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); }
.hyp-card:last-of-type { margin-bottom: var(--sp-4); }
.hyp-text { font-size: var(--text-base); color: var(--ink); margin-bottom: 2px; }
.hyp-meta { font-size: var(--text-xs); color: var(--success); }
.kanban-mini { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kb-step { font-size: var(--text-xs); padding: 5px 9px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--faint); white-space: nowrap; }
.kb-step.done { background: var(--success-dim); color: var(--success); }
.kb-step.active { background: var(--primary); color: var(--primary-ink); font-weight: 560; }
.kb-arrow { color: var(--line); font-size: var(--text-xs); }

/* --------------------------- agency strip ------------------------------- */

.bridge-row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 28px); flex-wrap: wrap; padding: 4px 0 8px; }
.bridge-arrow { color: var(--faint); font-family: var(--font-mono); font-size: var(--text-sm); }

.agency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); margin-top: var(--sp-10); }
@media (max-width: 780px) { .agency-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.agency-grid .stat .value { color: var(--primary); }
.agency-grid .stat p { color: var(--muted); font-size: var(--text-base); margin-top: var(--sp-1); }

/* --------------------------- pricing ------------------------------------ */

.pricing-hero { padding-block: clamp(48px, 7vw, 84px) clamp(28px, 4vw, 40px); text-align: center; }
.pricing-hero .h1 { max-width: 18ch; margin-inline: auto; }
.pricing-hero .lede { max-width: 56ch; margin: var(--sp-4) auto 0; }
.billing-toggle { display: inline-flex; background: var(--bg-alt); border-radius: var(--r-pill); padding: 4px; gap: 2px; margin-top: var(--sp-7); }
.billing-toggle button {
  height: 40px; padding-inline: 20px; border-radius: var(--r-pill); border: none; background: none;
  color: var(--muted); font: inherit; font-size: var(--text-sm); font-weight: 560; cursor: pointer;
}
.billing-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.billing-toggle .save-tag { color: var(--success); font-weight: 620; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); align-items: stretch; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-6); display: flex; flex-direction: column; box-shadow: var(--sh-1);
}
.price-card.featured {
  border-color: var(--primary); box-shadow: 0 24px 56px -24px oklch(0.52 0.19 258 / 0.4);
  transform: translateY(-6px);
}
@media (max-width: 1000px) { .price-card.featured { transform: none; } }
.price-tag { font-size: var(--text-xs); font-weight: 620; color: var(--primary); background: var(--primary-dim);
  display: inline-flex; padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: var(--sp-4); align-self: flex-start; }
.price-card h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.price-card .price-sub { color: var(--faint); font-size: var(--text-sm); min-height: 1.4em; }
.price-amount { font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 500; letter-spacing: -0.02em; margin: var(--sp-5) 0 2px; }
.price-amount span { font-size: var(--text-md); color: var(--faint); font-weight: 400; }
.price-equiv { font-size: var(--text-xs); color: var(--faint); min-height: 1.4em; }
.price-card ul { list-style: none; margin: var(--sp-5) 0 var(--sp-6); padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.price-card li { display: flex; gap: var(--sp-2); font-size: var(--text-base); color: var(--muted); }
.price-card li svg { flex: none; margin-top: 4px; color: var(--primary); }
.price-card .btn { width: 100%; }

.compare-scroll { overflow-x: auto; margin-top: var(--sp-2); }
table.compare { width: 100%; min-width: 720px; border-collapse: collapse; }
table.compare th, table.compare td { padding: var(--sp-3) var(--sp-4); text-align: center; border-bottom: 1px solid var(--line-soft); font-size: var(--text-base); }
table.compare th:first-child, table.compare td:first-child { text-align: left; color: var(--muted); font-weight: 550; }
table.compare thead th { font-size: var(--text-xs); color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 620; }
table.compare thead th.featured-col { color: var(--primary); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .yes { color: var(--success); font-weight: 600; }
table.compare .no { color: var(--faint); }

/* ------------------------------ FAQ -------------------------------------- */

.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: none; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  transition: border-color 180ms, box-shadow 180ms;
}
.faq-item summary {
  cursor: pointer; font-size: var(--text-lg); font-weight: 570; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-6);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); font-size: var(--text-lg); font-weight: 600; line-height: 1;
  color: var(--primary); background: var(--primary-dim);
  transition: transform 200ms, background 200ms, color 200ms;
}
.faq-item:hover { border-color: var(--primary-line); box-shadow: var(--sh-1); }
.faq-item[open] { border-color: var(--primary-line); box-shadow: var(--sh-1); }
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--primary); color: var(--primary-ink); }
.faq-item p { color: var(--muted); font-size: var(--text-md); line-height: 1.65; margin: 0; padding: 0 var(--sp-6) var(--sp-6); max-width: 62ch; }

/* ------------------------------ forms ------------------------------------ */

.field-label { font-size: var(--text-sm); color: var(--muted); margin-bottom: 7px; display: block; }
.field-input {
  width: 100%; height: 46px; border-radius: var(--r-md); border: 1px solid var(--line);
  padding: 0 14px; font: inherit; font-size: var(--text-md); color: var(--ink); background: var(--bg);
  transition: border-color 160ms, box-shadow 160ms;
}
.field-input:hover { border-color: var(--faint); }
.field-input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
textarea.field-input { height: auto; padding: var(--sp-3) 14px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: var(--text-xs); color: var(--faint); margin-top: var(--sp-3); }

/* --------------------------- contact / blog ------------------------------ */

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.contact-card { display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: inherit; transition: border-color 160ms, transform 160ms; }
.contact-card:hover { border-color: var(--primary-line); transform: translateY(-2px); }
.contact-icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--primary-dim); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-2); }

.blog-list { display: flex; flex-direction: column; max-width: 760px; }
.blog-row { display: block; padding: var(--sp-6) 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.blog-row:first-child { padding-top: 0; }
.blog-row .b-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--faint); margin-bottom: var(--sp-2); }
.blog-row h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); color: var(--ink); letter-spacing: -0.01em; }
.blog-row:hover h3 { color: var(--primary); }
.blog-row p { color: var(--muted); font-size: var(--text-base); max-width: 62ch; }

.post-toc { background: var(--bg-alt); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.post-toc summary { cursor: pointer; font-weight: 600; font-size: var(--text-base); }
.post-toc ol { margin: var(--sp-3) 0 0; padding-left: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-1); color: var(--muted); font-size: var(--text-sm); }
.post-toc a { color: var(--primary); text-decoration: none; }

/* ----------------------------- CTA / footer ------------------------------ */

.cta-band { text-align: center; padding: clamp(64px, 9vw, 104px) 0; }
.cta-band .wrap {
  background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 64px); box-shadow: var(--sh-2);
}
.cta-band .h2 { max-width: 30ch; margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.cta-assurances {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6); margin: var(--sp-6) 0 0; padding: 0;
  border-top: 1px solid var(--line-soft); padding-top: var(--sp-5);
}
.cta-assurances li { display: flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--muted); }
.cta-assurances svg { flex: none; color: var(--success); }
@media (max-width: 640px) { .cta-assurances { gap: var(--sp-3); } }

footer.site { border-top: 1px solid var(--line-soft); padding: 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); }
.footer-links { display: flex; gap: var(--sp-5); font-size: var(--text-sm); color: var(--muted); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: var(--text-xs); color: var(--faint); }

.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--sp-8); padding: var(--sp-12) 0 var(--sp-10); }
.f-brand .brand { display: inline-flex; margin-bottom: var(--sp-4); }
.f-brand img { height: 25px; width: auto; display: block; }
.f-about { font-size: var(--text-sm); color: var(--muted); max-width: 30ch; line-height: 1.6; }
.f-head { font-size: var(--text-sm); font-weight: 620; margin-bottom: var(--sp-3); }
.f-col a { display: block; padding: 4px 0; font-size: var(--text-sm); color: var(--muted); text-decoration: none; }
.f-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding: var(--sp-5) 0 4px; }
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { font-size: var(--text-xs); color: var(--faint); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 1000px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-7) var(--sp-6); } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; gap: var(--sp-5); padding-top: var(--sp-8); } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ------------------------------ motion ----------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal-in 700ms var(--ease-out-expo) both; }
  .reveal-delay-1 { animation-delay: 90ms; }
  .reveal-delay-2 { animation-delay: 180ms; }
  .reveal-delay-3 { animation-delay: 270ms; }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .card, .price-card, .contact-card, .integ-card { transition: transform 200ms var(--ease-out-expo), border-color 200ms var(--ease-out-expo), box-shadow 200ms var(--ease-out-expo); }
  .card:hover, .price-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* scroll-triggered reveals for CSS product visuals (progressive enhancement:
   hidden start only under html.js, so no-JS visitors get the settled layout) */
@media (prefers-reduced-motion: no-preference) {
  html.js .visual .dash,
  html.js .flowline {
    opacity: 0;
    transform: translateY(18px);
  }
  html.js .visual .dash.is-in,
  html.js .flowline.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  }
  html.js .is-in .bars span {
    transform-origin: bottom;
    animation: bar-rise 900ms var(--ease-out-expo) backwards;
  }
  html.js .is-in .bars span:nth-child(1) { animation-delay: 80ms; }
  html.js .is-in .bars span:nth-child(2) { animation-delay: 140ms; }
  html.js .is-in .bars span:nth-child(3) { animation-delay: 200ms; }
  html.js .is-in .bars span:nth-child(4) { animation-delay: 260ms; }
  html.js .is-in .bars span:nth-child(5) { animation-delay: 320ms; }
  html.js .is-in .bars span:nth-child(6) { animation-delay: 380ms; }
  @keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  html.js .is-in .flow-step { animation: step-in 520ms var(--ease-out-expo) backwards; }
  html.js .is-in .flow-step:nth-child(1) { animation-delay: 60ms; }
  html.js .is-in .flow-step:nth-child(2) { animation-delay: 140ms; }
  html.js .is-in .flow-step:nth-child(3) { animation-delay: 220ms; }
  html.js .is-in .flow-step:nth-child(4) { animation-delay: 300ms; }
  @keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html.js .visual .dash,
  html.js .flowline { opacity: 1; transform: none; }
  html.js .is-in .bars span,
  html.js .is-in .flow-step { animation: none; }
}

/* ----------------------- integration cards (hub) ------------------------- */

.integ-card { display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: inherit; }
.integ-card:hover { border-color: var(--primary-line); }
/* Every platform ships as its real logo lockup (icon + wordmark, own brand
   colors baked into the asset) — no colored tile, no cropping to icon-only.
   Widths differ per brand on purpose; height is the one shared constant. */
/* Container height is fixed to the tallest variant (Calltouch, +10%) so every
   card's heading starts at the same y regardless of which logo sits above it;
   the <img> itself carries the per-brand height and is centered inside. */
.integ-logo {
  display: flex; align-items: center; justify-content: flex-start;
  height: 35px; margin-bottom: var(--sp-2); flex: none;
}
.integ-logo img { height: 32px; width: auto; display: block; }
/* Calltouch and Google Ads read visually smaller than siblings at the shared
   height, so they get a deliberate bump: +10% and +5%. */
.integ-logo--calltouch img { height: calc(32px * 1.1); }
.integ-logo--google img    { height: calc(32px * 1.05); }
.integ-tag { align-self: flex-start; margin-top: auto; padding-top: var(--sp-3); }

/* ------------------------- inner page visuals --------------------------- */

.visual-figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); overflow: hidden;
}
.visual-figure-head {
  height: 36px; display: flex; align-items: center; gap: 6px;
  padding: 0 14px; border-bottom: 1px solid var(--line-soft);
}
.visual-figure-head span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line);
}
.visual-figure-body { padding: var(--sp-5); }

.visual-stat-row {
  display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap;
}
.visual-stat-item { flex: 1; min-width: 90px; }
.visual-stat-val { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 500; line-height: 1.1; }
.visual-stat-label { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }

.visual-h-bar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) 0; font-size: var(--text-sm);
}
.visual-h-bar:first-child { padding-top: 0; }
.visual-h-bar .bar-track {
  flex: 1; height: 5px; border-radius: 5px; background: var(--line-soft);
  overflow: hidden;
}
.visual-h-bar .bar-fill {
  height: 100%; border-radius: 5px; transition: width 900ms var(--ease-out-expo);
}

.visual-icon-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.visual-icon-cell {
  aspect-ratio: 1; border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); font-size: var(--text-xs); color: var(--muted); font-weight: 560;
}
.visual-icon-cell .icon-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: oklch(1 0 0); font-weight: 700; font-size: var(--text-base);
}

.visual-label-row {
  display: flex; align-items: center; gap: var(--sp-1); flex-wrap: wrap;
  font-size: var(--text-xs); color: var(--muted);
}
.visual-label-row .dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
}

@media (max-width: 640px) {
  .visual-icon-grid { grid-template-columns: repeat(2, 1fr); }
  .visual-stat-item { min-width: 70px; }
}

/* --------------------- new block types (v2) ------------------------------ */

/* pull-quote — a short, human statement between sections */
.callout {
  background: var(--bg-alt); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-base); color: var(--ink); line-height: 1.6;
  margin: var(--sp-4) 0;
}

.quote-block {
  max-width: 780px; margin-inline: auto; text-align: center;
  padding: var(--sp-10) 0;
}
.quote-block .q-mark {
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--primary);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-4); display: block;
}
.quote-block p {
  font-size: clamp(1.35rem, 1.1vw + 1.1rem, 1.8rem); line-height: 1.35;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 var(--sp-5);
}
.quote-block cite {
  font-style: normal; font-size: var(--text-sm); color: var(--muted);
  display: block;
}

/* comparison split — two-column before/after contrast */
.comparison-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.comparison-col {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5); box-shadow: var(--sh-1);
}
.comparison-col.negative { background: var(--bg-alt); border-style: dashed; }
.comparison-col h3 { font-size: var(--text-base); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.comparison-col h3 .mark {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 700;
}
.comparison-col.negative h3 .mark { background: var(--danger-dim); color: var(--danger); }
.comparison-col.positive h3 .mark { background: var(--success-dim); color: var(--success); }
.comparison-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.comparison-col li { display: flex; gap: var(--sp-2); font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }
.comparison-col li .mark { flex: none; margin-top: 1px; color: var(--success); }
.comparison-col.negative li .mark { color: var(--danger); }
@media (max-width: 760px) { .comparison-split { grid-template-columns: 1fr; } }

/* number strip — big mono figures in a row */
.number-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-6); margin-top: var(--sp-8);
}
.number-strip .num-item { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.number-strip .num-val {
  font-family: var(--font-mono); font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.3rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink);
}
.number-strip .num-val em { font-style: normal; color: var(--primary); }
.number-strip .num-label { font-size: var(--text-sm); color: var(--muted); margin-top: var(--sp-2); }

/* timeline — vertical steps with rail */
.timeline {
  list-style: none; margin: var(--sp-8) 0 0; padding: 0;
  display: flex; flex-direction: column;
}
.timeline li {
  position: relative; padding: 0 0 var(--sp-8) var(--sp-8);
  border-left: 1px solid var(--line);
  margin-left: 7px;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px var(--primary-dim);
}
.timeline .t-n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--primary); margin-bottom: var(--sp-2); display: block; }
.timeline h4 { font-size: var(--text-base); margin-bottom: var(--sp-1); }
.timeline p { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; max-width: 56ch; }

/* logo strip — quiet row of platform tiles */
.logo-strip {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap;
}
.logo-strip .integ-logo { height: 24px; margin-bottom: 0; }
.logo-strip .integ-logo img { height: 22px; }
.logo-strip .integ-logo--calltouch img { height: calc(22px * 1.1); }
.logo-strip .integ-logo--google img    { height: calc(22px * 1.05); }
.logo-strip .ls-label {
  font-size: var(--text-xs); color: var(--faint); text-transform: uppercase;
  letter-spacing: 0.08em; margin-right: var(--sp-2);
}

/* ----------------- integration page visual primitives -------------------- */

/* table rows — campaigns / accounts */
.vtable { display: flex; flex-direction: column; }
.vtable-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft);
  font-size: var(--text-sm);
}
.vtable-row:first-child { border-top: none; padding-top: 0; }
.vtable-row .vc-name { font-weight: 560; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtable-row .vc-name small { display: block; font-weight: 400; color: var(--faint); font-size: var(--text-xs); }
.vtable-row .vc-val { font-family: var(--font-mono); color: var(--ink); text-align: right; white-space: nowrap; }
.vtable-row .vc-sub { color: var(--faint); font-size: var(--text-xs); text-align: right; white-space: nowrap; }
.vtable-hd { font-size: var(--text-xs); color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 640px) { .vtable-row { grid-template-columns: 1fr auto; } .vtable-row .vc-sub { display: none; } }

/* search engine mock — Google Ads */
.serp { display: flex; flex-direction: column; gap: var(--sp-3); }
.serp-bar {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-alt); border: 1px solid var(--line-soft);
  border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm); color: var(--faint);
}
.serp-bar svg { flex: none; }
.serp-ad {
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); background: var(--surface);
}
.serp-ad .ad-tag {
  font-size: var(--text-xs); color: var(--faint); margin-bottom: var(--sp-1);
  display: flex; align-items: center; gap: 6px;
}
.serp-ad .ad-title { font-size: var(--text-base); font-weight: 620; color: var(--primary); margin-bottom: 2px; }
.serp-ad .ad-url { font-size: var(--text-xs); color: var(--success); margin-bottom: var(--sp-1); }
.serp-ad .ad-text { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }

/* social feed mock — VK Ads */
.feed { display: flex; flex-direction: column; gap: var(--sp-3); }
.feed-card {
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-4); background: var(--surface);
}
.feed-card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.feed-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--primary-dim); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm);
}
.feed-name { font-size: var(--text-sm); font-weight: 600; }
.feed-name small { display: block; font-weight: 400; color: var(--faint); font-size: var(--text-xs); }
.feed-meta { margin-left: auto; font-size: var(--text-xs); color: var(--faint); }
.feed-banner {
  height: 56px; border-radius: var(--r-md); margin-bottom: var(--sp-3);
  background: linear-gradient(120deg, var(--primary-dim), var(--accent-teal));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-ink); font-weight: 600; font-size: var(--text-sm);
  background-blend-mode: normal;
}
.feed-text { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--sp-3); }
.feed-actions { display: flex; gap: var(--sp-4); font-size: var(--text-xs); color: var(--faint); }
.feed-actions span { display: flex; align-items: center; gap: 4px; }

/* funnel mock — Metrika */
.funnel { display: flex; flex-direction: column; gap: var(--sp-2); }
.funnel-step {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md); background: var(--bg-alt);
  font-size: var(--text-sm);
}
.funnel-step .fn-name { flex: 1; color: var(--ink); font-weight: 560; }
.funnel-step .fn-val { font-family: var(--font-mono); color: var(--faint); }
.funnel-step.step-1 { background: var(--primary-dim); }
.funnel-step.step-1 .fn-val { color: var(--primary); }

/* call journal mock — Roistat / Calltouch */
.journal { display: flex; flex-direction: column; }
.journal-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft);
  font-size: var(--text-sm);
}
.journal-row:first-child { border-top: none; padding-top: 0; }
.journal-row .j-time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--faint); }
.journal-row .j-phone { color: var(--ink); font-weight: 560; }
.journal-row .j-phone small { display: block; font-weight: 400; color: var(--faint); font-size: var(--text-xs); }
.journal-row .j-status { font-size: var(--text-xs); }

/* lead cards mock — Calltouch */
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.lead-card {
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--sp-3); background: var(--surface);
}
.lead-card .lc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.lead-card .lc-name { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.lead-card .lc-meta { font-size: var(--text-xs); color: var(--faint); margin-top: 2px; }
.lead-card .lc-score { height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; margin-top: var(--sp-3); }
.lead-card .lc-score i { display: block; height: 100%; border-radius: 4px; background: var(--success); }
.lead-card .lc-score.warn i { background: var(--warning); }
@media (max-width: 640px) { .lead-grid { grid-template-columns: 1fr; } }

/* ------------------------------ focus ------------------------------------ */

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

@media (max-width: 720px) {
  .h1 { letter-spacing: -0.025em; }
  .nav-links { gap: var(--sp-5); }
}