/* ProFinUa — marketing site */
:root {
  --c-blue: #0057B7;
  /* PERF-1: baked runtime value — applyTweaks computed shade(#0057B7, -0.25) */
  --c-blue-dark: #001777;
  --c-blue-ink: #0A1A3D;
  --c-yellow: #FFDD00;
  --c-yellow-soft: #FFF1A8;
  --c-yellow-bg: #FFF8D6;
  --c-canvas: #FAF8F3;
  --c-card: #FFFFFF;
  --c-surface: #F2EFE6;
  --c-ink: #0A1A3D;
  --c-ink-2: #2A3556;
  --c-mute: #6B7493;
  --c-line: #E6E2D4;
  --c-line-2: #ECE9DD;
  --c-green: #1F8A5B;
  --c-pink: #FF6B7A;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 1px 0 rgba(10, 26, 61, 0.04), 0 1px 3px rgba(10, 26, 61, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(10, 26, 61, 0.12), 0 2px 6px rgba(10, 26, 61, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(10, 26, 61, 0.22), 0 4px 12px rgba(10, 26, 61, 0.06);
  --font-display: 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'Inter', ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv01";
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =====================================================
   SPACING SCALE (base 8px)
   xs:4  sm:8  md:16  lg:24  xl:32  2xl:48  3xl:64  4xl:80  5xl:96
   ===================================================== */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 12px 16px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--c-ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: background .15s ease;
}
.nav a:hover { background: var(--c-surface); }
.header-right { display: flex; align-items: center; gap: 8px; }

/* Mobile burger + dropdown menu (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-line);
  background: white;
  border-radius: 12px;
  color: var(--c-ink);
}
.mobile-menu { display: none; }
.mobile-menu-backdrop { display: none; }

.lang-toggle {
  display: inline-flex;
  background: var(--c-surface);
  border-radius: 999px;
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--c-mute);
  letter-spacing: 0.04em;
}
.lang-toggle button.active {
  background: white;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--c-ink); padding: 10px 16px; }
.btn-ghost:hover { background: var(--c-surface); }
.btn-primary { background: var(--c-blue); color: white; }
.btn-primary:hover { background: var(--c-blue-dark); }
.btn-yellow {
  background: var(--c-yellow);
  color: var(--c-ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 0 0 1px rgba(10,26,61,0.04) inset;
}
.btn-yellow:hover { background: #FFD400; }
.btn-outline {
  background: white;
  color: var(--c-ink);
  box-shadow: 0 0 0 1px var(--c-line) inset;
}
.btn-outline:hover { background: var(--c-surface); }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: visible;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.hero-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.2);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}
.hero-title-accent {
  position: relative;
  display: inline-block;
}
.hero-title-accent::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--c-yellow);
  border-radius: 0.08em;
  z-index: -1;
}
.hero-title-accent--blue {
  color: var(--c-blue);
}
.hero-title-accent--blue::after { display: none; }
.hero-sub {
  max-width: 680px;
  margin: 32px auto 0;
  font-size: 19px;
  color: var(--c-ink-2);
  line-height: 1.55;
  text-wrap: balance;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.hero-checks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  color: var(--c-ink-2);
  font-size: 14px;
}
.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-check {
  width: 18px; height: 18px;
  background: var(--c-yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 24px 0 0;
  text-wrap: balance;
}
.page-hero-sub {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--c-mute);
  line-height: 1.55;
  text-wrap: balance;
}

/* ---------- Section title ---------- */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-2);
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.section-pill .sparkle {
  width: 14px; height: 14px;
  display: inline-block;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  margin-bottom: 40px;
}
.section-head--row h2 {
  margin: 0;
  text-align: left;
}
@media (max-width: 720px) {
  .section-head--row { flex-direction: column; align-items: flex-start; }
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
  text-wrap: balance;
}
.section-head .sub {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--c-mute);
  font-size: 17px;
}
.section { padding: 96px 0; }

/* ---------- Dashboard preview ---------- */
.preview-frame {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line-2);
  background: linear-gradient(to bottom, #FBFAF6, #fff);
}
.preview-chrome .dot { width: 11px; height: 11px; border-radius: 50%; background: #E6E2D4; }
.preview-chrome .url {
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-mute);
  background: var(--c-surface);
  padding: 5px 12px;
  border-radius: 6px;
}

.preview-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}
.preview-sidebar {
  background: linear-gradient(180deg, #FAFAF7, #F3F1E8);
  padding: 18px 12px;
  border-right: 1px solid var(--c-line-2);
}
.preview-sidebar .brand-mini {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 16px;
}
.preview-sidebar .brand-mini .sq {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--c-blue);
  position: relative;
}
.preview-sidebar .brand-mini .sq::after {
  content: ""; position: absolute;
  width: 11px; height: 11px;
  background: var(--c-yellow);
  bottom: 0; left: 0;
}
.preview-sidebar .brand-mini strong {
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
.preview-sidebar .nav-mini {
  display: flex; flex-direction: column; gap: 2px;
}
.preview-sidebar .nav-mini a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--c-ink-2);
  transition: background .25s, color .25s;
}
.preview-sidebar .nav-mini a .ico {
  width: 16px; height: 16px;
  color: var(--c-mute);
}
.preview-sidebar .nav-mini a.active {
  background: white;
  color: var(--c-blue);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.preview-sidebar .nav-mini a.active .ico { color: var(--c-blue); }

.preview-main {
  padding: 24px;
  position: relative;
  background: #FCFBF7;
}
.preview-stage {
  position: relative;
  min-height: 432px;
}
.preview-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.preview-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dashboard screen */
.mock-h { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.mock-sub { font-size: 12px; color: var(--c-mute); }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.mock-stat {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  padding: 14px 16px;
}
.mock-stat .lbl { font-size: 11px; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-stat .val { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.mock-stat .delta { font-size: 11px; color: var(--c-green); margin-top: 2px; font-weight: 600; }
.mock-stat .delta.down { color: var(--c-pink); }

.mock-chart {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  padding: 18px;
  margin-top: 12px;
}
.mock-chart-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-chart-title .pill {
  font-size: 11px; padding: 3px 8px; background: var(--c-yellow-bg); border-radius: 999px;
  color: #7A6500; font-weight: 600;
}
.mock-chart svg { width: 100%; height: 120px; display: block; }

.mock-table {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  margin-top: 12px;
  overflow: hidden;
}
.mock-table .row {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 70px;
  gap: 12px;
  padding: 10px 14px;
  font-size: 12px;
  border-top: 1px solid var(--c-line-2);
  align-items: center;
}
.mock-table .row:first-child { border-top: 0; background: var(--c-surface); font-weight: 600; color: var(--c-mute); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.mock-table .badge { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; display: inline-block; }
.mock-table .badge.paid { background: #DCF4E7; color: #146C45; }
.mock-table .badge.sent { background: #DDE7F8; color: #1A4FA1; }
.mock-table .badge.draft { background: var(--c-surface); color: var(--c-mute); }

/* Invoice screen */
.mock-invoice {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  height: 100%;
}
.mock-invoice .field {
  margin-bottom: 12px;
}
.mock-invoice .field .lbl { font-size: 10px; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-invoice .field .input {
  margin-top: 4px;
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.mock-invoice .invoice-side {
  background: var(--c-blue-ink);
  color: white;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.mock-invoice .invoice-side .total { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: auto; }
.mock-invoice .invoice-side .tax { font-size: 11px; opacity: 0.7; }
.mock-invoice .invoice-side .send-btn {
  background: var(--c-yellow);
  color: var(--c-ink);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  margin-top: 14px;
}

/* Documents screen */
.mock-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-doc {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.mock-doc .doc-prev {
  height: 80px;
  background:
    repeating-linear-gradient(to bottom, var(--c-surface) 0 4px, transparent 4px 10px);
  border-radius: 6px;
  margin-bottom: 12px;
  position: relative;
}
.mock-doc .doc-prev::after {
  content: "";
  position: absolute;
  top: 6px; left: 6px;
  width: 36px; height: 8px;
  background: var(--c-ink);
  border-radius: 2px;
}
.mock-doc .name { font-size: 12px; font-weight: 600; }
.mock-doc .meta { font-size: 10px; color: var(--c-mute); margin-top: 2px; }
.mock-doc .tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; padding: 2px 7px;
  background: var(--c-yellow-bg); color: #7A6500;
  border-radius: 999px;
  font-weight: 600;
}

/* CRM screen */
.mock-crm-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kcol {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  padding: 10px;
}
.mock-kcol .ttl { font-size: 11px; font-weight: 700; color: var(--c-ink-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.mock-kcol .count {
  font-size: 10px; background: var(--c-surface); padding: 1px 7px; border-radius: 999px; color: var(--c-mute);
}
.mock-kcard {
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
}
.mock-kcard .who { font-size: 12px; font-weight: 600; }
.mock-kcard .what { font-size: 10px; color: var(--c-mute); margin-top: 2px; }
.mock-kcard .amt { font-size: 11px; color: var(--c-blue); font-weight: 700; margin-top: 6px; }

/* Floating notification */
.preview-toast {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--c-ink);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 4;
  font-size: 13px;
  max-width: 280px;
  animation: toast-rise 4s ease-in-out infinite;
}
.preview-toast .toast-ico {
  width: 30px; height: 30px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@keyframes toast-rise {
  0%, 25% { opacity: 0; transform: translateY(20px); }
  35%, 80% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(20px); }
}

/* ---------- Who it's for ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.audience-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.audience-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}
.audience-card p { color: var(--c-mute); font-size: 15px; margin: 0 0 18px; }
.audience-card ul { list-style: none; padding: 0; margin: 0; }
.audience-card ul li {
  font-size: 14px;
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--c-ink-2);
  border-top: 1px dashed var(--c-line-2);
}
.audience-card ul li:first-child { border-top: 0; }
.audience-card ul li .check {
  width: 16px; height: 16px;
  background: var(--c-yellow);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-ink);
}

/* ---------- Features (Discover us style) ---------- */
.features-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.feature-card .ftile {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 28px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3);
}
.feature-card .ftile.blue { background: var(--c-blue); }
.feature-card .ftile.yellow { background: var(--c-yellow); color: var(--c-ink); }
.feature-card .ftile.green { background: var(--c-green); }
.feature-card .ftile.pink { background: var(--c-pink); }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.05;
}
.feature-card p { color: var(--c-mute); font-size: 15px; margin: 0; }
.feature-card .feature-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  background: var(--c-ink);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  align-self: flex-start;
}
.feature-card .feature-illu {
  margin-top: auto;
}

/* Mini logo cluster for CRM card */
.logo-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 14px;
}
.logo-cluster .lc {
  background: white;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}
.logo-cluster .lc.b { color: var(--c-blue); }
.logo-cluster .lc.y { background: var(--c-yellow); }

/* email-preview style card */
.preview-emails {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.preview-emails .pe-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--c-line-2);
  font-size: 13px;
}
.preview-emails .pe-row:first-of-type { border-top: 0; }
.preview-emails .pe-row .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; display: inline-block; }
.preview-emails .pe-row .who { display: flex; align-items: center; }
.preview-emails .pe-row .pct { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pct.g { background: #DCF4E7; color: #146C45; }
.pct.y { background: var(--c-yellow-bg); color: #7A6500; }
.pct.r { background: #FFE0E5; color: #B5364B; }

.feature-card .big-num {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 16px;
}
.feature-card .big-num .n {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.feature-card .big-num .u { font-size: 16px; color: var(--c-mute); }

.avatar-circles {
  display: flex;
  margin-top: 18px;
}
.avatar-circles .ac {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--c-surface);
  margin-left: -10px;
  background-size: cover;
  background-position: center;
}
.avatar-circles .ac:first-child { margin-left: 0; }
.avatar-circles .ac.icon {
  background: var(--c-green);
  display: flex; align-items: center; justify-content: center;
  color: white;
}

/* ---------- Big productivity headline ---------- */
.mega-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  margin: 0;
}
.mega-head .mute { color: var(--c-mute); }
.mega-head .inline-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85em;
  height: 0.85em;
  border-radius: 0.16em;
  vertical-align: middle;
  margin: 0 0.04em -0.06em;
  font-size: 0.42em;
  color: white;
}
.mega-head .inline-tile.b { background: var(--c-blue); }
.mega-head .inline-tile.y { background: var(--c-yellow); color: var(--c-ink); }

/* 6-up features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
  margin-top: 64px;
}
.feature-mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-mini .ftile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.feature-mini h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}
.feature-mini p {
  margin: 0;
  font-size: 14px;
  color: var(--c-mute);
  line-height: 1.55;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.step-card .step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-mute);
  letter-spacing: 0.1em;
}
.step-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
}
.step-card p { font-size: 14px; color: var(--c-mute); margin: 0; }
.step-card .step-icon {
  width: 36px; height: 36px;
  background: var(--c-yellow);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--c-ink);
}

/* ---------- Templates ---------- */
.templates-wrap {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.templates-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}
.tcat {
  border: 1px solid var(--c-line);
  background: white;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-2);
}
.tcat.active { background: var(--c-ink); color: white; border-color: var(--c-ink); }
.tcat .count { color: var(--c-mute); margin-left: 6px; font-size: 12px; }
.tcat.active .count { color: rgba(255,255,255,0.6); }

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tcard {
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.tcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tcard .tprev {
  height: 140px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--c-line-2);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.tcard .tprev .ln {
  height: 4px;
  background: var(--c-line);
  border-radius: 2px;
  margin-bottom: 6px;
}
.tcard .tprev .ln.s { width: 50%; }
.tcard .tprev .ln.m { width: 70%; }
.tcard .tprev .ln.l { width: 90%; }
.tcard .tprev .stamp {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 1.5px solid var(--c-blue);
  border-radius: 50%;
  opacity: 0.5;
}
.tcard .tname { font-weight: 600; font-size: 14px; line-height: 1.3; }
.tcard .ttype { font-family: var(--font-mono); font-size: 11px; color: var(--c-mute); text-transform: uppercase; letter-spacing: 0.06em; }

.templates-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--c-mute);
}

/* ---------- AI helper section ---------- */
.ai-section {
  background: var(--c-blue-ink);
  color: white;
  border-radius: var(--r-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ai-section .yellow-blob {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--c-yellow), transparent 70%);
  opacity: 0.4;
  filter: blur(40px);
  border-radius: 50%;
  top: -100px; right: -80px;
  pointer-events: none;
}
.ai-section .ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.ai-section h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}
.ai-section h2 .y { color: var(--c-yellow); }
.ai-section p { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 480px; line-height: 1.6; }
.ai-section ul { list-style: none; padding: 0; margin: 22px 0 0; }
.ai-section ul li {
  padding: 8px 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
  color: white;
}
.ai-section ul li .check-y {
  width: 22px; height: 22px;
  background: var(--c-yellow);
  border-radius: 6px;
  color: var(--c-blue-ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.ai-chat {
  background: white;
  color: var(--c-ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.ai-chat .head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line-2);
  margin-bottom: 14px;
}
.ai-chat .head .ava {
  width: 32px; height: 32px;
  background: var(--c-blue);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.ai-chat .head strong { font-size: 14px; font-weight: 700; }
.ai-chat .head .stat { font-size: 11px; color: var(--c-green); font-weight: 600; }
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 10px;
  max-width: 86%;
  line-height: 1.5;
}
.bubble.user {
  background: var(--c-blue);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  background: var(--c-surface);
  color: var(--c-ink);
  border-bottom-left-radius: 4px;
}
.bubble.ai .typing {
  display: inline-flex; gap: 4px; align-items: center;
}
.bubble.ai .typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-mute);
  animation: dot-pulse 1.4s ease-in-out infinite;
}
.bubble.ai .typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.ai .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 60%, 100% { transform: scale(1); opacity: 0.4; }
  30% { transform: scale(1.4); opacity: 1; }
}

/* ---------- Specialists ---------- */
.specialists-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.specialists-left {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.spec-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.spec-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--c-line-2);
  border-radius: 16px;
}
.spec-card .av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  color: var(--c-ink);
}
.spec-card .nm { font-weight: 700; font-size: 15px; }
.spec-card .role { font-size: 12px; color: var(--c-mute); }
.spec-card .meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 11px; color: var(--c-ink-2); }
.spec-card .meta .rate { background: var(--c-yellow-bg); color: #7A6500; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.spec-card .cta {
  background: var(--c-blue); color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.specialists-right {
  background: var(--c-yellow);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.specialists-right h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.specialists-right p { color: var(--c-ink-2); font-size: 15px; margin: 0 0 22px; }
.docs-checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.docs-checklist .di {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(10,26,61,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex; gap: 12px; align-items: center;
}
.docs-checklist .di .num {
  width: 24px; height: 24px;
  background: var(--c-ink);
  color: var(--c-yellow);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.privacy-note {
  background: var(--c-ink);
  color: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  display: flex; gap: 10px;
}
.privacy-note .shield {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--c-yellow);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--c-blue-ink);
  color: white;
  border-color: var(--c-blue-ink);
  transform: scale(1.02);
}
.price-card .pname {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-card .pdesc { font-size: 13px; color: var(--c-mute); margin: 6px 0 18px; }
.price-card.featured .pdesc { color: rgba(255,255,255,0.65); }
.price-card .price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 18px;
}
.price-card .price .v {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-card .price .u { font-size: 13px; color: var(--c-mute); }
.price-card.featured .price .u { color: rgba(255,255,255,0.65); }
.price-card .pop {
  position: absolute;
  top: -10px; right: 20px;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card ul li {
  font-size: 14px;
  padding: 7px 0;
  display: flex; gap: 10px; align-items: flex-start;
  border-top: 1px dashed var(--c-line-2);
  color: var(--c-ink-2);
}
.price-card.featured ul li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.1); }
.price-card ul li:first-child { border-top: 0; }
.price-card ul li .cm {
  width: 16px; height: 16px;
  color: var(--c-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card.featured ul li .cm { color: var(--c-yellow); }
.price-card .pbtn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.price-card .pbtn.outline { background: white; color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-line) inset; }
.price-card .pbtn.solid { background: var(--c-yellow); color: var(--c-ink); }
.price-card .annual-hint { font-size: 12px; color: var(--c-mute); margin-top: -12px; margin-bottom: 14px; }
.price-card.featured .annual-hint { color: rgba(255,255,255,0.5); }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tcard-q {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.tcard-q.featured { background: var(--c-yellow); border-color: var(--c-yellow); }
.tcard-q .quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  flex: 1;
}
.tcard-q .author { display: flex; gap: 12px; align-items: center; }
.tcard-q .author .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-blue);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.tcard-q .author .nm { font-weight: 700; font-size: 14px; }
.tcard-q .author .role { font-size: 12px; color: var(--c-mute); }
.tcard-q.featured .author .role { color: rgba(10,26,61,0.6); }
.tcard-q .stars {
  display: inline-flex; gap: 2px; margin-bottom: 14px;
  color: var(--c-blue);
}
.tcard-q.featured .stars { color: var(--c-ink); }

/* ---------- Tax compliance ---------- */
.tax-wrap {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.tax-left h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}
.tax-left p { color: var(--c-mute); font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.tax-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tax-list .item {
  background: var(--c-surface);
  border-radius: 14px;
  padding: 14px 16px;
}
.tax-list .item .rate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--c-blue);
}
.tax-list .item .lbl { font-size: 12px; color: var(--c-mute); margin-top: 2px; }
.tax-right {
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-ink-2);
}
.tax-right .codeline { padding: 6px 0; border-bottom: 1px dashed var(--c-line-2); }
.tax-right .codeline:last-child { border: 0; }
.tax-right .codeline .k { color: var(--c-mute); }
.tax-right .codeline .v { color: var(--c-blue); font-weight: 700; }
.tax-right .codeline .badge {
  background: var(--c-yellow); color: var(--c-ink);
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  margin-left: 8px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 28px; height: 28px;
  background: var(--c-surface);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: transform .25s ease, background .15s ease;
  flex-shrink: 0;
  color: var(--c-ink);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--c-yellow); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 24px;
  color: var(--c-mute);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding-bottom: 22px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--c-yellow);
  border-radius: var(--r-xl);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 22px;
  text-wrap: balance;
}
.final-cta p { color: var(--c-ink-2); font-size: 18px; max-width: 580px; margin: 0 auto 36px; }
.final-cta .actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.final-cta .btn-primary { background: var(--c-ink); }
.final-cta .btn-primary:hover { background: #000; }
.final-cta::before, .final-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(10,26,61,0.05);
}
.final-cta::before { width: 240px; height: 240px; top: -100px; left: -80px; }
.final-cta::after { width: 360px; height: 360px; bottom: -180px; right: -120px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-blue-ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-grid h5 {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 5px 0; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--c-yellow); }
.site-footer .footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.site-footer .footer-brand p { font-size: 14px; max-width: 320px; margin: 0 0 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .flag-stripe {
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-bottom .flag-stripe .b { width: 16px; height: 4px; background: var(--c-blue); }
.footer-bottom .flag-stripe .y { width: 16px; height: 4px; background: var(--c-yellow); }

/* ---------- Improved Dashboard preview ---------- */

/* Top app bar */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -24px -24px 18px;
  padding: 12px 20px;
  background: white;
  border-bottom: 1px solid var(--c-line-2);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-mute);
}
.breadcrumb strong { color: var(--c-ink); font-weight: 700; }
.bc-sep { color: var(--c-line); }
.app-bar-actions { display: flex; align-items: center; gap: 8px; }
.app-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--c-mute);
  min-width: 180px;
}
.app-search .kbd { margin-left: auto; }
.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-radius: 4px;
  color: var(--c-mute);
}
.app-icon-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--c-line-2);
  background: white;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-2);
}
.app-user {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #0057B7, #5B8FE6);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Sidebar improvements */
.sidebar-section-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mute);
  padding: 0 10px 6px;
  margin-top: 4px;
}
.nav-badge {
  background: var(--c-yellow);
  color: var(--c-ink);
  font-size: 10px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.preview-sidebar .nav-mini a.active .nav-badge {
  background: var(--c-blue);
  color: white;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
}
.ai-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--c-ink);
  color: white;
  border-radius: 8px;
  font-size: 11px;
}
.ai-shortcut-ico {
  width: 18px; height: 18px;
  background: rgba(255, 221, 0, 0.15);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ai-shortcut .kbd {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

/* Trial chip in chrome */
.preview-trial {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #7A6500;
  background: var(--c-yellow-bg);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.trial-dot {
  width: 6px; height: 6px;
  background: #FFB347;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.25);
}

/* Business switcher */
.business-switcher {
  margin: 4px 4px 14px;
  padding: 10px 10px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--c-line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.bs-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--c-blue), #5B8FE6);
  color: white;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.bs-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-sub { font-size: 10px; color: var(--c-mute); }

/* Screen-internal layout */
.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  gap: 16px;
}
.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--c-line-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
}
.mock-btn.primary {
  background: var(--c-ink);
  color: white;
  border-color: var(--c-ink);
}

/* KPI stats with sparkline */
.mock-stat-row {
  grid-template-columns: repeat(4, 1fr);
}
.mock-stat {
  position: relative;
  padding-bottom: 24px;
}

/* Dashboard split: chart + tasks */
.dash-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.dash-tasks {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-tasks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.task-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--c-line-2);
}
.task-item:first-of-type { border-top: 0; padding-top: 0; }
.task-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.task-t { font-size: 12px; font-weight: 600; }
.task-s { font-size: 11px; color: var(--c-mute); margin-top: 2px; }

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--c-mute);
  padding: 3px 8px;
  background: var(--c-canvas);
  border-radius: 999px;
}
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }

/* Table improvements */
.mock-table .row.head { background: var(--c-surface); font-weight: 600; color: var(--c-mute); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border-top: 0; }
.mock-table .row { grid-template-columns: 1fr 1fr 90px 90px; }
.mock-table .row.row-4col { grid-template-columns: 1.4fr 1fr 100px 80px; }
.mock-table .row.row-5col { grid-template-columns: 50px 1fr 90px 90px 90px; }
.mock-table .row.row-6col { grid-template-columns: 50px 1fr 90px 90px 100px 90px; }
.mock-table .badge.draft { background: var(--c-surface); color: var(--c-mute); }
.mock-table .badge.sent, .mock-table .badge.ready { background: #DDE7F8; color: #1A4FA1; }
.mock-table .badge.ready { background: #DCF4E7; color: #146C45; }
.mock-table .badge.paid { background: #DCF4E7; color: #146C45; }
.mock-table .badge.overdue { background: #FFE0E5; color: #B5364B; }

.doc-icon-mini {
  width: 22px; height: 22px;
  background: #E8EEF9;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Invoice tabs */
.invoice-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--c-line-2);
}
.invoice-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.invoice-tab.active {
  color: var(--c-ink);
  border-bottom-color: var(--c-blue);
}

/* Filter chips */
.invoice-filters {
  display: flex;
  gap: 6px;
  margin: 0 0 0;
  flex-wrap: wrap;
  align-items: center;
}
.filter-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--c-line-2);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip.active {
  background: var(--c-ink);
  color: white;
  border-color: var(--c-ink);
}
.filter-chip.ml-auto { margin-left: auto; color: var(--c-mute); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; }

/* Pagination */
.mock-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 0;
  font-size: 11px;
  color: var(--c-mute);
}
.page-btn {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--c-line-2);
  color: var(--c-ink-2);
  font-size: 11px;
  cursor: pointer;
}
.page-btn.active { background: var(--c-ink); color: white; border-color: var(--c-ink); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Doc categories */
.doc-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.doc-cat {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.doc-cat::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
}
.doc-cat--blue::before { background: var(--c-blue); }
.doc-cat--yellow::before { background: var(--c-yellow); }
.doc-cat--green::before { background: var(--c-green); }
.doc-cat--pink::before { background: var(--c-pink); }
.doc-cat--ink::before { background: var(--c-ink); }
.doc-cat-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.doc-cat-lbl { font-size: 11px; color: var(--c-mute); margin-top: 2px; }

/* CRM kanban */
.mock-kcol .ttl {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.kcol-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-mute);
  background: var(--c-canvas);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.mock-kcard {
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kcard-top { display: flex; align-items: center; gap: 6px; }
.kcard-av {
  width: 18px; height: 18px;
  background: var(--c-blue);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.kcard-top .who { font-size: 12px; font-weight: 600; flex: 1; }
.prio { width: 6px; height: 6px; border-radius: 50%; }
.prio-h { background: #FF6B7A; }
.prio-m { background: #FFB347; }
.prio-l { background: #D6D2C2; }
.mock-kcard .what { font-size: 10px; color: var(--c-mute); }
.kcard-bottom { display: flex; justify-content: space-between; align-items: center; }
.mock-kcard .amt { font-size: 11px; color: var(--c-blue); font-weight: 700; }
.kcard-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--c-mute);
}

/* ---------- Stats bar (real numbers) ---------- */
.stats-bar {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding-right: 24px;
}
.stat-item + .stat-item { border-left: 1px solid var(--c-line); padding-left: 32px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--c-ink);
}
.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink-2);
  margin-top: 4px;
}
.stat-sub { font-size: 13px; color: var(--c-mute); line-height: 1.45; }

/* ---------- Compliance strip ---------- */
.compliance-strip {
  background: var(--c-blue-ink);
  color: white;
  border-radius: var(--r-lg);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: center;
}
.compliance-left h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 0;
}
.compliance-left .section-pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: white; }
.compliance-right { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.compliance-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}
.compliance-item .ctag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-yellow);
  letter-spacing: 0.02em;
}
.compliance-item .cdesc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  line-height: 1.45;
}

/* ---------- Module deep-dive ---------- */
.module-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--c-line);
}
.module-deep:nth-child(even) { direction: rtl; }
.module-deep:nth-child(even) > * { direction: ltr; }

.module-deep-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.module-deep-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: #E8EEF9;
  padding: 5px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.module-deep-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.module-deep-desc { color: var(--c-mute); font-size: 16px; line-height: 1.6; }
.module-deep-bullets { list-style: none; padding: 0; margin: 0; }
.module-deep-bullets li {
  padding: 8px 0;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
  color: var(--c-ink-2);
  border-top: 1px solid var(--c-line-2);
}
.module-deep-bullets li:first-child { border-top: 0; }
.module-deep-bullets li::before {
  content: ""; flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--c-yellow);
  border-radius: 50%;
  margin-top: 1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1A3D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12.5 9 16.5 19 6.5'/></svg>");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.module-deep-visual {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

/* ---------- Plan comparison table ---------- */
.compare-table {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line-2);
  align-items: center;
}
.compare-row.head {
  background: var(--c-blue-ink);
  color: white;
  font-weight: 700;
  border-top: 0;
}
.compare-row.head > * { padding: 20px 18px; }
.compare-row.head .plan-name {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-align: center;
  align-items: center;
}
.compare-row.head .plan-name.featured {
  background: var(--c-yellow);
  color: var(--c-ink);
  position: relative;
}
.compare-row.head .plan-name .price-sm { font-size: 11px; font-weight: 600; opacity: 0.7; margin-top: 4px; font-family: var(--font-body); }
.compare-row.head .plan-name.featured .price-sm { opacity: 1; }
.compare-row > * { padding: 14px 18px; font-size: 14px; }
.compare-row > *:not(:first-child) {
  text-align: center;
  border-left: 1px solid var(--c-line-2);
  font-variant-numeric: tabular-nums;
}
.compare-row .row-name { font-weight: 600; color: var(--c-ink-2); }
.compare-row .cell-featured { background: rgba(255, 221, 0, 0.08); font-weight: 700; }
.compare-row .cell-yes { color: var(--c-green); font-weight: 700; font-size: 16px; }
.compare-row .cell-no { color: var(--c-line); }
.compare-row .cell-soon { font-size: 11px; font-weight: 600; color: #8a6f00; background: rgba(255,221,0,0.18); border-radius: 4px; padding: 2px 7px; letter-spacing: 0.04em; }
.compare-row .cell-text { color: var(--c-ink-2); font-size: 13px; }
.compare-row:nth-child(even) { background: var(--c-canvas); }
.compare-row.head:nth-child(even) { background: var(--c-blue-ink); }

/* ---------- Specialists categories ---------- */
.spec-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.spec-cat-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.spec-cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.spec-cat-card:nth-child(2) .spec-cat-icon { background: var(--c-yellow); color: var(--c-ink); }
.spec-cat-card:nth-child(3) .spec-cat-icon { background: var(--c-green); }
.spec-cat-card:nth-child(4) .spec-cat-icon { background: var(--c-ink); }
.spec-cat-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.spec-cat-card p { font-size: 14px; color: var(--c-mute); margin: 0 0 14px; line-height: 1.5; }
.spec-cat-card .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-ink-2);
  background: var(--c-surface);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ---------- Vetting steps ---------- */
.vetting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.vetting-step {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.vetting-step .vstep-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.03em;
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: 8px;
}
.vetting-step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.vetting-step p { font-size: 14px; color: var(--c-mute); margin: 0; line-height: 1.5; }

/* ---------- About: story, values, timeline, team, contact ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-story-aside {
  background: var(--c-yellow);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.about-story-aside .flag-mark {
  width: 100%;
  aspect-ratio: 1.5;
  background: linear-gradient(to bottom, var(--c-blue) 0 50%, var(--c-yellow) 50% 100%);
  border-radius: 12px;
  margin-bottom: 24px;
}
.about-story-aside h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.about-story-aside p { font-size: 15px; color: var(--c-ink-2); line-height: 1.55; margin: 0; }

.about-story-body h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.about-story-body p {
  font-size: 17px;
  color: var(--c-ink-2);
  line-height: 1.65;
  margin: 0 0 18px;
}
.about-story-body p:last-child { margin-bottom: 0; }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about-value {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.about-value-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.about-value h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.about-value p { font-size: 14px; color: var(--c-mute); margin: 0; line-height: 1.55; }

.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-yellow), var(--c-blue));
}
.timeline-item {
  position: relative;
  padding: 16px 0 16px 24px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: 3px solid var(--c-canvas);
  box-shadow: 0 0 0 1px var(--c-blue);
}
.timeline-item:last-child::before { background: var(--c-blue); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
}
.timeline-item p { font-size: 15px; color: var(--c-mute); margin: 0; line-height: 1.55; }

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: left;
}
.team-card svg { margin-bottom: 16px; }
.team-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.team-card .team-role { font-size: 14px; color: var(--c-mute); margin: 0 0 8px; }
.team-card .team-city {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-ink-2);
  background: var(--c-surface);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}
.team-card.placeholder { background: var(--c-canvas); border-style: dashed; }
.team-card.placeholder h4 { color: var(--c-ink-2); }

.about-made-in {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-made-in::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 16px;
  background: var(--c-yellow);
}
.about-made-in h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.about-made-in p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 16px auto 0;
  line-height: 1.55;
}

.about-contact {
  background: var(--c-ink);
  color: white;
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 16px;
}
.about-contact p { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0; }
.about-contact .section-pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: white; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-item-ico {
  width: 40px; height: 40px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-lbl { font-size: 12px; color: rgba(255,255,255,0.5); }
.contact-item-val { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* ---------- News ---------- */
/* ============ DASHBOARD V2 STYLES ============ */

.preview-frame-v2 .preview-body { grid-template-columns: 200px 1fr; }
.sidebar-v2 {
  background: white;
  border-right: 1px solid var(--c-line-2);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
}
.sidebar-v2 .brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 14px;
}
.plan-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.sidebar-v2 .nav-mini a {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink-2);
}
.sidebar-v2 .nav-mini a.active {
  background: #E8EEF9;
  color: var(--c-blue);
  font-weight: 600;
}
.sidebar-v2 .nav-mini a.active .ico { color: var(--c-blue); }
.ai-badge {
  background: var(--c-blue);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.sidebar-footer { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot-link {
  font-size: 11px;
  color: var(--c-mute);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 8px 10px;
  background: var(--c-yellow-bg);
  border-radius: 6px;
  color: #7A6500;
  margin: 6px 0;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--c-surface);
  border-radius: 8px;
}

.app-bar-v2 {
  margin: -24px -24px 14px;
  padding: 10px 18px;
  background: white;
  border-bottom: 1px solid var(--c-line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.biz-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-avatar-sm {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--c-blue), #5B8FE6);
  color: white;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.dash-greet {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.ai-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-blue);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.ai-rec-card {
  background: linear-gradient(90deg, #F2EAFE 0%, #F5EEFF 50%, #FFFFFF 100%);
  border: 1px solid #E5D8FD;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
}
.ai-rec-ico {
  width: 32px; height: 32px;
  background: white;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-card, .kpi-stat {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-mute);
  text-transform: uppercase;
}
.kpi-ico {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 2px;
  color: var(--c-ink);
}
.kpi-delta { font-size: 10px; color: #1F8A5B; }
.kpi-delta.down { color: #FF6B7A; }
.kpi-stat-head { display: flex; justify-content: space-between; align-items: center; }
.kpi-stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-row-2 {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.dash-chart, .dash-activity {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  padding: 14px;
}
.dash-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.activity-row {
  display: flex; gap: 8px; align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--c-line-2);
}
.activity-row:first-of-type { border-top: 0; padding-top: 0; }
.activity-ico {
  width: 24px; height: 24px;
  background: #E8EEF9;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-ago { font-size: 10px; color: var(--c-mute); }

.dash-row-3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.quick-actions, .top-clients {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  padding: 14px;
}
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qa-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
}
.qa-ico {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.qa-purple .qa-ico { background: #7B58D6; }
.qa-orange .qa-ico { background: #F0813A; }
.qa-green .qa-ico { background: #1F8A5B; }
.qa-blue .qa-ico { background: #0057B7; }
.qa-lbl { font-size: 11px; font-weight: 600; }

.client-row { margin-bottom: 10px; }
.client-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.client-rank {
  width: 18px; height: 18px;
  background: var(--c-surface);
  color: var(--c-ink-2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.client-bar {
  height: 4px;
  background: var(--c-surface);
  border-radius: 2px;
  overflow: hidden;
}
.client-bar span {
  display: block; height: 100%;
  border-radius: 2px;
}

/* Invoices v2 */
.inv-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  flex-wrap: wrap;
}
.inv-select {
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
  font-size: 11px;
  color: var(--c-ink-2);
}
.row.row-inv { grid-template-columns: 110px 1fr 70px 90px 110px 100px; }
.mock-table-v2 .row { padding: 10px 14px; font-size: 12px; }
.badge.badge-pill { padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.badge.badge-draft { background: var(--c-surface); color: var(--c-mute); }
.badge.badge-sent { background: #DDE7F8; color: #1A4FA1; }
.badge.badge-paid { background: #DCF4E7; color: #146C45; }
.badge.badge-overdue { background: #FFE0E5; color: #B5364B; }

/* CRM v2 tabs */
.crm-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-line-2);
  margin: 0;
}
.crm-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.crm-tab.active { color: var(--c-blue); border-bottom-color: var(--c-blue); }

.view-toggle {
  display: inline-flex;
  background: var(--c-canvas);
  border: 1px solid var(--c-line-2);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
}
.view-toggle > span {
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-mute);
}
.view-toggle > span.active { background: white; color: var(--c-ink); }

.crm-kanban-v2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.kcol-v2 {
  border-radius: 10px;
  padding: 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.kcol-lead { background: #E8EEF9; }
.kcol-contact { background: #F2EAFE; }
.kcol-proposal { background: #FFF1A8; }
.kcol-won { background: #DCF4E7; }
.kcol-lost { background: #FFE0E5; }

.kcol-v2-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink);
}
.kcol-v2-n {
  background: white;
  color: var(--c-ink-2);
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kcol-lead .kcol-v2-n { background: var(--c-blue); color: white; }
.kcol-contact .kcol-v2-n { background: #7B58D6; color: white; }
.kcol-proposal .kcol-v2-n { background: #D97E1A; color: white; }
.kcol-won .kcol-v2-n { background: var(--c-green); color: white; }
.kcol-lost .kcol-v2-n { background: var(--c-pink); color: white; }

.kcard-v2 {
  background: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(10,26,61,0.04);
}
.kcard-who { font-size: 12px; font-weight: 700; }
.kcard-what { font-size: 10px; color: var(--c-mute); margin-top: 2px; }
.kcard-amt { font-size: 11px; color: var(--c-blue); font-weight: 700; margin-top: 6px; }
.kcol-empty {
  flex: 1;
  border: 1px dashed rgba(10,26,61,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--c-mute);
  min-height: 60px;
  text-align: center;
  padding: 8px;
}
.kcol-add {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink-2);
  padding: 6px;
  border-radius: 6px;
  margin-top: 6px;
  opacity: 0.6;
}

/* Specialists screen */
.spec-info-banner {
  background: #E8EEF9;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--c-ink-2);
  margin: 10px 0 0;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.spec-card-v2 {
  background: white;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-card-head { display: flex; gap: 10px; align-items: center; }
.spec-av {
  width: 36px; height: 36px;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.spec-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-role { font-size: 10px; color: var(--c-mute); }
.spec-cat-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.spec-cat-blue { background: #E8EEF9; color: var(--c-blue); }
.spec-cat-purple { background: #F2EAFE; color: #7B58D6; }
.spec-cat-green { background: #DCF4E7; color: #146C45; }

.spec-meta-row {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--c-ink-2);
  align-items: center;
  flex-wrap: wrap;
}
.spec-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #146C45;
  font-weight: 600;
}
.spec-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--c-line-2);
  padding-top: 8px;
}
.spec-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}
.spec-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
}
.spec-book {
  width: 100%;
  padding: 8px;
  background: var(--c-blue);
  color: white;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.news-thumb {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9.6;
  position: relative;
  background: var(--c-surface);
}
.news-thumb svg { width: 100%; height: 100%; display: block; }
.news-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--c-ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.news-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--c-mute);
  font-family: var(--font-mono);
}
.news-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.news-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--c-mute);
  line-height: 1.55;
  flex: 1;
}
.news-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue);
  margin-top: 2px;
}

.news-featured {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-top: 32px;
  transition: box-shadow .18s ease;
}
.news-featured:hover { box-shadow: var(--shadow-md); }
.news-featured-thumb {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}
.news-featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.news-featured-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.news-featured-excerpt {
  font-size: 16px;
  color: var(--c-mute);
  line-height: 1.55;
  margin: 0;
}

.news-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 24px;
}

/* ---------- Responsive ---------- */
.placeholder-img {
  background:
    repeating-linear-gradient(135deg, var(--c-surface) 0 6px, var(--c-canvas) 6px 12px);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 24px;
  text-align: center;
}

/* Inline emoji-style badges in display headlines */
.ib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.86em;
  height: 0.86em;
  border-radius: 0.18em;
  vertical-align: middle;
  margin: 0 0.04em -0.06em;
  font-size: 0.42em;
  color: white;
}
.ib.circle { border-radius: 50%; }
.ib.blue { background: var(--c-blue); }
.ib.yellow { background: var(--c-yellow); color: var(--c-ink); }
.ib.ink { background: var(--c-ink); }
.ib.green { background: var(--c-green); }
.ib.pink { background: var(--c-pink); }

/* Responsive */
@media (max-width: 1100px) {
  .audience-grid, .features-grid, .templates-grid, .pricing-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .features-top, .ai-section, .specialists-wrap, .tax-wrap, .news-featured { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-cats { grid-template-columns: repeat(3, 1fr); }
  .ai-section, .tax-wrap, .final-cta { padding: 40px; }
  .preview-body { grid-template-columns: 180px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock-stat-row { grid-template-columns: repeat(2, 1fr); }
  .about-team-grid, .about-values-grid, .vetting-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-categories { grid-template-columns: repeat(2, 1fr); }
  /* Tablet spacing — one step down from desktop on the 8px scale */
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .container, .container-narrow { padding: 0 24px; }
  .hero { padding: 64px 0 80px; }
  .page-hero { padding: 56px 0 40px; }
  .compliance-strip { padding: 32px 36px; gap: 32px; }
  /* Module deep-dive: tighten gap on tablet, keep 2 columns */
  .module-deep { gap: 48px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-right { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { padding: 10px 10px 10px 20px; position: relative; z-index: 2; }

  /* Backdrop blocks taps on the page while the menu is open */
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(10, 26, 61, 0.25);
  }

  /* Overlay panel — anchored to the header so opening it does NOT reflow the page */
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    margin: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--c-line);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
  }
  .mobile-nav { display: flex; flex-direction: column; gap: 2px; }
  .mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: 16px;
  }
  .mobile-nav a:hover, .mobile-nav a.active { background: var(--c-surface); color: var(--c-ink); }
  .mobile-menu-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--c-line-2);
  }
  .mobile-menu-foot .lang-toggle { align-self: flex-start; display: inline-flex; }
  .mobile-menu-foot .btn { width: 100%; }
}

/* Pricing comparison: keep desktop columns but scroll horizontally */
@media (max-width: 880px) {
  .compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-row { min-width: 640px; }
  /* Fill the 481–880px tablet gap so multi-column grids stop cramping */
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-kanban-v2 { grid-template-columns: repeat(2, 1fr); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  .audience-grid, .features-grid, .templates-grid, .pricing-grid, .testimonials-grid, .steps-grid, .news-grid { grid-template-columns: 1fr; }
  .about-team-grid, .about-values-grid, .vetting-grid { grid-template-columns: 1fr; }
  .spec-categories, .logo-cluster { grid-template-columns: 1fr; }
  .doc-cats { grid-template-columns: repeat(2, 1fr); }
  .preview-body, .preview-frame-v2 .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  /* Mobile spacing — phone scale on the 8px grid */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 48px 0 64px; }
  .page-hero { padding: 40px 0 32px; }
  .ai-section, .tax-wrap, .final-cta, .templates-wrap, .specialists-left, .specialists-right { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card.featured { transform: none; }

  /* Stats band: 2-up on phones; vertical divider only makes sense in a row */
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px; }
  .stat-item + .stat-item { border-left: 0; padding-left: 0; }

  /* Capabilities ("Можливості"): center each tile and enlarge the icon */
  .feature-mini { align-items: center; text-align: center; gap: 12px; }
  .feature-mini .ftile { width: 60px; height: 60px; border-radius: 16px; }

  /* Compliance card: stack the two columns so the chips stop overflowing */
  .compliance-strip { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .compliance-right { grid-template-columns: 1fr; }

  /* Gap between the hero dashboard and the first section below */
  .preview-frame-v2 { margin-bottom: 48px; }

  /* Side padding on phones — monotonic with smaller breakpoints */
  .container, .container-narrow { padding: 0 20px; }

  /* ----- Hero dashboard demo: responsive reflow ----- */
  .preview-main { padding: 16px; }
  .app-bar-v2 { margin: -16px -16px 12px; flex-wrap: wrap; gap: 8px; }
  .app-bar-v2 .app-search, .app-bar-v2 .kbd { display: none; }
  .app-bar-v2 .biz-switch { min-width: 0; }
  .app-bar-v2 .biz-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Browser-chrome row: wrap and let the URL shrink; hide the trial pill */
  .preview-chrome { flex-wrap: wrap; padding: 10px 12px; }
  .preview-chrome .url { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .preview-chrome .preview-trial { display: none; }
  .kpi-grid, .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dash-row-2, .dash-row-3 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .inv-toolbar { flex-wrap: wrap; }

  /* Kanban scrolls inside its card instead of overflowing the page */
  .crm-kanban-v2 { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 10px; }
  .crm-kanban-v2 .kcol-v2 { min-width: 150px; flex: 0 0 auto; }

  /* Invoice table scrolls horizontally inside its card */
  .mock-table-v2 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mock-table-v2 .row-inv { min-width: 560px; }

  /* Toast hidden on mobile — it only cluttered/overlapped the demo */
  .preview-toast { display: none; }

  /* Module deep-dive: stack to single column, text first then visual */
  .module-deep { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .module-deep .module-deep-text { order: 1 !important; }
  .module-deep .module-deep-visual { order: 2 !important; aspect-ratio: 16/9; }
  .module-deep-title { font-size: clamp(24px, 7vw, 36px); }
}

@media (max-width: 480px) {
  /* Smallest phones — one more step down */
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .hero { padding: 40px 0 56px; }
  .page-hero { padding: 32px 0 24px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .hero-sub { font-size: 16px; }
  /* Drop low-priority invoice columns to keep the table readable */
  .mock-table-v2 .row-inv { min-width: 0; grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr; }
  .mock-table-v2 .row-inv > :nth-child(3),
  .mock-table-v2 .row-inv > :nth-child(4) { display: none; }
}

@media (max-width: 360px) {
  /* Very smallest phones — last fallback */
  .container, .container-narrow { padding: 0 16px; }
}

/* =====================================================
   T25 — Landing mobile: consistent gutters + containment
   Every section already sits in `.container` (max-width + gutter).
   These rules close the two gaps that still let content cross the
   phone gutter: (a) display-heading clamp floors that never shrank
   below ~720px, and (b) wide preview mocks able to widen the page.
   Desktop (≥720px) layout is unchanged — heading maxes match the
   prior values at the 720px boundary; containment rules only ever
   prevent overflow, never expand anything that already fit.
   ===================================================== */

/* Hard containment net for the product-preview mocks. They are wide by
   nature and must clip/scroll INSIDE their framed card, never widen the
   page past the gutter. `min-width: 0` defeats the default
   `min-width: auto` that otherwise lets a grid/flex child grow to its
   content width and overflow the viewport (which `body { overflow-x:
   clip }` then silently cuts off at the right edge). */
.preview-frame, .preview-frame-v2, .module-deep-visual { max-width: 100%; }
.preview-body, .preview-main, .preview-stage { min-width: 0; max-width: 100%; }
.preview-body > * { min-width: 0; }
.mock-table-v2, .crm-kanban-v2 { max-width: 100%; }

@media (max-width: 720px) {
  /* Scale the large display headings on phones — parity with
     `.hero-title` / `.module-deep-title`, which already have mobile
     clamps. Their desktop clamp floors (48px / 40px) stayed fixed below
     ~720px, so long Ukrainian titles ("Прозорі ціни…", "Зроблено для
     українського бізнесу") ran into and clipped at the right gutter.
     Maxes equal the prior boundary values so tablet/desktop are intact. */
  .page-hero-title { font-size: clamp(30px, 8.4vw, 48px); }
  .section-head h2 { font-size: clamp(28px, 7.6vw, 40px); }

  /* Feature-detail (РАХУНКИ etc.) text column: free to shrink and wrap,
     so the "Статуси: …, Прострочено" line never forces overflow. */
  .module-deep-text { min-width: 0; }
  .module-deep-bullets li { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  /* Give the hero headline a little more clearance from the sticky
     header pill so its top edge isn't tucked underneath it. */
  .hero { padding-top: 48px; }
  .hero-title { scroll-margin-top: 88px; }
}

/* ============================================================
   Legal pages (/terms, /privacy, /user-agreement)
   ============================================================ */

.legal-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 0;
}
.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.legal-meta {
  font-size: 0.875rem;
  color: var(--c-ink-tertiary, #6b7280);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 90px;
}
.legal-toc-inner {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 20px;
}
.legal-toc-inner h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-tertiary, #6b7280);
  margin: 0 0 12px;
}
.legal-toc-inner ol {
  padding-left: 0;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc-inner ol li { counter-increment: toc; }
.legal-toc-inner ol li a {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-ink-secondary, #374151);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  line-height: 1.4;
}
.legal-toc-inner ol li a:hover {
  background: var(--c-line);
  color: var(--c-ink);
}

.legal-content { min-width: 0; }
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-line);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 16px;
}

.legal-placeholder {
  background: var(--c-yellow-bg, #FFF8D6);
  border: 1.5px dashed var(--c-yellow, #FFDD00);
  border-radius: 10px;
  padding: 24px;
  color: var(--c-ink-secondary, #374151);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.legal-placeholder-badge {
  background: var(--c-yellow, #FFDD00);
  color: var(--c-ink);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* cookie banner — appears on all marketing pages */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--c-ink, #0A1A3D);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
  flex-wrap: wrap;
}
.cookie-banner p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  min-width: 200px;
}
.cookie-banner a { color: var(--c-yellow, #FFDD00); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: var(--c-blue, #0057B7);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-reject {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-btn-reject:hover { color: #e5e7eb; }

@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-hero { padding: 56px 0 32px; }
}
@media (max-width: 480px) {
  .cookie-banner { bottom: 12px; width: calc(100% - 24px); }
}

/* ============================================================
   Support sub-site (/support) — FAQ + contact form (Task #5)
   ============================================================ */
.sup-faq .section-head { margin-bottom: 24px; }

.sup-search {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto 32px;
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 12px 18px;
  color: var(--c-mute);
}
.sup-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-display); font-size: 16px; color: var(--c-ink);
}
.sup-search input::placeholder { color: var(--c-mute); }

.sup-empty { text-align: center; color: var(--c-mute); padding: 24px 0; }

.sup-sections { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.sup-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--c-ink); margin-bottom: 12px;
}
.sup-section-ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--c-surface); color: var(--c-blue);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sup-faq-list { max-width: none; }

.sup-badge {
  display: inline-block; margin-right: 10px; margin-bottom: 6px;
  padding: 2px 9px; border-radius: 999px;
  background: var(--c-surface); color: var(--c-mute);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Contact form */
.sup-contact { max-width: 720px; }
.sup-form {
  max-width: 640px; margin: 0 auto;
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 28px;
}
.sup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sup-field { margin-bottom: 18px; }
.sup-field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; color: var(--c-ink); margin-bottom: 7px;
}
.sup-input, .sup-select, .sup-textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--c-line); border-radius: 12px;
  padding: 12px 14px; font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 15px; color: var(--c-ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sup-textarea { resize: vertical; min-height: 120px; }
.sup-input:focus, .sup-select:focus, .sup-textarea:focus {
  outline: none; border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.12);
}
.sup-hint {
  margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-mute);
  background: var(--c-surface); border-radius: 10px; padding: 10px 12px;
}

/* Honeypot — visually hidden, off the a11y tree, but present for bots. */
.sup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sup-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.sup-note { font-size: 13px; color: var(--c-mute); }
.sup-note a { color: var(--c-blue); text-decoration: none; }
.sup-note a:hover { text-decoration: underline; }

.sup-alert {
  display: flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
  font-size: 14px; font-weight: 500;
}
.sup-alert-ok  { background: #e9f9ef; color: #0f7a3d; }
.sup-alert-err { background: #fdecec; color: #b42318; }

@media (max-width: 560px) {
  .sup-row { grid-template-columns: 1fr; }
  .sup-form { padding: 20px; }
}
