/* =========================================================
   Delow — CRO и ROI page: graphics on top of service.css
   ========================================================= */

/* ---------- Hero: 100 visitors, 1 enquiry becomes 3 ---------- */
.dots { position: relative; padding: 22px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.dots__label { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.015em; margin: 0 60px 16px 0; }
.dots__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 9px; }
.dots__grid i { display: block; aspect-ratio: 1; border-radius: 50%; background: #dcd8e0; transition: background-color .35s ease, scale .5s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease; }
.dots__grid i.is-lead { background: var(--accent); scale: 1.3; box-shadow: 0 0 0 4px rgba(74,37,69,.15); }
.dots__result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.dots__chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: .9375rem; color: var(--ink-2); transition: opacity .4s ease, transform .5s var(--ease-out); }
.dots__chip b { font-family: var(--font-display); font-size: 1.125rem; color: var(--ink); }
.dots__chip--after { background: var(--ink); color: #fff; box-shadow: none; }
.dots__chip--after b { color: #fff; }
.dots__arrow { width: 18px; height: 18px; color: var(--muted); transition: opacity .4s ease; }
/* Loop phases (JS): p0 nothing yet, p1 one enquiry, then the final state (no class) */
.dots.is-p0 .is-lead, .dots.is-p1 .is-lead:not([data-o="0"]) { background: #dcd8e0; scale: 1; box-shadow: none; }
.dots.is-p0 .dots__chip, .dots.is-p0 .dots__arrow, .dots.is-p1 .dots__chip--after, .dots.is-p1 .dots__arrow { opacity: 0; transform: translateY(6px); }
@media (max-width: 559px) {
  .dots { padding: 16px; border-radius: 22px; }
  .dots__label { font-size: .9688rem; margin-bottom: 12px; }
  .dots__grid { grid-template-columns: repeat(20, 1fr); gap: 5px; }
  .dots__result { margin-top: 14px; }
  .dots__chip { font-size: .875rem; padding: 7px 12px; }
}

/* ---------- ROI formula ---------- */
.roi { position: relative; padding: 26px 22px; border-radius: 26px; background: var(--surface); display: grid; gap: 18px; justify-items: center; text-align: center; }
.roi__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.roi__eq { display: flex; align-items: center; gap: 12px; }
.roi__frac { display: grid; justify-items: center; gap: 8px; }
.roi__num { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.roi__t { display: inline-block; padding: 6px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.roi__op { font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.roi__t--res { background: var(--ink); color: #fff; box-shadow: none; }
.roi__eq--ex .roi__t { background: transparent; box-shadow: none; padding: 2px 4px; color: var(--ink-2); }
.roi__t--big { font-family: var(--font-display); font-size: 1.75rem !important; color: var(--accent) !important; letter-spacing: -.03em; }
.roi__note { font-size: .875rem; color: var(--muted); }
html.js .split__fig.is-in .roi__t, html.js .split__fig.is-in .roi__op { animation: roi-in .5s cubic-bezier(.34,1.56,.64,1) both; }
html.js .split__fig.is-in .roi__eq--ex .roi__t, html.js .split__fig.is-in .roi__eq--ex .roi__op { animation-delay: .5s; }
html.js .split__fig.is-in .roi__t--big { animation-delay: .9s !important; }
@keyframes roi-in { from { opacity: 0; transform: translateY(10px) scale(.85); } }

/* ---------- Where you lose customers: 6 cards with small drawings ---------- */
.leaks { display: grid; gap: 12px; margin-top: 32px; }
.leak { padding: 18px 18px 24px; border-radius: var(--r-card); background: var(--surface); transition: background-color .3s ease, transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.leak h3 { margin-top: 18px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.leak p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.leak__art { position: relative; display: grid; place-items: center; height: 128px; border-radius: 18px; background: #fff; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .leak:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); } .leak:hover .leak__art { background: var(--surface); } }
@media (min-width: 768px) { .leaks { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1280px) { .leaks { grid-template-columns: repeat(3, 1fr); } }

.leak-phone { display: grid; place-items: center; width: 56px; height: 96px; border-radius: 14px; box-shadow: 0 0 0 4px var(--ink); }
.leak-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.leak__art--offer { align-content: center; gap: 10px; }
.leak-h { padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.leak-h--bad { color: var(--muted); background: var(--surface); text-decoration: line-through; text-decoration-color: #dc2626; }
.leak-h--good { background: var(--ink); color: #fff; }
.leak-form { display: grid; gap: 5px; width: 120px; }
.leak-form i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.leak-form b { justify-self: end; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.leak-form b .ico { width: 9px; height: 9px; }
.leak-grid { display: grid; grid-template-columns: repeat(4, 30px); gap: 6px; }
.leak-grid i { display: block; height: 18px; border-radius: 6px; background: var(--accent-soft); box-shadow: 0 0 0 1px #e4d6e2 inset; }
.leak-trust { display: grid; gap: 6px; }
.leak-trust__row { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; }
.leak-trust__row i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: #15803d; font-style: normal; font-size: .75rem; }
.leak-trust__row .ico { width: 13px; height: 13px; }
.leak__art--mismatch { grid-auto-flow: column; gap: 12px; }
.leak__art--mismatch > .ico { width: 18px; height: 18px; color: var(--muted); }
.leak-ad { padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.leak-list { display: grid; gap: 5px; width: 72px; }
.leak-list i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.leak-list i.is-hit { background: var(--accent-light); width: 70%; }

/* ---------- Sticky graphic figures ---------- */
.track { display: grid; gap: 10px; width: min(100%, 380px); }
.track li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; font-weight: 500; font-size: .9375rem; }
.track li b { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.track__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); }
.track__ico .ico { width: 17px; height: 17px; }
.track__src { font-size: .8125rem; color: var(--muted); }

.heat { position: relative; display: grid; gap: 9px; align-content: start; width: min(100%, 240px); height: 270px; padding: 22px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lift); overflow: hidden; }
.heat__h { height: 14px; width: 78%; border-radius: 5px; background: var(--ink); }
.heat__p { height: 8px; border-radius: 4px; background: var(--surface-2); }
.heat__p--s { width: 62%; }
.heat__btn { justify-self: start; margin: 6px 0; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; }
.heat__blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; filter: blur(6px); pointer-events: none; }
.heat__blob--a { left: 6%; top: 34%; width: 110px; height: 70px; background: radial-gradient(closest-side, rgba(239,68,68,.75), rgba(250,204,21,.45) 60%, transparent); }
.heat__blob--b { left: 40%; top: 12%; width: 90px; height: 50px; background: radial-gradient(closest-side, rgba(250,204,21,.6), transparent); }
.heat__blob--c { right: 4%; top: 62%; width: 70px; height: 50px; background: radial-gradient(closest-side, rgba(59,130,246,.35), transparent); }
.heat__fold { position: absolute; left: 0; right: 0; top: 72%; padding: 6px 10px 0; border-top: 2px dashed var(--accent); color: var(--accent); font-size: .6875rem; font-weight: 600; text-align: center; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.95)); height: 100%; }

.matrix { position: relative; width: min(100%, 330px); aspect-ratio: 1.1; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.matrix__y { position: absolute; left: -12px; top: 0; translate: -100% 0; writing-mode: vertical-rl; rotate: 180deg; font-size: .75rem; font-weight: 600; color: var(--muted); }
.matrix__x { position: absolute; right: 0; bottom: -24px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.matrix__q--first { position: absolute; left: 0; top: 0; width: 50%; height: 50%; display: grid; place-items: end start; padding: 8px; background: rgba(203,169,197,.28); color: var(--accent); font-size: .75rem; font-weight: 700; }
.matrix__dot { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; padding: 6px 11px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: .75rem; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.matrix__dot.is-top { background: var(--ink); color: #fff; box-shadow: none; }

.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(100%, 380px); }
.ab__page { position: relative; display: grid; align-content: start; gap: 8px; padding: 30px 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); min-height: 190px; }
.ab__tag { position: absolute; top: 10px; left: 12px; font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--muted); }
.ab__h { height: 11px; width: 80%; border-radius: 4px; background: var(--ink); }
.ab__p { height: 7px; border-radius: 4px; background: var(--surface-2); }
.ab__btn { justify-self: start; margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; }
.ab__btn--small { width: 40px; height: 10px; padding: 0; background: var(--surface-2); margin-top: 22px; }
.ab__page.is-win { box-shadow: 0 0 0 2px var(--ink), var(--shadow-lift); }
.ab__win { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 10px; padding: 4px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .6875rem; font-weight: 700; }
.ab__win .ico { width: 12px; height: 12px; }

.mreport { width: min(100%, 360px); padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lift); display: grid; gap: 10px; }
.mreport__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mreport__head .ico { width: 18px; height: 18px; color: var(--accent); }
.mreport__bars { display: flex; align-items: flex-end; gap: 12px; height: 110px; padding-top: 6px; }
.mreport__bars i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--accent-light); transform-origin: 50% 100%; }
.mreport__bars i:last-child { background: var(--accent); }
.mreport__label { font-size: .75rem; color: var(--muted); }
.mreport__list { display: grid; gap: 6px; }
.mreport__list li { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.mreport__list .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 2.6; }

html.js .fig.is-active .track li, html.js .fig.is-active .matrix__dot, html.js .fig.is-active .ab__page, html.js .fig.is-active .mreport__list li { animation: rise .55s var(--ease-out) both; }
html.js .fig.is-active .track li:nth-child(2), html.js .fig.is-active .matrix__dot:nth-of-type(2), html.js .fig.is-active .ab__page:nth-child(2) { animation-delay: .15s; }
html.js .fig.is-active .track li:nth-child(3), html.js .fig.is-active .matrix__dot:nth-of-type(3) { animation-delay: .3s; }
html.js .fig.is-active .matrix__dot:nth-of-type(4) { animation-delay: .45s; }
html.js .fig.is-active .heat__blob { animation: blob .9s var(--ease-out) .3s both; }
html.js .fig.is-active .ab__win { animation: pop .5s cubic-bezier(.34,1.56,.64,1) .7s both; }
html.js .fig.is-active .mreport__bars i { animation: grow .8s var(--ease-out) both; }
html.js .fig.is-active .mreport__bars i:nth-child(2) { animation-delay: .1s; }
html.js .fig.is-active .mreport__bars i:nth-child(3) { animation-delay: .2s; }
html.js .fig.is-active .mreport__bars i:nth-child(4) { animation-delay: .3s; }
@keyframes blob { from { opacity: 0; transform: scale(.4); } }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- Sofia: the right action per business ---------- */
.actions3 { position: relative; padding: 44px 18px 18px; border-radius: 26px; background: var(--surface); display: grid; gap: 10px; }
.actions3__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 16px; background: #fff; }
.actions3__biz { font-weight: 600; font-size: .9375rem; }
.actions3__btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.actions3__btn .ico { width: 14px; height: 14px; }
.actions3__btn--call { background: #16a34a; }
html.js .split__fig.is-in .actions3__btn { animation: pop .5s cubic-bezier(.34,1.56,.64,1) both; }
html.js .split__fig.is-in .actions3__row:nth-of-type(2) .actions3__btn { animation-delay: .15s; }
html.js .split__fig.is-in .actions3__row:nth-of-type(3) .actions3__btn { animation-delay: .3s; }

/* Dark note (callout) */
.panel-dark--note { margin-top: 40px; padding: 28px 24px; }
.panel-dark__kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: #fff; }
.panel-dark__kicker .ico { width: 22px; height: 22px; color: var(--accent-light); }
.panel-dark__text { margin-top: 12px; font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark); max-width: 60ch; }
@media (min-width: 768px) { .panel-dark--note { padding: 36px 40px; } }

/* Related card: ad mock inside a link */
.rel .viz-ad__card > span { display: block; }
.rel .viz-ad__card > .viz-ad__call { display: inline-flex; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .leak-spin { animation: none; }
  html.js .split__fig.is-in .roi__t, html.js .split__fig.is-in .roi__op, html.js .split__fig.is-in .actions3__btn { animation: none; }
}
