/* The one black Kaia card of the site (home and landings, owner 21.10). Its headline rule is `.kcta .kcta__text h2` so a
   section's headline rule (.wd h2) never reaches it when the card stands inside a section.
   The Kaia call to action under «How it works» (owner 16.10): a black card of the design system («ink» tile) with
   a rain of the letters k l a u m o — the code Kaia develops from — and the white button to Kaia.
   No picture of Kaia here. The approval page: design/kaia-cta.html. Motion: js/kaia-cta.js */
.kcta { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; min-height: 420px;
  margin: var(--section-y) var(--edge) 0; padding: clamp(24px, 4.5vw, 64px);
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(70% 90% at 85% 30%, rgba(var(--sky-rgb), .22), transparent 70%), radial-gradient(120% 90% at 80% 100%, #3a3a40, #212121 60%); }
.kcta__rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 40%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 40%, #000 70%); }
.kcta__text { position: relative; z-index: 1; }
.kcta__eyebrow { margin: 0 0 14px; font: 600 12.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.kcta .kcta__text h2 { margin: 0; max-width: none; font: 600 clamp(30px, 4.4vw, 58px)/1.03 var(--font); letter-spacing: -0.035em; text-wrap: balance; color: #fff; }
.kcta__nb { white-space: nowrap; }   /* «KI-Agent», «ИИ-агент» never break at the hyphen */
.kcta__sub { margin: 18px 0 0; max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; text-wrap: pretty; color: rgba(255, 255, 255, .78); }
.kcta__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.kcta .hs-kaia { background: #fff; color: var(--ink); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6); }   /* the home Kaia button, white on the black card */
.kcta .hs-kaia__dot { position: relative; }
.kcta .hs-kaia__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(var(--warm-rgb), .55); animation: kcta-ring 2.2s ease-out infinite; }
@keyframes kcta-ring { to { box-shadow: 0 0 0 16px rgba(var(--warm-rgb), 0); } }
.kcta__quiet { font-size: 15px; color: #fff; opacity: .75; text-decoration: underline; text-underline-offset: 4px; }
.kcta__quiet:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
@media (max-width: 860px) {
  .kcta { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 120px; }
  .kcta__rain { -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.12) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.12) 100%); }
}
@media (prefers-reduced-motion: reduce) { .kcta .hs-kaia__dot::after { animation: none; } }
/* the second card (owner 17.10): until the linking circle lands, the button's dot is an empty warm ring */
.kcta--programs:not(.is-landed):not(.is-static) .hs-kaia__dot, .kcta--clients:not(.is-landed):not(.is-static) .hs-kaia__dot { background: transparent; box-shadow: inset 0 0 0 2px rgba(var(--warm-rgb), .6); color: transparent; }
.kcta--programs:not(.is-landed):not(.is-static) .hs-kaia__dot::after, .kcta--clients:not(.is-landed):not(.is-static) .hs-kaia__dot::after { animation: none; }
.kcta--programs .hs-kaia__dot.cl-lent, .kcta--clients .hs-kaia__dot.cl-lent { opacity: 1; }
.kcta .hs-kaia__dot .icon { display: grid; width: 20px; height: 20px; }   /* the card carries its own icon size (no page-level .icon rule needed) */

/* phones (headline check 20.10): no lone word on the last line of the black card */
@media (max-width: 599px) { .kcta .kcta__text h2 { font-size: clamp(25px, 7.2vw, 30px); text-wrap: pretty; } }

/* optional slots of the same card (owner 21.10: one component for the home and the landings) */
.kcta__note { margin: 16px 0 0; max-width: 46ch; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
/* the numbered steps of the talk on the right (the landing's «Kaia» section); the rain stays visible around them */
.kcta--steps { gap: clamp(28px, 4vw, 64px); }
.kcta__steps { position: relative; z-index: 1; display: grid; gap: 16px; align-self: center; margin: 0; padding: clamp(20px, 2.4vw, 32px); list-style: none; counter-reset: kcta;
  border-radius: var(--r-l); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.kcta__steps li { counter-increment: kcta; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; color: rgba(255, 255, 255, .9); }
.kcta__steps li::before { content: counter(kcta); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: 600 15px/1 var(--font); }
/* phones: text, then the steps, then the button and the note */
@media (max-width: 860px) {
  .kcta--steps .kcta__text { display: contents; }
  .kcta--steps > :not(canvas), .kcta--steps .kcta__text > * { position: relative; z-index: 1; }
  .kcta--steps .kcta__eyebrow { order: 1; } .kcta--steps h2 { order: 2; } .kcta--steps .kcta__sub { order: 3; }
  .kcta--steps .kcta__steps { order: 4; margin-top: 8px; } .kcta--steps .kcta__act { order: 5; margin-top: 8px; } .kcta--steps .kcta__note { order: 6; }
  .kcta--steps { gap: 14px; }
}
