/* Canvas page extras on top of hybrid-home. */

body.mk-canvas-page .cx-how {
  padding-top: 8px;
}

.cx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cx-steps li {
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cx-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--mk-blue);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.cx-steps h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cx-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cx-page-media .ph--tall {
  min-height: 560px;
}

body.mk-canvas-page .cx-page-media .media-chip--wide {
  width: min(64%, 460px);
}

/* ---- Kit reel ---- */
body.mk-canvas-page #kit.cx-kit {
  --kit-ink: #f4f1ea;
  --kit-mute: rgba(244, 241, 234, 0.7);
  position: relative;
  background: #090909;
  color: var(--kit-ink);
}

.cx-kit-track,
.cx-kit-pin,
.cx-kit-stage {
  min-width: 0;
}

.cx-kit-slide {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  overflow: hidden;
}

.cx-kit-bg,
.cx-kit-veil {
  position: absolute;
  inset: 0;
}

.cx-kit-bg {
  z-index: 0;
  overflow: hidden;
}

.cx-kit-bg img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center 62%;
}

.cx-kit-veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.72) 0%, rgba(6, 6, 6, 0.38) 28%, rgba(6, 6, 6, 0.34) 62%, rgba(6, 6, 6, 0.78) 100%),
    radial-gradient(ellipse 52% 48% at 50% 50%, rgba(6, 6, 6, 0.28), rgba(6, 6, 6, 0.76));
  pointer-events: none;
}

.cx-kit-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: inherit;
  padding: 48px 24px;
  text-align: center;
}

.cx-kit-kicker {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8be9a;
}

.cx-kit-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.cx-kit-note {
  margin: 0 0 22px;
  color: var(--kit-mute);
  font-size: 1rem;
  font-weight: 500;
}

.cx-kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.cx-kit-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--kit-ink);
  line-height: 1.2;
}

.cx-kit-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.cx-kit-hint {
  color: var(--kit-mute);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cx-kit-slide.is-dense .cx-kit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
  column-gap: 32px;
  row-gap: 10px;
}

.cx-kit-slide.is-dense .cx-kit-name {
  font-size: 0.88rem;
}

.cx-kit-slide.is-dense .cx-kit-hint {
  font-size: 0.7rem;
}

.cx-kit.is-reel {
  padding: 0;
}

.cx-kit.is-reel .cx-kit-track {
  height: calc(var(--kit-n, 9) * 72vh);
}

.cx-kit.is-reel .cx-kit-pin {
  position: sticky;
  top: var(--header-stack, var(--header-h, 76px));
  height: calc(100svh - var(--header-stack, var(--header-h, 76px)));
  height: calc(100dvh - var(--header-stack, var(--header-h, 76px)));
  overflow: hidden;
}

.cx-kit.is-reel .cx-kit-stage {
  position: absolute;
  inset: 0;
}

.cx-kit.is-reel .cx-kit-slide {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: var(--kit-o, 0);
  pointer-events: none;
  transition: opacity 0.48s ease;
}

.cx-kit.is-reel .cx-kit-slide:first-child {
  --kit-o: 1;
  --kit-s: 1.12;
  --kit-bg-y: 0px;
}

.cx-kit.is-reel .cx-kit-slide.is-active {
  pointer-events: auto;
}

.cx-kit.is-reel .cx-kit-bg img {
  width: 170%;
  max-width: none;
  height: 170%;
  margin: -35% 0 0 -35%;
  transform: translate3d(0, var(--kit-bg-y, 56px), 0) scale(var(--kit-s, 0.82));
  will-change: transform;
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.cx-kit.is-reel .cx-kit-copy {
  height: 100%;
  min-height: 0;
  opacity: var(--kit-o, 0);
  transform: translate3d(0, calc((1 - var(--kit-o, 1)) * 16px), 0);
  transition: opacity 0.4s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.cx-kit.is-reel.is-snap-instant .cx-kit-slide,
.cx-kit.is-reel.is-snap-instant .cx-kit-bg img,
.cx-kit.is-reel.is-snap-instant .cx-kit-copy {
  transition: none;
}

.cx-kit.is-static .cx-kit-slide + .cx-kit-slide {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cx-gut-head {
  margin-bottom: 72px;
}

.cx-gut-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.cx-gut-logo img {
  width: 56px;
  height: 56px;
  display: block;
}

.cx-gut-caps {
  margin: 22px auto 0;
  max-width: 36rem;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.mk-canvas-page #gutenberg .feature-slider {
  align-items: start;
}

.cx-gut-copy {
  margin: 0 0 22px;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.cx-gut-copy:last-child {
  margin-bottom: 0;
}

.cx-gut-media {
  overflow: visible;
}

.cx-gut-media .ph--tall {
  min-height: 520px;
}

.cx-gut-media [data-parallax] {
  will-change: transform;
}

.cx-gut-chip-inserter {
  right: auto;
  left: 0;
  bottom: 28px;
  width: min(36%, 210px);
}

.cx-gut-chip-inserter .ph {
  min-height: 280px;
}

.cx-gut-chip-blocks {
  width: min(58%, 360px);
}

@media (max-width: 900px) {
  .cx-steps {
    grid-template-columns: 1fr;
  }
  .cx-page-media .ph--tall,
  .cx-gut-media .ph--tall {
    min-height: 360px;
  }
  body.mk-canvas-page .cx-page-media .media-chip--wide,
  .cx-gut-chip-blocks {
    width: min(78%, 360px);
  }
  .cx-gut-chip-inserter {
    width: min(42%, 180px);
  }
  .cx-gut-chip-inserter .ph {
    min-height: 220px;
  }
  .cx-kit.is-reel {
    --kit-cta: 72px;
  }
  .cx-kit.is-reel .cx-kit-track {
    height: calc(var(--kit-n, 9) * 80vh);
  }
  .cx-kit.is-reel .cx-kit-pin {
    top: var(--header-stack, 88px);
    height: calc(100svh - var(--header-stack, 88px) - var(--kit-cta, 0px));
    height: calc(100dvh - var(--header-stack, 88px) - var(--kit-cta, 0px));
  }
  .cx-kit-copy {
    padding: 28px 20px;
  }
  .cx-kit-copy h2 {
    font-size: 1.7rem;
  }
  .cx-kit-note {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }
  .cx-kit-list {
    gap: 8px;
  }
  .cx-kit-name {
    font-size: 0.98rem;
  }
  .cx-kit-hint {
    font-size: 0.72rem;
  }
  .cx-kit-slide.is-dense .cx-kit-list {
    column-gap: 20px;
    row-gap: 8px;
  }
  .cx-kit-slide.is-dense .cx-kit-name {
    font-size: 0.8rem;
  }
  .cx-kit-slide.is-dense .cx-kit-hint {
    font-size: 0.66rem;
  }
  .cx-kit.is-static .cx-kit-slide {
    min-height: 78vh;
  }
  .cx-gut-head {
    margin-bottom: 48px;
  }
}
