/* MDM header + hero shell. Replaces the Seon header and Revolution Slider hero. */

.mdm-shell {
  width: 100%;
  overflow-x: clip;
  --ink: #12213f;
  --ink-soft: #55617a;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-tint: #eaf2ff;
  --line: rgba(18, 33, 63, 0.09);
  --shadow-card: 0 18px 44px -26px rgba(15, 33, 74, 0.42);
  --shadow-float: 0 24px 50px -24px rgba(15, 33, 74, 0.3);
  position: relative;
  z-index: 20;
  font-family: Inter, "Inter Tight", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 90% at 78% 6%, #e8f1ff 0%, #f4f8ff 42%, #ffffff 72%);
  isolation: isolate;
}

.mdm-shell *,
.mdm-shell *::before,
.mdm-shell *::after {
  box-sizing: border-box;
}

.mdm-shell button {
  font: inherit;
}

.mdm-shell :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------- header ---------------- */

.mdm-header {
  position: fixed;
  top: 18px;
  left: 48px;
  right: 48px;
  max-width: 1240px;
  margin-inline: auto;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -20px rgba(15, 33, 74, 0.28);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.mdm-header.is-stuck {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px -22px rgba(15, 33, 74, 0.46);
}

.mdm-header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.mdm-header-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.mdm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.mdm-nav-item {
  position: relative;
}

.mdm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 0;
  background: none;
  border-radius: 10px;
  color: #35405a;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mdm-nav-link:hover {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.07);
}

.mdm-nav-link svg {
  width: 11px;
  height: 11px;
  transition: transform 0.25s ease;
}

.mdm-nav-item.is-open .mdm-nav-link svg {
  transform: rotate(180deg);
}

.mdm-nav-link.is-current {
  color: var(--blue);
  font-weight: 600;
}

.mdm-nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.mdm-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 226px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.mdm-nav-item.is-open .mdm-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mdm-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #35405a;
  font-size: 14.5px;
  text-decoration: none;
}

.mdm-menu a:hover {
  background: var(--blue-tint);
  color: var(--blue-deep);
}

.mdm-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background-color: #101c34;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mdm-cta svg {
  width: 15px;
  height: 15px;
  color: inherit;
  flex: 0 0 auto;
}

.mdm-cta:hover,
.mdm-cta:focus-visible {
  background-color: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(29, 78, 216, 0.7);
}

.mdm-drawer .mdm-cta:hover,
.mdm-drawer .mdm-cta:focus-visible {
  background-color: #1d4ed8;
  color: #fff;
}

.mdm-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: #101c34;
  color: #fff;
  cursor: pointer;
}

.mdm-burger svg {
  width: 20px;
  height: 20px;
}

.mdm-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  padding: 22px;
  background: rgba(9, 20, 42, 0.45);
  backdrop-filter: blur(4px);
}

.mdm-drawer.is-open {
  display: block;
}

.mdm-drawer-panel {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 20px 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  max-height: 100%;
  overflow: auto;
}

.mdm-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mdm-drawer-top img {
  height: 38px;
  width: auto;
}

.mdm-drawer-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #f1f5fd;
  color: var(--ink);
  cursor: pointer;
}

.mdm-drawer-close svg {
  width: 18px;
  height: 18px;
}

.mdm-drawer a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.mdm-drawer a:last-of-type {
  border-bottom: 0;
}

.mdm-drawer .mdm-cta {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

/* ---------------- hero ---------------- */

.mdm-hero {
  position: relative;
  padding: 148px 0 0;
  overflow: hidden;
}

.mdm-hero-inner {
  width: 100%;
  max-width: 1336px;
  padding-inline: 48px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 20px;
  align-items: end;
}

.mdm-hero-copy {
  padding-bottom: 64px;
}

.mdm-eyebrow {
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.mdm-hero h1 {
  margin: 0 0 24px;
  max-width: 7.2em;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.mdm-hero h1 .mdm-dot {
  color: var(--blue);
}

.mdm-hero-lead {
  margin: 0 0 34px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.mdm-hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.mdm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #3d8bfd 0%, #1f5fdb 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 32px -16px rgba(31, 95, 219, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mdm-btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.mdm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(31, 95, 219, 0.78);
}

.mdm-btn-primary:hover svg {
  transform: translateX(3px);
}

.mdm-btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.mdm-btn-quiet span {
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
}

.mdm-btn-quiet svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.mdm-btn-quiet:hover {
  color: var(--blue-deep);
}

.mdm-btn-quiet:hover svg {
  transform: translateX(4px);
}

.mdm-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.mdm-rating-google {
  width: 26px;
  height: 26px;
}

.mdm-rating-score {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mdm-stars {
  display: inline-flex;
  gap: 2px;
  color: #f6a723;
}

.mdm-stars svg {
  width: 17px;
  height: 17px;
}

.mdm-rating-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.mdm-rating-note {
  font-size: 14px;
  color: #7c8598;
}

.mdm-partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: #8a93a6;
}

.mdm-partner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}

.mdm-partner:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.mdm-partner svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mdm-partner-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mdm-partner-label b {
  font-size: 13px;
  font-weight: 600;
  color: #6c7689;
  letter-spacing: -0.01em;
}

.mdm-partner-label span {
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

/* ---------------- hero visual ---------------- */

.mdm-hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.mdm-rings {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 118%;
  max-width: 720px;
  aspect-ratio: 1;
  color: rgba(37, 99, 235, 0.16);
  pointer-events: none;
}

.mdm-glow {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.26) 0%,
    rgba(147, 197, 253, 0.18) 46%,
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
}

.mdm-portrait {
  position: relative;
  z-index: 2;
  width: auto;
  height: clamp(430px, 46vw, 620px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
  margin-right: -1.5%;
}

.mdm-float {
  position: absolute;
  z-index: 3;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-float);
}

.mdm-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.mdm-float-head p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #3c4661;
}

.mdm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f2f6fd;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  color: #6a7488;
}

.mdm-chip svg {
  width: 8px;
  height: 8px;
}

.mdm-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #12a35c;
}

.mdm-delta svg {
  width: 10px;
  height: 10px;
}

.mdm-delta-note {
  font-size: 9.5px;
  color: #97a0b2;
}

/* performance card */
.mdm-card-perf {
  top: 4%;
  left: -10%;
  width: 274px;
}

.mdm-card-perf .mdm-chart {
  display: block;
  width: 100%;
  height: auto;
}

.mdm-card-perf-badge {
  position: absolute;
  top: 44px;
  right: -14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px -14px rgba(15, 33, 74, 0.4);
  text-align: left;
}

.mdm-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  color: #a3abbb;
}

/* conversion card */
.mdm-card-conv {
  bottom: 23%;
  left: -8%;
  width: 190px;
}

.mdm-conv-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 4px;
}

.mdm-conv-value {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.mdm-conv-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* channels card */
.mdm-card-chan {
  top: 30%;
  right: -6%;
  width: 212px;
}

.mdm-chan-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.mdm-donut {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
}

.mdm-legend {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.mdm-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  white-space: nowrap;
  color: #6a7488;
}

.mdm-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.mdm-legend b {
  margin-left: auto;
  font-weight: 600;
  color: #46516a;
}

/* ---------------- promise cards ---------------- */

.mdm-promise {
  width: 100%;
  max-width: 1336px;
  margin: 0 auto;
  padding: 34px 48px 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.mdm-promise-card {
  display: flex;
  gap: 18px;
  padding: 26px 26px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px -30px rgba(15, 33, 74, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mdm-promise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px -28px rgba(15, 33, 74, 0.46);
}

.mdm-promise-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-deep);
}

.mdm-promise-icon svg {
  width: 24px;
  height: 24px;
}

.mdm-promise-card p {
  margin: 0;
}

.mdm-promise-over {
  font-size: 13.5px;
  color: #7c8598;
  margin-bottom: 4px !important;
}

.mdm-promise-title {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px !important;
}

.mdm-promise-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #79839a;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1180px) {
  .mdm-header {
    left: 24px;
    right: 24px;
  }

  .mdm-hero-inner,
  .mdm-promise {
    padding-inline: 24px;
  }

  .mdm-nav-link {
    padding: 9px 10px;
    font-size: 14px;
  }

  .mdm-card-perf {
    left: -3%;
    width: 250px;
  }

  .mdm-card-conv {
    left: -5%;
  }

  .mdm-card-chan {
    right: -2%;
    width: 200px;
  }
}

@media (max-width: 1024px) {
  .mdm-nav,
  .mdm-header .mdm-cta {
    display: none;
  }

  .mdm-burger {
    display: inline-flex;
  }

  .mdm-hero {
    padding-top: 124px;
  }

  .mdm-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .mdm-hero-copy {
    padding-bottom: 8px;
  }

  .mdm-partners {
    margin-bottom: 4px;
  }

  .mdm-hero h1 {
    max-width: 11em;
  }

  .mdm-hero-visual {
    min-height: 0;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    justify-content: center;
    padding-top: 12px;
  }

  .mdm-portrait {
    height: clamp(380px, 62vw, 520px);
    margin-right: 0;
  }

  .mdm-card-perf {
    left: 2%;
    top: 8%;
    width: 200px;
    transform: scale(0.92);
    transform-origin: top left;
  }

  .mdm-card-conv {
    left: 2%;
    bottom: 12%;
    width: 148px;
  }

  .mdm-card-chan {
    display: none;
  }

  .mdm-promise {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 64px;
  }
}

@media (max-width: 720px) {
  .mdm-header {
    top: 12px;
    left: 16px;
    right: 16px;
    padding: 10px 10px 10px 16px;
  }

  .mdm-hero-inner,
  .mdm-promise {
    padding-inline: 16px;
  }

  .mdm-hero {
    padding-top: 108px;
  }

  .mdm-hero-actions {
    gap: 18px;
  }

  .mdm-partner {
    padding-right: 14px;
    margin-right: 14px;
  }

  .mdm-partner:nth-child(n + 4) {
    display: none;
  }

  .mdm-portrait {
    height: 400px;
  }

  /* Keep face clear — float cards sit off the portrait on narrow phones. */
  .mdm-card-perf {
    left: 0;
    top: auto;
    bottom: 58%;
    width: 168px;
    padding: 10px 11px;
    transform: scale(0.86);
    transform-origin: bottom left;
  }

  .mdm-card-conv {
    left: auto;
    right: 0;
    bottom: 10%;
    width: 140px;
    padding: 10px 11px;
  }

  .mdm-conv-value {
    font-size: 20px;
  }
}

@media (max-width: 460px) {
  .mdm-portrait {
    height: 340px;
  }

  .mdm-card-perf,
  .mdm-card-conv {
    display: none;
  }
}

/* ---------------- entrance ---------------- */
/* CSS-driven so the first viewport can never be left invisible by a script. */

@keyframes mdmDrop {
  from {
    opacity: 0;
    transform: translateY(-26px);
  }
}

@keyframes mdmRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes mdmPop {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
}

@keyframes mdmBloom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.mdm-header,
.mdm-eyebrow,
.mdm-hero h1,
.mdm-hero-lead,
.mdm-hero-actions,
.mdm-rating,
.mdm-partners,
.mdm-portrait,
.mdm-float,
.mdm-rings,
.mdm-glow,
.mdm-promise-card {
  animation: 0.78s cubic-bezier(0.22, 0.68, 0.3, 1) both mdmRise;
}

.mdm-header {
  animation-name: mdmDrop;
  animation-duration: 0.7s;
}

.mdm-eyebrow {
  animation-delay: 0.16s;
}

.mdm-hero h1 {
  animation-delay: 0.24s;
}

.mdm-hero-lead {
  animation-delay: 0.33s;
}

.mdm-hero-actions {
  animation-delay: 0.42s;
}

.mdm-rating {
  animation-delay: 0.5s;
}

.mdm-partners {
  animation-delay: 0.58s;
}

.mdm-portrait {
  animation-duration: 1s;
  animation-delay: 0.3s;
}

.mdm-rings,
.mdm-glow {
  animation-name: mdmBloom;
  animation-duration: 1.2s;
  animation-delay: 0.24s;
  transform-origin: 70% 70%;
}

.mdm-float {
  animation-name: mdmPop;
  animation-duration: 0.7s;
}

.mdm-float.is-gsap {
  animation: none !important;
  will-change: transform;
}

.mdm-card-perf {
  animation-delay: 0.62s;
}

.mdm-card-conv {
  animation-delay: 0.74s;
}

.mdm-card-chan {
  animation-delay: 0.86s;
}

.mdm-promise-card:nth-child(1) {
  animation-delay: 0.8s;
}

.mdm-promise-card:nth-child(2) {
  animation-delay: 0.9s;
}

.mdm-promise-card:nth-child(3) {
  animation-delay: 1s;
}

@media (prefers-reduced-motion: reduce) {
  .mdm-shell *,
  .mdm-header,
  .mdm-header * {
    transition-duration: 0.001s !important;
    animation: none !important;
  }
}

/* GSAP owns entrances when the page motion system is live. */
.mdm-page.mdm-motion-live .mdm-header,
.mdm-page.mdm-motion-live .mdm-eyebrow,
.mdm-page.mdm-motion-live .mdm-hero h1,
.mdm-page.mdm-motion-live .mdm-hero-lead,
.mdm-page.mdm-motion-live .mdm-hero-actions,
.mdm-page.mdm-motion-live .mdm-rating,
.mdm-page.mdm-motion-live .mdm-partners,
.mdm-page.mdm-motion-live .mdm-portrait,
.mdm-page.mdm-motion-live .mdm-float,
.mdm-page.mdm-motion-live .mdm-rings,
.mdm-page.mdm-motion-live .mdm-glow,
.mdm-page.mdm-motion-live .mdm-promise-card {
  animation: none !important;
}

.mdm-page.mdm-motion-live .mdm-choose-photo,
.mdm-page.mdm-motion-live .mdm-team-photo {
  overflow: hidden;
}
