/* ============================================================
   Вчасно — site styles (shared across pages)
   All raw colors/sizes live in tokens.css — reference tokens only.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-surface);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.geo { font-family: var(--font-display); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  padding: var(--btn-pad-y) var(--btn-pad-x); border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), background var(--dur), box-shadow var(--dur), color var(--dur), border-color var(--dur);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acid-glow); }
.btn--primary { background: var(--acid); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--acid-hover); box-shadow: var(--shadow-acid); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-33); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-text); }
.btn--white { background: var(--white); color: var(--ink); border-color: transparent; }
.btn--white:hover { background: var(--color-surface-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-5);
  height: var(--header-h);
}

/* apps / launcher grid icon (widest screens only) */
.apps {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--icon-btn); height: var(--icon-btn); flex: 0 0 auto;
  color: var(--color-text); background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: background var(--dur);
}
.apps:hover { background: var(--on-light-06); }
.apps:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acid-glow); }
.apps[aria-expanded="true"] { background: var(--on-light-06); }

/* apps launcher popover (product switcher) */
.apps-switcher { position: relative; flex: 0 0 auto; display: inline-flex; }
.apps-popover {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: var(--z-overlay);
  width: 460px; max-width: calc(100vw - var(--space-6));
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility var(--dur);
}
.apps-switcher.is-open .apps-popover { opacity: 1; visibility: visible; transform: translateY(0); }
.apps-popover__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.apps-popover__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.apps-popover__item {
  display: flex; align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur), box-shadow var(--dur),
              transform var(--dur) var(--ease-out);
}
.apps-popover__item:hover { border-color: var(--acid); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.apps-popover__item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acid-glow); }
.apps-popover__item img { height: 30px; width: auto; display: block; pointer-events: none; }
.apps-popover__footer {
  margin: var(--space-4) 0 0; padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs); color: var(--color-text-muted); text-align: center;
}
.apps-popover__footer a { color: var(--color-text); font-weight: var(--fw-semibold); text-decoration: none; }
.apps-popover__footer a:hover { color: var(--color-text-muted); }

/* logo lockup (includes the green БІЗНЕС badge) */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 28px; width: auto; }

/* primary nav (centered) */
.main-nav { margin-inline: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.main-nav a {
  position: relative; display: inline-block;
  color: var(--color-text); font-weight: var(--fw-medium); text-decoration: none;
  padding: 6px 2px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--acid); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav a:focus-visible { outline: none; }

/* right-side actions */
.header-actions { display: flex; align-items: center; gap: var(--space-4); flex: 0 0 auto; }
.link-login {
  color: var(--color-text); font-weight: var(--fw-semibold); text-decoration: none;
  padding: 8px 6px; border-radius: var(--radius-sm);
}
.link-login:hover { color: var(--color-text-muted); }
.link-login:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acid-glow); }

/* hamburger (mobile/tablet) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min); color: var(--color-text);
  background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
  transition: background var(--dur);
}
.nav-toggle:hover { background: var(--on-light-06); }
.nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--acid-glow); }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

/* mobile dropdown menu */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: var(--z-overlay);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) var(--container-pad) var(--space-6);
}
.site-header.is-open .mobile-menu { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-menu ul a {
  display: block; text-decoration: none; color: var(--color-text);
  font-weight: var(--fw-medium); font-size: var(--fs-lead);
  padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm);
}
.mobile-menu ul a:hover { background: var(--on-light-06); }
.mobile-menu__actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.mobile-menu__actions .btn { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .apps-switcher { display: none; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 560px) and (max-width: 1199px) {
  .mobile-menu__actions { display: none; }
}
@media (max-width: 559px) {
  .header-actions .btn--register { display: none; }
  .brand img { height: 24px; }
  .site-header__inner { gap: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark-bg);
  padding-top: clamp(1.5rem, 2.8vw, 2.8rem);
}
/* atmospheric glows */
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 90% 78% at 100% 0%,   rgba(131, 65, 193, .88) 0%, transparent 58%),
    radial-gradient(ellipse 42% 38% at 0%   0%,   var(--acid-glow-soft)   0%, transparent 55%),
    radial-gradient(ellipse 68% 60% at 0%  100%,  var(--acid-glow-strong) 0%, transparent 60%),
    radial-gradient(ellipse 36% 32% at 100% 100%, rgba(131, 65, 193, .55) 0%, transparent 55%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-10);
}

/* ---------- text (centred) ---------- */
.hero__text {
  width: 100%; max-width: 860px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-5); letter-spacing: .03em;
}
.hero__eyebrow-part { white-space: nowrap; }
.hero__eyebrow-sep {
  flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acid);
}
.hero__eyebrow-sep.is-hidden { display: none; }
.hero__heading {
  position: relative;
  isolation: isolate;
  font-size: clamp(1.85rem, 3.4vw, 3.4rem);
  font-weight: var(--fw-bold);
  color: var(--color-on-dark);
  line-height: 1.24;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.highlight {
  position: relative;
  display: inline-block;
  color: var(--color-on-accent);
  padding: 0 .12em;
}
.highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .05em -.05em;
  background: var(--acid);
  border-radius: 8px;
}
.hero__sub {
  font-size: clamp(var(--fs-body), 1.15vw, var(--fs-lead));
  color: var(--color-on-dark-muted);
  line-height: 1.45;
  max-width: 50ch;
  margin-bottom: var(--space-6);
}
.btn--hero-cta {
  font-size: clamp(var(--fs-body), 1.05vw, var(--fs-lead));
  padding: 14px 28px;
}

/* ---------- media (below text, centred) ---------- */
.hero__media {
  width: min(100%, 900px);
  position: relative;
}

.hero__screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px var(--on-dark-08);
}

/* ── phone mockup image ───────────────────────────────────── */
.hero__phone {
  position: absolute;
  bottom: -40px;
  right: -28px;
  width: clamp(126px, 19.5%, 200px);
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 56px rgba(0,0,0,.68)) drop-shadow(0 6px 16px rgba(0,0,0,.40));
  transform: rotate(4deg);
  transform-origin: bottom right;
}

@media (max-width: 899px) {
  .hero__phone { right: -10px; bottom: -24px; width: clamp(96px, 16%, 154px); }
}
@media (max-width: 559px) {
  .hero__phone { width: clamp(80px, 20vw, 118px); right: 2px; bottom: -16px; }
}

/* ============================================================
   FEATURES — НЕ ПРОСТО CRM
   ============================================================ */
.features {
  background: var(--color-surface);
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
}

.features__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.features__title {
  position: relative;
  isolation: isolate;
  flex: 0 1 52%;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text);
}
.features__sub {
  flex: 0 1 44%;
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-top: .3em;
}

/* grid: dark focus card + 2×2 cards */
.features__grid {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: var(--space-4);
  align-items: stretch;
}

/* ---- big dark focus card ---- */
.feat-focus {
  background:
    radial-gradient(ellipse 110% 55% at 100% 100%, rgba(131, 65, 193, .58) 0%, transparent 58%),
    radial-gradient(ellipse 70% 40% at 0% 85%, color-mix(in srgb, var(--pink) 42%, transparent) 0%, transparent 60%),
    var(--color-dark-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--color-on-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  overflow: hidden;
  position: relative;
}
.feat-focus__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}
.feat-focus__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  background: var(--color-on-dark-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  width: fit-content;
}
.feat-focus__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acid);
  flex-shrink: 0;
}
.feat-focus__heading {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--color-on-dark);
}
.feat-focus__body {
  font-size: var(--fs-body);
  color: var(--color-on-dark-muted);
  line-height: 1.55;
  max-width: 30ch;
}

/* UI mockup inside dark card */
.feat-focus__ui {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}
.ff-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.ff-avatars {
  display: flex;
}
.ff-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-dark-bg);
  margin-left: -9px;
  object-fit: cover;
  flex-shrink: 0;
}
.ff-avatars .ff-avatar:first-child { margin-left: 0; }

.ff-notify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-dark-surface);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-on-dark);
  white-space: nowrap;
}
.ff-notify__sub {
  color: var(--color-on-dark-muted);
  font-weight: var(--fw-regular);
}

/* bar chart inside dark card */
.ff-chart {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4) var(--space-3);
}
.ff-chart__header {
  margin-bottom: var(--space-2);
}
.ff-chart__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}
.ff-chart__area {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 80px;
}
.ff-chart__bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  gap: 4px;
}
.ff-chart__bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--acid);
  min-height: 4px;
  transition: opacity .2s;
}
.ff-chart__bar--active {
  background: var(--color-border);
  opacity: .75;
}
.ff-chart__name {
  font-size: 8.5px;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
  flex-shrink: 0;
}
/* tooltip bubble above active bar */
.ff-chart__tooltip {
  position: absolute;
  bottom: calc(30% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--color-text);
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
.ff-chart__tooltip b {
  color: var(--ink);
  display: block;
  font-weight: var(--fw-bold);
}
.ff-chart__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--white);
  filter: drop-shadow(0 1px 0 var(--color-border));
}
/* 5th chart bar shows only on desktop + large tablets; 4 bars below */
@media (max-width: 1023px) {
  .ff-chart__bar-col--xl { display: none; }
}

/* ---- 2×2 feature cards ---- */
.features__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.feat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--dur), transform var(--dur);
}
.feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--acid-glow-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.feat-card__title {
  font-size: var(--fs-lead);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text);
}
.feat-card__body {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---- features responsive ---- */
@media (max-width: 900px) {
  .features__header { flex-direction: column; gap: var(--space-4); }
  .features__title, .features__sub { flex: unset; }
  .features__sub { padding-top: 0; }
  .features__grid { grid-template-columns: 1fr; }
  .feat-focus__body { max-width: 100%; }
}
@media (max-width: 560px) {
  .features__cards { grid-template-columns: 1fr; }
  .features__header { margin-bottom: var(--space-8); }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 160% at 100% 50%, rgba(131, 65, 193, .72) 0%, transparent 52%),
    radial-gradient(ellipse 55% 120% at 0%   50%, var(--acid-glow-strong) 0%, transparent 55%),
    var(--color-dark-bg);
  padding-block: clamp(var(--space-5), 3vw, var(--space-6));
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-band__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 0;
  min-width: 0;
}

.cta-band__heading {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: var(--fw-bold);
  color: var(--color-on-dark);
  line-height: var(--lh-snug);
}

.cta-band__sub {
  font-size: var(--fs-lead);
  color: var(--color-on-dark-muted);
  line-height: 1.5;
}

.cta-band .btn--hero-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cta-band__inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-band .btn--hero-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   NICHES — ПІДХОДИТЬ ДЛЯ БІЗНЕСІВ
   ============================================================ */
.niches {
  background: var(--color-surface-2);
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
}

.niches__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.niches__title {
  position: relative;
  isolation: isolate;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-text);
}

.niches__sub {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 4-column grid, 2 rows = 8 slots */
.niches__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px;
  gap: var(--space-4);
}

/* ---- industry card ---- */
.niche-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow var(--dur), transform var(--dur);
}

.niche-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* New layout: text uses the full card width and the image only peeks
   from the bottom-right corner, so they no longer overlap.
   The veil is therefore only kept for the small single-column phone
   layout (re-enabled in the ≤560px query below). */
.niche-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-surface) 0%,
    var(--color-surface) 56%,
    color-mix(in srgb, var(--color-surface) 88%, transparent) 72%,
    color-mix(in srgb, var(--color-surface) 30%, transparent) 86%,
    transparent 96%
  );
  pointer-events: none;
  z-index: 1;
  display: none;
}

.niche-card__top {
  position: relative;
  z-index: 2;
  padding: var(--space-5) var(--space-5) var(--space-3) var(--space-5);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.niche-card__label {
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
  text-shadow: 0 0 6px var(--color-surface), 0 1px 2px var(--color-surface);
}

.niche-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  text-shadow: 0 0 6px var(--color-surface), 0 1px 2px var(--color-surface);
}

/* image: peeks from the bottom-right corner only (content hugs the
   corner via object-position, so the text above stays clear) */
.niche-card__img-wrap {
  position: absolute;
  bottom: -6px;
  right: -8px;
  width: 48%;
  height: 64%;
  z-index: 0;
  pointer-events: none;
}

.niche-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  transform: rotate(3deg) translateY(4px);
  transform-origin: bottom right;
  transition: transform calc(var(--dur) * 1.5) var(--ease-out);
}

.niche-card:hover .niche-card__img-wrap img {
  transform: rotate(1deg) translateY(0px) scale(1.04);
}

/* ---- CTA card (dark, no image) ---- */
.niche-card--cta {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--pink) 28%, var(--color-dark-bg)) 0%,
    color-mix(in srgb, var(--pink) 12%, var(--color-dark-bg)) 40%,
    var(--color-dark-bg) 75%);
  border: 1.5px solid var(--pink-glow);
  box-shadow: 0 0 0 1px var(--pink-glow), 0 8px 40px var(--pink-glow);
  text-align: left;
  justify-content: flex-start;
}

.niche-card--cta:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.niche-card__cta-heading {
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  font-weight: var(--fw-bold);
  color: var(--color-on-dark);
  line-height: var(--lh-snug);
}

.niche-card--cta .niche-card__desc {
  color: var(--color-on-dark-muted);
  text-shadow: none;
}

/* ---- CTA card: full-card link, override gradient + text width ---- */
.niche-card--cta::after { display: none; }
.niche-card--cta .niche-card__top { max-width: 100%; }
.niche-card--cta { text-decoration: none; cursor: pointer; }

/* arrow circle — bottom-right corner */
.niche-card__arrow {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--acid);
  border: 1.5px solid var(--acid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.niche-card--cta:hover .niche-card__arrow {
  background: var(--acid-hover);
  border-color: var(--acid-hover);
  transform: translate(3px, -3px);
  box-shadow: var(--shadow-acid);
}

/* ── Mobile: left-align section h2 + description ── */
@media (max-width: 680px) {
  .hero__text {
    text-align: left;
    align-items: flex-start;
  }
  .niches__header {
    text-align: left;
    margin-inline: 0;
  }
}

/* niches title highlight — inline on mobile to avoid full-width stretch */
@media (max-width: 600px) {
  .niches__title .highlight {
    display: inline;
    background: var(--acid);
    border-radius: 6px;
    padding: .05em .12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .niches__title .highlight::before { display: none; }
}

/* ---- niches responsive ---- */
@media (max-width: 1100px) {
  .niches__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; }
  .niche-card__label { font-size: 0.875rem; }
}
@media (max-width: 720px) {
  .niches__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 205px; }
  .niche-card__img-wrap { width: 53%; right: -8px; }
}
@media (max-width: 560px) {
  /* single column — phones: keep the readability veil + larger image */
  .niches__grid { grid-template-columns: 1fr; grid-auto-rows: 155px; }
  .niche-card:not(.niche-card--cta)::after { display: block; }
  .niche-card__top { max-width: 74%; }
  .niche-card__img-wrap { width: 44%; right: -8px; height: 90%; }
  .niche-card--cta .niche-card__top { max-width: 100%; }
}

/* ================================================================
   Features Full — Cabinet + App
   ================================================================ */

/* ── Section wrapper ── */
.ff {
  background: var(--color-dark-bg);
}

/* ── Shared header ── */
.ff__header {
  margin-bottom: var(--space-8);
  max-width: 640px;
}
.ff__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: var(--space-3);
}
.ff__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-on-dark);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
}
.ff__sub {
  font-size: var(--fs-lead);
  color: var(--color-on-dark-muted);
  line-height: var(--lh-normal);
}

/* ── Cabinet sub-section ── */
.ff-cabinet {
  padding: clamp(var(--space-10), 7vw, var(--space-12)) 0 clamp(var(--space-8), 5vw, var(--space-10));
}

/* ── Bento grid ── */
.ff-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px;
  grid-auto-rows: 380px;
  gap: var(--space-4);
}
.ff-card--wide { grid-column: span 2; }

/* ── Feature card ── */
.ff-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--dur), background var(--dur);
}
.ff-card:hover {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
}
.ff-card__body {
  padding: var(--space-5) var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ff-card__cat {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--acid);
}
.ff-card__title {
  font-size: clamp(.95rem, 1.2vw, 1.125rem);
  font-weight: var(--fw-bold);
  color: var(--color-on-dark);
  line-height: var(--lh-snug);
}
.ff-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-on-dark-muted);
  line-height: var(--lh-normal);
}

/* ── Screenshot placeholder ── */
.ff-card__screen {
  flex: 1;
  min-height: 135px;
  margin: 0 var(--space-4) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ff-card--wide .ff-card__screen { min-height: 180px; }

/* ── Real screenshot image inside screen area ── */
.ff-card__screen--has-img {
  background: transparent;
  border: none;
  padding: 0;
  align-items: stretch;
}
.ff-card__screen--has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
  border-radius: var(--radius-md);
}
.ff-card__screen-ph {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .2);
  letter-spacing: .05em;
  text-align: center;
  padding: var(--space-4);
}

/* ── Acid accent card ── */
.ff-card--acid {
  background: var(--acid);
  border-color: transparent;
}
.ff-card--acid:hover { background: var(--acid-hover); border-color: transparent; }
.ff-card--acid .ff-card__cat { color: rgba(14,14,14,.55); }
.ff-card--acid .ff-card__title  { color: var(--ink); }
.ff-card--acid .ff-card__desc   { color: rgba(14,14,14,.65); }

/* ── Light (white) card ── */
.ff-card--light {
  background: var(--white);
  border-color: rgba(14, 14, 14, .08);
}
.ff-card--light:hover {
  background: var(--white);
  border-color: rgba(14, 14, 14, .16);
}
.ff-card--light .ff-card__cat   { color: var(--color-text-muted); }
.ff-card--light .ff-card__title { color: var(--ink); }
.ff-card--light .ff-card__desc  { color: var(--color-text-muted); }

/* ── Pink accent card ── */
.ff-card--pink {
  background: var(--pink);
  border-color: transparent;
}
.ff-card--pink:hover { background: var(--pink-hover); border-color: transparent; }
.ff-card--pink .ff-card__cat   { color: rgba(255,255,255,.6); }
.ff-card--pink .ff-card__title { color: var(--white); }
.ff-card--pink .ff-card__desc  { color: rgba(255,255,255,.7); }
.ff-card__screen--ink {
  background: rgba(14,14,14,.08);
  border-color: rgba(14,14,14,.15);
}
.ff-card__screen-ph--ink { color: rgba(14,14,14,.35); }

/* ================================================================
   App sub-section
   ================================================================ */
.ff-app {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: clamp(var(--space-8), 5vw, var(--space-10)) 0 clamp(var(--space-10), 7vw, var(--space-12));
}
.ff-app__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10);
  align-items: center;
}

/* ── Phone mockup ── */
.ff-app__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ff-app__shot {
  width: 100%;
  max-width: 288px;
  height: auto;
  display: block;
}

/* ── App content ── */
.ff-app__em {
  font-style: normal;
  color: inherit;
}
.ff-app__roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: var(--space-6) var(--space-8);
  margin: var(--space-6) 0;
}
.ff-app__role-ttl {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  margin-bottom: var(--space-3);
}
.ff-app__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ff-app__dot--acid { background: var(--acid); }
.ff-app__dot--pink { background: var(--pink); }
.ff-app__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ff-app__list li {
  font-size: var(--fs-sm);
  color: var(--color-on-dark-muted);
  line-height: var(--lh-normal);
  padding-left: var(--space-4);
  position: relative;
}
.ff-app__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

/* ── Store buttons ── */
.ff-app__stores {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.ff-store-badge {
  display: inline-block;
  opacity: 1;
  transition: opacity var(--dur);
}
.ff-store-badge:hover { opacity: .82; }
.ff-store-badge img { display: block; width: 135px; height: 40px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ff-bento { grid-template-columns: repeat(2, 1fr); }
  .ff-card--wide { grid-column: span 1; }
  .ff-card--wide.ff-card--acid { grid-column: span 2; }
}
@media (max-width: 680px) {
  .ff-app__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .ff-app__mockup { order: -1; }
  .ff-app__shot { width: 210px; }
}
@media (max-width: 720px) {
  .ff-bento { grid-template-columns: 1fr; grid-template-rows: auto; grid-auto-rows: auto; }
  .ff-card--wide,
  .ff-card--wide.ff-card--acid { grid-column: span 1; }
  .ff-app__roles { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ========== Consultation dialog ========== */
.consult-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  box-shadow: 0 24px 72px rgba(14,14,14,.22), 0 4px 16px rgba(14,14,14,.10);
  background: var(--color-surface);
  /* center in viewport — required for Safari */
  position: fixed;
  inset: 0;
  margin: auto;
}
.consult-dialog:not([open]) { display: none; }
.consult-dialog::backdrop {
  background: rgba(14, 14, 14, .6);
  backdrop-filter: blur(5px);
}
.consult-dialog__inner {
  position: relative;
  padding: 2.5rem 2.5rem 2rem;
}
.consult-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
  flex-shrink: 0;
}
.consult-dialog__close:hover {
  background: var(--color-bg);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.consult-dialog__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.consult-dialog__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-2);
}
.consult-dialog__sub {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-5);
}

/* form grid: 2 cols on wide, 1 col on mobile */
.consult-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-4);
}
.consult-form__field {
  display: none;            /* shown only when active (toggled per data-fpopup-fields) */
  flex-direction: column;
  gap: 6px;
}
.consult-form__field--active {
  display: flex;
}
.consult-form__field--full {
  grid-column: 1 / -1;
}
.consult-form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}
.consult-form__label--req::after {
  content: ' *';
  color: var(--error);
}
.consult-form__input {
  height: 48px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.consult-form__input::placeholder { color: var(--color-text-muted); }
.consult-form__input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acid) 25%, transparent);
}
.consult-form__input--error {
  border-color: var(--error) !important;
}
.consult-form__input--error:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 18%, transparent);
}
.consult-form__error {
  font-size: var(--fs-xs);
  color: var(--error-ink);
  margin-top: 2px;
}
.consult-form__submit {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  background: var(--acid);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  cursor: pointer;
  height: 52px;
  width: 100%;
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
}
.consult-form__submit:hover {
  background: var(--acid-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-acid);
}
.consult-form__submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* success state */
.consult-dialog__success[hidden] { display: none; }
.consult-dialog__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4) var(--space-5);
  gap: var(--space-3);
  min-height: 260px;
  justify-content: center;
}
.consult-success__icon svg { display: block; }
.consult-success__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-snug);
}
.consult-success__text {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}

@media (max-width: 540px) {
  /* Top-centered popup: horizontally centered, pinned near the top. */
  .consult-dialog {
    border-radius: var(--radius-lg);
    inset: 1rem 0 auto 0;
    margin: 0 auto;
    width: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
  }
  .consult-dialog__inner { padding: 2rem 1.5rem 1.5rem; }
  .consult-form { grid-template-columns: 1fr; }
  .consult-form__field--full { grid-column: 1; }
}

/* ---------- hero responsive ---------- */
@media (max-width: 899px) {
  .hero { padding-top: var(--space-8); }
  .hero__inner { gap: var(--space-8); }
  .hero__media { width: 100%; }
}
@media (max-width: 559px) {
  .hero__eyebrow { flex-direction: column; gap: var(--space-1); }
  .hero__eyebrow-sep { display: none !important; }
  .hero__heading { font-size: clamp(1.65rem, 6.5vw, 2.1rem); }
}

/* ============================================================
   ANALYTICS MOCK
   ============================================================ */
.ff-card__screen--mock {
  padding: 0;
  display: flex;
  border: none;
  background: transparent;
  min-height: 0;
  flex: 1;
}
.ff-card__screen--screenshot {
  padding: var(--space-2) var(--space-3) 0;
  margin: 0;
  border: none;
  background: transparent;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 0;
}
.ff-card__screenshot {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 240px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
}
.ff-card__screenshot--calendar {
  height: 170px;
  max-width: 300px;
  object-position: center center;
}
/* Calendar card: center the illustration strictly between the text and the
   card's bottom edge (vertically + horizontally), with symmetric breathing room. */
.ff-card__screen--screenshot:has(.ff-card__screenshot--calendar) {
  align-items: center;
  padding-block: var(--space-5);
}
.ff-card__screenshot--printer {
  max-width: 220px;
  height: 180px;
  object-position: center center;
  transform: scaleX(-1);
}
.ff-card__screen--centered {
  align-items: center;
  justify-content: center;
  padding-bottom: var(--space-6);
}
.ff-card--pink .ff-card__screenshot {
  max-width: 310px;
  height: 230px;
  object-position: center center;
  transform: scaleX(-1);
}
.ff-card--pink .ff-card__body {
  padding-bottom: var(--space-2);
}
.ff-card--pink .ff-card__screen--screenshot {
  padding: var(--space-3) var(--space-4) var(--space-4);
  align-items: center;
}
.ff-analytics-mock {
  background: transparent;
  border-radius: var(--radius-md);
  width: 100%;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
  flex: 1;
  align-self: stretch;
}
.ff-analytics-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ff-analytics-mock__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}
.ff-analytics-mock__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
}
.ff-analytics-mock__date {
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.ff-analytics-mock__btn {
  color: var(--ink);
  font-weight: var(--fw-medium);
  background: var(--color-surface-2);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.ff-analytics-mock__grid {
  display: flex;
  gap: var(--space-3);
  flex: 1;
  overflow-x: auto;
  align-items: stretch;
}
.ff-analytics-mock__grid::-webkit-scrollbar {
  display: none;
}
.ff-analytics-mock__kpi {
  flex: 1;
  min-width: 120px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
}
.ff-analytics-mock__kpi--active {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ff-analytics-mock__kpi--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--acid);
  border-radius: 2px 0 0 2px;
}
.ff-analytics-mock__kpi-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .02em;
}
.ff-analytics-mock__kpi-val {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* SVG sparkline */
.ff-spark {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 32px;
  margin-top: var(--space-2);
  overflow: visible;
}
.ff-spark__line {
  fill: none;
  stroke: var(--acid);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ff-spark__fill {
  fill: var(--acid-glow-soft);
  stroke: none;
}

/* ============================================================
   RECEIPTS MOCK (Продаж — таблиця чеків)
   ============================================================ */
.ff-receipts-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ff-receipts-mock__head {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  gap: var(--space-3);
}
.ff-receipts-mock__head span {
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ff-receipts-mock__head span:nth-child(2) {
  text-align: center;
}
.ff-receipts-mock__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  padding: 9px 14px;
  gap: var(--space-3);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast);
}
.ff-receipts-mock__row:last-child { border-bottom: none; }
.ff-receipts-mock__row--dim { opacity: .45; }
.ff-receipts-mock__date {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--ink);
  line-height: 1.25;
}
.ff-receipts-mock__date span {
  font-size: 10px;
  font-weight: var(--fw-regular);
  color: var(--muted);
}
.ff-receipts-mock__sum {
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  font-family: var(--font-display);
  text-align: center;
}
.ff-receipts-mock__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px 3px 7px;
  white-space: nowrap;
}
.ff-receipts-mock__badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.ff-receipts-mock__badge--return span {
  background: var(--warning);
}

/* ============================================================
   CLIENT MOCK (Клієнти — картка клієнта)
   ============================================================ */
.ff-client-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  gap: var(--space-3);
}
.ff-client-mock__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.ff-client-mock__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3BBFB2;
  color: var(--white);
  font-size: 13px;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.ff-client-mock__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ff-client-mock__name {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: 1.2;
}
.ff-client-mock__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ff-client-mock__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 9px 2px 7px;
  white-space: nowrap;
}
.ff-client-mock__tag i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  font-style: normal;
  flex-shrink: 0;
}
.ff-client-mock__tag--active i { background: var(--success); }
.ff-client-mock__tag--lead   i { background: var(--warning); }
.ff-client-mock__tag--vip    i { background: #7B7B8A; }

.ff-client-mock__divider {
  height: 1px;
  background: var(--line);
  margin: 0 calc(-1 * var(--space-4));
}
.ff-client-mock__section-label {
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ff-client-mock__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
}
.ff-client-mock__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ff-client-mock__field-label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.ff-client-mock__field-val {
  font-size: 11px;
  color: var(--ink);
  font-weight: var(--fw-regular);
}
.ff-client-mock__field-val--sm {
  font-size: 9.5px;
  word-break: break-all;
}

/* ============================================================
   APPOINTMENTS MOCK (Записи — стопка карток)
   ============================================================ */
.ff-appt-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: transparent;
  padding: var(--space-4);
  gap: var(--space-3);
}
.ff-appt-mock__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ff-appt-mock__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 11px;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ff-appt-mock__avatar--photo {
  object-fit: cover;
}
.ff-appt-mock__name {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.2;
}
.ff-appt-mock__count {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* ── Стопка ── */
.ff-appt-mock__stack {
  position: relative;
  flex: 1;
  min-height: 100px;
}
.ff-appt-mock__card {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: none;
}
.ff-appt-mock__card--1 { top: 0;    z-index: 2; }
.ff-appt-mock__card--2 { top: 56px; z-index: 1; background: rgba(255,255,255,.04); }

.ff-appt-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ff-appt-mock__dot--blue { background: #6B9FFF; }
.ff-appt-mock__dot--grey { background: rgba(255,255,255,.35); }

.ff-appt-mock__client {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--white);
  line-height: 1.2;
}
.ff-appt-mock__time {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* ============================================================
   BOOKING MOCK (Онлайн-запис — вибір спеціаліста)
   ============================================================ */
.ff-booking-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  gap: var(--space-4);
}
.ff-booking-mock__title {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: 1.2;
  font-family: var(--font-display);
}
.ff-booking-mock__sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}
.ff-booking-mock__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.ff-booking-mock__card {
  display: flex;
  gap: var(--space-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  flex-direction: column;
  align-items: flex-start;
}
.ff-booking-mock__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ff-booking-mock__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ff-booking-mock__name {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: 1.2;
}
.ff-booking-mock__spec {
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  color: var(--ink);
}
.ff-booking-mock__desc {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.ff-booking-mock__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.ff-booking-mock__rating span {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.ff-booking-mock__dot {
  color: var(--muted) !important;
  font-weight: var(--fw-regular) !important;
}
.ff-booking-mock__reviews {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted) !important;
  font-weight: var(--fw-regular) !important;
  font-size: 10px !important;
}

/* ============================================================
   FINANCE MOCK (Фінанси — баланс місяця)
   ============================================================ */
.ff-finance-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: transparent;
  padding: var(--space-4);
  gap: var(--space-3);
}
.ff-finance-mock__period {
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.ff-finance-mock__balance {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ff-finance-mock__balance-label {
  font-size: 10px;
  color: rgba(255,255,255,.5);
}
.ff-finance-mock__balance-val {
  font-size: 22px;
  font-weight: var(--fw-bold);
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.1;
}
.ff-finance-mock__rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ff-finance-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ff-finance-mock__row-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ff-finance-mock__arrow {
  font-size: 13px;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.ff-finance-mock__arrow--up   { color: var(--success); }
.ff-finance-mock__arrow--down { color: var(--error); }
.ff-finance-mock__row-label {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,.8);
}
.ff-finance-mock__row-val {
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
}
.ff-finance-mock__row-val--income { color: #5EE89A; }
.ff-finance-mock__row-val--expense { color: #FF8080; }
.ff-finance-mock__bar-wrap {
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 4px;
}
.ff-finance-mock__bar {
  height: 100%;
  border-radius: var(--radius-pill);
}
.ff-finance-mock__bar--income  { background: var(--success); }
.ff-finance-mock__bar--expense { background: var(--error); }

/* ============================================================
   PAYROLL MOCK (Зарплата — відомість)
   ============================================================ */
.ff-payroll-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ff-payroll-mock__head {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.ff-payroll-mock__head span {
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ff-payroll-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}
.ff-payroll-mock__person {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-payroll-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ff-payroll-mock__name {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  line-height: 1.2;
}
.ff-payroll-mock__role {
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 1px;
}
.ff-payroll-mock__amount {
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  font-family: var(--font-display);
}
.ff-payroll-mock__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: var(--bg);
}
.ff-payroll-mock__total span:first-child {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ff-payroll-mock__total span:last-child {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  font-family: var(--font-display);
}

/* ========== Social proof: testimonials + stats ========== */
.ff-social {
  background: var(--bg);
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
}
.ff-social__inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-5);
  align-items: stretch;
}

/* ── Testimonials card ── */
.ff-testi {
  background: linear-gradient(to bottom, #1E1E21 0%, #8341C1 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(131,65,193,.20);
}
.ff-testi__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--acid);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  align-self: flex-start;
  margin-bottom: var(--space-8);
}
.ff-testi__qq {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-size: 88px;
  line-height: 1;
  color: rgba(255,255,255,.28);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  pointer-events: none;
  user-select: none;
}
.ff-testi__quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.ff-testi__text {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  color: var(--white);
  margin: 0 0 var(--space-6);
  transition: opacity .22s var(--ease-out);
}
.ff-testi__text.is-fading { opacity: 0; }
.ff-testi__author {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  transition: opacity .22s var(--ease-out);
}
.ff-testi__author.is-fading { opacity: 0; }
.ff-testi__author strong {
  color: var(--white);
  font-weight: var(--fw-semibold);
}
.ff-testi__dots {
  display: flex;
  gap: 6px;
  margin-top: var(--space-6);
}
.ff-testi__dot {
  width: 20px;
  height: 5px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur), width var(--dur);
}
.ff-testi__dot--active {
  background: var(--white);
  width: 28px;
}

/* ── Stats grid ── */
.ff-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.ff-stats__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ff-stats__item--acid {
  background: var(--acid);
  border-color: transparent;
}
.ff-stats__item--acid .ff-stats__num {
  color: var(--ink);
}
.ff-stats__item--acid .ff-stats__lbl {
  color: var(--ink);
}
.ff-stats__item--acid .ff-stats__sub {
  color: rgba(30,30,33,.6);
}
.ff-stats__item--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-8);
  align-items: center;
}
.ff-stats__num {
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  font-weight: var(--fw-black);
  font-family: var(--font-display);
  color: var(--acid);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
}
.ff-stats__item--wide .ff-stats__num {
  margin: 0;
}
.ff-stats__sfx {
  font-size: .42em;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  color: var(--muted);
}
.ff-stats__lbl {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}
.ff-stats__sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.ff-stats__wide-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ── Social proof responsive ── */
@media (max-width: 900px) {
  .ff-social__inner { grid-template-columns: 1fr; }
  .ff-testi { height: auto; min-height: 260px; }
}
@media (max-width: 480px) {
  .ff-stats { grid-template-columns: 1fr; }
  .ff-stats__item--wide {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.ff-pricing {
  background:
    radial-gradient(ellipse 700px 500px at 90% 8%,  rgba(187,227,11,.10) 0%, transparent 65%),
    radial-gradient(ellipse 600px 500px at 5%  92%, rgba(131,65,193,.22)  0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 50% 110%, rgba(131,65,193,.10) 0%, transparent 70%),
    var(--ink);
  padding-block: clamp(var(--space-10), 9vw, var(--space-16));
  overflow: hidden;
  position: relative;
}

/* ghost ₴0 watermark */
.ff-pricing::before {
  content: '₴0';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(220px, 38vw, 520px);
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ff-pricing__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Left: intro ── */
.ff-pricing__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-dark-50);
  margin-bottom: var(--space-5);
}

.ff-pricing__heading {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin: 0 0 var(--space-6) 0;
}

.ff-pricing__scarcity {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--acid);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-5);
  box-shadow: 0 0 0 0 rgba(187,227,11,.5);
  animation: pricing-badge-pulse 2.8s ease-out infinite;
}

.ff-pricing__scarcity::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .6;
  animation: dot-pulse 2.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1);   opacity: .6; }
  50%       { transform: scale(1.5); opacity: 1;  }
}

.ff-pricing__scarcity strong { font-weight: var(--fw-bold); }

@keyframes pricing-badge-pulse {
  0%   { box-shadow: 0 0 0  0   rgba(187,227,11,.50); }
  60%  { box-shadow: 0 0 0 10px rgba(187,227,11,.00); }
  100% { box-shadow: 0 0 0  0   rgba(187,227,11,.00); }
}

.ff-pricing__sub {
  color: var(--on-dark-50);
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ── Right: card ── */
.ff-pricing__card {
  background: linear-gradient(165deg, rgba(187,227,11,.07) 0%, var(--ink-2b) 38%);
  border: 1px solid rgba(187,227,11,.18);
  border-top: 2px solid var(--acid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow:
    0 0  80px rgba(187,227,11,.08),
    0 32px 80px rgba(0,0,0,.45);
}

.ff-pricing__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.ff-pricing__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(187,227,11,.12);
  border: 1px solid rgba(187,227,11,.25);
  color: var(--acid);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: .01em;
}

.ff-pricing__free-until {
  font-size: var(--fs-xs);
  color: var(--on-dark-40);
  font-weight: var(--fw-medium);
  letter-spacing: .02em;
}

.ff-pricing__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  line-height: 1;
}

.ff-pricing__amount {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: var(--fw-black);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  text-shadow: 0 0 16px rgba(187,227,11,.75), 0 0 36px rgba(187,227,11,.28);
}

.ff-pricing__slash {
  color: var(--on-dark-40);
  font-size: 1.5rem;
}

.ff-pricing__until {
  color: var(--on-dark-50);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.ff-pricing__after {
  margin: calc(-1 * var(--space-3)) 0 0;
  color: var(--on-dark-40);
  font-size: var(--fs-sm);
}

.ff-pricing__after-price {
  color: var(--pink);
  font-weight: var(--fw-semibold);
}

/* features list */
.ff-pricing__features {
  list-style: none;
  padding: var(--space-5) 0 0;
  margin: 0;
  border-top: 1px solid var(--on-dark-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-5);
}

.ff-pricing__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--on-dark-60);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  padding-left: 22px;
  position: relative;
}

.ff-pricing__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='7' fill='%23BBE30B'/%3E%3Cpolyline points='3.5,7.5 5.8,10 10.5,4.5' stroke='%231E1E21' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* full access line */
.ff-pricing__full-access {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark-70, rgba(255,255,255,.7));
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  padding: var(--space-5) 0 0;
  margin: 0;
  border-top: 1px solid var(--on-dark-10);
}

.ff-pricing__full-access::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23BBE30B'/%3E%3Cpolyline points='4.5,9.5 7.5,12.5 13.5,6' stroke='%231E1E21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* kasa note */
.ff-pricing__kasa {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--on-dark-06);
  border: 1px solid var(--on-dark-10);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--on-dark-40);
  font-size: var(--fs-xs);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.ff-pricing__kasa svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--on-dark-40);
}

/* CTA */
.ff-pricing__cta {
  width: 100%;
  padding: 15px var(--space-6);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  justify-content: center;
  margin-top: var(--space-2);
  position: relative;
  overflow: hidden;
}

.ff-pricing__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: pricing-shimmer 3.5s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}

@keyframes pricing-shimmer {
  0%        { transform: translateX(-120%); }
  45%, 100% { transform: translateX(140%); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ff-pricing__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .ff-pricing__heading {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    margin-bottom: 0;
  }
}
@media (max-width: 900px) and (min-width: 581px) {
  .ff-pricing__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-8);
    row-gap: var(--space-4);
    align-items: start;
  }
  .ff-pricing__heading  { grid-column: 1; grid-row: 1; }
  .ff-pricing__scarcity { grid-column: 1; grid-row: 2; align-self: start; }
  .ff-pricing__sub      { grid-column: 2; grid-row: 1 / 3; align-self: start; margin: 0; }
}

@media (max-width: 560px) {
  .ff-pricing__card { padding: var(--space-6) var(--space-5); }
  .ff-pricing__features { grid-template-columns: 1fr; }
}

/* ============================================================
   MIGRATION STRIP
   ============================================================ */
.ff-migrate {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--acid) 0%, #ffffff 68%);
  padding-block: clamp(var(--space-5), 3vw, var(--space-6));
}

.ff-migrate__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.ff-migrate__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 0;
  min-width: 0;
}

.ff-migrate__title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin: 0;
  line-height: var(--lh-snug);
}

.ff-migrate__sub {
  font-size: var(--fs-lead);
  color: rgba(30, 30, 33, .65);
  line-height: var(--lh-normal);
  margin: 0;
}

.ff-migrate__btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ff-migrate__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ff-migrate__btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.ff-faq {
  background: var(--bg);
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
}

.ff-faq__inner {
  display: grid;
  grid-template-columns: 1fr min(540px, 100%);
  gap: var(--space-8) clamp(var(--space-8), 6vw, var(--space-10));
  align-items: start;
}

.ff-faq__header {
  position: sticky;
  top: calc(var(--header-h, 64px) + var(--space-6));
}

.ff-faq__heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-4);
}

.ff-faq__sub {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.ff-faq__support-link {
  color: var(--ink);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--acid);
  transition: color var(--dur) var(--ease-out);
}
.ff-faq__support-link:hover { color: var(--pink); text-decoration-color: var(--pink); }

/* ── accordion list ── */
.ff-faq__list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: color var(--dur) var(--ease-out);
}
.faq-item__trigger:hover { color: var(--ink); }
.faq-item__trigger:focus-visible { outline: none; }
.faq-item__trigger:focus-visible .faq-item__icon { box-shadow: 0 0 0 3px var(--acid-glow); }

.faq-item__q {
  font-size: clamp(var(--fs-body), 1.1vw, var(--fs-lead));
  font-weight: var(--fw-semibold);
  color: var(--ink);
  line-height: var(--lh-snug);
  flex: 1;
  transition: color var(--dur) var(--ease-out);
}
.faq-item__trigger[aria-expanded="true"] .faq-item__q { color: var(--ink); }

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.faq-item__icon::before { width: 12px; height: 2px; }
.faq-item__icon::after  { width: 2px; height: 12px; }

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  background: var(--acid);
  transform: rotate(45deg);
}
.faq-item__trigger[aria-expanded="true"] .faq-item__icon::before,
.faq-item__trigger[aria-expanded="true"] .faq-item__icon::after {
  background: var(--ink);
}

.faq-item__body {
  overflow: hidden;
}
.faq-item__body p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  max-width: 52ch;
}

/* height animation via JS-driven max-height */
.faq-item__body.is-animating {
  display: block !important;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

@media (max-width: 800px) {
  .ff-faq__inner {
    grid-template-columns: 1fr;
  }
  .ff-faq__header {
    position: static;
  }
}

/* ============================================================
   ONBOARDING STEPS  (#yak-pochaty)
   ============================================================ */
.ff-onboard {
  position: relative;
  background:
    radial-gradient(ellipse 620px 460px at 4% 2%,    var(--pink-glow-soft) 0%, transparent 60%),
    radial-gradient(ellipse 680px 520px at 98% 100%, var(--pink-glow-soft) 0%, transparent 62%),
    radial-gradient(ellipse 560px 420px at 72% 6%,   var(--pink-glow-soft) 0%, transparent 60%),
    radial-gradient(ellipse 540px 400px at 22% 104%, var(--pink-glow-soft) 0%, transparent 62%),
    var(--color-surface-2);
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
}

/* ── header ── */
.ff-onboard__header {
  max-width: 640px;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-10));
}

.ff-onboard__heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: 1.24;
  margin-bottom: var(--space-3);
  position: relative;
  isolation: isolate;
}

.ff-onboard__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

/* ── vertical timeline ── */
.ff-onboard__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: clamp(var(--space-6), 5vw, var(--space-8));
}

/* horizontal connector line between steps */
.ff-onboard__steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(20px + 1px);
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--acid) 0%, rgba(187,227,11,.15) 100%);
  z-index: 0;
}

.ff-onboard__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-right: var(--space-6);
  z-index: 1;
}

/* ── node: number circle ── */
.ff-onboard__node {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ff-onboard__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(187,227,11,.15);
  animation: node-pulse 2.8s ease-out infinite;
}

@keyframes node-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(187,227,11,.55); }
  60%  { box-shadow: 0 0 0 10px rgba(187,227,11,.0); }
  100% { box-shadow: 0 0 0 0   rgba(187,227,11,.0);  }
}

.ff-onboard__step:nth-child(1) .ff-onboard__num { animation-delay: 0s;    }
.ff-onboard__step:nth-child(2) .ff-onboard__num { animation-delay: 0.7s;  }
.ff-onboard__step:nth-child(3) .ff-onboard__num { animation-delay: 1.4s;  }
.ff-onboard__step:nth-child(4) .ff-onboard__num { animation-delay: 2.1s;  }

/* ── step content ── */
.ff-onboard__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ff-onboard__step-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--ink);
  line-height: var(--lh-snug);
}

.ff-onboard__step-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}


@media (max-width: 760px) {
  .ff-onboard__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ff-onboard__steps::before {
    top: 20px;
    bottom: 20px;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--acid) 0%, rgba(187,227,11,.15) 100%);
  }
  .ff-onboard__step {
    flex-direction: row;
    align-items: flex-start;
    padding-right: 0;
    padding-bottom: var(--space-6);
    gap: var(--space-5);
  }
  .ff-onboard__node { padding-top: 2px; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--color-on-dark);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block: clamp(var(--space-8), 6vw, var(--space-10));
  flex-wrap: wrap;
}

/* ── brand ── */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 280px;
}

.site-footer__logo-link {
  display: inline-block;
  line-height: 0;
}

.site-footer__tagline {
  font-size: var(--fs-sm);
  color: var(--color-on-dark-muted);
  line-height: var(--lh-relaxed);
}

/* ── nav links ── */
.site-footer__nav { display: flex; }

.site-footer__links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-8);
}

.site-footer__links li:nth-child(n+5) { margin-block-start: var(--space-4); }

.site-footer__links li a {
  font-size: var(--fs-body);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.site-footer__links li a:hover { color: var(--white); }

/* ── contacts ── */
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-footer__contacts-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}
.site-footer__contacts-list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.site-footer__contacts-list li a {
  font-size: var(--fs-body);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.site-footer__contacts-list li a:hover { color: var(--white); }

/* ── bottom bar ── */
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-5);
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
}
.site-footer__copy a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.site-footer__copy a:hover { color: var(--white); }

.site-footer__legal {
  display: flex;
  gap: var(--space-3) var(--space-5);
  flex-wrap: wrap;
}
.site-footer__legal a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.site-footer__legal a:hover { color: var(--white); }

.site-footer__apps {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.site-footer__app-badge {
  opacity: .6;
  transition: opacity var(--dur) var(--ease-out);
  line-height: 0;
  display: block;
}
.site-footer__app-badge:hover { opacity: 1; }
.site-footer__app-badge img { height: 32px; width: auto; }

@media (max-width: 640px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__brand { max-width: 100%; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}
