/* ============================================================
   ClickLoom Landing V2 — layout & sections (RTL, Farsi-first)
   Braze-inspired flow: sticky glass nav → cinematic hero →
   logo ticker → pillar trio → feature mosaic → control →
   channels → testimonials → demo CTA → footer.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.5; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 44px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 10px; z-index: 80;
  width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(227, 233, 242, 0.9);
  box-shadow: 0 14px 34px -22px rgba(12, 22, 38, 0.35);
}
.site-nav {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 14px; min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand .brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 19px; color: var(--night);
}
.site-links { display: flex; gap: 26px; margin-inline: auto; }
.site-links a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.site-links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -5px; height: 2.5px;
  border-radius: 2px; background: var(--warm-grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-links a:hover { color: var(--ink); }
.site-links a:hover::after { transform: scaleX(1); }
.site-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-feature-link {
  border: 1px solid rgba(0, 149, 218, 0.18); border-radius: 999px;
  padding: 8px 12px; color: var(--deep); background: rgba(0, 149, 218, 0.07);
  font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-feature-compact { display: none; }
.nav-feature-link:hover { background: rgba(0, 149, 218, 0.13); border-color: rgba(0, 149, 218, 0.3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 26px; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff; background: var(--night);
  box-shadow: 0 10px 26px -12px rgba(12, 22, 38, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(0, 149, 218, 0.55); }
.btn-grad {
  color: #fff; background: var(--warm-grad); background-size: 150% 150%;
  box-shadow: 0 14px 30px -12px rgba(41, 92, 171, 0.55);
}
.btn-grad:hover { box-shadow: 0 18px 40px -12px rgba(41, 92, 171, 0.7); }
.btn-ghost {
  color: #fff; background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.17); }
.btn-light {
  background: #fff; color: var(--night);
  box-shadow: 0 10px 26px -14px rgba(12, 22, 38, 0.4);
}
.btn-light:hover { box-shadow: 0 16px 34px -14px rgba(12, 22, 38, 0.5); }
.btn .arr { flex-shrink: 0; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: clip;
  margin-top: 14px; border-radius: 34px;
  background: radial-gradient(1100px 520px at 82% -10%, #1d3f6e 0%, transparent 62%),
              radial-gradient(820px 480px at 6% 110%, rgba(255, 79, 0, 0.2) 0%, transparent 58%),
              linear-gradient(178deg, var(--night) 0%, var(--night-2) 52%, var(--night-3) 100%);
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(720px 420px at 70% 24%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 420px at 70% 24%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 40px; padding: 74px 48px 0;
  align-items: center;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.02fr 1fr; } }

.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: #cfe6f7;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 15px; border-radius: 999px;
}
.hero-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: #37e08b;
  box-shadow: 0 0 0 4px rgba(55, 224, 139, 0.18);
}
.hero-title {
  font-size: clamp(31px, 4.3vw, 54px);
  font-weight: 900; line-height: 1.34; letter-spacing: 0;
  margin-top: 20px; text-wrap: balance;
}
.hero-title .hl { display: block; }
.hero-title .grad {
  background: linear-gradient(92deg, #7cc6f3 0%, #cfe6f7 40%, #f0578a 76%, #f78d2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 18px; max-width: 56ch;
  color: rgba(255, 255, 255, 0.78); font-size: 16.5px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 13px; color: rgba(255, 255, 255, 0.68); }
.hero-proof b { color: #fff; }
.hero-proof-tag {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 13px; color: #fff; font-size: 13px; font-weight: 800;
  background: var(--warm-grad); box-shadow: 0 8px 22px -10px rgba(240, 87, 138, 0.72);
}
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--night);
  background: #fff; border: 2px solid var(--night-2); margin-left: -10px;
}
.avatar-stack span:nth-child(2) { background: #6fb7e5; }
.avatar-stack span:nth-child(3) { background: #f0578a; }
.avatar-stack span:nth-child(4) { background: #f78d2e; }

/* Product mock card (dashboard motif) */
.hero-visual { position: relative; padding-bottom: 8px; }
.mock {
  position: relative; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  direction: ltr;
}
.mock-top {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.mock-top i { width: 9px; height: 9px; border-radius: 50%; }
.mock-top i:nth-child(1) { background: #ff5f57; }
.mock-top i:nth-child(2) { background: #febc2e; }
.mock-top i:nth-child(3) { background: #28c840; }
.mock-top em {
  font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.55);
  margin-inline: auto; letter-spacing: 0.02em;
}
.mock-body { display: grid; grid-template-columns: 64px 1fr; }
.mock-side {
  background: rgba(0, 0, 0, 0.22); padding: 14px 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.mock-side i {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.mock-side i.on { background: var(--warm-grad); box-shadow: 0 6px 16px -6px rgba(0, 149, 218, 0.6); }
.mock-main { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  border-radius: 12px; padding: 12px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.kpi span { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); display: block; margin-top: 2px; }
.kpi .up { color: #37e08b; font-size: 10.5px; }
.mock-chart { margin-top: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 14px 8px; }
.mock-chart .label { font-size: 10.5px; color: rgba(255, 255, 255, 0.55); margin-bottom: 6px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6fb7e5, rgba(111, 183, 229, 0.25)); min-height: 6px; }
.bars i.hot { background: linear-gradient(180deg, #f78d2e, rgba(240, 87, 138, 0.4)); }
.mock-float {
  position: absolute; z-index: 2; direction: rtl;
  display: flex; align-items: center; gap: 8px;
  background: rgba(12, 22, 38, 0.92); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px; padding: 10px 14px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.mock-float .f-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--warm-grad); flex-shrink: 0;
}
.mock-float small { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.62); font-size: 10.5px; }
.float-a { top: -16px; left: -8px; }
.float-b { bottom: 26px; right: -10px; }

/* Ticker */
.ticker {
  position: relative; z-index: 1; overflow: hidden; contain: paint;
  border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 44px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-label {
  position: absolute; top: 8px; inset-inline: 0; text-align: center;
  font-size: 10px; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.14em;
}
.ticker-track { display: flex; width: max-content; gap: 52px; padding: 34px 26px 20px; animation: slide 34s linear infinite; will-change: transform; }
@keyframes slide { to { transform: translateX(50%); } }
[dir="rtl"] .ticker-track { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(-50%); } }
.ticker-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: rgba(255, 255, 255, 0.56); white-space: nowrap;
}

/* ============ Section scaffolding ============ */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 20px; }
.sec-head { max-width: 700px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--deep);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px;
  box-shadow: 0 6px 18px -10px rgba(12, 22, 38, 0.16);
}
.sec-kicker i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warm-grad);
}
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-top: 18px; text-wrap: balance; }
.sec-head h2 .mark { color: var(--accent); }
.sec-head .lead { color: var(--text-2); margin-top: 12px; max-width: 62ch; font-size: 15.5px; }

/* ============ Retail media network flow ============ */
.rmn-section { padding-top: 72px; }
.rmn-section .sec-head { max-width: 760px; }
.rmn-panel {
  position: relative; overflow: hidden; margin-top: 30px; padding: 30px;
  border-radius: 30px; color: #fff;
  background: radial-gradient(640px 300px at 8% 0%, rgba(0, 149, 218, 0.22), transparent 72%),
              linear-gradient(155deg, var(--night) 0%, var(--night-2) 60%, #20456f 100%);
  box-shadow: 0 24px 60px -32px rgba(12, 22, 38, 0.52);
}
.rmn-panel > * { position: relative; }
.rmn-flow {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; direction: rtl;
}
.rmn-step {
  position: relative; min-width: 0; min-height: 236px; padding: 21px 19px 18px;
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
}
.rmn-flow-arrow {
  position: absolute; z-index: 1; left: -18px; top: 50%;
  width: 22px; height: 28px; display: grid; place-items: center;
  color: #9fd9f7; background: var(--night-2); border-radius: 999px;
  font-size: 17px; line-height: 1; transform: translateY(-50%);
}
.rmn-step-index {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; color: #fff; font-size: 13px; font-weight: 800;
  background: var(--warm-grad); box-shadow: 0 8px 20px -10px rgba(240, 87, 138, 0.8);
}
.rmn-step h3 { margin-top: 14px; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.7; }
.rmn-step p { margin-top: 6px; color: rgba(255, 255, 255, 0.72); font-size: 12.5px; line-height: 1.9; }
.rmn-step-label {
  margin-top: auto; padding-top: 12px; color: #9fd9f7;
  font-size: 11px; font-weight: 700;
}
.rmn-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: 18px; padding: 8px 2px 0;
}
.rmn-cta p { color: rgba(255, 255, 255, 0.84); font-size: 14px; font-weight: 600; }
.rmn-cta .btn { flex-shrink: 0; }
.rmn-audiences-head { max-width: 760px; }
.rmn-audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.rmn-audience-card {
  --audience-accent: var(--accent);
  min-width: 0; padding: 27px 28px; display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid rgba(12, 22, 38, 0.11); border-radius: 24px; background: #fff;
  box-shadow: 0 16px 42px -34px rgba(12, 22, 38, 0.42);
}
.rmn-audience--retailer { --audience-accent: #0785b8; background: linear-gradient(145deg, #fff 38%, #f0f9fd); }
.rmn-audience--advertiser { --audience-accent: #be5d36; background: linear-gradient(145deg, #fff 38%, #fff5ee); }
.rmn-audience-eyebrow { color: var(--audience-accent); font-size: 12px; font-weight: 800; }
.rmn-audience-card h3 { margin-top: 13px; color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1.7; }
.rmn-audience-card p { margin-top: 8px; color: var(--text-2); font-size: 13px; line-height: 2; }
.rmn-audience-list { display: grid; gap: 9px; width: 100%; margin-top: 17px; padding: 0; list-style: none; }
.rmn-audience-list li { position: relative; padding-right: 15px; color: var(--text-2); font-size: 12px; line-height: 1.8; }
.rmn-audience-list li::before { position: absolute; top: 0.68em; right: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--audience-accent); content: ''; }
.rmn-audience-status { margin-top: 20px; padding: 8px 11px; border-radius: 999px; color: var(--audience-accent); background: rgba(0, 149, 218, 0.075); font-size: 11px; font-weight: 700; }
.rmn-audience--advertiser .rmn-audience-status { background: rgba(190, 93, 54, 0.08); }
.rmn-audience-note { max-width: 900px; margin-top: 16px; color: var(--text-2); font-size: 12px; line-height: 2; }

/* ============ Pillar trio ============ */
.pillars { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 920px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative; overflow: hidden; border-radius: 24px; padding: 30px 26px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 20px 44px -26px rgba(16, 24, 40, 0.22);
  display: flex; flex-direction: column; min-height: 300px;
}
.pillar-ico {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; color: #fff; margin-bottom: 18px;
  box-shadow: 0 12px 24px -10px rgba(12, 22, 38, 0.4);
}
.pillar-ico svg { width: 24px; height: 24px; }
.p1 .pillar-ico { background: linear-gradient(135deg, #6fb7e5, var(--deep)); }
.p2 .pillar-ico { background: linear-gradient(135deg, #f0578a, #c33d4f); }
.p3 .pillar-ico { background: linear-gradient(135deg, #f78d2e, var(--flame)); }
.pillar h3 { font-size: 20px; font-weight: 800; }
.pillar > p { color: var(--text-2); font-size: 14px; margin-top: 8px; flex: 1; }
.pillar ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar li {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border-radius: 999px; padding: 5px 12px;
}
.pillar .pillar-link {
  margin-top: 18px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--deep);
}
.pillar .pillar-link:hover { color: var(--accent); }

/* ============ Feature mosaic (Alternative Section 2) ============ */
.mosaic-wrap { background: #f0f0f0; border-radius: 34px; padding: 72px 0; margin-top: 96px; }
.mosaic {
  width: min(1374px, 100% - 44px); margin-inline: auto;
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .mosaic {
    grid-template-columns: 24.7fr 45.6fr 28.2fr;
    grid-template-rows: 21.6fr 49.9fr 22.7fr;
    height: 666px;
  }
  .m-notif   { grid-column: 1; grid-row: 1; }
  .m-connect { grid-column: 1; grid-row: 2 / span 2; }
  .m-automate{ grid-column: 2; grid-row: 1 / span 2; }
  .m-insights{ grid-column: 3; grid-row: 1 / span 2; }
  .m-search  { grid-column: 2 / span 2; grid-row: 3; }
}
.card-m {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1.6px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 16px rgba(24, 30, 45, 0.045);
}
.m-notif {
  background: radial-gradient(120% 140% at 92% 100%, rgba(255, 236, 246, 0.95) 0%, rgba(255, 236, 246, 0) 62%),
              linear-gradient(135deg, #f9d9e9 0%, #fbdfec 55%, #fce6f1 100%);
  padding: 26px 12px 0 12px; min-height: 170px;
}
.toast-wrap { position: relative; height: 74px; }
.toast {
  position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(105deg, #ffffff 34%, #fdeee5 78%, #fce8dd 100%);
  box-shadow: 0 3px 10px rgba(122, 86, 106, 0.12);
  display: flex; align-items: center; gap: 11px; padding: 0 13px;
}
.toast .spark { flex-shrink: 0; }
.toast b { font-size: 13px; font-weight: 800; color: #0d0d0d; display: block; line-height: 1.5; }
.toast small { font-size: 11px; color: #2b2b2b; line-height: 1.6; display: block; max-width: 150px; }
.toast em { font-style: normal; font-size: 10px; color: #8b8489; align-self: flex-start; margin-top: 12px; white-space: nowrap; }
.m-notif .notif-cap { margin-top: 10px; font-size: 11.5px; color: #8b6f80; text-align: center; }

.m-connect {
  background: linear-gradient(180deg, #fcfdfd 0%, #f4f7f9 30%, #e2ebef 66%, #cedce4 100%);
  padding: 30px 22px 16px; min-height: 300px;
  display: flex; flex-direction: column;
}
.m-connect h3, .m-automate h3, .m-insights h3, .m-search h3 {
  font-size: clamp(21px, 2vw, 27px); font-weight: 800; line-height: 1.55; color: #0c0c0c;
}
.m-connect .sub { font-size: 14px; color: #1c1c1c; margin-top: 8px; }
.chips { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.chip-row { display: flex; gap: 14px; flex-wrap: wrap; }
.chip-row.r2 { padding-inline-start: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 17px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.97), rgba(240, 250, 254, 0.93));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.047);
  backdrop-filter: blur(7px);
  font-size: 14px; font-weight: 500; color: #131313; white-space: nowrap;
}
.chip svg { width: 20px; height: 20px; flex-shrink: 0; }
.chip-slack {
  position: absolute; left: 18px; bottom: 118px;
  transform: rotate(14deg); z-index: 3;
  box-shadow: 0 0 0 3.2px rgba(0, 0, 0, 0.052), 0 10px 22px -10px rgba(0, 0, 0, 0.18);
}

.m-automate {
  background: radial-gradient(90% 70% at 6% 0%, rgba(226, 236, 200, 0.9) 0%, rgba(226, 236, 200, 0) 70%),
              linear-gradient(168deg, #e2ebc9 0%, #e9f0c4 48%, #f0f4b8 78%, #f3f5b0 100%);
  padding: 34px 40px 0; min-height: 420px;
}
.m-automate h3 { color: #15201a; }
.m-automate h3 .g { color: #5f8b3e; }
.m-automate .sub { font-size: 14.5px; color: #1e2a1b; margin-top: 10px; max-width: 52ch; }
.illo { position: relative; height: 260px; margin-top: 18px; }
.win {
  position: absolute; border-radius: 11px; overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(64, 74, 44, 0.16);
}
.win .bar {
  height: 15px; background: #242424;
  display: flex; align-items: center; gap: 5px; padding-inline-start: 6px;
}
.win .bar i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(150deg, #fff, #dcdcdc); }
.win .body { display: flex; height: calc(100% - 15px); }
.win .strip { background: #bfd0ac; width: 22%; }
.win .content { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.win .content i { display: block; height: 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.08); }
.win .content i:nth-child(2) { width: 72%; }
.win .content i:nth-child(3) { width: 48%; }
.win-back {
  left: 4%; top: 26px; width: 47%; height: 74%;
  transform: rotate(-7deg);
}
.win-back .body { background: #eaefcd; }
.win-front {
  left: 26%; top: 34%; width: 47%; height: 78%;
  transform: rotate(4deg);
  border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  box-shadow: 0 14px 32px rgba(64, 74, 44, 0.18);
}
.win-front .body { background: #f9edfb; }
.win-front .strip { background: #e8d6fb; width: 16%; }
.pill {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 0 0 2.8px rgba(0, 0, 0, 0.045), 0 8px 20px -8px rgba(64, 74, 44, 0.25);
}
.pill-wf {
  right: 4%; top: 46%; padding: 5px 15px 5px 7px; transform: rotate(-1.2deg);
  font-size: 12px; font-weight: 600; color: #151515;
}
.pill-wf .tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(145deg, #e6f3df 0%, #cfe0bd 47%, #b9cfa5 100%);
  display: grid; place-items: center; flex-shrink: 0;
}
.pill-ai {
  left: 5%; bottom: 6%; width: 150px; height: 52px; border-radius: 10px;
  padding: 0 15px; transform: rotate(-1deg); justify-content: space-between;
}
.pill-ai .lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pill-ai .lines i { display: block; height: 6.5px; border-radius: 99px; background: #d8d8d7; }
.pill-ai .lines i:last-child { width: 70%; }

.m-insights {
  background: radial-gradient(115% 70% at 22% 0%, #fdf2e5 0%, rgba(253, 242, 229, 0) 68%),
              linear-gradient(180deg, #f9f1e8 0%, #f7efe6 100%);
  padding: 28px 24px 20px; min-height: 300px;
  display: flex; flex-direction: column;
}
.tag-pill {
  align-self: flex-start; display: inline-flex; align-items: center;
  height: 31px; padding: 0 16px; border-radius: 999px;
  background: linear-gradient(100deg, #ffffff 18%, #fdeadb 100%);
  border: 1.2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 9px rgba(160, 120, 80, 0.09);
  font-size: 12.5px; font-weight: 700; color: #111;
}
.m-insights .big {
  font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px);
  font-weight: 900; color: #0b0b0b; margin-top: 18px; line-height: 1.2;
}
.m-insights .sub { font-size: 14px; color: #1d1d1d; margin-top: 6px; }
.chart { margin-top: auto; display: flex; align-items: flex-end; gap: 11px; height: 190px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.chart .bar-v {
  border-radius: 7px; background: #e9e3da; position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 7px; font-size: 11px; font-weight: 500; color: #a1978a;
}
.chart .col:last-child .bar-v {
  background: linear-gradient(180deg, #f2b705 0%, #e7b208 26%, #a8a422 52%, #6a8f33 76%, #3d7a3e 100%);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(150, 120, 20, 0.2);
}
.chart .day { font-size: 10px; font-weight: 500; color: #a79c8e; margin-top: 8px; }

.m-search {
  background: linear-gradient(103deg, #eae9f5 0%, #e2e0f1 34%, #cfcdea 72%, #c2c0e6 100%);
  display: flex; align-items: center; gap: 20px;
  padding: 20px 26px; min-height: 120px;
  flex-direction: column; align-items: stretch;
}
@media (min-width: 980px) {
  .m-search { flex-direction: row; align-items: center; }
}
.m-search h3 { font-size: clamp(18px, 1.6vw, 22px); flex-shrink: 0; }
.qbar {
  flex: 1; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 999px; padding: 8px 20px 8px 9px;
  box-shadow: 0 4px 14px rgba(70, 66, 120, 0.1);
  min-height: 58px;
}
.qbar .mag {
  width: 42px; height: 42px; border-radius: 50%; background: #f1f1f5;
  display: grid; place-items: center; flex-shrink: 0;
}
.qbar .ph { color: #8c8c99; font-size: 14px; flex: 1; }
.qbar .mic { flex-shrink: 0; }

/* ============ Channels (Braze-style) ============ */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
@media (min-width: 760px) { .channels { grid-template-columns: repeat(5, 1fr); } }
.chan {
  border-radius: 18px; padding: 18px 14px; text-align: center;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 10px -6px rgba(16, 24, 40, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chan:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(16, 24, 40, 0.25); }
.chan .c-ico {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
}
.chan b { font-size: 13.5px; font-weight: 700; display: block; }
.chan span { font-size: 11.5px; color: var(--text-2); display: block; margin-top: 2px; }
.ch-sms .c-ico { background: linear-gradient(135deg, #6fb7e5, var(--accent)); }
.ch-push .c-ico { background: linear-gradient(135deg, #f0578a, #c33d4f); }
.ch-mail .c-ico { background: linear-gradient(135deg, #f78d2e, #e5641e); }
.ch-wa .c-ico { background: linear-gradient(135deg, #37e08b, #1ea35f); }
.ch-banner .c-ico { background: linear-gradient(135deg, #a68ae0, var(--violet)); }

/* ============ Control section ============ */
.control {
  margin-top: 96px; background: #fff;
  border: 1px solid var(--line); border-radius: 30px;
  padding: 44px 30px; display: grid; gap: 36px;
  box-shadow: 0 24px 60px -32px rgba(16, 24, 40, 0.25);
}
@media (min-width: 1024px) { .control { grid-template-columns: 1fr auto 1fr; align-items: center; padding: 56px; } }
.control h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 900; line-height: 1.6; }
.control h2 .grad {
  background: linear-gradient(90deg, var(--accent), var(--deep) 50%, var(--flame));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blist { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.blist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.95;
  background: #fff; border-radius: 16px; padding: 13px 17px;
  box-shadow: 0 3px 9px rgba(63, 74, 126, 0.05), 0 1px 29px rgba(63, 74, 126, 0.1);
}
.blist.neg li { color: var(--text-2); }
.blist.pos li { color: var(--ink); font-weight: 500; }
.b-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 4px;
}
.b-ico.ok { background: rgba(0, 149, 218, 0.12); color: var(--accent); }
.b-ico.no { background: rgba(255, 79, 0, 0.1); color: var(--flame); }
.orb-wrap { width: 230px; height: 230px; margin-inline: auto; position: relative; display: grid; place-items: center; }
.orb-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0, 149, 218, 0.35); }
.orb-ring.r1 { inset: 0; animation: pulse 3s ease-in-out infinite; }
.orb-ring.r2 { inset: 26px; animation: pulse 3s 0.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}
.orb-core {
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: #fff; font-weight: 800; font-size: 15px; line-height: 1.7; padding: 12px;
  background: radial-gradient(circle at 35% 30%, #6fb7e5, var(--deep) 74%);
  box-shadow: 0 0 54px rgba(0, 149, 218, 0.5);
}

/* ============ Testimonials ============ */
.quotes { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 920px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 26px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 20px 44px -28px rgba(16, 24, 40, 0.2);
}
.quote .q-badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--deep);
  background: var(--surface-2); border-radius: 999px; padding: 5px 12px;
}
.quote p { font-size: 14.5px; color: var(--ink); flex: 1; }
.quote footer { display: flex; align-items: center; gap: 11px; }
.quote .q-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
}
.quote footer b { font-size: 13.5px; display: block; }
.quote footer span { font-size: 12px; color: var(--text-3); display: block; }
.qa1 .q-av { background: linear-gradient(135deg, #6fb7e5, var(--deep)); }
.qa2 .q-av { background: linear-gradient(135deg, #f0578a, #c33d4f); }
.qa3 .q-av { background: linear-gradient(135deg, #f78d2e, var(--flame)); }

/* ============ Stats band ============ */
.stats-band {
  margin-top: 96px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 60%, #20456f 100%);
  color: #fff; padding: 54px 40px;
  position: relative;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 260px at 88% 0%, rgba(0, 149, 218, 0.3), transparent 70%),
              radial-gradient(420px 240px at 4% 100%, rgba(240, 87, 138, 0.18), transparent 70%);
}
.stats-band h2 { position: relative; font-size: clamp(24px, 3vw, 34px); font-weight: 900; max-width: 24ch; }
.stats-grid {
  position: relative; display: grid; gap: 14px; margin-top: 34px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-glass {
  border-radius: 18px; padding: 22px 18px; text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.stat-glass b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
.stat-glass span { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }
.stat-glass small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, 0.58); margin-top: 6px; }

/* ============ Demo form ============ */
.demo-wrap {
  display: grid; gap: 36px; margin-top: 22px;
  border-radius: 30px; padding: 44px 30px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -32px rgba(16, 24, 40, 0.25);
  position: relative; overflow: hidden;
}
.demo-wrap::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%;
  background: radial-gradient(420px 300px at 100% 0%, rgba(0, 149, 218, 0.08), transparent 70%),
              radial-gradient(380px 300px at 60% 100%, rgba(240, 87, 138, 0.07), transparent 70%);
  pointer-events: none;
}
@media (min-width: 960px) { .demo-wrap { grid-template-columns: 1fr 1fr; padding: 56px; align-items: center; } }
.demo-wrap > * { position: relative; }
.demo-copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.demo-copy p { color: var(--text-2); margin-top: 12px; max-width: 50ch; font-size: 15px; }
.demo-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.demo-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.demo-points .b-ico { margin-top: 3px; }
.demo-form {
  background: var(--night); border-radius: 22px; padding: 30px 26px; color: #fff;
  box-shadow: 0 26px 60px -26px rgba(12, 22, 38, 0.6);
}
.demo-form .field { margin-bottom: 16px; }
.demo-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.demo-form label .req { color: #ffb37c; }
.demo-form input,
.demo-form textarea {
  width: 100%; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
  color: #fff; padding: 11px 14px; font-size: 14px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.demo-form input::placeholder,
.demo-form textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.demo-form input:focus,
.demo-form textarea:focus { outline: none; border-color: #6fb7e5; background: rgba(255, 255, 255, 0.09); }
.demo-form input[dir="ltr"] { text-align: left; }
.demo-form textarea { resize: vertical; min-height: 80px; }
.field-error { display: none; font-size: 12px; color: #ffb4a1; margin-top: 6px; }
.field-error.show { display: block; }
.demo-form .btn { width: 100%; padding: 15px 24px; }
.demo-form .btn[disabled] { opacity: 0.65; cursor: wait; }
.form-status { display: none; margin-top: 16px; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.9; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(55, 224, 139, 0.12); border: 1px solid rgba(55, 224, 139, 0.4); color: #d6ffe9; }
.form-status.err { background: rgba(255, 79, 0, 0.12); border: 1px solid rgba(255, 79, 0, 0.4); color: #ffe1d1; }

/* ============ Footer ============ */
.site-footer { margin-top: 96px; padding-bottom: 34px; }
.footer-cta {
  border-radius: 30px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--night-2) 0%, var(--deep) 90%);
  color: #fff; padding: 58px 44px; text-align: center;
}
.footer-cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
.footer-cta p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; }
.footer-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.footer-grid {
  display: grid; gap: 16px; margin-top: 20px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 370px 1fr; } }
.footer-brand {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px;
  color: #fff; min-height: 330px; display: flex; flex-direction: column;
  background: linear-gradient(150deg, var(--night-2), var(--deep) 70%, var(--accent));
  box-shadow: 0 18px 50px -22px rgba(20, 92, 171, 0.55);
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo svg { width: 34px; height: 34px; }
.footer-logo b { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.footer-tag { font-size: 19px; line-height: 2; margin: auto 0 24px; }
.footer-tag span { color: rgba(255, 255, 255, 0.65); }
.footer-social-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer-social-label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.footer-social-icons { display: flex; gap: 7px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(12, 22, 38, 0.85);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, transform 0.15s;
}
.social-icon:hover { background: #000; transform: translateY(-2px); }
.social-icon svg { width: 15px; height: 15px; fill: currentColor; }

.footer-links {
  background: #f0f1f5; border-radius: 26px; padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 15px; color: var(--text-3); font-weight: 700; margin-bottom: 16px; }
.footer-cols a {
  display: block; font-size: 14px; font-weight: 600; color: #111827;
  margin-bottom: 13px; transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-top: 44px; flex-wrap: wrap;
}
.footer-copyright { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.footer-cta-mini h4 { font-size: 15px; font-weight: 400; color: #6b7280; line-height: 1.9; }
.footer-cta-mini strong { display: block; font-size: 19px; font-weight: 700; color: #111827; }
.subscribe {
  display: flex; width: 320px; max-width: 100%;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.subscribe input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 10px 12px; font-size: 13px; min-width: 0; color: #111827;
}
.subscribe input::placeholder { color: #7b8598; }
.subscribe button {
  background: #111214; color: #fff; border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.subscribe button:hover { background: #000; transform: translateY(-1px); }
.subscribe-note { font-size: 12px; margin-top: 8px; min-height: 18px; }
.subscribe-note.ok { color: #0c7a3e; }
.subscribe-note.err { color: #c2410c; }

.watermark {
  margin-top: -6px; text-align: center; overflow: hidden;
  user-select: none; pointer-events: none; line-height: 1.1;
}
.watermark span {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(64px, 15vw, 210px); letter-spacing: 0;
  color: rgba(12, 22, 38, 0.05); white-space: nowrap;
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ============ Anchor offset (sticky header) ============ */
section[id], .mosaic-wrap, #stats { scroll-margin-top: 96px; }

/* ============ Micro-interactions ============ */
.pillar, .quote, .chan { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pillar:hover, .quote:hover { transform: translateY(-4px); }
.pillar:hover { box-shadow: 0 4px 8px rgba(16, 24, 40, 0.05), 0 30px 56px -28px rgba(16, 24, 40, 0.3); }
.quote:hover { box-shadow: 0 4px 8px rgba(16, 24, 40, 0.05), 0 30px 56px -30px rgba(16, 24, 40, 0.26); }
.card-m { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card-m:hover { transform: translateY(-3px); }
.pillar-link svg, .btn .arr { transition: transform 0.3s var(--ease); }
.pillar-link:hover svg, .btn:hover .arr { transform: translateX(-4px); }
.btn-ghost:hover { transform: translateY(-1px); }

/* ============ Hero entrance choreography ============ */
html.enter-pending .site-header { opacity: 0; translate: 0 -12px; }
html.enter-pending .hero-pill { opacity: 0; translate: 0 10px; }
html.enter-pending .hero-title .hl { clip-path: inset(0 0 100% 0); }
html.enter-pending .hero-sub,
html.enter-pending .hero-cta,
html.enter-pending .hero-proof { opacity: 0; translate: 0 16px; }
html.enter-pending .hero-visual { opacity: 0; translate: 0 24px; }
html.enter-pending .mock-float { opacity: 0; }

@keyframes enter-drop { from { opacity: 0; translate: 0 -12px; } }
@keyframes enter-rise { from { opacity: 0; translate: 0 16px; } }
@keyframes enter-lift { from { opacity: 0; translate: 0 24px; } }
@keyframes enter-fade { from { opacity: 0; } }
@keyframes enter-wipe { from { clip-path: inset(0 0 100% 0); } }
@keyframes bob { 50% { translate: 0 -7px; } }

html.enter-run .site-header { animation: enter-drop 0.6s var(--ease) both; }
html.enter-run .hero-pill { animation: enter-drop 0.5s var(--ease) 0.1s both; }
html.enter-run .hero-title .hl:nth-child(1) { animation: enter-wipe 0.9s var(--ease) 0.16s both; }
html.enter-run .hero-title .hl:nth-child(2) { animation: enter-wipe 0.9s var(--ease) 0.3s both; }
html.enter-run .hero-sub { animation: enter-rise 0.62s var(--ease) 0.5s both; }
html.enter-run .hero-cta { animation: enter-rise 0.6s var(--ease) 0.64s both; }
html.enter-run .hero-proof { animation: enter-rise 0.55s var(--ease) 0.76s both; }
html.enter-run .hero-visual { animation: enter-lift 0.9s var(--ease) 0.66s both; }
html.enter-run .float-a { animation: enter-fade 0.5s var(--ease) 1.1s both, bob 6s ease-in-out 1.7s infinite; }
html.enter-run .float-b { animation: enter-fade 0.5s var(--ease) 1.25s both, bob 7.5s ease-in-out 1.9s infinite; }

@media (prefers-reduced-motion: reduce) {
  html.enter-pending .site-header,
  html.enter-pending .hero-pill,
  html.enter-pending .hero-sub,
  html.enter-pending .hero-cta,
  html.enter-pending .hero-proof,
  html.enter-pending .hero-visual,
  html.enter-pending .mock-float { opacity: 1; translate: none; }
  html.enter-pending .hero-title .hl { clip-path: none; }
}

/* ============ Logo rotation ============ */
.cl-spin { animation: cl-spin 60s linear infinite; transform-origin: 50% 50%; will-change: transform; }
.brand:hover .cl-spin,
.footer-logo:hover .cl-spin { animation: cl-spin 60s linear infinite, cl-burst .65s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
@keyframes cl-burst {
  from { transform: rotate(-26deg) scale(1); }
  55% { transform: rotate(16deg) scale(1.12); }
  to { transform: rotate(0deg) scale(1); }
}

/* ============ Legal / document pages ============ */
.doc-hero { padding: 52px 0 4px; }
.doc-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; margin-top: 16px; text-wrap: balance; }
.doc-lede { color: var(--text-2); margin-top: 12px; max-width: 68ch; font-size: 15px; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px;
  font-size: 12.5px; color: var(--text-3);
}
.doc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta b { color: var(--text-2); font-weight: 600; }

.doc-grid { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 1000px) {
  .doc-grid { grid-template-columns: 290px minmax(0, 1fr); align-items: start; gap: 36px; }
  .doc-toc { grid-column: 1; grid-row: 1; }
  .doc-body { grid-column: 2; grid-row: 1; }
}
.doc-toc {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px; box-shadow: 0 2px 10px -6px rgba(16, 24, 40, .12);
}
@media (min-width: 1000px) { .doc-toc { position: sticky; top: 96px; } }
@media (max-width: 999px) { .doc-toc { order: -1; } }
.doc-toc h2 { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.doc-toc ol { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.doc-toc a { font-size: 13px; color: var(--text-2); transition: color .2s; }
.doc-toc a:hover { color: var(--accent); }
.doc-toc .doc-contact {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 7px;
}
.doc-toc .doc-contact a { color: var(--accent); }

.doc-body {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 38px 34px 34px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 22px 48px -32px rgba(16, 24, 40, .2);
}
.doc-body h2 {
  font-size: 19.5px; font-weight: 800; margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line); scroll-margin-top: 104px;
}
.doc-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { font-size: 15.5px; font-weight: 700; margin-top: 20px; }
.doc-body p { font-size: 14.5px; line-height: 2.05; color: var(--text-2); margin-top: 12px; }
.doc-body ul, .doc-body ol { margin-top: 12px; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 9px; }
.doc-body li { font-size: 14.5px; line-height: 2; color: var(--text-2); }
.doc-body li::marker { color: var(--accent); }
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc-body table {
  width: 100%; border-collapse: collapse; margin-top: 18px;
  font-size: 13.5px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.doc-body th, .doc-body td {
  padding: 12px 14px; text-align: start; vertical-align: top;
  border-bottom: 1px solid var(--line); line-height: 1.9;
}
.doc-body th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 13px; }
.doc-body td { color: var(--text-2); }
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body tbody tr:nth-child(even) td { background: #fbfcfe; }

.doc-note {
  display: flex; gap: 12px; margin-top: 20px; border-radius: 16px;
  padding: 16px 18px; font-size: 14px; line-height: 2;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.doc-note svg { flex-shrink: 0; margin-top: 5px; color: var(--deep); }
.doc-note.warn { background: #fff8f1; border-color: #fcd9b6; color: #7c3a12; }
.doc-note.warn svg { color: #c2410c; }
.doc-note.key { background: #f2f9fe; border-color: #cfe6f7; color: #123a56; }
.doc-note.key svg { color: var(--deep); }
.doc-foot {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3); display: flex; flex-direction: column; gap: 6px;
}
.legal-accept { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; }
.legal-accept input { flex-shrink: 0; width: 17px; height: 17px; margin-top: 5px; accent-color: #6fb7e5; cursor: pointer; }
.legal-accept label { font-size: 12.5px; line-height: 1.95; color: rgba(255, 255, 255, .84); cursor: pointer; }
.legal-accept a { color: #9fd9f7; text-decoration: underline; text-underline-offset: 2px; }
.legal-accept input:focus-visible { outline: 3px solid #6fb7e5; outline-offset: 2px; }

@media print {
  .site-header, .doc-toc, .site-footer, .doc-hero .sec-kicker { display: none; }
  .doc-body { border: 0; box-shadow: none; padding: 0; }
  .doc-grid { display: block; }
}

/* ============ Pricing page ============ */
.page-hero {
  position: relative; overflow: clip; margin-top: 14px; border-radius: 34px;
  background: radial-gradient(900px 460px at 80% -10%, #1d3f6e 0%, transparent 62%),
              radial-gradient(700px 420px at 4% 110%, rgba(255, 79, 0, 0.18) 0%, transparent 58%),
              linear-gradient(178deg, var(--night) 0%, var(--night-2) 55%, var(--night-3) 100%);
  color: #fff; padding: 66px 40px 58px; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(600px 320px at 50% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(600px 320px at 50% 10%, #000 0%, transparent 72%);
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; line-height: 1.4; margin-top: 18px; text-wrap: balance; }
.page-hero h1 .grad {
  background: linear-gradient(92deg, #7cc6f3 0%, #cfe6f7 40%, #f0578a 76%, #f78d2e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 62ch; margin: 16px auto 0; }

.model-grid { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
.model-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 20px 44px -28px rgba(16, 24, 40, .2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.model-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(16, 24, 40, .05), 0 30px 56px -28px rgba(16, 24, 40, .28); }
.model-num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 17px; color: #fff;
  background: var(--warm-grad); margin-bottom: 16px;
}
.model-card h3 { font-size: 19px; font-weight: 800; }
.model-card p { color: var(--text-2); font-size: 14px; margin-top: 8px; }

.tiers { display: grid; gap: 18px; margin-top: 36px; align-items: stretch; }
@media (min-width: 980px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 32px 28px;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 22px 48px -30px rgba(16, 24, 40, .22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tier:hover { transform: translateY(-5px); }
.tier.featured {
  border-color: transparent; color: #fff;
  background: linear-gradient(165deg, var(--night) 0%, var(--night-2) 58%, #20456f 100%);
  box-shadow: 0 30px 70px -30px rgba(12, 22, 38, .6);
}
.tier.featured .tier-desc, .tier.featured li { color: rgba(255, 255, 255, .84); }
.tier.featured .tier-note { color: rgba(255, 255, 255, .62); }
.tier-flag {
  position: absolute; top: -13px; inset-inline-start: 26px;
  background: var(--warm-grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 10px 22px -10px rgba(41, 92, 171, .6);
}
.tier h3 { font-size: 22px; font-weight: 900; }
.tier-desc { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.tier-price { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.tier.featured .tier-price { border-top-color: rgba(255, 255, 255, .22); }
.tier-price b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 900; line-height: 1.5; }
.tier-price span { display: block; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.tier.featured .tier-price span { color: rgba(255, 255, 255, .78); }
.tier ul { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tier li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.9; color: var(--ink); }
.tier li .b-ico { width: 22px; height: 22px; margin-top: 5px; }
.tier .btn { margin-top: 26px; width: 100%; }
.tier-note { font-size: 12px; color: var(--text-3); margin-top: 14px; text-align: center; }

.estimator {
  margin-top: 26px; border-radius: 30px; padding: 44px 36px; color: #fff;
  background: linear-gradient(150deg, var(--night-2) 0%, var(--deep) 120%);
  position: relative; overflow: hidden;
}
.estimator::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 92% 0%, rgba(0, 149, 218, .34), transparent 70%);
}
.estimator > * { position: relative; }
.estimator h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; }
.estimator > p { color: rgba(255, 255, 255, .76); margin-top: 10px; max-width: 60ch; font-size: 15px; }
.est-grid { display: grid; gap: 22px; margin-top: 30px; }
@media (min-width: 940px) { .est-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.slider-row { margin-bottom: 22px; }
.slider-row label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 700; }
.slider-row label output { font-family: var(--font-display); font-weight: 900; font-size: 16px; color: #9fd9f7; }
input[type="range"] {
  width: 100%; margin-top: 12px; accent-color: #f0578a; height: 22px; cursor: pointer;
}
.est-result {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px; padding: 26px 24px; backdrop-filter: blur(8px);
}
.est-result h3 { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.est-tier { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin-top: 6px; }
.est-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); margin-top: 16px; overflow: hidden; }
.est-meter i { display: block; height: 100%; width: 10%; border-radius: 99px; background: var(--warm-grad); transition: width .45s var(--ease); }
.est-lines { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.est-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 8px; }
.est-lines li b { font-family: var(--font-display); font-weight: 800; }
.est-form { margin-top: 20px; display: grid; gap: 10px; }
.est-form input {
  width: 100%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px; color: #fff; padding: 11px 14px; font-size: 14px;
}
.est-form input::placeholder { color: rgba(255, 255, 255, .5); }
.est-form input:focus { outline: none; border-color: #9fd9f7; }
.est-form input[dir="ltr"] { text-align: left; }
.est-form .legal-accept input[type="checkbox"] {
  flex: 0 0 17px; width: 17px; min-width: 17px; height: 17px;
  margin-top: 5px; padding: 0; border: 0; border-radius: 3px;
  appearance: auto; background: transparent; accent-color: #6fb7e5;
}

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px;
  box-shadow: 0 2px 10px -6px rgba(16, 24, 40, .12);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 9px; height: 9px; flex-shrink: 0;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { color: var(--text-2); font-size: 14px; padding-bottom: 18px; max-width: 80ch; }

.price-note {
  margin-top: 26px; border-radius: 20px; padding: 20px 24px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-2); display: flex; gap: 12px; align-items: flex-start;
}
.price-note svg { flex-shrink: 0; margin-top: 5px; color: var(--deep); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .site-links { display: none; }
  .hero-inner { padding: 48px 26px 0; }
  .float-a { left: 4px; }
  .float-b { right: 4px; }
  .footer-links { padding: 28px 22px; }
  .footer-cols { gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0 0; }
  .rmn-section { padding-top: 56px; }
  .rmn-panel { padding: 22px; }
  .rmn-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmn-step { min-height: 210px; }
  .rmn-flow-arrow { display: none; }
  .rmn-audience-card { padding: 22px; }
  .mosaic-wrap { padding: 52px 0; }
  .stats-band { padding: 42px 26px; }
}
@media (max-width: 760px) {
  .rmn-audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(1180px, 100% - 32px); }
  .site-nav { gap: 5px; padding: 8px; min-height: 54px; }
  .brand { gap: 5px; }
  .brand svg { width: 26px; height: 26px; }
  .brand .brand-name { font-size: 15px; }
  .site-actions { gap: 3px; }
  .site-actions .btn-light { display: none; }
  .nav-feature-full { display: none; }
  .nav-feature-compact { display: inline; }
  .nav-feature-link { padding: 6px 4px; font-size: 10px; }
  .site-actions .btn-sm { padding: 9px 8px; font-size: 11px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .mock-kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi b { font-size: 14px; }
  .demo-form { padding: 24px 18px; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .rmn-section { padding-top: 48px; }
  .rmn-panel { padding: 16px; border-radius: 24px; }
  .rmn-flow { grid-template-columns: 1fr; gap: 12px; }
  .rmn-step { min-height: 0; padding: 18px; }
  .rmn-flow-arrow {
    display: grid; top: auto; right: 50%; bottom: -20px; left: auto;
    transform: translateX(50%) rotate(-90deg);
  }
  .rmn-step-label { padding-top: 8px; }
  .rmn-cta { align-items: stretch; flex-direction: column; gap: 12px; padding-inline: 2px; }
  .rmn-cta .btn { width: 100%; }
  .footer-cta { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
