/* MYNM hero widget. Dark navy block; static board frame first, canvas fades in over it. */
.mynm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(600px, calc(100svh - 72px), 880px);
  background: var(--navy-dark);
  color: #fff;
}

/* Scene layer: static frame (LCP) + canvas */
.mynm-hero__scene { position: absolute; inset: 0; z-index: -2; }
.mynm-hero__still {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(224, 46, 43, .15), transparent 60%),
    var(--navy-dark);
  overflow: hidden;
}
/* A board in perspective, drawn as an inline SVG: crimson half (wasted spend) near, cobalt half (ideal customers) far */
.mynm-hero__still::before {
  content: "";
  position: absolute;
  width: min(78vh, 720px);
  aspect-ratio: 1;
  right: 6%;
  top: 50%;
  transform: translateY(-46%) perspective(1100px) rotateX(58deg) rotateZ(-32deg);
  border-radius: 6px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'><rect width='8' height='8' fill='%23E8EDF3'/><path fill='%233E6F9F' d='M0 3h1v1H0zM2 3h1v1H2zM4 3h1v1H4zM6 3h1v1H6zM1 2h1v1H1zM3 2h1v1H3zM5 2h1v1H5zM7 2h1v1H7zM0 1h1v1H0zM2 1h1v1H2zM4 1h1v1H4zM6 1h1v1H6zM1 0h1v1H1zM3 0h1v1H3zM5 0h1v1H5zM7 0h1v1H7z'/><path fill='%23E02E2B' d='M0 7h1v1H0zM2 7h1v1H2zM4 7h1v1H4zM6 7h1v1H6zM1 6h1v1H1zM3 6h1v1H3zM5 6h1v1H5zM7 6h1v1H7zM0 5h1v1H0zM2 5h1v1H2zM4 5h1v1H4zM6 5h1v1H6zM1 4h1v1H1zM3 4h1v1H3zM5 4h1v1H5zM7 4h1v1H7z'/></svg>") center / 100% 100% no-repeat;
}

.mynm-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
.mynm-hero__scene.is-live .mynm-hero__canvas { opacity: 1; }

/* 70% navy scrim: keeps the copy at full contrast over the scene */
.mynm-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(10, 20, 36, .7);
}

.mynm-hero__inner {
  align-self: center;
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 32px;
}
.mynm-hero__copy { display: grid; gap: 20px; max-width: 640px; }

.mynm-hero .mynm-hero__brand {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.mynm-hero .mynm-hero__title {
  margin: 0;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 20ch;
}
.mynm-hero .mynm-hero__subline {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: 500;
  color: #CBD5E1;
  max-width: 46ch;
}
.mynm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 4px;
}
/* Secondary CTA as a text link: it never competes with the primary button */
.mynm-hero .mynm-hero__secondary {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, .45);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mynm-hero .mynm-hero__secondary:hover { text-decoration-color: #fff; }
.mynm-hero .mynm-hero__trust {
  margin: 8px 0 0;
  font-size: var(--fs-small);
  line-height: 1.54;
  color: #94A3B8;
  max-width: 56ch;
}

.mynm-hero .mynm-hero__legend {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 24px;
  font-size: var(--fs-small);
  line-height: 1.54;
  color: #94A3B8;
}
.mynm-hero .mynm-hero .mynm-hero__legend b { color: #E2E8F0; font-weight: 600; }
.mynm-hero .mynm-hero__legend i { font-style: italic; }
.mynm-hero__keys { display: inline-flex; gap: 16px; }
.mynm-hero__keys > span { display: inline-flex; align-items: center; gap: 6px; }
.mynm-hero__sq { width: 10px; height: 10px; border-radius: 2px; background: var(--crimson); }
.mynm-hero__sq--blue { background: var(--cobalt); }

@media (max-width: 1023px) {
  .mynm-hero__still::before { right: -20%; opacity: .55; }
}
@media (max-width: 767px) {
  .mynm-hero { min-height: auto; }
  .mynm-hero__legend { justify-content: flex-start; }
}
