/* ============================================================
   MuniGrowth Public Website Styles
   Professional institutional SaaS design
   ============================================================ */

:root {
  --mg-primary: var(--color-royal);
  --mg-primary-light: var(--color-teal);
  --mg-primary-dark: var(--color-midnight);
  --mg-secondary: var(--color-gold);
  --mg-secondary-light: #ffd166;
  --mg-accent: var(--color-teal-light);
  --mg-accent-light: #79f2e7;
  --mg-dark: var(--color-midnight);
  --mg-gray-900: var(--color-midnight);
  --mg-gray-700: var(--color-gray-600);
  --mg-gray-500: var(--color-gray-500);
  --mg-gray-300: var(--color-gray-200);
  --mg-gray-100: var(--color-off-white);
  --mg-white: var(--color-white);
  --mg-gradient: linear-gradient(135deg, var(--mg-primary-dark) 0%, var(--mg-primary) 45%, var(--mg-primary-light) 100%);
  --mg-gradient-green: linear-gradient(135deg, var(--mg-primary-light) 0%, var(--mg-secondary) 100%);
  --mg-shadow-sm: 0 8px 24px rgba(10, 15, 30, 0.08);
  --mg-shadow: 0 18px 40px rgba(10, 15, 30, 0.14);
  --mg-shadow-lg: 0 26px 64px rgba(10, 15, 30, 0.22);
  --mg-radius: 16px;
  --mg-radius-lg: 28px;
  --mg-brand-logo-height: 44px;
  /* Align with sovereign-navbar (loaded later); avoids interim 64px flash */
  --mg-navbar-height: 92px;
  --mg-transition: all 0.3s ease;
}

@media (min-width: 768px) {
  :root {
    --mg-brand-logo-height: 56px;
    --mg-navbar-height: 92px;
  }
}

@media (min-width: 1200px) {
  :root {
    --mg-brand-logo-height: 96px;
    --mg-navbar-height: 92px;
  }
}

/* ─── Reset & Base ─────────────────────────────── */
body.mg-public {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #fcfdff 0%, var(--mg-gray-100) 100%);
  color: var(--mg-gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

body.mg-public h1, body.mg-public h2, body.mg-public h3,
body.mg-public h4, body.mg-public h5, body.mg-public h6 {
  color: var(--mg-dark);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

body.mg-public a {
  color: var(--mg-primary-light);
  text-decoration: none;
  transition: var(--mg-transition);
}

body.mg-public a:hover {
  color: var(--mg-primary);
}

/* ─── Accessibility: focus and skip link ───────── */
body.mg-public a:focus-visible,
body.mg-public button:focus-visible,
body.mg-public [tabindex="0"]:focus-visible {
  outline: 2px solid var(--teal-400, #4cc3f0);
  outline-offset: 3px;
  border-radius: 4px;
}
.mg-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--mg-primary);
  color: var(--mg-white);
  font-weight: 600;
  border-radius: var(--mg-radius);
  transition: top 0.2s ease;
}
.mg-skip-link:focus {
  top: 16px;
  outline: 2px solid var(--mg-accent);
  outline-offset: 2px;
}

/* ─── Navbar ───────────────────────────────────── */
.mg-navbar-spacer {
  height: var(--mg-navbar-height);
}

/* Breathing room below fixed nav (reserved by .mg-navbar-spacer in base layout) */
body.mg-public > main > *:not(.mg-hero):not(.hero.mg-hero-command):first-child {
  padding-top: 0.35rem;
}

.mg-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 15, 30, 0.06);
  box-shadow: 0 10px 30px rgba(10, 15, 30, 0.06);
  padding: 0.45rem 0.75rem !important;
  transition: var(--mg-transition);
  z-index: 1050;
}

@media (min-width: 576px) {
  .mg-navbar {
    padding: 0.3rem 0.75rem !important;
  }
}

@media (min-width: 768px) {
  .mg-navbar {
    padding: 0.35rem 1rem !important;
  }
}

.mg-navbar.scrolled {
  box-shadow: var(--mg-shadow-sm);
}

.mg-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--mg-primary) !important;
  background: none !important;
  padding: 0;
  border: none;
}

.mg-brand-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mg-primary);
  line-height: 1;
}

/* ─── Logo (shared) ─────────────────────────────── */
.mg-logo {
  background: transparent !important;
  object-fit: contain;
  display: block;
  height: auto;
  max-height: 100%;
}

.mg-navbar .navbar-brand .brand-logo,
.mg-navbar .navbar-brand img.mg-logo {
  height: var(--mg-brand-logo-height);
  width: auto;
  max-width: min(520px, calc(100vw - 8rem));
  margin-inline-end: 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain;
  display: block;
}

/* Landing page navbar logo sizing override */
.navbar-brand img,
.nav-logo img,
header .logo img {
  height: 65px !important;
  width: auto !important;
}

@media (max-width: 374.98px) {
  .mg-navbar .navbar-brand .brand-logo,
  .mg-navbar .navbar-brand img.mg-logo {
    max-width: min(170px, calc(100vw - 7.5rem));
  }
}

@media (max-width: 991.98px) {
  .mg-navbar .navbar-brand .brand-logo,
  .mg-navbar .navbar-brand img.mg-logo {
    max-width: min(220px, calc(100vw - 6.25rem));
  }
}

.mg-nav-actions {
  flex-wrap: nowrap;
}

@media (max-width: 1535.98px) {
  .mg-navbar .nav-link {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.9rem;
  }

  .mg-nav-actions {
    gap: 0.35rem !important;
  }

  .mg-language-toggle {
    min-width: 64px;
    padding: 0.35rem 0.7rem;
  }
}

.mg-language-toggle {
  min-width: 78px;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.mg-navbar .nav-link {
  color: var(--mg-gray-700) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: var(--mg-transition);
}

.mg-navbar .nav-link:hover,
.mg-navbar .nav-link.active {
  color: var(--mg-primary) !important;
  background: rgba(0, 180, 166, 0.1);
}

.mg-navbar .btn-login {
  color: var(--mg-primary-light) !important;
  font-weight: 600;
  border: 2px solid rgba(0, 180, 166, 0.65);
  border-radius: 12px;
  padding: 0.35rem 1rem !important;
}

.mg-navbar .btn-login:hover {
  background: var(--mg-primary-light);
  color: var(--mg-white) !important;
}

.mg-navbar .btn-get-started {
  background: var(--mg-gradient);
  color: var(--mg-white) !important;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.4rem 1.2rem !important;
  box-shadow: 0 10px 24px rgba(0, 180, 166, 0.24);
}

.mg-navbar .btn-get-started:hover {
  box-shadow: 0 16px 32px rgba(0, 180, 166, 0.28);
  transform: translateY(-1px);
}

/* ─── Navbar Mobile ─────────────────────────────── */
@media (max-width: 991.98px) {
  .mg-navbar .navbar-collapse {
    padding: 1rem 0 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 0.5rem;
  }

  .mg-brand-wordmark {
    font-size: 1.15rem;
  }

  .mg-navbar .btn-login,
  .mg-navbar .btn-get-started {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.4rem;
  }

  .mg-nav-actions {
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    gap: 0.4rem;
  }

  .mg-nav-actions .dropdown {
    width: 100%;
  }

  .mg-language-toggle {
    width: 100%;
  }

  .mg-navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 0.25rem;
    width: 100%;
  }
}

/* ─── Buttons ──────────────────────────────────── */
body.mg-public .btn-mg-primary,
body.mg-public a.btn-mg-primary {
  background: var(--mg-gradient);
  color: var(--mg-white) !important;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(0, 180, 166, 0.22);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-primary:hover,
body.mg-public .btn-mg-primary:focus,
body.mg-public .btn-mg-primary:active,
body.mg-public a.btn-mg-primary:hover,
body.mg-public a.btn-mg-primary:focus,
body.mg-public a.btn-mg-primary:active {
  color: var(--mg-white) !important;
  box-shadow: 0 18px 38px rgba(0, 180, 166, 0.28);
  transform: translateY(-2px);
}

body.mg-public .btn-mg-secondary,
body.mg-public a.btn-mg-secondary {
  background: var(--mg-gradient-green);
  color: var(--mg-white) !important;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(244, 168, 32, 0.22);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-secondary:hover,
body.mg-public .btn-mg-secondary:focus,
body.mg-public .btn-mg-secondary:active,
body.mg-public a.btn-mg-secondary:hover,
body.mg-public a.btn-mg-secondary:focus,
body.mg-public a.btn-mg-secondary:active {
  color: var(--mg-white) !important;
  box-shadow: 0 18px 38px rgba(244, 168, 32, 0.28);
  transform: translateY(-2px);
}

body.mg-public .btn-mg-outline,
body.mg-public a.btn-mg-outline {
  background: transparent;
  color: var(--mg-primary) !important;
  font-weight: 600;
  border: 2px solid var(--mg-primary);
  border-radius: 8px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-outline:hover,
body.mg-public .btn-mg-outline:focus,
body.mg-public .btn-mg-outline:active,
body.mg-public a.btn-mg-outline:hover,
body.mg-public a.btn-mg-outline:focus,
body.mg-public a.btn-mg-outline:active {
  background: var(--mg-primary);
  color: var(--mg-white) !important;
  transform: translateY(-2px);
}

body.mg-public .btn-mg-outline-light,
body.mg-public a.btn-mg-outline-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--mg-white) !important;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 22px rgba(10, 15, 30, 0.18);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-outline-light:hover,
body.mg-public .btn-mg-outline-light:focus,
body.mg-public .btn-mg-outline-light:active,
body.mg-public a.btn-mg-outline-light:hover,
body.mg-public a.btn-mg-outline-light:focus,
body.mg-public a.btn-mg-outline-light:active {
  background: var(--mg-white);
  color: var(--mg-primary-dark) !important;
  border-color: var(--mg-white);
  transform: translateY(-2px);
}

body.mg-public .btn-mg-white,
body.mg-public a.btn-mg-white {
  background: var(--mg-white);
  color: var(--mg-primary) !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-white:hover,
body.mg-public .btn-mg-white:focus,
body.mg-public .btn-mg-white:active,
body.mg-public a.btn-mg-white:hover,
body.mg-public a.btn-mg-white:focus,
body.mg-public a.btn-mg-white:active {
  color: var(--mg-primary-dark) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ─── Hero Section ─────────────────────────────── */
.mg-hero {
  background: var(--mg-gradient);
  position: relative;
  padding: 5rem 0 2.5rem;
  overflow: hidden;
  min-height: auto;
  /* `fixed` causes repaint/jank on mobile; keep parallax only on large screens */
  background-attachment: scroll;
}

@media (min-width: 992px) {
  .mg-hero:not(.mg-hero--has-bg) {
    background-attachment: fixed;
  }
}

/* Home hero: photo layer via custom property (matches page-header dynamic pattern) */
.mg-hero.mg-hero--has-bg {
  background-image:
    linear-gradient(135deg, rgba(10, 15, 30, 0.72) 0%, rgba(26, 58, 107, 0.62) 45%, rgba(0, 180, 166, 0.42) 100%),
    var(--mg-hero-bg-image, none);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (prefers-reduced-motion: reduce) {
  .mg-hero {
    background-attachment: scroll !important;
  }
}

.mg-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.mg-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top right, var(--mg-white) 49%, transparent 51%);
}

.mg-hero h1 {
  color: #f4f8ff;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 8px 30px rgba(10, 15, 30, 0.24);
}

.mg-hero .lead {
  color: rgba(244, 248, 255, 0.92);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 540px;
}

.mg-hero .hero-badge {
  display: inline-block;
  background: rgba(0, 180, 166, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--mg-white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.mg-hero .hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.mg-hero .hero-stats .stat {
  text-align: center;
}

.mg-hero .hero-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--mg-white);
}

.mg-hero .hero-stats .stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
}

.hero-dashboard-img {
  width: 100%;
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow-lg);
}

/* ─── Frontend Blueprint Theme Parity ─────────── */
.mg-hero h1 {
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: initial;
  color: #f4f8ff;
  text-shadow: 0 8px 30px rgba(10, 15, 30, 0.22);
}

.mg-hero .hero-badge {
  border: 1px solid rgba(0, 180, 166, 0.34);
  color: var(--mg-accent);
  background: rgba(0, 180, 166, 0.14);
}

.mg-product-showcase {
  margin-top: 1rem;
}

.mg-product-showcase-container {
  max-width: 1200px;
  padding: 0 2.5rem 5rem;
}

.mg-browser-frame {
  background: rgba(12, 22, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 180, 166, 0.15);
  animation: mgHeroFloat 3s ease-in-out infinite;
  transition: box-shadow 0.25s ease;
}

.mg-browser-frame:hover {
  box-shadow: 0 44px 100px rgba(0, 180, 166, 0.2);
}

.mg-browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.mg-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.mg-browser-dot.red { background: #ff5f56; }
.mg-browser-dot.yellow { background: #ffbd2e; }
.mg-browser-dot.green { background: #27c93f; }

.mg-browser-shot {
  width: 100%;
  display: block;
}

.mg-walkthrough-embed {
  height: 560px;
  border: 0;
  background: #ffffff;
}

/* ── Product walkthrough (/demo/) — side rail + browser frame ─ */
.mg-walkthrough-section {
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 3.25rem;
  background:
    radial-gradient(ellipse 70% 45% at 20% 0%, rgba(10, 111, 163, 0.07), transparent 55%),
    linear-gradient(180deg, #f3f6f5 0%, #ffffff 42%, #ffffff 100%);
}

.mg-walkthrough {
  --wt-ink: var(--mg-primary-dark, #0a1628);
  --wt-muted: #64748b;
  --wt-line: rgba(10, 22, 40, 0.1);
  --wt-teal: var(--mg-primary-light, #0a6fa3);
  --wt-teal-soft: rgba(10, 111, 163, 0.1);
  display: grid;
  grid-template-columns: minmax(13.5rem, 16.5rem) minmax(0, 1fr);
  gap: 0;
  max-width: min(1180px, 100%);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  border: 1px solid var(--wt-line);
  border-radius: var(--mg-radius-lg, 28px);
  background: #fff;
  box-shadow: var(--mg-shadow, 0 18px 40px rgba(10, 15, 30, 0.14));
  overflow: hidden;
  outline: none;
}

.mg-walkthrough:focus-visible {
  box-shadow:
    0 0 0 3px rgba(10, 111, 163, 0.35),
    var(--mg-shadow, 0 18px 40px rgba(10, 15, 30, 0.14));
}

/* Left step rail */
.mg-walkthrough__rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 0.85rem 1.25rem 1rem;
  background: linear-gradient(180deg, #f7faf8 0%, #f2f6f4 100%);
  border-right: 1px solid var(--wt-line);
  min-height: 0;
}

.mg-walkthrough__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wt-teal);
}

.mg-walkthrough__counter {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--wt-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.mg-walkthrough__progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.08);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.mg-walkthrough__progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a6b52, var(--wt-teal));
  transition: width 0.28s ease;
}

.mg-walkthrough__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
}

.mg-walkthrough__step {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  background: transparent;
  padding: 0.45rem 0.55rem 0.45rem 0.5rem;
  color: var(--wt-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mg-walkthrough__step:hover {
  color: var(--wt-ink);
  background: rgba(10, 111, 163, 0.06);
}

.mg-walkthrough__step.is-active {
  color: var(--wt-ink);
  font-weight: 700;
  background: #fff;
  border-left-color: var(--wt-teal);
  box-shadow: var(--mg-shadow-sm, 0 8px 24px rgba(10, 15, 30, 0.08));
}

.mg-walkthrough__step-num {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(10, 22, 40, 0.07);
  color: inherit;
}

.mg-walkthrough__step.is-active .mg-walkthrough__step-num {
  background: var(--wt-teal);
  color: #fff;
}

.mg-walkthrough__step-label {
  flex: 1 1 auto;
  min-width: 0;
}

/* Main stage */
.mg-walkthrough__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #fff;
}

.mg-walkthrough__stage-head {
  margin-bottom: 0.85rem;
}

.mg-walkthrough__title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--wt-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Browser chrome frame */
.mg-walkthrough__window {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--wt-line);
  border-radius: var(--mg-radius, 16px);
  overflow: hidden;
  background: #f1f5f4;
  box-shadow: var(--mg-shadow-sm, 0 8px 24px rgba(10, 15, 30, 0.08));
}

.mg-walkthrough__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #f8faf9 0%, #eef2f1 100%);
  border-bottom: 1px solid var(--wt-line);
}

.mg-walkthrough__dots {
  display: inline-flex;
  gap: 0.32rem;
  flex: 0 0 auto;
}

.mg-walkthrough__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}
.mg-walkthrough__dot.is-red { background: #ff5f56; }
.mg-walkthrough__dot.is-amber { background: #ffbd2e; }
.mg-walkthrough__dot.is-green { background: #27c93f; }

.mg-walkthrough__url {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, 0.08);
  color: var(--wt-muted);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden;
}

.mg-walkthrough__url-host {
  color: var(--wt-ink);
  flex: 0 0 auto;
  font-weight: 600;
}

.mg-walkthrough__url-path {
  color: var(--wt-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-walkthrough__viewport {
  background: #e8eeec;
  max-width: 100%;
  min-width: 0;
}

.mg-walkthrough__zoom-btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.mg-walkthrough__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  background: #e8eeec;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mg-walkthrough__image.is-out {
  opacity: 0;
  transform: translateY(6px);
}

.mg-walkthrough__image.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mg-walkthrough__image,
  .mg-walkthrough__progress-bar {
    transition: none;
  }

  .mg-walkthrough__image.is-out,
  .mg-walkthrough__image.is-in {
    opacity: 1;
    transform: none;
  }
}

.mg-walkthrough__zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 22, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mg-walkthrough__zoom-btn:hover .mg-walkthrough__zoom-hint,
.mg-walkthrough__zoom-btn:focus-visible .mg-walkthrough__zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .mg-walkthrough__zoom-hint {
    opacity: 0.9;
    transform: none;
  }
}

.mg-walkthrough__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: 1rem;
}

.mg-walkthrough__caption {
  flex: 1 1 16rem;
  margin: 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}

.mg-walkthrough__controls {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.mg-walkthrough__ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.mg-walkthrough__ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mg-walkthrough__ctrl--ghost {
  background: transparent;
  border-color: rgba(10, 22, 40, 0.14);
  color: var(--wt-ink);
}

.mg-walkthrough__ctrl--ghost:not(:disabled):hover {
  background: var(--wt-teal-soft);
  border-color: rgba(10, 111, 163, 0.4);
  color: #0a6b52;
}

.mg-walkthrough__ctrl--solid {
  background: var(--wt-teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 111, 163, 0.28);
}

.mg-walkthrough__ctrl--solid:not(:disabled):hover {
  filter: brightness(1.05);
}

.mg-walkthrough-lightbox {
  border: 0;
  padding: 0;
  max-width: min(96vw, 1500px);
  max-height: 95vh;
  width: auto;
  background: transparent;
}

.mg-walkthrough-lightbox::backdrop {
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(4px);
}

.mg-walkthrough-lightbox__inner {
  position: relative;
  background: #0b1220;
  border-radius: var(--mg-radius, 16px);
  padding: 0.65rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mg-walkthrough-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(95vh - 6.5rem);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #111827;
}

.mg-walkthrough-lightbox__meta {
  padding: 0.75rem 0.4rem 0.25rem;
}

.mg-walkthrough-lightbox__title {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.mg-walkthrough-lightbox__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mg-walkthrough-lightbox__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.mg-walkthrough-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 991.98px) {
  .mg-walkthrough {
    /* minmax(0,…) so the framed screenshot can shrink below intrinsic width */
    grid-template-columns: minmax(0, 1fr);
  }

  .mg-walkthrough__rail {
    border-right: 0;
    border-bottom: 1px solid var(--wt-line);
    padding-bottom: 0.85rem;
    min-width: 0;
  }

  .mg-walkthrough__steps {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .mg-walkthrough__step {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
    max-width: 11rem;
  }

  .mg-walkthrough__step.is-active {
    border-bottom-color: var(--wt-teal);
    border-left-color: transparent;
  }

  .mg-walkthrough__step-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 767.98px) {
  .mg-walkthrough__main {
    padding: 0.9rem 0.85rem 1rem;
  }

  .mg-walkthrough__rail {
    padding: 0.9rem 0.75rem;
  }

  .mg-walkthrough__footer {
    flex-direction: column;
  }

  .mg-walkthrough__controls {
    width: 100%;
    margin-left: 0;
  }

  .mg-walkthrough__ctrl {
    flex: 1 1 auto;
    justify-content: center;
  }

  .mg-walkthrough__caption {
    max-width: none;
    font-size: 0.9rem;
  }

  .mg-walkthrough__window {
    border-radius: 12px;
  }
}

.mg-showcase-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  margin-top: 0.85rem;
}

.comparison-feature-col {
  min-width: 220px;
}

.mg-avatar-circle-48 {
  width: 48px;
  height: 48px;
}

.mg-fade-in-observe {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mg-fade-in-observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mg-mobile-showcase {
  position: relative;
}

.mg-phone-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.4rem;
  margin-top: 1rem;
}

.mg-phone-frame {
  --mg-tilt: 0deg;
  width: 250px;
  max-width: 42vw;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #131c33 0%, #0a0f1e 100%);
  padding: 12px;
  box-shadow: 0 22px 40px rgba(10, 15, 30, 0.45);
  position: relative;
  animation: mgPhoneFloat 3.4s ease-in-out infinite;
}

.mg-phone-frame:nth-child(2) {
  animation-duration: 3.9s;
}

.mg-phone-frame.left { --mg-tilt: -8deg; }
.mg-phone-frame.right { --mg-tilt: 8deg; }

.mg-phone-notch {
  width: 34%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  margin: 2px auto 10px;
}

.mg-phone-screen {
  border-radius: 30px;
  overflow: hidden;
}

.mg-phone-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 9 / 16;
}

.mg-phone-placeholder {
  aspect-ratio: 9 / 16;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(165deg, #11284a, #1f587f);
}

.mg-phone-placeholder i {
  font-size: 1.7rem;
}

.mg-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.mg-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
}

@keyframes mgHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mgPhoneFloat {
  0%, 100% { transform: rotate(var(--mg-tilt)) translateY(0); }
  50% { transform: rotate(var(--mg-tilt)) translateY(-6px); }
}

@media (max-width: 767.98px) {
  .mg-product-showcase-container {
    padding: 0 1rem 2.5rem;
  }

  .mg-product-showcase .mg-browser-shot {
    height: 260px;
    object-fit: cover;
    object-position: top center;
  }

  .mg-product-showcase .mg-walkthrough-embed {
    height: 300px;
  }

  .mg-phone-frame {
    width: min(220px, 44vw);
  }
}

@media (max-width: 991.98px) {
  .mg-product-showcase-container {
    padding: 0 1.5rem 3.25rem;
  }

  .mg-product-showcase .mg-walkthrough-embed {
    height: 420px;
  }

  .mg-section {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 1.2rem;
  }

  .section-header h2 {
    font-size: clamp(1.45rem, 4.6vw, 2rem);
    margin-bottom: 0.55rem;
  }

  .section-header p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .mg-phone-grid {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .mg-phone-frame {
    width: min(210px, 46vw);
    border-radius: 28px;
    padding: 9px;
  }

  .mg-phone-screen {
    border-radius: 20px;
  }
}

/* ─── Sections ─────────────────────────────────── */
.mg-section {
  padding: 5rem 0;
}

@media (min-width: 992px) {
  body.mg-public .mg-hero {
    padding: 1.4rem 0 0.65rem;
  }

  body.mg-public .mg-hero .hero-badge {
    margin-bottom: 0.45rem;
  }

  body.mg-public .mg-hero h1 {
    margin-bottom: 0.45rem;
  }

  body.mg-public .mg-hero .lead {
    margin-bottom: 0.45rem;
  }

  body.mg-public .mg-hero .hero-stats {
    margin-top: 0.5rem;
    gap: 0.75rem;
  }

  body.mg-public .mg-product-showcase {
    margin-top: 0;
  }

  body.mg-public .mg-section {
    padding: 1rem 0;
  }

  body.mg-public .section-header {
    margin-bottom: 0.6rem;
  }

  body.mg-public .section-header .section-tag {
    margin-bottom: 0.3rem;
  }

  body.mg-public .section-header h2 {
    margin-bottom: 0.3rem;
  }

  body.mg-public .mg-card {
    padding: 0.9rem;
  }

  body.mg-public .mg-footer {
    padding-top: 1.2rem;
  }

  body.mg-public .row.g-5 {
    --bs-gutter-y: 0.6rem;
  }

  body.mg-public .row.g-4 {
    --bs-gutter-y: 0.5rem;
  }

  body.mg-public {
    line-height: 1.5;
  }

  body.mg-public p,
  body.mg-public li {
    line-height: 1.42;
  }

  body.mg-public .section-header p {
    font-size: 0.95rem;
    line-height: 1.35;
    max-width: 760px;
  }

  body.mg-public .mg-card p,
  body.mg-public .workflow-step p,
  body.mg-public .benefit-card p {
    line-height: 1.34;
  }
}

.mg-section .container {
  max-width: 1140px;
}

.mg-section-gray {
  background: var(--mg-gray-100);
}

.mg-section-dark {
  background: var(--mg-dark);
  color: var(--mg-white);
}

.mg-section-dark h2,
.mg-section-dark h3,
.mg-section-dark h4 {
  color: var(--mg-white);
}

.mg-section-dark p {
  color: rgba(255,255,255,0.8);
}

.mg-section-gradient {
  background: var(--mg-gradient);
  color: var(--mg-white);
}

.mg-section-gradient h2,
.mg-section-gradient p {
  color: var(--mg-white);
}

.mg-section-gradient p {
  opacity: 0.9;
}

.mg-cta-email {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.mg-cta-email-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mg-cta-email-link:hover {
  color: #fff;
  opacity: 0.9;
}

@media print {
  .mg-cta .btn {
    border: 2px solid #0a1628 !important;
    color: #0a1628 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .mg-cta-email-link {
    color: #0a1628 !important;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-tag {
  display: inline-block;
  background: rgba(0, 180, 166, 0.1);
  color: var(--mg-primary-light);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.mg-section-dark .section-tag,
.mg-section-gradient .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--mg-white);
}

.section-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Feature Cards ────────────────────────────── */
.mg-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  padding: 2rem;
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(10, 15, 30, 0.06);
  transition: var(--mg-transition);
  height: 100%;
}

.mg-card:hover {
  box-shadow: var(--mg-shadow);
  transform: translateY(-2px);
}

.mg-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--mg-white);
}

.mg-card .card-icon.bg-primary-gradient { background: var(--mg-gradient); }
.mg-card .card-icon.bg-green-gradient { background: var(--mg-gradient-green); }
.mg-card .card-icon.bg-accent { background: linear-gradient(135deg, var(--mg-accent) 0%, var(--mg-accent-light) 100%); }

.mg-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.mg-card p {
  font-size: 0.95rem;
  color: var(--mg-gray-500);
  margin-bottom: 0;
}

/* ─── Benefit Cards ────────────────────────────── */
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--mg-transition);
}

.benefit-card:hover {
  box-shadow: var(--mg-shadow);
  transform: translateY(-2px);
}

.benefit-card .benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--mg-white);
  background: var(--mg-gradient);
}

.benefit-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--mg-gray-500);
  margin-bottom: 0;
}

/* ─── Workflow Steps ───────────────────────────── */
.workflow-step {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step-image-wrapper {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.step-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(27, 79, 114, 0.15);
  object-fit: cover;
  display: block;
}

.step-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(27, 79, 114, 0.12), rgba(0, 180, 166, 0.14));
  color: var(--mg-primary);
  font-size: 2rem;
}

.workflow-step .step-number {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mg-gradient);
  color: var(--mg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(27, 79, 114, 0.3);
}

.workflow-step h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  font-size: 0.85rem;
  color: var(--mg-gray-500);
}

.workflow-connector {
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--mg-gray-300);
  z-index: 0;
}

/* ─── Stats Section ────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 1.5rem;
}

.stat-block .stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--mg-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-block .stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ─── Testimonials ─────────────────────────────── */
.testimonial-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  padding: 2rem;
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--mg-primary-light);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
}

.testimonial-card .testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mg-gray-700);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mg-white);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card .author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mg-dark);
}

.testimonial-card .author-title {
  font-size: 0.8rem;
  color: var(--mg-gray-500);
}

/* ─── Partner Logos ────────────────────────────── */
.partner-logo {
  height: 48px;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: var(--mg-transition);
}

.partner-logo:hover {
  opacity: 0.7;
  filter: grayscale(0%);
}

/* ─── Pricing Cards ────────────────────────────── */
.pricing-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--mg-shadow-sm);
  border: 2px solid transparent;
  transition: var(--mg-transition);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--mg-shadow);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--mg-primary-light);
  box-shadow: var(--mg-shadow);
}

.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mg-gradient);
  color: var(--mg-white);
  padding: 0.3rem 1.25rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mg-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--mg-dark);
  line-height: 1.08;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Long CTA copy — same slot as price but must not use headline-sized type */
.pricing-card .plan-price.plan-price--contact {
  font-size: clamp(1.05rem, 2.15vw, 1.35rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.pricing-card .plan-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-card .plan-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--mg-gray-500);
}

.pricing-card .plan-desc {
  font-size: 0.9rem;
  color: var(--mg-gray-500);
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pricing-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1 1 auto;
}

.pricing-card .feature-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--mg-gray-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-card .feature-list li i {
  color: var(--mg-secondary);
  font-size: 1rem;
}

.pricing-card .feature-list li.disabled {
  color: var(--mg-gray-300);
}

.pricing-card .feature-list li.disabled i {
  color: var(--mg-gray-300);
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card--ngo {
  border: 1px dashed rgba(27, 79, 114, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pricing-card--ngo .plan-name {
  color: var(--mg-primary);
}

.pricing-card--ngo .plan-desc {
  min-height: 84px;
}

/* ─── Comparison Table ─────────────────────────── */
.comparison-table {
  border-radius: var(--mg-radius);
  overflow: hidden;
  box-shadow: var(--mg-shadow-sm);
}

.comparison-table thead th {
  background: var(--mg-primary);
  color: var(--mg-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
  border: none;
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
  border-color: var(--mg-gray-100);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}

/* Yes/no markers (Unicode); Bootstrap Icons webfont can render invisible under CSP/CDN issues */
.comparison-table .comparison-yes,
.comparison-table .comparison-no {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.comparison-table .comparison-yes {
  color: var(--mg-secondary);
}

/* Higher contrast than former gray-300 so ✖ stays visible on alternating rows */
.comparison-table .comparison-no {
  color: var(--mg-gray-500);
}

/* ─── FAQ Accordion ────────────────────────────── */
.mg-accordion .accordion-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--mg-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.mg-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--mg-dark);
  background: var(--mg-white);
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.mg-accordion .accordion-button:not(.collapsed) {
  color: var(--mg-primary);
  background: rgba(27, 79, 114, 0.03);
}

.mg-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231B4F72'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.mg-accordion .accordion-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--mg-gray-700);
}

/* ─── Timeline ─────────────────────────────────── */
.mg-timeline {
  position: relative;
  padding: 2rem 0;
}

.mg-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mg-gray-300);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mg-primary);
  border: 3px solid var(--mg-white);
  box-shadow: 0 0 0 3px var(--mg-primary-light);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item .timeline-content {
  width: 45%;
  background: var(--mg-white);
  padding: 1.5rem;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-item .timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mg-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.timeline-item h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--mg-gray-500);
  margin-bottom: 0;
}

/* ─── Charts ───────────────────────────────────── */
.chart-container {
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  padding: 1.5rem;
  box-shadow: var(--mg-shadow-sm);
}

.chart-container h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--mg-dark);
}

/* ─── Contact Form ─────────────────────────────── */
.mg-form .form-control,
.mg-form .form-select {
  border-radius: 8px;
  border: 1.5px solid var(--mg-gray-300);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--mg-transition);
}

.mg-form .form-control:focus,
.mg-form .form-select:focus {
  border-color: var(--mg-primary-light);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

.mg-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mg-dark);
  margin-bottom: 0.5rem;
}

/* ─── CTA Sections ─────────────────────────────── */
.mg-cta {
  padding: 5rem 0;
  text-align: center;
}

.mg-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mg-cta p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ─── Footer ───────────────────────────────────── */
.mg-footer {
  background: #e2e8f0;
  color: var(--mg-gray-700);
  padding: 4rem 0 0;
}

.mg-footer .mg-footer-logo,
.mg-footer .mg-logo,
.mg-footer img[alt="MuniGrowth"] {
  height: auto;
  max-height: 104px;
  width: auto;
  max-width: min(400px, 75vw);
  background: transparent !important;
  object-fit: contain;
  display: block;
}

/* Footer logo sizing override */
footer .logo img,
.footer-brand img,
.footer-logo img {
  height: 70px !important;
  width: auto !important;
}

@media (max-width: 991.98px) {
  .mg-footer .mg-footer-logo,
  .mg-footer .mg-logo,
  .mg-footer img[alt="MuniGrowth"] {
    max-height: 64px;
    max-width: min(260px, 72vw);
  }
}

@media (min-width: 768px) {
  .mg-footer .mg-footer-logo,
  .mg-footer .mg-logo,
  .mg-footer img[alt="MuniGrowth"] {
    max-height: 112px;
    max-width: min(440px, 60vw);
  }
}

.mg-footer h5,
.mg-footer h2.h5 {
  color: var(--mg-dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.mg-footer a {
  color: var(--mg-primary);
  font-size: 0.9rem;
  transition: var(--mg-transition);
}

.mg-footer a:hover {
  color: var(--mg-primary-light);
}

.mg-footer .footer-links li {
  color: var(--mg-gray-700);
}

.mg-footer p {
  color: var(--mg-gray-700);
}

.mg-footer .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.mg-footer .footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mg-gray-700);
}

.mg-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.mg-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(27,79,114,0.1);
  color: var(--mg-primary);
  margin-right: 0.5rem;
  transition: var(--mg-transition);
}

.mg-footer .social-links a:hover {
  background: var(--mg-primary);
  color: var(--mg-white);
}

/* ─── Legal Pages ──────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--mg-gray-500);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mg-gray-100);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* ─── Page Header ──────────────────────────────── */
.mg-page-header {
  background: var(--mg-gradient);
  padding: 10rem 0 8rem;
  text-align: center;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

.mg-page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top right, var(--mg-white) 49%, transparent 51%);
}

.mg-page-header h1 {
  color: var(--mg-white);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mg-page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero image background for page headers */
.mg-page-header.mg-page-header-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mg-page-header.mg-page-header-hero::after {
  height: 80px;
}

/* Dynamic hero image from CMS — set --mg-hero-bg-image on the element */
.mg-page-header.mg-page-header-hero.mg-page-header-hero--dynamic {
  background-image:
    linear-gradient(135deg, rgba(27, 79, 114, 0.5) 0%, rgba(46, 134, 193, 0.45) 100%),
    var(--mg-hero-bg-image, none);
}

/* Contact page: token-style utilities (pairs with design-tokens.css) */
.mg-surface-muted {
  background: rgba(27, 79, 114, 0.04);
}

.mg-border-subtle {
  border: 1px solid rgba(27, 79, 114, 0.1);
}

.mg-text-meta {
  font-size: 0.95rem;
}

.mg-text-detail {
  font-size: 0.9rem;
}

.contact-info-card .contact-info-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-info-card a.contact-info-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.contact-info-card a.contact-info-link:hover {
  text-decoration: underline;
}

.contact-info-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1.5rem 0;
  opacity: 1;
}

.mg-social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ─── Feature Detail Cards ─────────────────────── */
.feature-detail-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius-lg);
  padding: 3rem;
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  transition: var(--mg-transition);
}

.feature-detail-card:hover {
  box-shadow: var(--mg-shadow);
}

.feature-detail-card .feature-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--mg-white);
  margin-bottom: 1.5rem;
}

.feature-detail-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-detail-card p {
  font-size: 1rem;
  color: var(--mg-gray-500);
  margin-bottom: 1.25rem;
}

.feature-detail-card .feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-detail-card .feature-highlights li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--mg-gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-detail-card .feature-highlights li i {
  color: var(--mg-secondary);
}

/* ─── Contact Info ─────────────────────────────── */
.contact-info-card {
  background: var(--mg-gradient);
  border-radius: var(--mg-radius-lg);
  padding: 2.5rem;
  color: var(--mg-white);
  height: 100%;
}

.contact-info-card h3,
.contact-info-card h2.h3 {
  color: var(--mg-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item h5,
.contact-info-item h3.h5 {
  color: var(--mg-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-info-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info-card h3.h6 {
  color: var(--mg-white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 992px) {
  .mg-hero,
  .mg-page-header {
    min-height: auto;
  }

  .mg-hero {
    padding: 4rem 0 2rem;
  }

  .mg-page-header {
    padding: 10rem 0 8rem;
  }

  .mg-hero h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .mg-page-header h1 {
    font-size: 2.2rem;
  }

  .hero-image-wrapper {
    margin-top: 2rem;
  }

  .mg-timeline::before {
    left: 20px;
  }

  .timeline-item .timeline-dot {
    left: 20px;
  }

  .timeline-item .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .mg-hero,
  .mg-page-header {
    min-height: auto;
  }

  .mg-hero {
    padding: 4rem 0 2rem;
    text-align: center;
  }

  .mg-page-header {
    padding: 6.25rem 0 4.25rem;
  }

  .mg-hero h1 {
    font-size: 2rem;
  }

  .mg-hero .lead {
    margin: 0 auto;
  }

  .mg-hero .hero-stats {
    justify-content: center;
  }

  .mg-section {
    padding: 3.5rem 0;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .feature-detail-card {
    padding: 2rem;
  }

  .stat-block .stat-value {
    font-size: 2rem;
  }

  .mg-hero h1,
  .mg-page-header h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
  }

  .mg-hero .lead,
  .mg-page-header p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mg-phone-grid {
    flex-direction: column;
    align-items: center;
  }

  .mg-phone-frame {
    width: 100%;
    max-width: 320px;
  }

  .mg-walkthrough-embed {
    height: 340px;
  }

  .comparison-table {
    min-width: 640px;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chrome-url {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .preview-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .mg-hero,
  .mg-page-header {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .mg-hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .mg-hero .lead {
    font-size: 1rem;
  }

  .mg-hero .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-image-wrapper {
    display: none;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* ─── Animations ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

 .hero-image-wrapper {
  max-height: 52vh;
  overflow: hidden;
}

.hero-dashboard-img {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .mg-hero {
    padding: 4rem 0 2rem;
  }

  .hero-image-wrapper,
  .hero-dashboard-img {
    max-height: 38vh;
  }
}


/* ─── Social Proof Trust Bar ───────────────────── */
.mg-trust-bar {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1.75rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2.5rem;
}

.trust-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mg-primary);
  line-height: 1.1;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--mg-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .trust-divider { display: none; }
  .trust-stat { padding: 0.5rem 1.25rem; }
  .trust-number { font-size: 1.4rem; }
}

/* ─── Dashboard Product Preview ────────────────── */
.mg-dashboard-preview {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(27,79,114,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.dashboard-preview-chrome {
  background: #f1f3f5;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  display: block;
}

.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: #febc2e; }
.chrome-dots span:nth-child(3) { background: #28c840; }

.chrome-bar { flex: 1; display: flex; justify-content: center; }

.chrome-url {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.25rem 0.9rem;
  font-size: 0.78rem;
  color: var(--mg-gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 240px;
  max-width: 400px;
}

.dashboard-preview-body {
  padding: 1.5rem;
  background: #f8f9fc;
}

.preview-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-kpi-card {
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
}

.preview-kpi-blue  { background: linear-gradient(135deg, #1B4F72, #2E86C1); }
.preview-kpi-green { background: linear-gradient(135deg, #0a4d72, #0a6fa3); }
.preview-kpi-gold  { background: linear-gradient(135deg, #9A7D0A, #D4AC0D); }
.preview-kpi-teal  { background: linear-gradient(135deg, #0a5a85, #2aa7dc); }

.preview-kpi-icon { font-size: 1.2rem; opacity: 0.8; }
.preview-kpi-label { font-size: 0.72rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.04em; }
.preview-kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }

.preview-content-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.preview-panel {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.preview-panel-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mg-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.preview-row {
  font-size: 0.82rem;
  color: var(--mg-gray-700);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-row:last-child { border-bottom: none; }

.preview-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.preview-badge-blue  { background: rgba(46,134,193,0.12); color: #1B4F72; }
.preview-badge-green { background: rgba(20,143,119,0.12); color: #0a6fa3; }
.preview-badge-gold  { background: rgba(212,172,13,0.15);  color: #9A7D0A; }

@media (max-width: 767.98px) {
  .preview-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .preview-content-row { grid-template-columns: 1fr; }
  .chrome-url { display: none; }
}


