/* Marketing — site chrome (header / footer / main offset) */

:root {
  --mk-header-h: 3.5rem;
}

@media (min-width: 768px) {
  :root {
    --mk-header-h: 3.75rem;
  }
}

.mk-main {
  padding-top: calc(var(--mk-header-h) + env(safe-area-inset-top, 0px));
  min-height: calc(100vh - var(--mk-header-h));
  min-height: calc(100dvh - var(--mk-header-h));
}

.mk-site-header {
  padding-top: env(safe-area-inset-top, 0px);
}

.mk-site-header__bar {
  min-height: var(--mk-header-h);
}

.mk-mobile-nav {
  top: calc(var(--mk-header-h) + env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - var(--mk-header-h) - env(safe-area-inset-top, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.mk-icon-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
}

body.mk-nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 768px) {
  body.mk-nav-open {
    overflow: auto;
    touch-action: auto;
  }
}

.mk-site-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

[x-cloak] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .mk-mobile-nav-backdrop,
  .mk-mobile-nav {
    transition: none !important;
  }
}

/* Marketing — scroll reveals + product stack (hero) */

.mk-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mk-reveal.mk-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.mk-stagger > .mk-reveal:nth-child(1) {
  transition-delay: 0ms;
}
.mk-stagger > .mk-reveal:nth-child(2) {
  transition-delay: 50ms;
}
.mk-stagger > .mk-reveal:nth-child(3) {
  transition-delay: 100ms;
}
.mk-stagger > .mk-reveal:nth-child(4) {
  transition-delay: 150ms;
}
.mk-stagger > .mk-reveal:nth-child(5) {
  transition-delay: 200ms;
}
.mk-stagger > .mk-reveal:nth-child(6) {
  transition-delay: 250ms;
}

/* Fanned “screens” — reference-style product showcase */
.mk-product-stack {
  position: relative;
  width: 100%;
  min-height: 260px;
  isolation: isolate;
}
@media (min-width: 640px) {
  .mk-product-stack {
    min-height: 300px;
  }
}
@media (min-width: 1024px) {
  .mk-product-stack {
    min-height: 340px;
  }
}

.mk-product-stack__card {
  position: absolute;
  width: min(92%, 400px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
  padding: 0.5rem;
  box-shadow:
    0 28px 56px -16px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mk-product-stack__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.mk-product-stack__card--a {
  right: 8%;
  top: 6%;
  z-index: 1;
  transform: rotate(-11deg) translateZ(0);
  opacity: 0.92;
}

.mk-product-stack__card--b {
  right: 2%;
  top: 22%;
  z-index: 2;
  transform: rotate(4deg) translateZ(0);
}

.mk-product-stack__card--c {
  right: -2%;
  top: 42%;
  z-index: 3;
  transform: rotate(10deg) translateZ(0);
}

@media (max-width: 639px) {
  .mk-product-stack__card--a {
    right: 4%;
    top: 4%;
    width: min(94%, 360px);
  }
  .mk-product-stack__card--b {
    right: 0;
    top: 26%;
    width: min(94%, 360px);
  }
  .mk-product-stack__card--c {
    right: -4%;
    top: 50%;
    width: min(94%, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
