/* IQ Brain — site-wide shell (Cursor-like) */

body.mf-body {
  background: var(--mf-page-bg, #f5f5f4);
  color: var(--mf-ink, #171717);
  --mf-header-offset: 72px;
}

@media (max-width: 767px) {
  body.mf-body {
    --mf-header-offset: 64px;
  }
}

/* Header */
.mf-header {
  background: rgba(245, 245, 244, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: none;
}

.mf-header__inner {
  min-height: 72px;
  height: auto;
}

.mf-logo__img {
  height: 42px;
  width: auto;
  max-width: min(260px, 62vw);
  padding: 0;
}

.mf-logo__img--footer {
  height: 36px;
  max-width: 220px;
  filter: none;
}

.mf-btn--outline-light {
  background: transparent;
  color: var(--mf-ink);
  border: 1px solid rgba(23, 23, 23, 0.12);
}

.mf-btn--outline-light:hover {
  border-color: rgba(23, 23, 23, 0.28);
  color: var(--mf-ink);
  background: rgba(23, 23, 23, 0.04);
}

/* Quiz funnel header */
.mf-quiz-header {
  background: var(--mf-ink);
  border-bottom: none;
  height: 73px;
  min-height: 73px;
  padding: 0;
  box-sizing: border-box;
}

/* Match .mf-wrap geometry so the logo aligns with light headers */
.mf-quiz-header .quiz-container {
  flex: none;
  width: min(100% - 2rem, var(--mf-max, 1140px));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  min-height: 0;
}

.mf-quiz-header .mf-logo__img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(240px, 54vw);
  padding: 0;
}

body.mf-quiz {
  background: var(--mf-page-bg, #f5f5f4);
}

/* Footer — Cursor-like light */
.mf-footer,
.mf-footer--bo {
  background: var(--mf-page-bg, #f5f5f4) !important;
  color: var(--mf-ink-muted, #525252) !important;
  padding: 3.5rem 0 2.25rem !important;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.mf-footer a,
.mf-footer--bo a {
  color: var(--mf-ink-muted, #525252) !important;
  text-decoration: none;
}

.mf-footer a:hover,
.mf-footer--bo a:hover {
  color: var(--mf-ink, #171717) !important;
  text-decoration: none;
}

.mf-footer strong,
.mf-footer--bo strong {
  color: var(--mf-ink, #171717) !important;
}

.mf-footer__grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  max-width: var(--mf-max, 1140px);
  margin-inline: auto;
  gap: 1.75rem;
}

.mf-footer__grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.mf-footer__grid > div:first-child p {
  color: var(--mf-ink-soft, #737373);
  max-width: 28rem;
  line-height: 1.5;
}

.mf-footer__grid .mf-logo__img--footer {
  margin-inline: 0;
}

.mf-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1.5rem;
  margin-top: 0;
  padding-top: 0.25rem;
}

.mf-footer__links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.mf-footer__copy {
  width: 100%;
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mf-ink-soft, #737373) !important;
  opacity: 1;
  text-align: left;
}

@media (max-width: 700px) {
  .mf-footer__grid,
  .mf-footer__grid > div:first-child,
  .mf-footer__copy {
    text-align: center;
    align-items: center;
  }

  .mf-footer__links {
    justify-content: center;
  }

  .mf-footer__grid .mf-logo__img--footer {
    margin-inline: auto;
  }
}

/* Bottom CTA band — dark contrast strip before light footer */
.ih-bottom-cta,
.mf-bottom-cta {
  padding: 3.75rem 0;
  background: #171717;
  text-align: center;
  color: #fff;
}

.ih-bottom-cta h2,
.mf-bottom-cta h2 {
  font-family: var(--mf-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.25rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ih-bottom-cta .mf-btn--outline-light,
.mf-bottom-cta .mf-btn--outline-light,
.mf-cta-band--bo .mf-btn--outline-light {
  background: #fff;
  color: #171717;
  border: 1px solid #fff;
  box-shadow: none;
}

.ih-bottom-cta .mf-btn--outline-light:hover,
.mf-bottom-cta .mf-btn--outline-light:hover,
.mf-cta-band--bo .mf-btn--outline-light:hover {
  background: #f5f5f4;
  color: #0a0a0a;
  border-color: #f5f5f4;
}

.mf-cta-band--bo {
  background: #171717;
  border-radius: var(--mf-radius-xl);
  color: #fff;
  text-align: center;
}

.mf-cta-band--bo h2,
.mf-cta-band--bo .mf-title {
  color: #fff;
}

/* Content pages */
.mf-page--single main,
.mf-page--help main,
.mf-page--start .mf-start,
.mf-help-main {
  background: var(--mf-page-bg, #f5f5f4);
}

.mf-help-hero,
.mf-section--alt {
  background: var(--mf-surface-2, #efefee);
}

.mf-title--section .blue,
.mf-title .blue,
h1 .blue,
h2 .blue {
  color: var(--mf-ink);
}
