body {
  margin: 0;
  background: linear-gradient(180deg, #f4f7ff 0%, #f7f8fc 50%, #f4f6fb 100%);
  color: #12233d;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.mx-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
}

.mx-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(10, 26, 52, 0.08);
  margin-bottom: 14px;
}

.mx-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2559e6;
  background: #edf2ff;
  border-radius: 999px;
  padding: 6px 12px;
}

.mx-progress {
  width: 100%;
  height: 7px;
  background: #e7ecf8;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 14px;
}

.mx-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2b63f6, #2450d7);
}

.mx-h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 4.8vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mx-sub {
  margin: 0;
  color: #4b5c77;
  line-height: 1.65;
  font-size: 1rem;
}

.mx-h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.mx-p,
.mx-list li {
  color: #344760;
  line-height: 1.72;
}

.mx-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.mx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.mx-box {
  border: 1px solid #e5eaf5;
  border-radius: 14px;
  padding: 14px;
  background: #fbfcff;
}

.mx-highlight {
  border-left: 4px solid #2b63f6;
  background: #eef3ff;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  color: #29416a;
}

.mx-cta-main,
.mx-cta-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mx-cta-main {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  background: linear-gradient(90deg, #2563f1 0%, #214ed2 100%);
  color: #fff;
  padding: 13px 16px;
  box-shadow: 0 10px 24px rgba(36, 80, 215, 0.24);
}

.mx-cta-inline {
  margin-top: 10px;
  background: #edf2ff;
  color: #214ed2;
  padding: 10px 14px;
}

.mx-cta-main:hover,
.mx-cta-inline:hover {
  transform: translateY(-1px);
}

.mx-cta-main:focus-visible,
.mx-cta-inline:focus-visible,
.mx-related a:focus-visible {
  outline: 3px solid #93b4ff;
  outline-offset: 2px;
}

.mx-micro {
  margin: 8px 0 0;
  color: #60718c;
  font-size: 0.9rem;
}

.mx-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mx-related a {
  text-decoration: none;
  color: #1f4ed8;
  font-weight: 600;
  border: 1px solid #e4eaf6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.mx-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 14px 0;
  background: #f3f6fd;
  border: 1px dashed #cad6ef;
  border-radius: 10px;
  color: #6f7f99;
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .mx-wrap {
    padding: 22px;
  }
  .mx-card {
    padding: 24px;
  }
  .mx-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .mx-cta-main {
    width: auto;
    min-width: 360px;
  }
}

/* GAM: reserva altura mínima nos slots (mobile / antes do render) */
.mx-ad[id^="wf_"] {
  min-height: 100px;
}

/* GAM layout polish: centraliza slots e evita empilhamento visual nos funis. */
.wf-runtime-ad {
  width: 100%;
  margin: 32px auto;
}

.wf-runtime-ad--top {
  margin-top: 0;
  margin-bottom: 24px;
}

.wf-ad-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0;
}

.wf-runtime-ad--top .wf-ad-container {
  margin: 0 0 24px;
}

.wf-runtime-ad--inarticle .wf-ad-container {
  margin: 32px 0;
}

.wf-ad-container iframe {
  max-width: 100%;
}

.wf-ad {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.wf-ad.is-wf-ad-requested {
  min-height: 90px;
}

.wf-ad--top.is-wf-ad-requested,
.wf-ad--inarticle.is-wf-ad-requested {
  min-height: 250px;
}

.wf-ad.is-wf-ad-empty {
  min-height: 0;
  border: 0;
  background: transparent;
}

.wf-ad--anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.96);
}

.wf-ad--anchor.is-wf-ad-requested {
  min-height: 50px;
}

.wf-runtime-ad--nonvisual,
.wf-runtime-ad--nonvisual .wf-ad-container {
  margin: 0;
  display: block;
}

.wf-runtime-ad--nonvisual .wf-ad--premium {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  min-height: 1px;
}

.wf-only-desk { display: block; }
.wf-only-mob { display: none; }

body {
  padding-bottom: 72px;
}

@media (max-width: 767px) {
  .wf-only-desk { display: none; }
  .wf-only-mob { display: block; }

  .wf-ad-container {
    margin: 40px 0;
  }

  .wf-runtime-ad--top .wf-ad-container {
    margin-bottom: 32px;
  }

  body {
    padding-bottom: 88px;
  }
}

.wf-ad-container iframe {
  max-width: 100%;
  height: var(--wf-rendered-ad-height, revert) !important;
}
