/* Final CTA and footer in the hero's EasyA-like language: dark sky with beams,
   violet and green glow and dust, matte tiles from assets/hero around the
   copy, the aipie tile rising from behind a near-black footer whose top-left
   corner is cut out with an S-curve. */
.final-cta {
  --cta-bg: #07061a;
  position: relative;
  isolation: isolate;
  /* clip, not hidden: a scroll container would capture view() timelines. */
  overflow: hidden;
  overflow: clip;
  padding: 168px 24px 32px;
  border-radius: 48px 48px 0 0;
  color: #f8faff;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, #2b1d78, transparent 72%),
    radial-gradient(ellipse 70% 40% at 50% 0, #0d1235, transparent 70%),
    var(--cta-bg);
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h150v150H0z'/%3E%3C/svg%3E");
}
.cta-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cta-sky .sky-beams {
  opacity: 0.8;
}
.cta-sky .aura-violet {
  left: -10%;
  top: 34%;
  width: 56%;
  height: 56%;
  opacity: 0.75;
}
.cta-sky .aura-green {
  right: -10%;
  top: 40%;
  width: 50%;
  height: 50%;
  opacity: 0.6;
}
.cta-sky .aura-core {
  left: 30%;
  top: 62%;
  width: 40%;
  height: 40%;
}
/* Dust: two tiled dot layers rising at different speeds; each loop moves by
   exactly one tile, so the seam never shows. Transform-only animation. */
.cta-dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 55%, #000 30%, transparent);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 55%, #000 30%, transparent);
}
.cta-dust::before,
.cta-dust::after {
  content: "";
  position: absolute;
  inset: 0 0 -260px;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 63% 41%, #fffc 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 37% 77%, #fff 0 1.2px, transparent 2px),
    radial-gradient(circle at 86% 64%, #fffa 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 24% 52%, #ffffff55 0 2.4px, transparent 4px);
  background-size: 260px 260px;
  animation: cta-dust-rise 44s linear infinite;
}
.cta-dust::after {
  inset: 0 0 -190px;
  background-size: 190px 190px;
  background-position: 70px 40px;
  opacity: 0.6;
  animation:
    cta-dust-rise-near 28s linear infinite,
    cta-twinkle 5s ease-in-out infinite alternate;
}
@keyframes cta-dust-rise {
  to {
    transform: translateY(-260px);
  }
}
@keyframes cta-dust-rise-near {
  to {
    transform: translateY(-190px);
  }
}
@keyframes cta-twinkle {
  from {
    opacity: 0.25;
  }
}

/* Pieces are placed in percent of the section and centred on --x/--y;
   --tilt turns a piece in perspective, flat pieces just rotate by --r. */
.cta-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-layer {
  position: absolute;
  inset: 0;
}
.cta-piece {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate(-50%, -50%) var(--tilt, rotate(var(--r, 0deg)));
}
/* Small blurred tiles at different depths around the edges. */
.cta-tile {
  aspect-ratio: 1;
  border-radius: 22%;
  filter: blur(var(--blur));
  background: linear-gradient(150deg, #3a2d6e, #120f2c 70%);
  box-shadow:
    inset 0 1px 0 #ffffff1a,
    0 8px 0 #24195a;
  opacity: 0.7;
}
/* Big matte blocks with a bright green plate, tilted with a visible edge:
   the in-plane shadow under the face reads as the block's thickness. */
.cta-block {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 24%;
  background:
    radial-gradient(circle at 30% 20%, #ffffff12, transparent 55%),
    linear-gradient(150deg, #24213f, #0d0c1f 75%);
  box-shadow:
    inset 0 1px 0 #ffffff26,
    inset 0 0 0 1px #ffffff0d,
    0 14px 0 #4b37b8,
    0 16px 0 #8f7bff80,
    0 40px 60px #05031299;
}
.cta-block.is-left {
  --tilt: perspective(900px) rotateX(52deg) rotateZ(-38deg);
}
.cta-block.is-right {
  --tilt: perspective(900px) rotateX(38deg) rotateY(-12deg) rotateZ(24deg);
}
.cta-plate {
  display: grid;
  place-items: center;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #8dffc6, #2fe08f 60%, #1fb874);
  box-shadow:
    inset 0 2px 0 #ffffffa0,
    0 6px 0 #138a56,
    0 0 40px #3dff9e66;
}
.is-right .cta-plate {
  width: 74%;
  border-radius: 26%;
}
.cta-plate svg {
  width: 52%;
  fill: none;
  stroke: #07150f;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Progress ring: a tilted dark disc with a green arc, like a gauge. */
.cta-ring {
  --tilt: perspective(800px) rotateX(48deg) rotateZ(-22deg);
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #f2f4ff;
  background: radial-gradient(circle at 40% 30%, #2a2650, #0b0a1c 70%);
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 12px 0 #3a2d84,
    0 14px 0 #b49bff70,
    0 40px 60px #05031299;
}
.cta-ring svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 7;
}
.ring-track {
  stroke: #ffffff1c;
}
.ring-arc {
  stroke: #3ff09a;
  stroke-linecap: round;
  stroke-dasharray: 38 100;
  filter: drop-shadow(0 0 4px #3ff09aaa);
}
.cta-ring b {
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cta-ring small {
  margin-top: 4px;
  font-size: clamp(9px, 0.8vw, 12px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  color: #c8cdf0;
}

.final-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
}
.final-copy h2 {
  margin: 0 auto 24px;
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.final-copy > p {
  font-size: 16px;
  line-height: 1.6;
  color: #a9b0cc;
}
.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.final-actions .button {
  min-height: 46px;
  font-size: 14px;
}

/* The main object: a weekly report card lying in perspective, its near edge
   sinking behind the footer, with an avatar tile standing on its corner.
   Numbers are the salon «Лето» demo: Айнура's weekly report above. */
.cta-card-wrap {
  position: relative;
  z-index: 1;
  width: min(660px, 48vw);
  margin: 88px auto 0;
  text-align: left;
}
.cta-card-wrap::before {
  content: "";
  position: absolute;
  inset: -30% -40% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, #7b5cff59, transparent);
  filter: blur(24px);
}
.cta-card {
  --card-tilt: perspective(1400px) rotateX(42deg) rotateZ(9deg);
  position: relative;
  padding: 7% 7% 9% 27%;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 90% at 0 100%, #7a52ff66, transparent 70%),
    linear-gradient(170deg, #1c1940, #0c0b20 70%);
  box-shadow:
    inset 0 1px 0 #ffffff2a,
    inset 0 0 0 1px #ffffff0f,
    0 22px 0 #2c2170,
    0 24px 0 #9b82ff66,
    0 60px 80px #020110;
  transform: var(--card-tilt);
}
.cta-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.cta-card-head b {
  font-weight: 500;
  color: #9ea4c4;
}
.cta-card-bar {
  display: block;
  height: clamp(10px, 1.1vw, 16px);
  margin-top: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cff, #c06bff);
  box-shadow:
    0 4px 0 #4a2a9c,
    0 0 24px #a46bff99;
}
.cta-card-chips {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 7%;
}
.cta-card-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px #ffffff38;
}
.cta-card-chips svg {
  width: 1.1em;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta-card-chips span:first-child svg {
  fill: #a97bff;
  stroke: #a97bff;
}
.cta-card-chips span:last-child svg {
  stroke: #3ff09a;
}
.cta-avatar {
  position: absolute;
  left: -3%;
  top: -30%;
  display: grid;
  place-items: center;
  width: 25%;
  aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(150deg, #ffffff, #d9d2ff 70%);
  box-shadow:
    inset 0 -2px 0 #b9adff,
    0 12px 0 #6c4cf0,
    0 14px 0 #b8a6ff80,
    0 30px 40px #0503128c;
  transform: perspective(900px) rotateX(40deg) rotateZ(-14deg);
}
.cta-avatar svg {
  width: 48%;
  fill: #7c55ff;
  stroke: #7c55ff;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* Scroll: as the section comes in, the card rises and straightens, side
   blocks and the ring drift in at their own depth, near tiles fly past. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cta-layer,
    .cta-card {
      animation: cta-drift linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }
    .cta-far {
      --py: 80px;
    }
    .cta-side-left {
      --px: -6vw;
      --py: 140px;
    }
    .cta-side-right {
      --px: 6vw;
      --py: 160px;
    }
    .cta-ring-layer {
      --py: 220px;
    }
    .cta-card {
      animation-name: cta-card-rise;
    }
  }
}
@keyframes cta-drift {
  from {
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
  }
}
@keyframes cta-card-rise {
  from {
    transform: translateY(110px) perspective(1400px) rotateX(62deg)
      rotateZ(14deg);
  }
}

.site-footer {
  --footer-bg: #050816;
  --notch-w: 112px;
  --notch-h: 64px;
  --footer-radius: 32px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: calc(-1 * var(--notch-h));
  color: #f8faff;
}
/* A small step in the top-left corner: the panel starts --notch-h lower at
   the left edge and an S-curve --notch-w wide lifts it to full height, so the
   CTA sky shows in the corner. The top-right corner is rounded. */
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.site-footer::before {
  inset: var(--notch-h) 0 0;
  background: var(--footer-bg);
}
.site-footer::after {
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--notch-h) + 1px);
  border-top-right-radius: var(--footer-radius);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 64' preserveAspectRatio='none'%3E%3Cpath fill='%23050816' d='M0 64C44 64 44 0 88 0v64z'/%3E%3C/svg%3E")
      0 0 / var(--notch-w) 100% no-repeat,
    linear-gradient(var(--footer-bg), var(--footer-bg)) var(--notch-w) 0 /
      100% 100% no-repeat;
}
.site-footer > .wrap {
  padding-block: calc(var(--notch-h) + 44px) 36px;
}
.site-footer a {
  color: #8f96b2;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px 48px;
}
.footer-top .wordmark {
  gap: 14px;
  color: #f8faff;
}
.footer-top .wordmark img {
  width: 40px;
  height: 40px;
}
.footer-top .wordmark span {
  font-size: 40px;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 28px;
  font-size: 14px;
}
.footer-top nav a {
  padding-block: 10px;
}
.site-footer .footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  color: #f8faff;
  background: #ffffff0a;
  box-shadow: inset 0 0 0 1px #ffffff24;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.site-footer .footer-telegram:hover {
  background: #ffffff17;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.footer-telegram svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #ffffff14;
  font-size: 12px;
  color: #6f7694;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 24px;
}
.footer-legal a {
  padding-block: 8px;
}
.footer-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6f7694;
}
/* Link columns: every solution, niche and blog page is linked from every
   page, home included. The blog column flows into two columns. */
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #ffffff14;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: left;
}
.footer-cols nav {
  min-width: 0;
}
.footer-col-title {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #f8faff;
}
.footer-col-list {
  display: flex;
  flex-direction: column;
}
.footer-col-list.is-split {
  display: block;
  columns: 2;
  column-gap: 32px;
}
.footer-col-list a {
  display: block;
  padding-block: 5px;
  break-inside: avoid;
}
/* Inner pages: the same sky as home, without the floating report card. */
.final-cta.is-plain {
  padding: 136px 24px 152px;
}
@media (max-width: 1100px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .final-cta.is-plain {
    padding: 104px 18px 112px;
  }
  .footer-cols {
    gap: 28px 20px;
    margin-top: 32px;
  }
  .footer-cols nav:nth-child(2) {
    grid-column: 1 / -1;
  }
  .footer-col-list.is-split {
    column-gap: 20px;
  }
}
@media (max-width: 767px) {
  .final-cta {
    padding: 132px 18px 6px;
    border-radius: 32px 32px 0 0;
  }
  .final-copy h2 {
    font-size: 40px;
    margin-bottom: 18px;
  }
  .final-copy > p {
    font-size: 14px;
  }
  .final-actions {
    gap: 8px;
    margin-top: 26px;
  }
  .final-actions .button {
    gap: 10px;
    padding-inline: 14px;
    font-size: 13px;
  }
  /* As on easya's phone layout: the card sits right under the buttons,
     shifted left and cut by the screen edge. */
  .cta-card-wrap {
    width: 100vw;
    margin: 64px 0 0 -14vw;
  }
  .cta-card {
    padding-left: 16%;
    border-radius: 22px;
  }
  .cta-avatar {
    left: 6%;
    top: -38%;
    width: 24%;
  }
  .cta-block.is-right {
    opacity: 0.55;
    filter: saturate(0.6);
  }
  .cta-card-head {
    font-size: 22px;
  }
  .cta-card-chips {
    gap: 8px;
  }
  .cta-card-chips span {
    font-size: 14px;
  }
  .cta-ring b {
    font-size: 20px;
  }
  .cta-ring small {
    font-size: 9px;
  }
  /* Phone positions come from --mx/--my/--mw next to the desktop ones. */
  .cta-piece {
    left: var(--mx);
    top: var(--my);
    width: var(--mw);
  }
  .site-footer {
    --notch-w: 64px;
    --notch-h: 40px;
    --footer-radius: 20px;
    text-align: center;
  }
  .site-footer > .wrap {
    padding-block: calc(var(--notch-h) + 32px) 28px;
  }
  .footer-top {
    flex-direction: column;
    gap: 22px;
  }
  .footer-top .wordmark span {
    font-size: 34px;
  }
  .footer-top .wordmark img {
    width: 34px;
    height: 34px;
  }
  .footer-top nav {
    justify-content: center;
    gap: 2px 20px;
  }
  .footer-top nav .footer-telegram {
    margin-top: 10px;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
  }
  .footer-legal {
    justify-content: center;
    gap: 0 18px;
  }
  .footer-note {
    text-align: center;
  }
}
@media (forced-colors: active) {
  .cta-sky,
  .cta-stage,
  .cta-card-wrap {
    display: none;
  }
}
