/* Overview/Help — calm card. Selectors beat mobile.css / phone-shell on S23. */
html body #welcomeTourModal {
  font-family: Poppins, system-ui, sans-serif !important;
  background: rgba(15, 23, 42, 0.52) !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}

html body #welcomeTourModal > .mh-overview-sheet,
html body #welcomeTourModal .mh-overview-sheet {
  font-family: Poppins, system-ui, sans-serif !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  width: min(400px, 94%) !important;
  max-width: 400px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(88vh, calc(100dvh - 28px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 18px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: left;
  padding: 0 !important;
  margin: 0 auto !important;
}

html body #welcomeTourModal .mh-overview-accent {
  flex-shrink: 0;
  height: 3px !important;
  background: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 100%);
  border-radius: 18px 18px 0 0;
}

html body #welcomeTourModal .mh-overview-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 14px 16px 10px !important;
  flex-shrink: 0;
  background: #fff !important;
}

html body #welcomeTourModal .mh-overview-head .logo-background {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 14px !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  flex-shrink: 0;
  line-height: 0 !important;
  box-sizing: border-box !important;
}

html body #welcomeTourModal .mh-overview-head .logo,
html body #welcomeTourModal .mh-overview-sheet .logo {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

html body #welcomeTourModal .mh-overview-titles {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

html body #welcomeTourModal .mh-overview-sheet h2.mh-overview-title,
html body #welcomeTourModal h2.mh-overview-title {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 1.75rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #welcomeTourModal .mh-overview-sheet p.mh-overview-sub,
html body #welcomeTourModal p.mh-overview-sub {
  margin: 2px 0 0 !important;
  font-size: 1.032rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.35 !important;
}

html body #welcomeTourModal button.mh-overview-close,
html body #welcomeTourModal button.mh-overview-close[aria-label="Close modal"] {
  flex-shrink: 0;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 2.5rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: visible !important;
}

html body #welcomeTourModal .mh-overview-body {
  padding: 4px 16px 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  background: #fff;
  border-radius: 0 0 18px 18px;
}

html body #welcomeTourModal .mh-overview-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  width: 100%;
  flex: 1 1 auto;
}

html body #welcomeTourModal .mh-overview-cta-wrap {
  flex-shrink: 0;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 18%, #fff 100%);
}

/* Landing footer links (not What / Why / Help) sit under Continue */
html body #welcomeTourModal .mh-overview-legal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 2px;
  row-gap: 0;
  justify-items: center;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html body #welcomeTourModal button.mh-overview-legal-link,
html body #welcomeTourModal .mh-overview-legal-link {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  color: #64748b !important;
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: clamp(0.6rem, 2.1vw, 0.75rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  min-height: 22px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body #welcomeTourModal button.mh-overview-legal-link:hover,
html body #welcomeTourModal .mh-overview-legal-link:hover {
  color: #334155 !important;
  background: rgba(148, 163, 184, 0.12) !important;
  border: none !important;
}

html body #welcomeTourModal #skipTourButton.mh-overview-cta,
html body #welcomeTourModal #skipTourButton {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%) !important;
  color: #fff !important;
  font-family: Outfit, "Segoe UI", Calibri, "Trebuchet MS", sans-serif !important;
  font-size: 1.416rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.28) !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

html body #welcomeTourModal #skipTourButton.mh-overview-cta:hover,
html body #welcomeTourModal #skipTourButton:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%) !important;
}

html body #welcomeTourModal .mh-overview-btn,
html body #welcomeTourModal .mh-overview-sheet button.mh-overview-btn {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: 1.06rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
}

html body #welcomeTourModal .mh-overview-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html body #welcomeTourModal #mhOverviewHowBtn,
html body #welcomeTourModal #commonQuestionsFaqBtn,
html body #welcomeTourModal #teamMatchingExampleBtn {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html body #welcomeTourModal #mhOverviewHowBtn:hover,
html body #welcomeTourModal #commonQuestionsFaqBtn:hover,
html body #welcomeTourModal #teamMatchingExampleBtn:hover {
  background: #cbd5e1 !important;
  border-color: #94a3b8 !important;
}

html body #welcomeTourModal .mh-overview-btn-wide {
  grid-column: 1 / -1;
}

html body #welcomeTourModal .mh-overview-btn-whatwhy,
html body #welcomeTourModal #mhOverviewWhatBtn,
html body #welcomeTourModal #mhOverviewWhyBtn {
  background: #fff7ed !important;
  border-color: #fb923c !important;
  color: #c2410c !important;
}

html body #welcomeTourModal .mh-overview-btn-whatwhy:hover,
html body #welcomeTourModal #mhOverviewWhatBtn:hover,
html body #welcomeTourModal #mhOverviewWhyBtn:hover {
  background: #ffedd5 !important;
  border-color: #f97316 !important;
}

html body #welcomeTourModal .mh-overview-btn-tour-helper,
html body #welcomeTourModal .mh-overview-btn-tour-host,
html body #welcomeTourModal #mhOverviewHelperTourBtn,
html body #welcomeTourModal #mhOverviewHostTourBtn {
  background: #f5f3ff !important;
  border-color: #a78bfa !important;
  color: #6d28d9 !important;
}

html body #welcomeTourModal .mh-overview-btn-tour-helper:hover,
html body #welcomeTourModal .mh-overview-btn-tour-host:hover,
html body #welcomeTourModal #mhOverviewHelperTourBtn:hover,
html body #welcomeTourModal #mhOverviewHostTourBtn:hover {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
}

html body #welcomeTourModal .mh-overview-grid .mh-overview-btn,
html body #welcomeTourModal .mh-overview-sheet button.mh-overview-btn,
html body #welcomeTourModal #mhOverviewWhatBtn,
html body #welcomeTourModal #mhOverviewWhyBtn,
html body #welcomeTourModal #mhOverviewHowBtn,
html body #welcomeTourModal #commonQuestionsFaqBtn,
html body #welcomeTourModal #mhOverviewHelperTourBtn,
html body #welcomeTourModal #mhOverviewHostTourBtn,
html body #welcomeTourModal #teamMatchingExampleBtn {
  font-size: 1.06rem !important;
}

html body #welcomeTourModal .mh-overview-sheet #mhOnboardingProgress {
  margin: 0 16px 0 !important;
  padding: 0 0 6px !important;
  background: #fff;
}

html body #welcomeTourModal .mh-overview-sheet #mhOnboardingProgress p {
  margin: 0 !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  line-height: 1.3 !important;
}

html body #welcomeTourModal #viewRoadmapBtn,
html body #welcomeTourModal #keysToSuccessSection {
  display: none !important;
}

@media (max-width: 600px) {
  html body #welcomeTourModal {
    padding: 8px !important;
  }

  html body #welcomeTourModal > .mh-overview-sheet,
  html body #welcomeTourModal .mh-overview-sheet {
    width: calc(100% - 4px) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 16px !important;
    padding: 0 !important;
  }

  html body #welcomeTourModal .mh-overview-head {
    padding: 12px 12px 8px !important;
  }

  html body #welcomeTourModal .mh-overview-head .logo-background {
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 0 !important;
  }

  html body #welcomeTourModal .mh-overview-head .logo,
  html body #welcomeTourModal .mh-overview-sheet .logo {
    height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  html body #welcomeTourModal .mh-overview-sheet h2.mh-overview-title,
  html body #welcomeTourModal h2.mh-overview-title {
    font-size: 1.641rem !important;
  }

  html body #welcomeTourModal .mh-overview-sheet p.mh-overview-sub,
  html body #welcomeTourModal p.mh-overview-sub {
    font-size: 0.979rem !important;
  }

  html body #welcomeTourModal .mh-overview-body {
    padding: 2px 12px 0;
    gap: 8px;
  }

  html body #welcomeTourModal .mh-overview-cta-wrap {
    padding: 10px 0 14px;
  }

  html body #welcomeTourModal .mh-overview-legal {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 1px;
    margin-top: 8px;
    padding-top: 6px;
  }

  html body #welcomeTourModal button.mh-overview-legal-link,
  html body #welcomeTourModal .mh-overview-legal-link {
    font-size: clamp(0.58rem, 2.6vw, 0.7rem) !important;
    min-height: 22px !important;
    padding: 2px 0 !important;
  }

  html body #welcomeTourModal #skipTourButton.mh-overview-cta,
  html body #welcomeTourModal #skipTourButton {
    min-height: 48px !important;
    font-size: 1.344rem !important;
    padding: 12px 14px !important;
    font-family: Outfit, "Segoe UI", Calibri, "Trebuchet MS", sans-serif !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }

  html body #welcomeTourModal .mh-overview-btn,
  html body #welcomeTourModal .mh-overview-sheet button.mh-overview-btn,
  html body #welcomeTourModal .mh-overview-grid .mh-overview-btn,
  html body #welcomeTourModal #mhOverviewWhatBtn,
  html body #welcomeTourModal #mhOverviewWhyBtn,
  html body #welcomeTourModal #mhOverviewHowBtn,
  html body #welcomeTourModal #commonQuestionsFaqBtn,
  html body #welcomeTourModal #mhOverviewHelperTourBtn,
  html body #welcomeTourModal #mhOverviewHostTourBtn,
  html body #welcomeTourModal #teamMatchingExampleBtn {
    min-height: 42px !important;
    font-size: 1.06rem !important;
    padding: 8px 8px !important;
  }
}

@media (max-width: 480px) {
  html.mh-compact-phone body #welcomeTourModal > .mh-overview-sheet,
  html.mh-compact-phone #welcomeTourModal > .mh-overview-sheet,
  html body #welcomeTourModal > .mh-overview-sheet,
  html body #welcomeTourModal .mh-overview-sheet {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
  }

  html body #welcomeTourModal {
    padding: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px)) !important;
  }

  html body #welcomeTourModal > .mh-overview-sheet,
  html body #welcomeTourModal .mh-overview-sheet {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
  }

  html body #welcomeTourModal .mh-overview-head .logo-background {
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 0 !important;
  }

  html body #welcomeTourModal .mh-overview-head .logo,
  html body #welcomeTourModal .mh-overview-sheet .logo {
    height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  html body #welcomeTourModal button.mh-overview-close,
  html body #welcomeTourModal button.mh-overview-close[aria-label="Close modal"] {
    width: 32px !important;
    height: 32px !important;
    font-size: 2.4rem !important;
  }

  html body #welcomeTourModal .mh-overview-sheet h2.mh-overview-title,
  html body #welcomeTourModal h2.mh-overview-title {
    font-size: 1.594rem !important;
  }

  html body #welcomeTourModal .mh-overview-sheet p.mh-overview-sub,
  html body #welcomeTourModal p.mh-overview-sub {
    font-size: 0.979rem !important;
  }

  html body #welcomeTourModal #skipTourButton.mh-overview-cta,
  html body #welcomeTourModal #skipTourButton {
    min-height: 48px !important;
    font-size: 1.32rem !important;
    font-family: Outfit, "Segoe UI", Calibri, "Trebuchet MS", sans-serif !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
  }

  html body #welcomeTourModal .mh-overview-btn,
  html body #welcomeTourModal .mh-overview-sheet button.mh-overview-btn,
  html body #welcomeTourModal .mh-overview-grid .mh-overview-btn,
  html body #welcomeTourModal #mhOverviewWhatBtn,
  html body #welcomeTourModal #mhOverviewWhyBtn,
  html body #welcomeTourModal #mhOverviewHowBtn,
  html body #welcomeTourModal #commonQuestionsFaqBtn,
  html body #welcomeTourModal #mhOverviewHelperTourBtn,
  html body #welcomeTourModal #mhOverviewHostTourBtn,
  html body #welcomeTourModal #teamMatchingExampleBtn {
    min-height: 40px !important;
    font-size: 1.06rem !important;
  }
}
