/* ============================================================
   AI Copilot Development - /service/ai-copilot-development
   Prefix: cp-   Palette sampled from the owner's art: copilot indigo
   #140fa5 / #5338e2 (hero-art logo + send button), periwinkle #9ba3fa
   and lilac #fcf9fd (hero-bg ribbon), knot blue #2f5bff, task green.
   ============================================================ */

.cp-page {
  --cp-ink: #14114a;
  --cp-ink-2: #241d78;
  --cp-indigo: #3524d8;
  --cp-violet: #6b4dff;
  --cp-blue: #2f5bff;
  --cp-peri: #9ba3fa;
  --cp-lilac: #ece8ff;
  --cp-lilac-2: #f6f4ff;
  --cp-paper: #fbfaff;
  --cp-green: #1f9a3a;
  --cp-text: #4a4870;
  --cp-muted: #75739a;
  --cp-line: #e4e1f6;
  --cp-grad: linear-gradient(135deg, #2c1fd0 0%, #5a3cf0 55%, #8a5cff 100%);
  --cp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cp-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --cp-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --cp-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --cp-gap: clamp(72px, 9vw, 128px);

  font-family: var(--cp-font);
  color: var(--cp-text);
  background: #fff;
  overflow-x: clip;
}

/* style.css forces Gabarito !important on headings and p */
.cp-page :is(p, li, dd, dt, button, summary, a, span, input, label) {
  font-family: var(--cp-font) !important;
}

.cp-page :is(h1, h2, h3) {
  margin: 0;
  color: var(--cp-ink);
  font-family: var(--cp-display) !important;
  letter-spacing: -0.02em;
}

.cp-page h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.cp-page p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.cp-page :is(ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-page img {
  max-width: 100%;
}

.cp-page section {
  position: relative;
}

.cp-page :is(a, button, summary, input):focus-visible {
  outline: 3px solid var(--cp-violet);
  outline-offset: 3px;
}

.cp-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.cp-head {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

.cp-head h2 + p {
  margin-top: 16px;
}

/* sparkle mark */
.cp-page svg path[fill="currentColor"] {
  fill: currentColor;
}

/* ---------- reveal: animation, not transition, so delays never touch hovers ---------- */
:where(.cp-anim) .cp-reveal {
  opacity: 0;
}

:where(.cp-anim) .cp-reveal.is-in {
  animation: cp-rise 0.9s var(--cp-ease) var(--d, 0s) both;
}

@keyframes cp-rise {
  from {
    opacity: 0;
    translate: 0 28px;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

/* ---------- button: arrow disc crosses to the left on hover ---------- */
.cp-btn {
  --w: 44px;
  --in: 7px;

  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--w) + 2 * var(--in));
  max-width: 100%;
  padding: 0 calc(var(--w) + var(--in) + 14px) 0 26px;
  border-radius: 999px;
  background: var(--cp-grad);
  background-size: 160% 100%;
  background-position: 0 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(53, 36, 216, 0.32);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background-position 0.6s ease,
    padding 0.5s var(--cp-ease-io);
}

.cp-btn__label {
  min-width: 0;
  padding-block: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.cp-btn__icon {
  position: absolute;
  top: var(--in);
  right: var(--in);
  display: grid;
  place-items: center;
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  background: #fff;
  color: var(--cp-indigo);
  transition: right 0.5s var(--cp-ease-io);
}

.cp-btn__icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
  transition: transform 0.45s var(--cp-ease-io);
}

.cp-btn:hover,
.cp-btn:focus-visible {
  padding-left: calc(var(--w) + var(--in) + 14px);
  padding-right: 26px;
  background-position: 100% 0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(53, 36, 216, 0.4);
}

.cp-btn:hover .cp-btn__icon,
.cp-btn:focus-visible .cp-btn__icon {
  right: calc(100% - var(--w) - var(--in));
}

.cp-btn:hover .cp-btn__icon svg,
.cp-btn:focus-visible .cp-btn__icon svg {
  transform: rotate(0deg);
}

.cp-btn--light {
  background: #fff;
  color: var(--cp-ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.cp-btn--light .cp-btn__icon {
  background: var(--cp-grad);
  color: #fff;
}

.cp-btn--light:hover,
.cp-btn--light:focus-visible {
  color: var(--cp-ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

/* ============================================================
   HERO
   ============================================================ */
.cp-hero {
  --mx: 0;
  --my: 0;

  overflow: hidden;
  background: var(--cp-paper);
}

.cp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  translate: calc(var(--mx) * -18px) calc(var(--my) * -12px);
  scale: 1.05;
  transition: translate 0.8s ease-out;
  animation: cp-breathe 14s ease-in-out infinite alternate;
}

@keyframes cp-breathe {
  to {
    scale: 1.1;
    filter: hue-rotate(-12deg) saturate(1.1);
  }
}

/* soft light that follows the pointer */
.cp-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at calc(50% + var(--mx) * 100%) calc(50% + var(--my) * 100%),
      rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.cp-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  min-height: min(780px, calc(100vh - 112px));
  padding-block: 56px 64px;
}

.cp-page .cp-hero__title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.cp-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #2c1fd0, #6b4dff 45%, #2f5bff 70%, #2c1fd0);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cp-sheen 6s linear infinite;
}

@keyframes cp-sheen {
  to {
    background-position: -220% 0;
  }
}

.cp-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.cp-mask > span {
  display: block;
}

:where(.cp-anim) .cp-mask > span {
  translate: 0 110%;
  transition: translate 1.1s var(--cp-ease);
}

:where(.cp-anim) .cp-mask + .cp-mask > span {
  transition-delay: 0.1s;
}

:where(.cp-anim) .is-ready .cp-mask > span {
  translate: 0 0;
}

.cp-page .cp-hero__lead {
  max-width: 580px;
  margin-top: 22px;
  font-size: 18px;
}

.cp-hero__points {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 30px;
  margin: 26px 0 34px !important;
}

.cp-hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cp-ink);
  font-size: 16px;
  font-weight: 600;
}

.cp-hero__points i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  color: var(--cp-indigo);
  font-size: 17px;
  box-shadow: 0 6px 14px rgba(53, 36, 216, 0.14);
}

:where(.cp-anim) .cp-hero__in {
  opacity: 0;
}

:where(.cp-anim) .is-ready .cp-hero__in {
  animation: cp-rise 0.9s var(--cp-ease) var(--d, 0s) both;
}

.cp-art {
  position: relative;
  width: min(118%, 720px);
  padding-bottom: 54px;
}

.cp-art__float {
  translate: calc(var(--mx) * 22px) calc(var(--my) * 16px);
  transition: translate 0.6s ease-out;
}

.cp-art__float img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(36, 29, 120, 0.22));
  animation: cp-bob 7s ease-in-out infinite;
}

@keyframes cp-bob {
  50% {
    translate: 0 -10px;
  }
}

:where(.cp-anim) .cp-art {
  opacity: 0;
  scale: 0.94;
  transition: opacity 1.2s var(--cp-ease) 0.2s, scale 1.4s var(--cp-ease) 0.2s;
}

:where(.cp-anim) .is-ready .cp-art {
  opacity: 1;
  scale: 1;
}

/* command bar */
.cp-cmd {
  position: absolute;
  left: 4%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(88%, 500px);
  min-height: 58px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(36, 29, 120, 0.18), inset 0 0 0 1px rgba(107, 77, 255, 0.08);
  translate: calc(var(--mx) * 36px) calc(var(--my) * 22px);
  transition: translate 0.6s ease-out;
}

.cp-cmd::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--cp-a, 0deg), transparent 0 70%, #6b4dff 80%, #2f5bff 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cp-trace 3.2s linear infinite;
}

@property --cp-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes cp-trace {
  to {
    --cp-a: 360deg;
  }
}

.cp-cmd__spark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--cp-grad);
  color: #fff;
}

.cp-cmd__spark svg {
  width: 18px;
  animation: cp-twinkle 2.4s ease-in-out infinite;
}

@keyframes cp-twinkle {
  50% {
    rotate: 90deg;
    scale: 0.8;
  }
}

.cp-cmd__text {
  overflow: hidden;
  color: var(--cp-ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cp-cmd__caret {
  flex: none;
  width: 2px;
  height: 20px;
  margin-left: -8px;
  background: var(--cp-violet);
  animation: cp-blink 1s steps(1) infinite;
}

@keyframes cp-blink {
  50% {
    opacity: 0;
  }
}

.cp-cmd__state,
.cp-cmd__done {
  margin-left: auto;
  flex: none;
  display: none;
  align-items: center;
}

.cp-cmd__state i {
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--cp-violet);
  animation: cp-dot 1s ease-in-out infinite;
}

.cp-cmd__state i:nth-child(2) {
  animation-delay: 0.15s;
}

.cp-cmd__state i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes cp-dot {
  50% {
    translate: 0 -5px;
    opacity: 0.4;
  }
}

.cp-cmd__done {
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2f6e6;
  color: var(--cp-green);
  font-size: 13px;
  font-weight: 700;
}

.cp-cmd.is-thinking .cp-cmd__state,
.cp-cmd.is-done .cp-cmd__done {
  display: flex;
}

.cp-cmd.is-thinking .cp-cmd__caret,
.cp-cmd.is-done .cp-cmd__caret {
  opacity: 0;
  animation: none;
}

.cp-cmd.is-done .cp-cmd__done {
  animation: cp-pop 0.45s var(--cp-ease) both;
}

@keyframes cp-pop {
  from {
    opacity: 0;
    scale: 0.6;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

/* floating status chips */
.cp-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cp-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(36, 29, 120, 0.16);
  translate: calc(var(--mx) * var(--p, 30px)) calc(var(--my) * var(--p, 30px));
  transition: translate 0.6s ease-out;
}

.cp-chip i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cp-lilac);
  color: var(--cp-indigo);
  font-size: 14px;
}

.cp-chip--a {
  top: 2%;
  right: 4%;
  --p: 44px;
  animation: cp-bob 6s ease-in-out -2s infinite;
}

.cp-chip--b {
  top: 44%;
  left: -6%;
  --p: -30px;
  animation: cp-bob 8s ease-in-out -4s infinite;
}

.cp-chip--b i {
  background: #e2f6e6;
  color: var(--cp-green);
}

@media (max-width: 1199.98px) {
  .cp-chip--b {
    left: 0;
  }
}

@media (max-width: 991.98px) {
  .cp-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 40px 56px;
    gap: 28px;
  }

  .cp-art {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .cp-hero__points {
    grid-template-columns: 1fr;
  }

  .cp-cmd {
    left: 0;
    width: 100%;
  }

  .cp-chip {
    display: none;
  }

  .cp-btn {
    width: 100%;
  }
}

/* ============================================================
   RESULTS
   ============================================================ */
.cp-results {
  padding-block: clamp(56px, 7vw, 88px);
  background: #fff;
}

.cp-page .cp-results__title {
  max-width: 760px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.cp-results__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cp-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--cp-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, var(--cp-lilac-2));
  overflow: hidden;
  transition: transform 0.4s var(--cp-ease), box-shadow 0.4s var(--cp-ease), border-color 0.3s;
}

.cp-stat:hover {
  transform: translateY(-6px);
  border-color: #cfc8fb;
  box-shadow: 0 24px 44px rgba(53, 36, 216, 0.12);
}

.cp-stat__viz {
  display: grid;
  align-items: center;
  height: 64px;
  margin-bottom: 18px;
}

.cp-stat__viz svg {
  width: 64px;
  height: 64px;
}

.cp-stat__track {
  fill: none;
  stroke: var(--cp-lilac);
  stroke-width: 5;
}

.cp-stat--clock line {
  stroke: #c3bdf6;
  stroke-width: 2;
  stroke-linecap: round;
}

.cp-stat--clock .cp-stat__hand {
  stroke: var(--cp-indigo);
  stroke-width: 3;
  transform-origin: 32px 32px;
  animation: cp-spin 4s linear infinite;
}

.cp-stat--clock circle:last-child {
  fill: var(--cp-indigo);
}

@keyframes cp-spin {
  to {
    rotate: 360deg;
  }
}

.cp-stat__arc {
  fill: none;
  stroke: var(--cp-violet);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: 32px 32px;
  transition: stroke-dashoffset 2s var(--cp-ease) 0.3s;
}

.cp-stat.is-on .cp-stat__arc {
  stroke-dashoffset: 0;
}

.cp-stat__bars {
  display: flex;
  gap: 5px;
  align-items: end;
  height: 48px;
}

.cp-stat__bars i {
  flex: 1;
  height: 100%;
  border-radius: 4px;
  background: var(--cp-grad);
  transition: opacity 0.5s, height 0.6s var(--cp-ease);
  transition-delay: calc(0.6s + (9 - var(--i)) * 0.08s);
}

/* 40% less: the last four bars drain away */
.cp-stat.is-on .cp-stat__bars i:nth-child(n + 7) {
  height: 14%;
  opacity: 0.18;
}

.cp-stat__race {
  display: grid;
  gap: 10px;
}

.cp-stat__race i {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: var(--cp-lilac);
  overflow: hidden;
}

.cp-stat__race i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #c3bdf6;
  transform-origin: left;
  transform: scaleX(0);
  animation: cp-race 3.6s linear infinite;
}

.cp-stat__race i:first-child::after {
  background: var(--cp-grad);
  animation-duration: 1.2s;
}

@keyframes cp-race {
  to {
    transform: scaleX(1);
  }
}

.cp-stat__num {
  color: var(--cp-ink);
  font-family: var(--cp-display) !important;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cp-stat__num span {
  font-family: inherit !important;
}

.cp-stat dt {
  margin-top: 8px;
  color: var(--cp-text);
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .cp-results__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .cp-results__list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   EXCELLENCE
   ============================================================ */
.cp-intro {
  padding-block: var(--cp-gap);
  background:
    radial-gradient(900px 500px at 10% 50%, rgba(155, 163, 250, 0.25), transparent 70%),
    var(--cp-paper);
}

.cp-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.cp-intro__art {
  position: relative;
}

.cp-intro__art img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  animation: cp-bob 8s ease-in-out infinite;
}

.cp-intro__halo {
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.35), transparent 70%);
  filter: blur(30px);
  animation: cp-pulse 5s ease-in-out infinite;
}

@keyframes cp-pulse {
  50% {
    scale: 1.25;
    opacity: 0.6;
  }
}

.cp-intro__copy h2 {
  margin-bottom: 26px;
}

.js-words p + p {
  margin-top: 16px;
}

/* words brighten as the reader scrolls (driven by --w on each span) */
.js-words span {
  color: var(--cp-text);
}

:where(.cp-anim) .js-words span {
  color: #c4c1dc;
  transition: color 0.35s ease;
}

:where(.cp-anim) .js-words span.is-lit {
  color: var(--cp-text);
}

@media (max-width: 991.98px) {
  .cp-intro__grid {
    grid-template-columns: 1fr;
  }

  .cp-intro__art {
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ============================================================
   BENEFITS - bento
   ============================================================ */
.cp-ben {
  padding-block: var(--cp-gap);
}

.cp-ben__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.54fr) minmax(0, 0.54fr);
  grid-template-areas:
    "a b b"
    "a c c"
    "d d e"
    "f f e";
  gap: 20px;
}

.cp-ben__card--1 { grid-area: a; }
.cp-ben__card--2 { grid-area: b; }
.cp-ben__card--3 { grid-area: c; }
.cp-ben__card--4 { grid-area: d; }
.cp-ben__card--5 { grid-area: e; }
.cp-ben__card--6 { grid-area: f; }

.cp-ben__card {
  --px: 50%;
  --py: 50%;

  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cp-line);
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--cp-ease), box-shadow 0.45s var(--cp-ease), border-color 0.3s;
}

/* pointer spotlight */
.cp-ben__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--px) var(--py), rgba(107, 77, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}

.cp-ben__card:hover {
  transform: translateY(-6px);
  border-color: #cfc8fb;
  box-shadow: 0 26px 50px rgba(53, 36, 216, 0.12);
}

.cp-ben__card:hover::before {
  opacity: 1;
}

/* tall cards (1, 5): visual grows to fill two rows; wide cards: visual beside the copy */
.cp-ben__card:is(.cp-ben__card--2, .cp-ben__card--3, .cp-ben__card--4, .cp-ben__card--6) {
  flex-direction: row;
  align-items: stretch;
}

.cp-ben__viz {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 210px;
  margin: 10px 10px 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 1px 1px, rgba(53, 36, 216, 0.12) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(160deg, var(--cp-lilac-2), var(--cp-lilac));
  overflow: hidden;
}

.cp-ben__card:is(.cp-ben__card--2, .cp-ben__card--3, .cp-ben__card--4, .cp-ben__card--6) .cp-ben__viz {
  flex: 0 0 42%;
  min-height: 0;
  margin: 10px 0 10px 10px;
}

.cp-ben__body {
  padding: 22px 26px 26px;
}

.cp-ben__card:is(.cp-ben__card--2, .cp-ben__card--3, .cp-ben__card--4, .cp-ben__card--6) .cp-ben__body {
  flex: 1;
  min-width: 0;
  align-self: center;
  padding: 24px 28px;
}

.cp-ben__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-ben__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cp-grad);
  box-shadow: 0 10px 22px rgba(53, 36, 216, 0.28);
  transition: transform 0.5s var(--cp-ease);
}

.cp-ben__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cp-ben__card:hover .cp-ben__icon {
  transform: rotate(-8deg) scale(1.06);
}

.cp-page .cp-ben__card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.cp-ben__no {
  color: var(--cp-violet);
}

.cp-ben__card p {
  margin-top: 12px;
  font-size: 16px;
}

/* --- micro visuals: they play once the card is in view (.is-on) and replay on hover --- */
.cp-ben__viz svg path {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* 1. doc collapses into a summary */
.cp-v-doc {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cp-v-doc__page,
.cp-v-doc__sum {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 29, 120, 0.1);
}

.cp-v-doc__page {
  width: 112px;
}

.cp-v-doc__page i,
.cp-v-doc__sum i {
  height: 7px;
  border-radius: 9px;
  background: #dcd8f6;
}

.cp-v-doc__page i:nth-child(odd) {
  width: 80%;
}

.cp-v-doc__arrow {
  width: 26px;
  color: var(--cp-violet);
}

.cp-v-doc__sum {
  width: 120px;
  opacity: 0;
  translate: -20px 0;
}

.cp-v-doc__sum b {
  color: var(--cp-ink);
  font-size: 12px;
}

.cp-v-doc__sum i {
  background: var(--cp-grad);
}

.cp-v-doc__sum i + i {
  width: 70%;
}

.is-on .cp-v-doc__page i {
  animation: cp-scan 0.5s ease calc(var(--i) * 0.12s) both;
}

.is-on .cp-v-doc__sum {
  animation: cp-slide-in 0.7s var(--cp-ease) 0.9s both;
}

.is-on .cp-v-doc__arrow {
  animation: cp-twinkle 1.2s ease-in-out 0.5s 2;
}

@keyframes cp-scan {
  50% {
    background: var(--cp-violet);
  }
}

@keyframes cp-slide-in {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* 2. bars grow, trend line draws */
.cp-v-chart {
  position: relative;
  display: flex;
  align-items: end;
  gap: 12px;
  width: 200px;
  height: 120px;
}

.cp-v-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #8a5cff, #3524d8);
  transform-origin: bottom;
  transform: scaleY(0.08);
}

.cp-v-chart svg {
  position: absolute;
  inset: -6px 0 auto;
  width: 100%;
  height: 72px;
  overflow: visible;
}

.cp-v-chart path {
  stroke: var(--cp-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.is-on .cp-v-chart i {
  animation: cp-grow 0.8s var(--cp-ease) calc(var(--i) * 0.1s) both;
}

.is-on .cp-v-chart path {
  animation: cp-draw 1.1s ease 0.6s both;
}

@keyframes cp-grow {
  from {
    transform: scaleY(0.08);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes cp-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* 3. question, typing, suggested reply */
.cp-v-chat {
  display: grid;
  gap: 10px;
  width: min(250px, 86%);
}

.cp-v-chat__q,
.cp-v-chat__a,
.cp-v-chat__dots {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.cp-v-chat__q {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: #fff;
  color: var(--cp-ink);
  font-weight: 600;
}

.cp-v-chat__dots {
  justify-self: start;
  display: flex;
  gap: 4px;
  background: #fff;
}

.cp-v-chat__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cp-violet);
  animation: cp-dot 1s ease-in-out infinite;
}

.cp-v-chat__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.cp-v-chat__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.cp-v-chat__a {
  display: grid;
  gap: 4px;
  border-bottom-left-radius: 4px;
  background: var(--cp-grad);
  color: #fff;
}

.cp-v-chat__a em {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.85;
}

.cp-v-chat__a em svg {
  width: 11px;
}

.cp-v-chat > * {
  opacity: 0;
}

.is-on .cp-v-chat__q {
  animation: cp-pop 0.5s var(--cp-ease) both;
}

.is-on .cp-v-chat__dots {
  animation: cp-blip 1.1s ease 0.5s both;
}

.is-on .cp-v-chat__a {
  animation: cp-pop 0.5s var(--cp-ease) 1.5s both;
}

@keyframes cp-blip {
  0%,
  100% {
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }
}

.cp-v-chat__a,
.cp-v-chat__q {
  transform-origin: bottom;
}

/* 4. role chips take turns */
.cp-v-roles {
  display: grid;
  gap: 10px;
}

.cp-v-roles span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(36, 29, 120, 0.08);
}

.cp-v-roles i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--cp-lilac);
  color: var(--cp-indigo);
}

.is-on .cp-v-roles span {
  animation: cp-role 4.5s ease calc(var(--i) * 1.5s) infinite;
}

@keyframes cp-role {
  0%,
  33% {
    translate: 14px 0;
    background: var(--cp-ink-2);
    color: #fff;
  }

  40%,
  100% {
    translate: 0 0;
  }
}

/* 5. apps converge into one interface */
.cp-v-apps {
  position: relative;
  width: 220px;
  height: 150px;
}

.cp-v-apps span {
  position: absolute;
  top: 0;
  left: calc(16% + var(--i) * 34%);
  translate: -50% 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--cp-ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(36, 29, 120, 0.1);
}

.cp-v-apps svg {
  position: absolute;
  inset: 18px 0 18px;
  width: 100%;
  height: calc(100% - 36px);
}

.cp-v-apps path {
  stroke: var(--cp-violet);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.cp-v-apps b {
  position: absolute;
  left: 50%;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  translate: -50% 0;
  border-radius: 14px;
  background: var(--cp-grad);
  color: #fff;
  box-shadow: 0 10px 22px rgba(53, 36, 216, 0.35);
}

.cp-v-apps b svg {
  width: 20px;
}

.is-on .cp-v-apps path {
  animation: cp-draw 0.9s ease calc(0.2s + var(--n, 0) * 0.1s) both;
}

.is-on .cp-v-apps b {
  animation: cp-pop 0.5s var(--cp-ease) 0.9s both, cp-pulse-ring 2.4s ease 1.4s infinite;
}

@keyframes cp-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 77, 255, 0.45);
  }

  100% {
    box-shadow: 0 0 0 16px rgba(107, 77, 255, 0);
  }
}

/* 6. permission toggles */
.cp-v-perm {
  display: grid;
  gap: 10px;
  width: min(250px, 86%);
}

.cp-v-perm span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(36, 29, 120, 0.08);
}

.cp-v-perm i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: #d9d6ec;
  transition: background 0.4s;
}

.cp-v-perm i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: translate 0.4s var(--cp-ease);
}

.is-on .cp-v-perm .is-on i {
  background: var(--cp-green);
  transition-delay: calc(0.3s + var(--i) * 0.25s);
}

.is-on .cp-v-perm .is-on i::after {
  translate: 16px 0;
  transition-delay: calc(0.3s + var(--i) * 0.25s);
}

@media (max-width: 1199.98px) {
  .cp-ben__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
  }

  .cp-ben__card[class*="cp-ben__card--"] {
    grid-area: auto;
    flex-direction: column;
  }

  .cp-ben__card[class*="cp-ben__card--"] .cp-ben__viz {
    flex: none;
    min-height: 190px;
    margin: 10px 10px 0;
  }

  .cp-ben__card[class*="cp-ben__card--"] .cp-ben__body {
    align-self: stretch;
    padding: 22px 24px 26px;
  }
}

@media (max-width: 767.98px) {
  .cp-ben__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICES - focus grid: the active service's row and column grow
   (grid track lists animate), the rest stay as icon tiles
   ============================================================ */
.cp-svc {
  padding-block: var(--cp-gap);
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(107, 77, 255, 0.12), transparent 70%),
    radial-gradient(700px 420px at 10% 90%, rgba(47, 91, 255, 0.08), transparent 70%),
    var(--cp-paper);
}

.cp-sv {
  --gx: 50%;
  --gy: 50%;

  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  grid-template-rows: var(--rows);
  gap: 14px;
  transition:
    grid-template-columns 0.75s var(--cp-ease),
    grid-template-rows 0.75s var(--cp-ease);
}

.cp-sv__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--cp-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, box-shadow 0.5s, background 0.4s;
}

/* soft light following the pointer across the tiles */
.cp-sv__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgba(107, 77, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cp-sv__cell:hover::before {
  opacity: 1;
}

.cp-sv__cell:not(.is-on):hover {
  border-color: #cfc8fb;
  box-shadow: 0 16px 34px rgba(53, 36, 216, 0.1);
}

/* active cell: deep indigo with a drifting glow */
.cp-sv__cell::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  background:
    radial-gradient(closest-side at 70% 30%, rgba(138, 92, 255, 0.85), transparent),
    radial-gradient(closest-side at 25% 80%, rgba(47, 91, 255, 0.6), transparent),
    linear-gradient(140deg, #150f5c, #2a1cb8 55%, #4a2fe0);
  opacity: 0;
  transition: opacity 0.6s var(--cp-ease);
}

.cp-sv__cell.is-on {
  border-color: transparent;
  box-shadow: 0 34px 70px rgba(53, 36, 216, 0.35);
}

.cp-sv__cell.is-on::after {
  opacity: 1;
  animation: cp-aurora 18s ease-in-out infinite alternate;
}

.cp-sv__no {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #cfcbea;
  font-family: var(--cp-display) !important;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.4s;
}

.cp-sv__cell.is-on .cp-sv__no {
  color: rgba(255, 255, 255, 0.55);
}

.cp-sv__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cp-lilac);
  color: var(--cp-indigo);
  font-size: 21px;
  transition: background 0.4s, color 0.4s, width 0.5s var(--cp-ease), height 0.5s var(--cp-ease), font-size 0.5s;
}

.cp-sv__cell.is-on .cp-sv__icon {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 27px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cp-sv__cell h3 {
  margin-top: auto !important;
  padding-top: 14px;
}

.cp-sv__cell.is-on h3 {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-top: 0 !important;
  padding: 0 40px 0 74px;
}

/* open cell: icon sits beside the title instead of above it */
.cp-sv__cell.is-on .cp-sv__icon {
  position: absolute;
  top: 22px;
  left: 22px;
}

.cp-sv__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cp-ink);
  font-family: var(--cp-display) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.4s, font-size 0.5s var(--cp-ease);
}

/* the whole tile is the click target */
.cp-sv__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cp-sv__cell.is-on .cp-sv__btn {
  color: #fff;
  font-size: clamp(22px, 1.9vw, 27px);
  cursor: default;
}

.cp-sv__cell.is-on .cp-sv__btn::after {
  display: none;
}

.cp-sv__btn:focus-visible {
  outline: none;
}

.cp-sv__cell:has(.cp-sv__btn:focus-visible) {
  outline: 3px solid var(--cp-violet);
  outline-offset: 3px;
}

.cp-sv__peek {
  display: none;
}

.cp-sv__cell.is-row .cp-sv__peek {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--cp-muted);
  font-size: 15px !important;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  animation: cp-msg 0.5s var(--cp-ease) 0.3s both;
}

/* body: only in the active cell */
.cp-sv__cell:not(.is-on) .cp-sv__body {
  position: absolute;
  visibility: hidden;
  opacity: 0;
}

/* fixed to the open column's width (set by JS), so its height can be measured
   before the grid has finished growing */
.cp-sv__inner {
  width: var(--openw, auto);
}

.cp-sv__inner > p {
  max-width: 600px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16.5px;
}

.cp-sv__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px !important;
}

.cp-sv__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.cp-sv__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff;
}

.cp-sv__check svg {
  width: 13px;
  fill: none;
  stroke: var(--cp-indigo);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-sv__check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* entrance each time a cell opens: copy rises, points tick in one by one */
.cp-sv__cell.is-play .cp-sv__inner > p {
  animation: cp-msg 0.55s var(--cp-ease) 0.25s both;
}

.cp-sv__cell.is-play .cp-sv__list li {
  animation: cp-msg 0.5s var(--cp-ease) calc(0.4s + var(--i) * 0.07s) both;
}

.cp-sv__cell.is-play .cp-sv__check {
  animation: cp-pop 0.4s var(--cp-ease) calc(0.55s + var(--i) * 0.07s) both;
}

.cp-sv__cell.is-play .cp-sv__check path {
  animation: cp-draw 0.35s ease calc(0.65s + var(--i) * 0.07s) both;
}

@keyframes cp-msg {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

/* sparkles twinkle only in the active cell */
.cp-sv__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.cp-sv__cell.is-on .cp-sv__stars {
  opacity: 1;
}

.cp-sv__stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--z) * 26px);
  color: #fff;
  opacity: 0.25;
  animation: cp-star var(--t) ease-in-out infinite alternate;
}

/* auto-advance timer along the active cell's bottom edge */
.cp-sv__timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
}

.cp-sv.is-auto .cp-sv__cell.is-on .cp-sv__timer {
  opacity: 1;
  animation: cp-race 6.5s linear both;
}

@media (max-width: 1199.98px) {
  .cp-sv__list li {
    padding: 9px 12px;
    font-size: 14px;
  }

  .cp-sv__btn {
    font-size: 16px;
  }
}

/* below 992: an accordion; the open item expands in place */
@media (max-width: 991.98px) {
  .cp-sv {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    height: auto;
    gap: 10px;
  }

  .cp-sv__cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    padding: 16px 18px;
  }

  .cp-sv__no,
  .cp-sv__cell.is-row .cp-sv__peek {
    display: none;
  }

  .cp-sv__cell h3,
  .cp-sv__cell.is-on h3 {
    display: block;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
  }

  .cp-sv__cell.is-on .cp-sv__icon {
    position: static;
  }

  .cp-sv__cell.is-on .cp-sv__btn {
    font-size: 21px;
  }

  .cp-sv__cell.is-on .cp-sv__icon {
    width: 50px;
    height: 50px;
    font-size: 23px;
  }

  .cp-sv__body,
  .cp-sv__cell:not(.is-on) .cp-sv__body {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    visibility: visible;
    opacity: 1;
    transition: grid-template-rows 0.5s var(--cp-ease);
  }

  .cp-sv__cell.is-on .cp-sv__body {
    grid-template-rows: 1fr;
  }

  .cp-sv__inner {
    width: auto;
    min-height: 0;
    overflow: hidden;
  }

  .cp-sv__cell:not(.is-on) .cp-sv__inner {
    visibility: hidden;
  }

  .cp-sv__list {
    grid-template-columns: 1fr;
    padding-bottom: 6px !important;
  }
}

/* ============================================================
   CTAs
   ============================================================ */
.cp-cta-wrap {
  padding-block: 0;
  margin-block: clamp(56px, 7vw, 96px);
}

.cp-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}

.cp-cta__copy {
  position: relative;
}

/* every CTA matches the first: one-line heading on desktop, copy wrapped at 560px */
.cp-page .cp-cta h3 {
  max-width: 900px;
}

.cp-cta p {
  max-width: 560px;
}

.cp-cta__copy--center p {
  margin-inline: auto !important;
}

.cp-page .cp-cta h3 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.cp-cta p {
  margin-top: 14px;
  margin-bottom: 28px;
}

.cp-cta--photo {
  background: var(--cp-lilac);
}

.cp-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: scale 1.2s var(--cp-ease);
}

.cp-cta--photo:hover .cp-cta__bg {
  scale: 1.04;
}

.cp-cta--glow {
  justify-content: center;
  border: 1px solid #fff;
  background: linear-gradient(135deg, #f4f0ff, #e4e6ff);
  box-shadow: 0 30px 60px rgba(53, 36, 216, 0.1);
  text-align: center;
}

.cp-cta--glow .cp-cta__aurora {
  opacity: 0.45;
}

.cp-cta--glow .cp-cta__stars i {
  color: var(--cp-violet);
}

.cp-cta__copy--center {
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .cp-cta {
    min-height: 380px;
  }
}

.cp-cta__aurora {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(107, 77, 255, 0.75), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(47, 91, 255, 0.6), transparent),
    radial-gradient(closest-side at 50% 20%, rgba(200, 120, 255, 0.4), transparent);
  filter: blur(40px);
  animation: cp-aurora 16s ease-in-out infinite alternate;
}

@keyframes cp-aurora {
  50% {
    rotate: 25deg;
    scale: 1.15;
  }

  to {
    rotate: -20deg;
    translate: 6% -4%;
  }
}

.cp-cta__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cp-cta__stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--z) * 22px);
  color: #fff;
  opacity: 0.2;
  animation: cp-star var(--t) ease-in-out infinite alternate;
}

@keyframes cp-star {
  to {
    opacity: 0.85;
    scale: 0.6;
    rotate: 45deg;
  }
}

.cp-cta--lilac {
  justify-content: flex-start;
  background:
    radial-gradient(600px 300px at 80% 50%, rgba(107, 77, 255, 0.25), transparent 70%),
    linear-gradient(120deg, #f5f1ff, #e2e3ff);
}

.cp-cta__knot {
  position: absolute;
  right: 2%;
  inset-block: 0;
  margin-block: auto;
  width: clamp(240px, 26vw, 360px);
  animation: cp-bob 8s ease-in-out infinite;
}

@media (max-width: 991.98px) {
  .cp-cta--photo .cp-cta__bg {
    object-position: 78% center;
    opacity: 0.45;
  }

  .cp-cta__knot {
    opacity: 0.25;
    width: 80%;
  }
}

/* ============================================================
   TECH STACK - pinned plate stack | scrolling layer names | pinned tools
   (pattern from the iapp-dubai TechStack: the name crossing the
   viewport centre line is the active layer)
   ============================================================ */
.cp-tech {
  padding-block: var(--cp-gap);
  background:
    radial-gradient(700px 560px at 12% 50%, rgba(107, 77, 255, 0.14), transparent 65%),
    radial-gradient(600px 420px at 92% 40%, rgba(47, 91, 255, 0.1), transparent 65%),
    var(--cp-paper);
  overflow: clip;
}

.cp-tech__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.cp-tech__pin {
  position: sticky;
  /* centred on the focus line (45% of the viewport) the JS picks the active name with */
  top: calc(45vh - 15rem);
  align-self: start;
  height: 30rem;
}

/* ---- isometric stack ---- */
.cp-tech__iso {
  position: absolute;
  left: 50%;
  top: 64%;
  width: 270px;
  height: 270px;
  translate: -50% -50%;
  transform: rotateX(58deg) rotateZ(-45deg);
  transform-style: preserve-3d;
}

.cp-tech__plate {
  --up: 0;
  --lift: 0;

  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(53, 36, 216, 0.14);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #ebe7ff);
  box-shadow: -24px 24px 40px -14px rgba(20, 17, 74, 0.28);
  transform: translateZ(calc((7 - var(--i)) * 26px + var(--up) * 130px + var(--lift) * 14px));
  transform-style: preserve-3d;
  transition:
    transform 0.8s cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 0.6s ease,
    border-color 0.5s,
    box-shadow 0.5s;
}

.cp-tech__plate::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #4a39f0, var(--cp-indigo) 50%, var(--cp-violet));
  opacity: 0;
  transition: opacity 0.5s;
}

/* plates above the active one lift away, go faint and blank */
.cp-tech__plate.is-up {
  --up: 1;

  opacity: 0.3;
}

.cp-tech__plate.is-on {
  --lift: 1;

  border-color: transparent;
  box-shadow:
    0 0 0 2px #a99cff,
    -30px 30px 50px -14px rgba(53, 36, 216, 0.5);
}

.cp-tech__plate.is-on::before {
  opacity: 1;
}

.cp-tech__tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 13px;
  background: #fff;
  color: var(--cp-indigo);
  font-size: 24px;
  box-shadow: 0 0 0 1px rgba(53, 36, 216, 0.08);
  transition: transform 0.5s var(--cp-ease), opacity 0.4s, box-shadow 0.4s;
}

.cp-tech__tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-tech__plate.is-up .cp-tech__tile {
  opacity: 0;
}

/* hovering a tool in the right panel lifts its tile on the active plate */
.cp-tech__plate.has-hot .cp-tech__tile {
  opacity: 0.35;
}

.cp-tech__plate.has-hot .cp-tech__tile.is-hot {
  opacity: 1;
  transform: translateZ(36px) scale(1.15);
  box-shadow: 0 0 0 2px var(--cp-violet), -14px 14px 24px -6px rgba(20, 17, 74, 0.45);
}

/* ---- middle: layer names ---- */
.cp-tech__names {
  padding-block: 13.5rem !important;
}

.cp-tech__name {
  display: block;
  width: 100%;
  padding: 18px 8px;
  border: 0;
  background: none;
  color: #bdbad6;
  font-family: var(--cp-display) !important;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: underline 2px transparent;
  text-underline-offset: 9px;
  cursor: pointer;
  transition: color 0.3s, scale 0.3s, text-decoration-color 0.3s;
}

.cp-tech__name:hover {
  color: #8b88b3;
}

.cp-tech__name.is-on {
  color: var(--cp-ink);
  scale: 1.06;
  text-decoration-color: var(--cp-violet);
}

/* ---- right: active layer's tools ---- */
.cp-tech__panel {
  display: grid;
  align-content: center;
  justify-content: center;
}

.cp-tech__tools {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.4s, translate 0.4s, visibility 0.4s;
}

.cp-tech__tools.is-on {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.cp-page .cp-tech__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--cp-violet);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cp-tech__label i {
  font-size: 18px;
}

.cp-tech__tools ul {
  display: grid;
  gap: 14px;
}

.cp-tech__tools li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cp-text);
  font-size: 17px;
  font-weight: 500;
  cursor: default;
  transition: color 0.25s;
}

.cp-tech__tools li:hover {
  color: var(--cp-ink);
}

.cp-tech__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cp-violet);
  transition: scale 0.3s;
}

.cp-tech__tools li:hover .cp-tech__dot {
  scale: 1.6;
}


/* ---- below 992: stack, then the names as a swipe strip, then the tools ---- */
@media (max-width: 991.98px) {
  .cp-tech__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .cp-tech__pin {
    position: relative;
    top: auto;
    height: auto;
  }

  .cp-tech__stack {
    height: 360px;
  }

  .cp-tech__iso {
    width: 200px;
    height: 200px;
    top: 56%;
  }

  .cp-tech__plate {
    gap: 8px;
    padding: 18px;
    transform: translateZ(calc((7 - var(--i)) * 17px + var(--up) * 84px + var(--lift) * 10px));
  }

  .cp-tech__names {
    display: flex;
    gap: 8px;
    margin-inline: -24px !important;
    padding: 4px 24px 8px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cp-tech__names::-webkit-scrollbar {
    display: none;
  }

  .cp-tech__row {
    flex: none;
    scroll-snap-align: center;
  }

  .cp-tech__name {
    padding: 10px 18px;
    border: 1px solid var(--cp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--cp-muted);
    font-size: 16px;
    white-space: nowrap;
    text-decoration: none;
  }

  .cp-tech__name.is-on {
    border-color: transparent;
    background: var(--cp-grad);
    color: #fff;
    scale: 1;
  }

  .cp-tech__panel {
    display: grid;
    justify-content: stretch;
    margin-top: 18px;
  }

  .cp-tech__tools ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cp-tech__tools li {
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--cp-ink);
    font-size: 15px;
  }

}

/* ============================================================
   PROCESS - pinned wave stage (vertical list when not pinned)
   ============================================================ */
.cp-proc {
  --cp-pin-top: 96px;

  padding-block: var(--cp-gap);
  background:
    radial-gradient(900px 420px at 50% 60%, rgba(155, 163, 250, 0.22), transparent 70%),
    var(--cp-paper);
}

.cp-proc .cp-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.cp-proc__track {
  position: relative;
}

/* ---- default: vertical list ---- */
.cp-proc__wavebox {
  display: none;
}

.cp-proc .cp-proc__steps {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}

.cp-proc__steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--cp-violet), var(--cp-blue)) no-repeat, #d9d5f3;
  background-size: 100% calc(var(--p, 0) * 100%), auto;
}

.cp-step {
  position: relative;
  padding-left: 70px;
}

.cp-step__node {
  position: absolute;
  left: 23px;
  top: 26px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  translate: -50% 0;
  border: 2px solid #d9d5f3;
  border-radius: 50%;
  background: #fff;
  color: var(--cp-muted);
  font-family: var(--cp-display) !important;
  font-size: 15px;
  font-weight: 800;
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.cp-step.is-on .cp-step__node {
  border-color: transparent;
  background: var(--cp-grad);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(107, 77, 255, 0.16);
}

.cp-step__card {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--cp-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.cp-step.is-on .cp-step__card {
  border-color: #d6cffb;
  box-shadow: 0 20px 40px rgba(53, 36, 216, 0.1);
}

.cp-step__big {
  display: none;
}

.cp-step__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cp-lilac);
  color: var(--cp-indigo);
  font-size: 22px;
}


.cp-page .cp-step h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.cp-step p {
  margin-top: 8px;
  font-size: 16px;
}

@media (max-width: 575.98px) {
  .cp-step__icon {
    display: none;
  }
}

/* ---- pinned stage (JS adds .is-pinned when the stage fits the viewport) ---- */
.cp-proc.is-pinned .cp-proc__track {
  height: var(--cp-track-h, auto);
}

.cp-proc.is-pinned .cp-proc__stage {
  position: sticky;
  top: var(--cp-pin-top);
}

.cp-proc.is-pinned .cp-proc__wavebox {
  position: relative;
  display: block;
  height: 130px;
  margin: 58px 0 66px;
}

.cp-proc__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cp-proc__wave path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.cp-proc__ghost {
  stroke: #d9d5f3;
  stroke-dasharray: 2 8;
}

.cp-proc__line {
  stroke: var(--cp-violet);
  /* dash lengths are set in screen px by JS (non-scaling-stroke ignores pathLength) */
  stroke-dasharray: 0 99999;
}

.cp-proc__head {
  position: absolute;
  left: var(--hx, 0%);
  top: var(--hy, 50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  color: var(--cp-violet);
  box-shadow: 0 0 0 6px rgba(107, 77, 255, 0.18), 0 8px 20px rgba(53, 36, 216, 0.3);
  pointer-events: none;
}

.cp-proc__head svg {
  width: 16px;
  animation: cp-spin 3s linear infinite;
}

.cp-proc__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  translate: -50% -50%;
  border: 2px solid #d9d5f3;
  border-radius: 50%;
  background: #fff;
  color: var(--cp-muted);
  cursor: pointer;
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s, scale 0.4s var(--cp-ease);
}

.cp-proc__node b {
  font-family: var(--cp-display) !important;
  font-size: 15px;
  font-weight: 800;
}

.cp-proc__node span {
  position: absolute;
  left: 50%;
  width: 170px;
  translate: -50% 0;
  color: var(--cp-muted);
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: color 0.4s;
}

.cp-proc__node.is-up span {
  bottom: calc(100% + 10px);
}

.cp-proc__node.is-down span {
  top: calc(100% + 10px);
}

.cp-proc__node.is-done {
  border-color: var(--cp-violet);
  color: var(--cp-violet);
}

.cp-proc__node.is-on {
  border-color: transparent;
  background: var(--cp-grad);
  color: #fff;
  scale: 1.12;
  box-shadow: 0 0 0 8px rgba(107, 77, 255, 0.16), 0 10px 22px rgba(53, 36, 216, 0.3);
}

.cp-proc__node.is-on span,
.cp-proc__node.is-done span {
  color: var(--cp-ink);
}

.cp-proc.is-pinned {
  overflow: clip;
}

/* the six panels ride a horizontal strip; JS moves it with a smoothed scroll value */
.cp-proc.is-pinned .cp-proc__steps {
  --cw: min(640px, 62vw);

  display: flex;
  gap: 28px;
  max-width: none;
  margin: 0;
  padding-left: calc(50% - var(--cw) / 2);
  transform: translate3d(var(--sx, 0px), 0, 0);
  will-change: transform;
}

.cp-proc.is-pinned .cp-proc__steps::before,
.cp-proc.is-pinned .cp-step__node {
  display: none;
}

.cp-proc.is-pinned .cp-step {
  --d: 1;

  flex: 0 0 var(--cw);
  padding: 0;
  opacity: calc(1 - var(--d) * 0.6);
  transform: scale(calc(1 - var(--d) * 0.06));
  will-change: transform, opacity;
}

.cp-proc.is-pinned .cp-step__card {
  height: 100%;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  border-color: #d6cffb;
  box-shadow: 0 24px 50px rgba(53, 36, 216, 0.1);
}

.cp-proc.is-pinned .cp-step__big {
  position: absolute;
  right: 22px;
  bottom: -30px;
  display: block;
  color: var(--cp-lilac);
  font-family: var(--cp-display) !important;
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.75;
  pointer-events: none;
}

.cp-proc.is-pinned .cp-step__icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--cp-grad);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 16px 32px rgba(53, 36, 216, 0.28);
}

.cp-proc.is-pinned .cp-step__text {
  position: relative;
  max-width: 420px;
}

.cp-proc.is-pinned .cp-step h3 {
  font-size: clamp(22px, 2vw, 28px);
}

.cp-proc.is-pinned .cp-step p {
  margin-top: 10px;
  font-size: 17px;
}

/* ============================================================
   WHY - expanding panels on ink
   ============================================================ */
.cp-why {
  padding-block: var(--cp-gap);
  background: #0e0a36;
  overflow: hidden;
  isolation: isolate;
}

.cp-why__aurora {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(107, 77, 255, 0.45), transparent),
    radial-gradient(closest-side at 80% 70%, rgba(47, 91, 255, 0.35), transparent),
    radial-gradient(closest-side at 60% 10%, rgba(190, 120, 255, 0.22), transparent);
  filter: blur(30px);
  animation: cp-aurora 20s ease-in-out infinite alternate;
}

.cp-why::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(ellipse at 50% 40%, #000, transparent 75%);
  mask: radial-gradient(ellipse at 50% 40%, #000, transparent 75%);
}

.cp-why__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.cp-page .cp-why h2 {
  color: #fff;
}

.cp-page .cp-why__top p {
  color: rgba(255, 255, 255, 0.72);
}

.cp-why__panels {
  display: flex;
  gap: 14px;
  height: 470px;
}

.cp-why__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  outline: none;
  cursor: pointer;
  transition: flex-grow 0.75s var(--cp-ease), background 0.6s, border-color 0.6s;
}

.cp-why__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 300px at 20% 0%, rgba(155, 163, 250, 0.45), transparent 70%),
    linear-gradient(165deg, rgba(107, 77, 255, 0.7), rgba(47, 91, 255, 0.35) 60%, rgba(14, 10, 54, 0.2));
  opacity: 0;
  transition: opacity 0.7s var(--cp-ease);
}

.cp-why__panel:hover {
  background: rgba(255, 255, 255, 0.09);
}

.cp-why__panel:focus-visible {
  outline: 3px solid #b9adff;
  outline-offset: 3px;
}

.cp-why__panel.is-on {
  flex-grow: 4.2;
  border-color: rgba(255, 255, 255, 0.25);
  cursor: default;
}

.cp-why__panel.is-on::before {
  opacity: 1;
}

.cp-why__num {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--cp-display) !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: color 0.5s;
}

.cp-why__panel.is-on .cp-why__num {
  color: #fff;
  text-align: left;
}

.cp-why__icon {
  position: absolute;
  top: 64px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  translate: -50% 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  transition: left 0.75s var(--cp-ease), translate 0.75s var(--cp-ease), width 0.75s var(--cp-ease),
    height 0.75s var(--cp-ease), border-radius 0.75s;
}

.cp-why__icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.cp-why__panel.is-on .cp-why__icon {
  left: 28px;
  width: 108px;
  height: 108px;
  translate: 0 0;
  border-radius: 28px;
  animation: cp-bob 6s ease-in-out infinite;
}

.cp-why__label {
  position: absolute;
  left: 50%;
  bottom: 28px;
  max-height: 310px;
  translate: -50% 0;
  rotate: 180deg;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--cp-display) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  writing-mode: vertical-rl;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}

.cp-why__panel.is-on .cp-why__label {
  opacity: 0;
}

.cp-why__body {
  position: absolute;
  left: 28px;
  bottom: 30px;
  width: 400px;
  max-width: calc(100% - 56px);
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.25s, translate 0.25s;
}

.cp-why__panel.is-on .cp-why__body {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.5s ease 0.35s, translate 0.6s var(--cp-ease) 0.35s;
}

.cp-page .cp-why__body h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.cp-page .cp-why__body p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.cp-why__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #fff;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
}

.cp-why.is-auto .cp-why__panel.is-on .cp-why__timer {
  animation: cp-race 4.5s linear forwards;
}

@media (max-width: 1199.98px) {
  .cp-why__body {
    width: 340px;
  }
}

@media (max-width: 991.98px) {
  .cp-why__top {
    grid-template-columns: 1fr;
  }

  .cp-why__panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .cp-why__panel,
  .cp-why__panel.is-on {
    padding: 24px;
    cursor: default;
  }

  .cp-why__panel::before {
    opacity: 0.35;
  }

  .cp-why__panel.is-on::before {
    opacity: 1;
  }

  .cp-why__num {
    text-align: left;
  }

  .cp-why__icon,
  .cp-why__panel.is-on .cp-why__icon {
    position: relative;
    top: auto;
    left: auto;
    width: 64px;
    height: 64px;
    margin: 14px 0 18px;
    translate: none;
    animation: none;
  }

  .cp-why__label {
    display: none;
  }

  .cp-why__body,
  .cp-why__panel .cp-why__body {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    opacity: 1;
    translate: none;
  }

  .cp-page .cp-why__body h3 {
    font-size: 21px;
  }
}

@media (max-width: 575.98px) {
  .cp-why__panels {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ - ask bar
   ============================================================ */
.cp-faq {
  padding-block: calc(var(--cp-gap) * 0.6) var(--cp-gap);
}

.cp-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.cp-faq__side {
  position: sticky;
  top: 140px;
}

.cp-ask {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 12px;
  padding: 6px 8px 6px 20px;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(36, 29, 120, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cp-ask:focus-within {
  border-color: var(--cp-violet);
  box-shadow: 0 16px 34px rgba(36, 29, 120, 0.1), 0 0 0 4px rgba(107, 77, 255, 0.15);
}

.cp-ask > i {
  color: var(--cp-indigo);
  font-size: 20px;
}

.cp-ask input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  background: none;
  color: var(--cp-ink);
  font-size: 16px;
  outline: none;
}

.cp-ask input:focus-visible {
  outline: none;
}

.cp-ask input::placeholder {
  color: var(--cp-muted);
}

.cp-ask__spark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: 50%;
  background: var(--cp-grad);
  color: #fff;
}

.cp-ask__spark svg {
  animation: cp-twinkle 2.4s ease-in-out infinite;
}

.cp-faq__meta {
  padding-left: 20px;
  color: var(--cp-muted);
  font-size: 15px !important;
}

.cp-faq__list {
  display: grid;
  gap: 12px;
}

.cp-faq__item {
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.cp-faq__item[open] {
  border-color: #cfc8fb;
  background: linear-gradient(180deg, #fff, var(--cp-lilac-2));
  box-shadow: 0 16px 34px rgba(53, 36, 216, 0.08);
}

.cp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--cp-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.cp-faq__item summary::-webkit-details-marker {
  display: none;
}

.cp-faq__item mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #e4defe;
  color: inherit;
}

.cp-faq__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cp-lilac);
  transition: background 0.3s, rotate 0.4s var(--cp-ease);
}

.cp-faq__mark::before,
.cp-faq__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--cp-indigo);
  transition: rotate 0.4s var(--cp-ease), background 0.3s;
}

.cp-faq__mark::after {
  rotate: 90deg;
}

.cp-faq__item[open] .cp-faq__mark {
  background: var(--cp-grad);
  rotate: 180deg;
}

.cp-faq__item[open] .cp-faq__mark::before,
.cp-faq__item[open] .cp-faq__mark::after {
  background: #fff;
}

.cp-faq__item[open] .cp-faq__mark::after {
  rotate: 0deg;
}

.cp-faq__item p {
  padding: 0 22px 22px;
  font-size: 16px;
}

.cp-faq__item[open] p {
  animation: cp-msg 0.45s var(--cp-ease) both;
}

.cp-faq__empty {
  padding: 28px;
  border: 1px dashed #cfc8fb;
  border-radius: 18px;
  text-align: center;
}

.cp-faq__empty p {
  margin-bottom: 18px;
}

@media (max-width: 400px) {
  .cp-v-doc {
    gap: 10px;
  }

  .cp-v-doc__page {
    width: 92px;
    padding: 12px;
  }

  .cp-v-doc__sum {
    width: 100px;
    padding: 12px;
  }

  .cp-ask {
    gap: 8px;
    padding: 5px 6px 5px 14px;
  }

  .cp-ask__spark {
    width: 38px;
    height: 38px;
    padding: 10px;
  }

  .cp-faq__meta {
    padding-left: 14px;
  }

  .cp-faq__item summary {
    gap: 12px;
    padding: 16px;
    font-size: 16px;
  }

  .cp-faq__item p {
    padding: 0 16px 18px;
    font-size: 15.5px;
  }

  .cp-faq__mark {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 991.98px) {
  /* minmax(0, ...): a bare 1fr track can't shrink below the search input's intrinsic width */
  .cp-faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-faq__side {
    position: static;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cp-page *,
  .cp-page *::before,
  .cp-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
