/* motion.html: Pixels Motion page */
.mp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
}
.mp-hero__msg {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mp-sec {
  padding: 72px 0;
}
.mp-sec .sec-head + * {
  margin-top: 40px;
}
.mp-grad {
  color: inherit; /* plain heading color, no gradient text */
}

/* what's inside */
.mp-inside {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mp-feat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--dk-bg-ffffff, #fff);
  box-shadow: var(--card-shadow);
}
.mp-feat h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.mp-feat p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.mp-ic {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--brand);
}
.mp-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* packs */
.mp-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mp-pack {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--dk-bg-ffffff, #fff);
  box-shadow: var(--card-shadow);
  transition: transform 0.16s, box-shadow 0.16s;
}
.mp-pack:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}
.mp-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 4%, #fff));
}
:root[data-px-theme='dark'] .mp-cover {
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 34%, transparent), transparent 60%), #14161b;
}
.mp-cover .mp-ic {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 16px;
  background: var(--dk-bg-ffffff, #fff);
  color: var(--c);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c) 80%, #000);
}
.mp-cover .mp-ic svg {
  width: 26px;
  height: 26px;
}
.mp-cover::before,
.mp-cover::after {
  content: '';
  position: absolute;
  border-radius: 12px;
  background: var(--dk-bg-ffffff, #fff);
  opacity: 0.7;
}
.mp-cover::before {
  left: 18px;
  bottom: 18px;
  width: 64px;
  height: 22px;
}
.mp-cover::after {
  right: 22px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.25;
}
.mp-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.75);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.mp-pack__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.mp-pack__body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mp-pack__body > p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.mp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 6px !important;
  padding: 0;
  list-style: none;
}
.mp-list li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
}
.mp-pack__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.mp-pack__foot a {
  color: var(--brand);
  font-weight: 600;
}

/* licences: uses the shared pricing cards (css/pricing-cards.css) */
.mp-lic .pc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
}
.mp-lic .pc-card.is-pop {
  border-color: #7c3aed;
  box-shadow: 0 0 0 1px #7c3aed, 0 24px 48px -24px rgba(124, 58, 237, 0.45);
}
.mp-lic .pc-card.is-pop .pc-tag {
  background: #7c3aed;
}
.mp-lic .pc-btn--violet {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff !important;
}
.mp-lic .pc-btn--violet:hover {
  border-color: #6d28d9;
  background: #6d28d9;
}
.mp-lic .pc-ic {
  color: #7c3aed;
}
.mp-lic .pc-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mp-sec .mp-note {
  max-width: 880px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px dashed var(--line-2, #d0d5dd);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.mp-sec .mp-note b {
  color: var(--ink);
}

/* steps */
.mp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: s;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}
.mp-steps li {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: var(--dk-bg-f8faff, #f8faff);
  counter-increment: s;
}
.mp-steps li::before {
  content: counter(s);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--dk-bg-ffffff, #fff);
  font-size: 13px;
  font-weight: 600;
}
.mp-steps b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}
.mp-steps span {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.mp-code {
  max-width: 880px;
  margin: 24px auto 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #0d1117;
  color: #e6edf3;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto;
}
.mp-code .c {
  color: #8b949e;
}
.mp-code .k {
  color: #ff7b72;
}
.mp-code .v {
  color: #79c0ff;
}

/* faq */
.mp-faq {
  display: grid;
  gap: 10px;
  max-width: 800px;
  margin-inline: auto;
}

@media (max-width: 1000px) {
  .mp-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .mp-inside,
  .mp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mp-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mp-sec {
    padding: 56px 0;
  }
  .mp-inside,
  .mp-steps,
  .mp-packs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* pack cards are links to the pack pages */
a.mp-pack {
  color: inherit;
  text-decoration: none;
}
a.mp-pack:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
}
.mp-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c);
  font-weight: 600;
}
.mp-go .pc-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 0.15s;
}
a.mp-pack:hover .mp-go .pc-arrow {
  transform: translateX(3px);
}
.mp-status.is-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #067647;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.mp-status.is-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
}
/* live scene in each pack cover */
.mp-cover {
  height: 190px;
  overflow: hidden;
}
.mp-cover::before,
.mp-cover::after {
  display: none;
}
.mp-cover__ma {
  position: absolute;
  inset: 0;
  height: auto;
  --fs: 0.82;
}
.mp-status {
  z-index: 2;
}
.mp-feat code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--dk-bg-f2f4f7, #f2f4f7);
  font: 500 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-ligatures: none;
  color: var(--ink);
}
