/* The home's blocks after the first screen (templates/home.html, js/live.js): «Hansı biznes üçün?» — a gallery of the
   niches known by their pictures, each in its own colour; the day before and after (a notebook, chats and a calculator flying into the
   CRM's rows as the page scrolls); everything a day needs as a mosaic of the CRM's own pieces; buttons drawn to the mouse
   and the plans' edges lit where it is. Transforms and opacity only; under «reduce motion» everything stands still. */

/* ================= «Hansı biznes üçün?»: a gallery of the niches ================= */
/* each card in its niche's colour (--nc from js/live.js; the site's orange without scripts): its picture, its icon on the
   picture's edge, its line and «Demo». A computer's mouse turns a card a little (--rx, --ry), lifts it, brings the
   picture closer and raises the niche's two features over it. */
.nc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nc { --nc: var(--signal); --rx: 0deg; --ry: 0deg; --lift: 0px; position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .3s, opacity .6s var(--ease), translate .7s cubic-bezier(.2, .8, .2, 1); }
.nc__art { position: relative; display: block; aspect-ratio: 4 / 3; margin: 5px 5px 0; overflow: hidden; border-radius: 15px; background: color-mix(in srgb, var(--nc) 10%, var(--tint)); isolation: isolate; }
.nc__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
/* the niche's colour rising from the picture's bottom, under its features */
.nc__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--nc) 70%, transparent), transparent 55%);
  opacity: 0; transition: opacity .4s; }
.nc__feats { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 26px; display: flex; flex-wrap: wrap; gap: 5px; opacity: 0; translate: 0 14px;
  transition: opacity .35s, translate .45s cubic-bezier(.34, 1.4, .64, 1); }
.nc__feats span { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #121214; font-size: 12px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .5); }
.nc__mine { position: absolute; z-index: 1; left: 10px; top: 10px; display: none; padding: 4px 11px; border-radius: 99px; background: var(--nc); color: #fff; font-size: 12px; font-weight: 700; }
.nc__ic { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 16px; border-radius: 14px; background: var(--nc); color: #fff;
  box-shadow: 0 0 0 4px var(--bg), 0 12px 22px -12px var(--nc); transition: background-color .3s; }
.nc__body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 16px 16px; }
.nc__title { font: var(--display-weight) 17px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.nc__short { display: none; }
.nc__text { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.nc__cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.nc__demo { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px 0 12px; border-radius: 99px; background: var(--nc); color: #fff;
  font-size: 13.5px; font-weight: 700; transition: filter .2s; }
.nc__demo:hover { filter: brightness(1.08); }
.nc__more { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.nc__more:hover { color: var(--ink); }
/* a visitor an ad sent for this niche: his card first, marked his */
.nc.is-theirs { border: 2px solid var(--nc); box-shadow: 0 20px 44px -28px var(--nc); }
.nc.is-theirs .nc__mine { display: inline-block; }
/* «your niche is not here?»: a dark card across what is left of the others' last row — its places at two columns (o2), at
   three (o3), at four (o4), counted by the server (views.js) */
.nc--other { justify-content: center; border-color: var(--dark); background: radial-gradient(90% 120% at 100% 0%, rgba(242, 85, 29, .3), transparent 60%), var(--dark); color: var(--on-dark); }
.nc--other .nc__ic { margin: 18px 0 0 16px; background: var(--signal); box-shadow: none; }
.nc--other .nc__title { color: var(--on-dark); font-size: 20px; }
.nc--other .nc__text { flex: 0; color: var(--dark-ink-2); }
.nc--other .nc__cta { justify-content: flex-start; }
.nc--o2-1 { grid-column: span 1; }
.nc--o2-2 { grid-column: 1 / -1; }
/* the shops (module trade): a shelf of their own under the others — a tinted panel under an awning's stripe, its heading,
   its four cards two by two (a row of four on a computer) */
.nc-shelf { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px 20px;
  margin-top: 10px; padding: 38px 24px 24px; overflow: hidden; border-radius: 28px; background: color-mix(in srgb, var(--signal) 7%, var(--bg)); }
.nc-shelf::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 28px, color-mix(in srgb, var(--signal) 22%, var(--bg)) 28px 56px); }
.nc-shelf__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--signal); color: #fff; }
.nc-shelf__ic .ic { width: 26px; height: 26px; }
.nc-shelf__head { min-width: 0; }
.nc-shelf__title { margin: 0; font: var(--display-weight) 28px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.nc-shelf__text { max-width: 640px; margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.nc-shelf__grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nc-shelf .nc { border-color: color-mix(in srgb, var(--signal) 14%, var(--line)); }
.nc__new { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 2px 9px; border-radius: 99px; background: var(--signal); color: #fff;
  font: 700 11px/1.5 var(--font-body, inherit); letter-spacing: .04em; text-transform: uppercase; }
/* by kind: a row of tabs over the cards — «Hamısı» and each kind with its count; the pressed one dark with the site's orange
   (js/live.js hides the other kinds' cards). On a phone the row scrolls sideways, on a computer it wraps. */
.nc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.nc-tab { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 9px 0 11px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--bg); color: var(--ink); font: 600 13.5px/1.2 var(--font-body, inherit); white-space: nowrap; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.nc-tab .ic { width: 16px; height: 16px; color: var(--ink-2); transition: color .2s; }
.nc-tab b { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: var(--tint); color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; }
.nc-tab:hover { border-color: var(--line-strong); }
.nc-tab:focus-visible { border-radius: 99px; }
.nc-tab[aria-pressed="true"] { border-color: var(--dark); background: var(--dark); color: var(--on-dark); }
.nc-tab[aria-pressed="true"] .ic { color: var(--signal); }
.nc-tab[aria-pressed="true"] b { background: var(--signal); color: #fff; }
/* a kind of the shops alone: their shelf with no gap over it */
.nc-grid.is-kind .nc-shelf { margin-top: 0; }
@media (max-width: 599px) {
  .nc-tabs { flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .nc-tabs::-webkit-scrollbar { display: none; }
  .nc-tab { min-height: 40px; padding: 0 10px 0 11px; font-size: 13.5px; }
}
/* the cards rise into place as they come in, a row's cards one after another (js/live.js) */
.js-live .nc-grid.is-ready .nc:not(.is-in) { opacity: 0; translate: 0 28px; }
.nc.is-in { transition-delay: 0s, 0s, 0s, var(--d, 0s), var(--d, 0s); }

@media (hover: hover) and (pointer: fine) {
  .nc:hover { --lift: -6px; border-color: color-mix(in srgb, var(--nc) 45%, var(--line)); box-shadow: 0 30px 50px -32px color-mix(in srgb, var(--nc) 75%, #000); }
  .nc:hover .nc__art img { transform: scale(1.06); }
  .nc:hover .nc__art::after, .nc:focus-within .nc__art::after { opacity: 1; }
  .nc:hover .nc__feats, .nc:focus-within .nc__feats { opacity: 1; translate: 0 0; }
}
@media (max-width: 599px) {
  /* two by two: the picture, the short name, «Demo» — every niche seen at once */
  .nc { border-radius: 16px; }
  .nc__art { margin: 4px 4px 0; border-radius: 12px; }
  .nc__ic { width: 36px; height: 36px; margin: -18px 0 0 10px; border-radius: 11px; }
  .nc__ic .ic { width: 18px; height: 18px; }
  .nc__body { gap: 4px; padding: 6px 10px 10px; }
  .nc__title { font-size: 14.5px; }
  .nc__full, .nc__text, .nc__more { display: none; }
  .nc__short { display: inline; }
  .nc__cta { margin-top: 4px; }
  .nc__demo { min-height: 34px; padding: 0 12px 0 10px; font-size: 12.5px; }
  .nc__mine { left: 6px; top: 6px; padding: 3px 9px; font-size: 11px; }
  .nc--other .nc__text { display: block; }
  .nc--other .nc__title { font-size: 18px; }
  .nc--o2-1 { justify-content: flex-start; }
  .nc--o2-1 .nc__title { font-size: 15.5px; }
  .nc--o2-1 .nc__text { font-size: 12.5px; }
  .nc--o2-1 .nc__cta .btn { padding-inline: 14px; font-size: 13px; }
  .nc-shelf { align-items: start; gap: 14px 12px; margin-top: 4px; padding: 26px 10px 10px; border-radius: 20px; }
  .nc-shelf::before { height: 7px; }
  .nc-shelf__ic { width: 44px; height: 44px; border-radius: 14px; }
  .nc-shelf__ic .ic { width: 22px; height: 22px; }
  .nc-shelf__title { font-size: 18px; }
  .nc-shelf__text { font-size: 13px; }
}
@media (min-width: 600px) {
  .nc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .nc--o3-1 { grid-column: span 1; }
  .nc--o3-2 { grid-column: span 2; }
  .nc--o3-3 { grid-column: 1 / -1; }
  .nc-shelf__grid { gap: 14px; }
}
@media (min-width: 960px) {
  .nc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .nc--o4-1 { grid-column: span 1; }
  .nc--o4-2 { grid-column: span 2; }
  .nc--o4-3 { grid-column: span 3; }
  .nc--o4-4 { grid-column: 1 / -1; }
  .nc--other:not(.nc--o4-1) { flex-direction: row; align-items: center; gap: 8px; padding: 22px 28px; }
  .nc--other:not(.nc--o4-1) .nc__ic { flex: none; width: 64px; height: 64px; margin: 0 12px 0 0; border-radius: 20px; }
  .nc--other:not(.nc--o4-1) .nc__ic .ic { width: 28px; height: 28px; }
  .nc--other:not(.nc--o4-1) .nc__body { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 28px; padding: 0; }
  .nc--other:not(.nc--o4-1) .nc__title { flex: 1 1 100%; font-size: 26px; }
  .nc--other:not(.nc--o4-1) .nc__text { flex: 1; font-size: 15px; }
  .nc--other:not(.nc--o4-1) .nc__cta { margin: 0; }
  .nc-shelf__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc { transform: none !important; transition: none; }
  .js-live .nc-grid.is-ready .nc:not(.is-in) { opacity: 1; translate: none; }
}

/* ================= the day before and after ================= */
/* --p: 0 the notebook, the chats and the calculator; 1 the CRM. Each piece has its own place in the mess (--dx, --dy, --r)
   and its own moment (--d); --k is how far it has come. Without scripts --p stays 1: the CRM. */
.ba { --p: 1; position: relative; background: var(--tint); }
.ba__pin { padding: 64px 0; }
.ba.is-pinned { height: 250vh; }
.ba.is-pinned .ba__pin { position: sticky; top: var(--header-h); display: grid; align-items: center; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  padding: 0; overflow: hidden; }
.ba__grid { display: grid; gap: 22px; align-items: center; }
.ba__tag { display: inline-flex; margin-bottom: 12px; padding: 5px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.ba__lead { margin-top: 14px; }
.ba-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 99px;
  background: var(--bg); font-size: 14px; font-weight: 700; }
.ba-switch span { position: relative; z-index: 1; padding: 7px 18px; text-align: center; color: var(--ink-2); transition: color .3s; }
.ba-switch i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--ink);
  translate: calc(var(--p) * 100%) 0; transition: background-color .3s; }
.ba:not(.is-after) .ba-switch span:first-of-type, .ba.is-after .ba-switch span:last-of-type { color: #fff; }
.ba.is-after .ba-switch i { background: var(--ok); }
.ba-pains { display: grid; gap: 14px; margin-top: 24px; }
.ba-pain { display: grid; gap: 3px; }
.ba-pain__was { font-size: 16px; color: var(--ink); }
.ba-pain__was span { background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 58% / 0 2px; transition: background-size .7s cubic-bezier(.4, 0, .2, 1), color .5s; }
.ba-pain__now { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ok); opacity: 0; translate: 0 6px; transition: opacity .4s .25s, translate .5s .25s var(--ease); }
.ba-pain__now::before { content: "\2713"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; }
.ba-pain.is-solved .ba-pain__was span, .ba:not(.is-pinned) .ba-pain__was span { background-size: 100% 2px; color: var(--ink-3); }
.ba-pain.is-solved .ba-pain__now, .ba:not(.is-pinned) .ba-pain__now { opacity: 1; translate: 0 0; }

/* the board: a notebook's page turning into the CRM's day */
.ba-board { --row: 58px; position: relative; justify-self: center; width: min(100%, 560px); height: 470px; }
.ba-paper, .ba-app { position: absolute; inset: 0; border-radius: 22px; }
.ba-paper { background: linear-gradient(90deg, transparent 50px, rgba(214, 64, 64, .35) 50px 52px, transparent 52px),
    repeating-linear-gradient(transparent 0 33px, rgba(70, 110, 190, .2) 33px 34px) 0 52px / 100% calc(100% - 52px) no-repeat, #fbf6e7;
  box-shadow: 0 30px 60px -40px rgba(60, 40, 10, .55), 0 0 0 1px rgba(120, 90, 30, .1); rotate: calc((1 - var(--p)) * -1.5deg); opacity: clamp(0, calc(1.5 - var(--p) * 2.2), 1); }
/* the app comes in over the paper before the paper goes: the board is never washed out between them */
.ba-app { background: #fff; box-shadow: var(--shadow); opacity: clamp(0, calc(var(--p) * 2.4 - .2), 1); }
.ba-app__top { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.ba-app__logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #7a2e5c; color: #fff; font: 700 14px/1 var(--font-display); }
.ba-app__top b { font: 650 15px/1 var(--font-display); }
.ba-app__top small { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.ba-rows { position: absolute; left: 16px; right: 16px; top: 74px; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ba-piece { --k: clamp(0, calc((var(--p) - var(--d, 0)) * 2.3), 1); position: relative; height: var(--row);
  transform: translate(calc(var(--dx, 0px) * (1 - var(--k))), calc(var(--dy, 0px) * (1 - var(--k)))) rotate(calc(var(--r, 0deg) * (1 - var(--k)))); }
.ba-old { position: absolute; left: 0; top: 50%; translate: 0 -50%; max-width: 92%; white-space: nowrap; opacity: clamp(0, calc(1 - var(--k) * 2.2), 1); }
.ba-new { position: absolute; inset: 0; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 0 12px 0 16px;
  border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .06); opacity: clamp(0, calc(var(--k) * 2.2 - 1.1), 1); }
.ba-new::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: #7a2e5c; }
.ba-new__t { font: 700 13px/1 var(--font-display); }
.ba-new__b { min-width: 0; }
.ba-new__b b { display: block; font-size: 14px; line-height: 1.25; }
.ba-new__b small { display: block; overflow: hidden; font-size: 12px; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.ba-new__s { font: 700 13.5px/1 var(--font-display); }
.ba-new__chip { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--ok) 13%, #fff); color: var(--ok); }
/* the mess: two lines written in the notebook, two chats, a calculator, a sticky note and a missed call */
.ba-piece:nth-child(-n+2) .ba-old { left: 46px; font: 500 19px/1.2 "Segoe Print", "Bradley Hand", "Noteworthy", "Ink Free", cursive; color: #22408f; }
.ba-piece:nth-child(1) { --d: .02; --dx: 0px; --dy: -6px; --r: -2deg; }
.ba-piece:nth-child(2) { --d: .12; --dx: 30px; --dy: 30px; --r: 2.5deg; }
.ba-piece:nth-child(3) { --d: .22; --dx: 110px; --dy: 74px; --r: 4deg; }
.ba-piece:nth-child(4) { --d: .32; --dx: -60px; --dy: 120px; --r: -5deg; }
.ba-piece:nth-child(n+3) .ba-old { padding: 7px 12px 8px; border-radius: 13px 13px 13px 3px; background: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); font-size: 15px; color: #111b21; }
.ba-piece:nth-child(4) .ba-old { background: #d9fdd3; }
.ba-old small { display: block; font-size: 11.5px; font-weight: 700; color: #1d8c74; }
.ba-piece:nth-child(3) .ba-new__chip { background: var(--signal); color: #fff; }
.ba-piece:nth-child(4) .ba-new__chip { background: color-mix(in srgb, #2aa3e0 15%, #fff); color: #1b7fb3; }
.ba-total { --d: .42; --dx: 120px; --dy: -250px; --r: 9deg; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 60px; }
.ba-total .ba-old { left: auto; right: 0; padding: 10px 14px; border-radius: 12px; background: #1e2328; color: #9ff2b5; font: 700 18px/1 ui-monospace, "SF Mono", Consolas, monospace;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6), inset 0 0 0 3px #2d3339; }
.ba-total .ba-new { display: flex; justify-content: space-between; padding: 0 18px; background: color-mix(in srgb, var(--ok) 9%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 25%, transparent); }
.ba-total .ba-new::before { display: none; }
.ba-total .ba-new small { font-size: 13px; color: var(--ink-2); }
.ba-total .ba-new b { font: 700 24px/1 var(--font-display); color: var(--ok); }
.ba-junk { position: absolute; z-index: 1; opacity: clamp(0, calc(1 - var(--p) * 2.6), 1); pointer-events: none; }
.ba-junk--note { right: 18px; top: 86px; padding: 12px 14px 16px; background: #ffe56a; color: #3d3200; font: 600 16px/1.2 "Segoe Print", "Bradley Hand", "Noteworthy", "Ink Free", cursive;
  box-shadow: 0 12px 24px -12px rgba(80, 60, 0, .5); transform: translate(calc(var(--p) * 160px), calc(var(--p) * -80px)) rotate(calc(6deg + var(--p) * 30deg)); }
.ba-junk--call { left: -14px; bottom: 96px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; background: #fff; color: #c9352a;
  font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); transform: translateX(calc(var(--p) * -140px)); }

@media (max-width: 959px) {
  .ba__lead { display: none; }
  .ba .h2 { font-size: clamp(24px, 6.6vw, 34px); }
  .ba-switch { margin-top: 14px; }
  .ba-pains { gap: 8px; margin-top: 4px; }
  .ba-pain__was, .ba-pain__now { font-size: 14px; }
  .ba-board { --row: 48px; height: 356px; }
  .ba-rows { top: 66px; left: 10px; right: 10px; gap: 6px; }
  .ba-app__top { height: 54px; padding: 0 14px; }
  .ba-new { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; padding: 0 10px 0 13px; }
  .ba-new__chip { display: none; }
  .ba-new__b b { font-size: 13px; }
  .ba-new__b small { font-size: 11px; }
  .ba-piece:nth-child(-n+2) .ba-old { left: 40px; font-size: 16px; }
  .ba-piece:nth-child(n+3) .ba-old { font-size: 13.5px; }
  .ba-piece:nth-child(3) { --dx: 40px; --dy: 56px; }
  .ba-piece:nth-child(4) { --dx: -10px; --dy: 92px; }
  .ba-total { --dx: -6px; --dy: -190px; left: 10px; right: 10px; bottom: 10px; height: 50px; }
  .ba-total .ba-old { font-size: 15px; }
  .ba-junk--note { top: 70px; right: 8px; font-size: 14px; }
  .ba-junk--call { left: 6px; bottom: 76px; }
}
@media (min-width: 960px) {
  .ba__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
}

/* ================= «Hər gün lazım olan hər şey»: a mosaic of the CRM's own pieces ================= */
@property --bn-deg { syntax: '<number>'; inherits: false; initial-value: 230; }
.bn__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "cal cal" "tg tg" "fin rep" "cli cli" "ph ph" "roles xls"; gap: 12px; }
.bn-tile { --dl: 0s; position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); overflow: hidden; transition: transform .9s cubic-bezier(.34, 1.4, .64, 1) var(--dl), opacity .5s var(--dl), box-shadow .3s; }
.bn-tile:hover { box-shadow: 0 22px 44px -30px rgba(15, 15, 16, .4); }
.bn-ic { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 11px; background: var(--tint); }
.bn-tile__title { font: var(--display-weight) 18px/1.2 var(--font-display); letter-spacing: -.01em; }
.bn-tile__p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.bn-vis { position: relative; min-width: 0; }
.bn-tile--cal { grid-area: cal; } .bn-tile--tg { grid-area: tg; } .bn-tile--fin { grid-area: fin; } .bn-tile--rep { grid-area: rep; }
.bn-tile--cli { grid-area: cli; } .bn-tile--ph { grid-area: ph; } .bn-tile--roles { grid-area: roles; } .bn-tile--xls { grid-area: xls; }

/* the tiles gather from a scatter as the mosaic comes into sight (js/live.js adds .is-in) */
.js-live .bn__grid:not(.is-in) .bn-tile { opacity: 0; transform: translate(var(--sx, 0), var(--sy, 40px)) rotate(var(--sr, 0deg)) scale(.9); }
.bn-tile:nth-child(1) { --sx: -60px; --sy: 50px; --sr: -4deg; --dl: 0s; }
.bn-tile:nth-child(2) { --sx: 70px; --sy: -30px; --sr: 5deg; --dl: .07s; }
.bn-tile:nth-child(3) { --sx: 90px; --sy: 40px; --sr: 7deg; --dl: .14s; }
.bn-tile:nth-child(4) { --sx: 60px; --sy: 90px; --sr: -6deg; --dl: .21s; }
.bn-tile:nth-child(5) { --sx: -80px; --sy: 70px; --sr: 4deg; --dl: .28s; }
.bn-tile:nth-child(6) { --sx: 80px; --sy: 80px; --sr: -5deg; --dl: .35s; }
.bn-tile:nth-child(7) { --sx: -50px; --sy: 100px; --sr: 6deg; --dl: .42s; }
.bn-tile:nth-child(8) { --sx: 40px; --sy: 110px; --sr: -7deg; --dl: .49s; }

/* the calendar's day: three masters, five visits, one booked online */
.bn-cal { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; }
.bn-cal__head { display: grid; grid-template-columns: 46px repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--tint); }
.bn-cal__head b { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 6px; font-size: 12px; overflow: hidden; white-space: nowrap; }
.bn-cal__head i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, #7a2e5c 14%, #fff); color: #7a2e5c;
  font-size: 9.5px; font-style: normal; font-weight: 700; }
.bn-cal__body { --slot: 46px; position: relative; flex: 1; min-height: calc(var(--slot) * 5); overflow: hidden; }
.bn-cal__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; display: grid; grid-auto-rows: var(--slot); font-size: 10.5px; color: var(--ink-3); }
.bn-cal__rail span { padding: 3px 0 0 8px; }
.bn-cal__cols { position: absolute; left: 46px; right: 0; top: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: repeating-linear-gradient(transparent 0 calc(var(--slot) - 1px), var(--line) calc(var(--slot) - 1px) var(--slot)); }
.bn-cal__cols i { border-left: 1px solid var(--line); }
.bn-ev { --c: 0; --t: 0; --h: 1; position: absolute; left: calc(46px + (100% - 46px) / 3 * var(--c) + 4px); width: calc((100% - 46px) / 3 - 8px);
  top: calc(var(--slot) * var(--t) + 3px); height: calc(var(--slot) * var(--h) - 6px); display: grid; align-content: start; gap: 1px; padding: 5px 7px 5px 9px; border-radius: 9px;
  background: color-mix(in srgb, #7a2e5c 10%, #fff); box-shadow: inset 3px 0 0 #7a2e5c; font-style: normal; overflow: hidden; }
.bn-ev b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.bn-ev small { overflow: hidden; font-size: 10.5px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.bn-ev:nth-of-type(1) { --c: 0; --t: 0; --h: 1; --i: 0; }
.bn-ev:nth-of-type(2) { --c: 1; --t: .5; --h: 2; --i: 1; }
.bn-ev:nth-of-type(3) { --c: 2; --t: 2; --h: 1.3; --i: 4; background: color-mix(in srgb, var(--signal) 12%, #fff); box-shadow: inset 3px 0 0 var(--signal); }
.bn-ev:nth-of-type(4) { --c: 0; --t: 1.5; --h: 1.6; --i: 2; }
.bn-ev:nth-of-type(5) { --c: 2; --t: 0; --h: 1.4; --i: 3; }
.bn-ev:nth-of-type(6) { --c: 1; --t: 3; --h: 1.2; --i: 5; }
.bn-ev:nth-of-type(7) { --c: 0; --t: 3.6; --h: 1.6; --i: 6; }
/* at the online visit's lower right: it never covers the name */
.bn-ev__tag { position: absolute; left: calc(46px + (100% - 46px) / 3 * 3 - 10px); top: calc(var(--slot) * 3.3 - 25px); translate: -100% 0; padding: 1px 7px; border-radius: 99px;
  background: var(--signal); color: #fff; font-size: 9.5px; font-weight: 700; }
.bn__grid.is-in .bn-ev { animation: bn-pop .55s calc(.5s + var(--i) * .14s) cubic-bezier(.34, 1.56, .64, 1) both; }
.bn__grid.is-in .bn-ev__tag { animation: bn-pop .5s 1.25s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes bn-pop { from { opacity: 0; transform: scale(.7) translateY(-6px); } }

/* the bot's chat: the reminder, the answer pressed, the thanks */
.bn-tile--tg { background: linear-gradient(170deg, #eaf3fa, #d9e7f2); border-color: #d2e1ee; }
.bn-tile--tg .bn-ic { background: #2aa3e0; color: #fff; }
.bn-tg { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 16px; background: none; }
.bn-tg__chat { display: flex; flex-direction: column; gap: 6px; }
.bn-msg { max-width: 92%; padding: 8px 10px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); font-size: 13px; line-height: 1.38; }
.bn-msg--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #e3f7d1; }
.bn-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 92%; }
.bn-kb span { display: grid; place-items: center; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .85); color: #2a7ab8; font-size: 12px; font-weight: 700; }
.bn-kb span:first-child { background: #2a7ab8; color: #fff; }
.bn__grid.is-in .bn-msg--1 { animation: bn-msg .45s .6s cubic-bezier(.34, 1.4, .64, 1) both; }
.bn__grid.is-in .bn-kb { animation: bn-msg .4s 1.1s ease both; }
.bn__grid.is-in .bn-kb span:first-child { animation: bn-press .5s 1.8s both; }
.bn__grid.is-in .bn-msg--me { animation: bn-msg .45s 2.1s cubic-bezier(.34, 1.4, .64, 1) both; transform-origin: 100% 100%; }
.bn__grid.is-in .bn-msg--2 { animation: bn-msg .45s 2.7s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes bn-msg { from { opacity: 0; transform: scale(.7); } }
@keyframes bn-press { from { background: rgba(255, 255, 255, .85); color: #2a7ab8; } 40% { transform: scale(.94); } }

/* the month's money: a dark tile, its bars growing */
.bn-tile--fin { border-color: var(--dark); background: var(--dark); color: var(--on-dark); }
.bn-tile--fin .bn-ic { background: var(--dark-2); }
.bn-tile--fin .bn-tile__p { color: var(--dark-ink-2); }
.bn-fin { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 8px; margin-top: auto; }
.bn-fin small { grid-column: 1 / -1; font-size: 12px; color: var(--dark-ink-2); }
.bn-fin b { font: 700 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.bn-fin__up { padding: 2px 8px; border-radius: 99px; background: rgba(34, 197, 94, .18); color: #4ade80; font-size: 12px; font-weight: 700; }
.bn-fin__bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 6px; height: 54px; margin-top: 10px; }
.bn-fin__bars i { height: 100%; border-radius: 5px 5px 2px 2px; background: rgba(255, 255, 255, .16); transform-origin: 50% 100%; transform: scaleY(var(--h)); }
.bn-fin__bars i:nth-child(1) { --h: .42; } .bn-fin__bars i:nth-child(2) { --h: .56; } .bn-fin__bars i:nth-child(3) { --h: .5; }
.bn-fin__bars i:nth-child(4) { --h: .7; } .bn-fin__bars i:nth-child(5) { --h: .64; } .bn-fin__bars i:nth-child(6) { --h: .96; background: var(--signal); }
.bn__grid.is-in .bn-fin__bars i { animation: bn-bar .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.bn-fin__bars i:nth-child(2) { animation-delay: .08s !important; } .bn-fin__bars i:nth-child(3) { animation-delay: .16s !important; }
.bn-fin__bars i:nth-child(4) { animation-delay: .24s !important; } .bn-fin__bars i:nth-child(5) { animation-delay: .32s !important; } .bn-fin__bars i:nth-child(6) { animation-delay: .5s !important; }
@keyframes bn-bar { from { transform: scaleY(.05); } }

/* the reports: the ring of clients who came back */
.bn-rep { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.bn-rep__ring { flex: none; position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--signal) calc(var(--bn-deg) * 1deg), var(--tint-2) 0); }
.bn-rep__ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.bn-rep__ring b { position: relative; font: 700 18px/1 var(--font-display); }
.bn-rep small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bn__grid.is-in .bn-rep__ring { animation: bn-ring 1.4s .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bn-ring { from { --bn-deg: 0; } }

/* a client's card */
.bn-cli { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 16px 30px -26px rgba(0, 0, 0, .4); }
.bn-cli__who { display: flex; align-items: center; gap: 12px; }
.bn-cli__who i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #e87ba4, #7a2e5c); color: #fff;
  font: 700 15px/1 var(--font-display); font-style: normal; }
.bn-cli__who b { display: block; font-size: 15px; }
.bn-cli__who small { display: block; font-size: 12.5px; color: var(--ink-3); }
.bn-cli__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bn-cli__stats span { padding: 8px 10px; border-radius: 11px; background: var(--tint); }
.bn-cli__stats b { display: block; font: 700 15px/1.2 var(--font-display); }
.bn-cli__stats small { display: block; font-size: 11px; color: var(--ink-3); }
.bn-cli__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-cli__tags span { padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--signal) 12%, #fff); color: var(--signal-hover); font-size: 12px; font-weight: 700; }
.bn-cli__tags span + span { background: var(--bad-soft); color: var(--bad); }
.bn__grid.is-in .bn-cli__tags span { animation: bn-pop .45s 1s cubic-bezier(.34, 1.56, .64, 1) both; }
.bn__grid.is-in .bn-cli__tags span + span { animation-delay: 1.15s; }

/* on a phone: an orange tile with the CRM's day on a phone standing in it */
.bn-tile--ph { min-height: 280px; border-color: transparent; background: radial-gradient(120% 120% at 100% 100%, #ff8a4c, transparent 60%), var(--signal); color: #fff; }
.bn-tile--ph .bn-ic { background: rgba(255, 255, 255, .2); }
.bn-tile--ph .bn-tile__text { max-width: 54%; }
.bn-tile--ph .bn-tile__p { color: rgba(255, 255, 255, .88); }
.bn-ph { position: absolute; right: 22px; top: 26px; width: 178px; height: 330px; padding: 7px; border-radius: 30px; background: #111;
  box-shadow: 0 40px 60px -30px rgba(80, 20, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .14); transform: rotate(6deg); }
.bn-ph__screen { display: grid; align-content: start; gap: 5px; height: 100%; padding: 22px 9px 9px; border-radius: 24px; background: #f4f4f2; color: #0f0f10; overflow: hidden; }
.bn-ph__head { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.bn-ph__head i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #7a2e5c; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.bn-ph__rev { display: grid; padding: 8px 10px; border-radius: 12px; background: #7a2e5c; color: #fff; }
.bn-ph__rev small { font-size: 9px; opacity: .85; }
.bn-ph__rev b { font: 700 17px/1.1 var(--font-display); }
.bn-ph__row { display: grid; padding: 6px 8px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.bn-ph__row b { font-size: 10.5px; }
.bn-ph__row small { overflow: hidden; font-size: 9px; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.bn__grid.is-in .bn-ph { animation: bn-phone 1s .5s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes bn-phone { from { transform: translateY(80px) rotate(14deg); opacity: 0; } }

/* roles: who sees what */
.bn-tile--roles { background: var(--tint); border-color: transparent; }
.bn-tile--roles .bn-ic { background: var(--bg); }
.bn-roles { display: grid; gap: 6px; margin-top: auto; }
.bn-roles span { display: grid; padding: 7px 10px; border-radius: 11px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.bn-roles b { font-size: 13px; }
.bn-roles small { font-size: 11.5px; color: var(--ink-3); }
.bn__grid.is-in .bn-roles span { animation: bn-slide .5s calc(.6s + var(--i, 0) * .12s) var(--ease) both; }
.bn-roles span:nth-child(2) { --i: 1; } .bn-roles span:nth-child(3) { --i: 2; }
@keyframes bn-slide { from { opacity: 0; transform: translateX(-16px); } }

/* from Excel: the file, its bar filling, the clients in */
.bn-xls { display: grid; gap: 8px; margin-top: auto; }
.bn-xls__file { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.bn-xls__file::before { content: "X"; display: grid; place-items: center; width: 28px; height: 32px; border-radius: 6px; background: #1d6f42; color: #fff; font: 800 13px/1 var(--font-display); }
.bn-xls__bar { height: 8px; border-radius: 99px; background: var(--tint-2); overflow: hidden; }
.bn-xls__bar i { display: block; height: 100%; border-radius: inherit; background: #22a35a; transform-origin: 0 50%; }
.bn-xls small { font-size: 12px; font-weight: 700; color: #1d7a45; }
.bn__grid.is-in .bn-xls__bar i { animation: bn-fill 1.6s .6s cubic-bezier(.4, 0, .2, 1) both; }
.bn__grid.is-in .bn-xls small { animation: bn-msg .4s 2.2s ease both; }
@keyframes bn-fill { from { transform: scaleX(0); } }

@media (max-width: 719px) {
  .bn-tile { padding: 16px; border-radius: 18px; }
  .bn-tile--fin .bn-tile__p, .bn-tile--rep .bn-tile__p, .bn-tile--roles .bn-tile__p, .bn-tile--xls .bn-tile__p { display: none; }
  .bn-fin b { font-size: 20px; }
  .bn-rep { flex-direction: column; align-items: flex-start; }
  .bn-rep__ring { width: 70px; height: 70px; }
  .bn-tile--ph { min-height: 300px; }
  .bn-tile--ph .bn-tile__text { max-width: 52%; }
  .bn-ph { right: 14px; top: 30px; width: 150px; height: 290px; }
}
@media (min-width: 720px) {
  .bn__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "cal cal tg fin" "cal cal tg rep" "cli cli ph ph" "roles xls ph ph"; gap: 14px; }
}
@media (min-width: 960px) {
  .bn-tile { padding: 24px; }
  .bn-cal__body { --slot: 52px; }
  /* the phone stands up from the tile's bottom, larger, cut by its edge */
  .bn-ph { right: 56px; top: auto; bottom: -86px; width: 236px; height: 450px; padding: 9px; border-radius: 38px; transform: rotate(-7deg); }
  .bn-ph__screen { gap: 7px; padding: 30px 12px 12px; border-radius: 30px; }
  .bn-ph__head { font-size: 13px; } .bn-ph__rev b { font-size: 22px; } .bn-ph__row b { font-size: 12.5px; } .bn-ph__row small { font-size: 10.5px; }
  .bn-tile--ph .bn-tile__text { max-width: 46%; }
}

/* ================= buttons drawn to the mouse; the plans lit where it is ================= */
/* js/live.js moves a [data-magnet] button a little towards the mouse when it comes near (a computer's mouse only); it
   springs back when the mouse goes */
[data-magnet] { transition: translate .4s cubic-bezier(.34, 1.56, .64, 1), background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); }
/* the plans: their edges and a soft light where the mouse is, across all three at once (--sx, --sy from js/live.js) */
.plan { position: relative; isolation: isolate; }
.plan::before { content: ""; position: absolute; inset: -1px; z-index: 1; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 0%), var(--signal), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.plan::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), color-mix(in srgb, var(--signal) 8%, transparent), transparent 62%); }
.plans.is-lit .plan::before, .plans.is-lit .plan::after { opacity: 1; }
/* «Biznes»: a light running slowly round its edge — seen on a phone too */
@property --plan-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan--popular { border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, conic-gradient(from var(--plan-a), var(--ink) 0 58%, var(--signal) 74%, #ffb08f 81%, var(--ink) 92%) border-box;
  animation: plan-run 7s linear infinite; }
@keyframes plan-run { to { --plan-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .plan--popular { animation: none; } [data-magnet] { transition: none; } }

/* ---------- the AI administrator (partials/ai.html, js/live.js aiTalk) ----------
   Coming to it, the page turns to night with the scroll: the dark panel opens from a rounded card to the full width
   (--p, how far the block has come in, eased by the script) and the phone rises and turns to the visitor (--q, its own).
   Around the panel lies the tinted ground of the block above (the panel is whole again before its foot comes into
   sight), so its corners never show another colour. Then the talk plays on the phone. Transforms and opacity only;
   without scripts and under «reduce motion» it all stands opened, the talk as it ends. */
.aix { --p: 1; --q: 1; --aix-pink: #c23a72; --aix-pink-2: #e26a9a; --aix-pink-soft: #fbe9f0; --aix-ink: #2a1622; --aix-muted: #8f7784; --aix-line: #f0e4e0;
  position: relative; isolation: isolate; overflow: hidden; background: var(--tint); }
.aix::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: calc((1 - var(--p)) * 56px); scale: calc(.9 + var(--p) * .1);
  /* a plum light behind the phone, inside the panel */
  background: radial-gradient(48% 62% at 84% 22%, rgba(194, 58, 114, .24), rgba(242, 85, 29, .06) 60%, transparent), var(--dark); }
.aix__grid { display: grid; gap: 40px; align-items: center; }
.aix__copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.aix .h2 { margin: 0; text-wrap: balance; max-width: 18ch; }
.aix .lead-text { margin: 0; max-width: 52ch; }
.aix__checks { margin: 4px 0 0; padding: 0; list-style: none; color: #e9e9ee; }
.aix__checks .ic { color: var(--signal); }
.aix__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 6px 0 2px; }
.aix__price b { font: 600 38px/1 var(--font-display); letter-spacing: -.02em; color: var(--on-dark); }
.aix__price span { color: var(--dark-ink-2); font-size: 16px; }
.aix__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.aix__cta .btn--signal .ic { width: 18px; height: 18px; }
/* the words come up one after another as the block comes in */
.aix__copy > :not(ul), .aix__checks li { transition: opacity .7s var(--ease), translate .9s var(--ease); }
.js-live .aix:not(.is-in) .aix__copy > :not(ul), .js-live .aix:not(.is-in) .aix__checks li { opacity: 0; translate: 0 26px; }
.aix__copy > :nth-child(2) { transition-delay: .08s; }
.aix__copy > :nth-child(3) { transition-delay: .16s; }
.aix__checks li:nth-child(1) { transition-delay: .24s; }
.aix__checks li:nth-child(2) { transition-delay: .3s; }
.aix__checks li:nth-child(3) { transition-delay: .36s; }
.aix__checks li:nth-child(4) { transition-delay: .42s; }
.aix__copy > :nth-child(5) { transition-delay: .5s; }
.aix__copy > :nth-child(6) { transition-delay: .58s; }

/* ---- the night shift (2026-11-18): a board under a night sky — the talk beside tomorrow's calendar, a line from the
   booking to its hour, the night's counters. The bubbles keep their springs; the board itself moves calmly. ---- */
.aix__vis { position: relative; min-width: 0; }
.aic { --line-w: 0; position: relative; display: grid; gap: 14px; padding: 16px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .08); }
/* the sky: a few stars breathing slowly behind the board */
.aic__sky { position: absolute; inset: -40px -30px; z-index: -1; pointer-events: none; }
.aic__sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; animation: aic-star 5s ease-in-out infinite; }
.aic__sky i:nth-child(1) { left: 6%; top: 8%; } .aic__sky i:nth-child(2) { left: 30%; top: 2%; animation-delay: -1.2s; }
.aic__sky i:nth-child(3) { left: 62%; top: 6%; animation-delay: -2.6s; } .aic__sky i:nth-child(4) { left: 92%; top: 14%; animation-delay: -.6s; }
.aic__sky i:nth-child(5) { left: 2%; top: 58%; animation-delay: -3.4s; } .aic__sky i:nth-child(6) { left: 97%; top: 52%; animation-delay: -1.8s; }
.aic__sky i:nth-child(7) { left: 12%; top: 96%; animation-delay: -4.1s; } .aic__sky i:nth-child(8) { left: 78%; top: 97%; animation-delay: -2.2s; }
@keyframes aic-star { 50% { opacity: .12; scale: .6; } }
.aic__bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px; color: var(--on-dark); }
.aic__moon { position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none; background: #ffe7c2; box-shadow: 0 0 18px rgba(255, 214, 150, .55); overflow: hidden; }
.aic__moon::after { content: ""; position: absolute; left: 7px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: #241820; }
.aic__clock { font: 600 22px/1 var(--font-display); letter-spacing: -.01em; }
.aic__board { color: var(--dark-ink-2); font-size: 13.5px; font-weight: 600; }
.aic__live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 10px; border-radius: 99px; background: rgba(46, 204, 113, .12);
  color: #7ee2a8; font-size: 12px; font-weight: 700; }
.aic__live i { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: aic-live 2s ease-out infinite; }
@keyframes aic-live { 70% { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.aic__main { position: relative; display: grid; gap: 12px; }
/* the talk: a card like the booking page's chat, keeping to its bottom */
.aic-chat { display: flex; flex-direction: column; height: 340px; min-width: 0; overflow: hidden; border-radius: 20px; background: #fffdfc; color: var(--aix-ink);
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, .8); }
.aic-chat .aix-chat__head { padding: 12px 14px 10px; }
/* tomorrow's calendar: the busy hours, the free ones, the one the AI fills */
.aic-cal { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, .8); }
.aic-cal__head { display: grid; gap: 4px; margin: 0; }
.aic-cal__head small { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.aic-cal__scan { font-size: 12px; font-weight: 600; color: var(--signal); opacity: 0; translate: 0 4px; transition: opacity .4s var(--flow, ease), translate .5s var(--flow, ease); }
.aic-cal.is-scan .aic-cal__scan { opacity: 1; translate: none; }
/* the look through the day: a light passes down the hours */
.aic-cal::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(242, 85, 29, .14), transparent); }
.aic-cal.is-scan::after { animation: aic-scan 1.1s ease-in-out infinite; }
@keyframes aic-scan { 0% { opacity: 1; translate: 0 30px; } 100% { opacity: 1; translate: 0 280px; } }
.aic-cal__slots { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aic-slot { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; height: 60px; overflow: hidden; padding: 8px 12px; border-radius: 12px;
  background: #f7eef2; border-left: 3px solid var(--aix-pink); font-size: 13px; transition: background-color .6s var(--flow, ease), border-color .6s var(--flow, ease), box-shadow .6s var(--flow, ease); }
.aic-slot > b { font-size: 13px; }
.aic-slot__who { min-width: 0; font-weight: 600; color: var(--aix-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aic-slot--free { background: #fff; border: 1.5px dashed #e3d6d0; border-left: 3px dashed #e3d6d0; }
.aic-slot__free { color: var(--ink-3); font-weight: 600; transition: opacity .3s; }
/* the free hours glow while the AI looks; the chosen one fills */
.aic-cal.is-scan .aic-slot--free { border-color: rgba(242, 85, 29, .55); box-shadow: 0 0 0 4px rgba(242, 85, 29, .1); }
.aic-slot__new { display: none; min-width: 0; }
.aic-slot__new > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.25; color: var(--ink); }
.aic-slot__new em { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 1px 7px; border-radius: 99px; background: #fff1eb; color: var(--signal-hover);
  font-size: 11px; font-style: normal; font-weight: 700; }
.aic-slot__new em .ic { width: 11px; height: 11px; }
.aic-slot.is-booked { background: #fff6f1; border: 0; border-left: 3px solid var(--signal); box-shadow: 0 10px 24px -14px rgba(242, 85, 29, .7); }
.aic-slot.is-booked .aic-slot__free { display: none; }
.aic-slot.is-booked .aic-slot__new { display: block; animation: aic-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes aic-pop { from { opacity: 0; scale: .7; } }
/* the line from the booking's card to its hour */
.aic-wire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; display: none; }
.aic-wire path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(242, 85, 29, .6)); transition: stroke-dashoffset .9s var(--flow, ease), opacity .5s; }
.aic.is-wired .aic-wire path { stroke-dashoffset: 0; }
/* the night's counters */
.aic__stats { display: grid; grid-template-columns: auto repeat(3, 1fr); align-items: center; gap: 8px; color: var(--on-dark); }
.aic__night { padding: 0 4px; color: var(--dark-ink-2); font-size: 12.5px; font-weight: 600; }
.aic__stats > span:not(.aic__night) { display: grid; gap: 2px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.aic__stats small { color: var(--dark-ink-2); font-size: 11.5px; font-weight: 600; }
.aic__stats b { font: 600 20px/1.1 var(--font-display); }
.aic__stats b.is-bump { animation: aic-bump .6s cubic-bezier(.34, 1.56, .64, 1); color: #ffb08f; }
@keyframes aic-bump { 40% { scale: 1.35; } }
@media (min-width: 720px) {
  .aic { padding: 20px; gap: 16px; }
  .aic__main { grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: stretch; }
  .aic-chat { height: auto; min-height: 380px; }
  .aic-slot { height: 74px; }
  .aic-slot__new em { white-space: nowrap; font-size: 10.5px; padding: 1px 6px; }
  .aic-wire { display: block; }
}
.aix-chat__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; border-bottom: 1px solid var(--aix-line); }
.aix-chat__ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--aix-pink-2), var(--aix-pink)); color: #fff; }
.aix-chat__ava .ic { width: 18px; height: 18px; }
.aix-chat__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.aix-chat__who b { font-size: 14.5px; }
.aix-chat__who small { font-size: 11px; font-weight: 600; color: var(--ok); }
/* the talk keeps to the bottom like a real chat: a new message comes below, the ones above glide up (js/live.js) */
.aix-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px 11px 12px; }
.aix-msgs > * { flex: none; transition: transform .5s cubic-bezier(.34, 1.3, .64, 1), opacity .3s ease; }
.aix-msgs > .is-new { opacity: 0; transform: translateY(18px) scale(.86); }
.aix-msgs__time { align-self: center; font-size: 10.5px; font-weight: 600; color: var(--aix-muted); }
.aix-b { max-width: 86%; margin: 0; padding: 9px 12px; border-radius: 17px; font-size: 13px; line-height: 1.38; }
.aix-b p { margin: 0; }
.aix-b--me { align-self: flex-end; background: var(--aix-pink); color: #fff; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.aix-b--ai { align-self: flex-start; background: var(--aix-pink-soft); color: var(--aix-ink); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.aix-b__tag { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 4px; padding: 1px 7px; border-radius: 99px; background: #fff; color: var(--aix-pink); font-size: 10.5px; font-weight: 700; }
.aix-b__tag .ic { width: 10px; height: 10px; }
.aix-b--typing { display: inline-flex; gap: 4px; padding: 12px 13px; }
.aix-b--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--aix-pink); opacity: .35; animation: aix-dot 1s infinite; }
.aix-b--typing i:nth-child(2) { animation-delay: .15s; }
.aix-b--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aix-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.aix-done { padding: 11px 13px; border-radius: 15px; background: #e8f5ee; border: 1.5px solid rgba(19, 128, 79, .35); transform-origin: 50% 100%; }
.aix-done b { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 14px; }
.aix-done b .ic { width: 15px; height: 15px; stroke-dasharray: 24; animation: aix-check .6s .25s ease both; }
@keyframes aix-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.aix-done p { margin: 3px 0 0; font-size: 13px; font-weight: 600; }
.aix-done small { display: block; margin-top: 2px; font-size: 11.5px; color: #6e5563; }
/* a round ends: the talk and the filled hour fade, and the night goes on */
.aic.is-fading .aix-msgs, .aic.is-fading .aic-slot.is-booked .aic-slot__new, .aic.is-fading .aic-wire path { opacity: 0; transition: opacity .5s; }
@media (min-width: 960px) {
  .aix__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .aix__price b { font-size: 44px; }
}
@media (max-width: 959px) {
  .aix::before { border-radius: calc((1 - var(--p)) * 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .js-live .aix:not(.is-in) .aix__copy > :not(ul), .js-live .aix:not(.is-in) .aix__checks li { opacity: 1; translate: none; }
  .aix-b--typing i, .aix-done b .ic, .aic__sky i, .aic__live i, .aic-cal::after, .aic-slot__new, .aic__stats b { animation: none !important; }
}

/* its line under the plans (partials/pricing.html): the price on top of any plan and the way to the demo's chat */
.aib { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--dark); color: var(--on-dark); }
.aib__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; background: rgba(242, 85, 29, .16); color: #ff8a5c; }
.aib__text { flex: 1 1 320px; min-width: 0; }
.aib__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font: 600 19px/1.3 var(--font-display); }
.aib__price { color: #ff8a5c; }
.aib__sub { margin: 4px 0 0; color: var(--dark-ink-2); font-size: 15px; }
.aib__btn { border-color: rgba(255, 255, 255, .25); background: transparent; color: var(--on-dark); }
.aib__btn:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.aib__btn .ic { margin-left: 4px; }
