
/* Brand palette */
/* v19 additions */
:root{ --mm-yellow: #F3C74B; }

:root{
  --mm-primary: #2F80ED;
  --mm-primary-600: #2B6CB0;
  --mm-accent: #56CCF2;
  --mm-dark: #2E2E2E;
  --mm-yellow: #F3C74B;
}

/* Light theme (default) */
:root, [data-bs-theme="light"]{
  --bs-primary: var(--mm-primary);
  --bs-link-color: var(--mm-primary-600);
  --bs-link-hover-color: var(--mm-primary);
  --bs-body-color: #1f2937;
  --bs-body-bg: #ffffff;
  scroll-behavior: smooth;
}

[data-bs-theme="dark"]{
  --bs-body-bg: #0b0f14;
  --bs-body-color: #e5e7eb;
  --bs-primary: var(--mm-accent);
  --bs-link-color: var(--mm-accent);
  --bs-link-hover-color: #8bdcf6;
  --bs-dark: #0b0f14;
  --bs-navbar-color: #d1d5db;
}

/* Navbar: ALWAYS white with subtle border, even in dark mode */
.navbar.brand-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: none;
}
[data-bs-theme="dark"] .navbar.brand-header {
  background-color: transparent !important;
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: none !important;
}
.brand-logo{ height: 40px; width: auto; }
.nav-link{ font-weight: 600; }
.btn-pill{ border-radius: 9999px; padding-inline: 1rem; }

/* Hero / banner */
.hero{
  background: radial-gradient(80% 80% at 100% 0%, rgba(86,204,242,.15) 0%, rgba(86,204,242,0) 60%),
              radial-gradient(80% 80% at 0% 0%, rgba(47,128,237,.15) 0%, rgba(47,128,237,0) 60%);
  padding: 7rem 0 5rem;
}
[data-bs-theme="dark"] .hero{
  background: radial-gradient(80% 80% at 100% 0%, rgba(86,204,242,.1) 0%, rgba(86,204,242,0) 60%),
              radial-gradient(80% 80% at 0% 0%, rgba(47,128,237,.08) 0%, rgba(47,128,237,0) 60%);
}

/* Section spacing */
section{ padding: 5rem 0; }

/* Feature icons */
.feature-icon{
  width: 48px; height: 48px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(47,128,237,.1);
}
[data-bs-theme="dark"] .feature-icon{ background: rgba(86,204,242,.12); }

/* Pricing cards */
.price-card{ border: 1px solid rgba(0,0,0,.06); }
[data-bs-theme="dark"] .price-card{ border-color: rgba(255,255,255,.08); }

.footer{ border-top: 1px solid rgba(0,0,0,.06); padding: 2rem 0; }
[data-bs-theme="dark"] .footer{ border-color: rgba(255,255,255,.08); }

/* Tabs for features */
.features-tabs .nav-link{
  border-radius: 9999px;
  font-weight: 600;
}


/* ---- Navbar visibility & sizing tweaks ---- */
/* Always dark text on the white navbar, even in dark theme */
.navbar.brand-header .nav-link {
  color: #1f2937 !important; /* slate-800 */
  opacity: 1;
}
.navbar.brand-header .nav-link:hover,
.navbar.brand-header .nav-link:focus,
.navbar.brand-header .nav-link.active {
  color: var(--mm-primary) !important;
}

/* Slightly larger menu text */
.navbar.brand-header .nav-link { font-size: 1.08rem; }

/* Bigger logo, responsive */
.brand-logo { height: 44px; }
@media (min-width: 992px){
  .brand-logo { height: 56px; }
}


/* Highlight active navbar link while section is in view */
.navbar.brand-header .nav-link.active{
  color: var(--mm-primary) !important;
  position: relative;
}
.navbar.brand-header .nav-link.active::after{
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: -.25rem;
  height: 2px;
  background: var(--mm-primary);
  border-radius: 2px;
}

/* Back-to-top floating button */
.back-to-top{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1040;
  display: none;
}
.back-to-top .btn{
  border-radius: 9999px;
  padding: .6rem .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Footer layout */
.site-footer .social a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
}
[data-bs-theme="dark"] .site-footer .social a{ border-color: rgba(255,255,255,.2); }
.site-footer .links a{ text-decoration: none; }
.site-footer .links a:hover{ text-decoration: underline; }

/* Pricing tabs */
.pricing-tabs .nav-link{
  border-radius: 9999px; font-weight: 600;
}
.coming-soon{
  position: relative; opacity: .65;
}
.coming-soon::after{
  content: "Coming soon";
  position: absolute; top: 10px; right: 10px;
  background: rgba(47,128,237,.1);
  color: var(--mm-primary);
  font-weight: 700; font-size: .8rem;
  padding: .25rem .5rem; border-radius: .5rem;
  border: 1px dashed var(--mm-primary);
}
/* CTA between sections */
.cta-band{ padding: 3.5rem 0; }


/* Stronger CTA separation */
.cta-band{ 
  padding: 4rem 0; 
  position: relative; 
}
.cta-card{
  background: var(--bs-body-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
[data-bs-theme="dark"] .cta-card{
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cta-band::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-1.5rem; height:1px;
  background: linear-gradient(90deg, rgba(47,128,237,.0), rgba(47,128,237,.4), rgba(47,128,237,.0));
}

/* Add extra spacing before features so they don't feel attached to CTA */
#features{ margin-top: 2.5rem; }

/* Improve ScrollSpy hit area so sections register earlier */
section{ scroll-margin-top: 100px; }

/* Footer clearer separation */
.footer.site-footer{ border-top: 1px solid rgba(0,0,0,.08); }
[data-bs-theme="dark"] .footer.site-footer{ border-top-color: rgba(255,255,255,.12); }

/* Back to top button: label + icon */
.back-to-top .btn{
  display: inline-flex; align-items: center; gap: .5rem;
}


/* === v6 updates === */

/* Contrast CTA band: dark bg in light theme, white bg in dark theme */
.cta-contrast{ padding: 4rem 0; }
:root .cta-contrast{ background: #111827; color: #f3f4f6; } /* light theme page -> dark band */
[data-bs-theme="dark"] .cta-contrast{ background: #ffffff; color: #111827; }
.cta-contrast .btn{ box-shadow: 0 4px 16px rgba(0,0,0,.15); }
:root .cta-contrast .text-secondary{ color: #e5e7eb !important; } /* readable on dark band */
[data-bs-theme="dark"] .cta-contrast .text-secondary{ color: #374151 !important; }

/* Remove any decorative line under CTA and ensure separation */
.cta-band::after{ display:none !important; }
#features{ margin-top: 3rem; }

/* Make Back-to-Top button a pill with label */
.back-to-top{ position: fixed; right: 20px; bottom: 24px; z-index: 1040; display: none; }
.back-to-top .btn{ border-radius: 9999px; display:flex; align-items:center; gap:.5rem; padding:.6rem .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* Footer separation */
.footer.site-footer{ border-top: 1px solid rgba(0,0,0,.08); }
[data-bs-theme="dark"] .footer.site-footer{ border-top-color: rgba(255,255,255,.12); }

/* Footer links & socials */
.site-footer .links a{ text-decoration: none; margin: 0 .5rem; }
.site-footer .links a:hover{ text-decoration: underline; }
.site-footer .social a{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; border:1px solid rgba(0,0,0,.12); }
[data-bs-theme="dark"] .site-footer .social a{ border-color: rgba(255,255,255,.2); }

/* Pricing tabs and coming soon overlays */
.pricing-tabs .nav-link{ border-radius: 9999px; font-weight:600; }
.plan.coming-soon{ position:relative; opacity:.65; }
.plan.coming-soon::after{ content:"Coming soon"; position:absolute; top:10px; right:10px; background: rgba(47,128,237,.08); color: var(--mm-primary); padding:.25rem .5rem; border:1px dashed var(--mm-primary); border-radius:.5rem; font-weight:700; font-size:.8rem; }

/* Improve ScrollSpy activation window */
section{ scroll-margin-top: 110px; }


/* === v7: CTA readability + remove hero buttons === */
/* In light mode, page is light, CTA band is dark; card should be white in dark theme, and near-black in light theme for contrast */
:root .cta-contrast .cta-card{
  background: #0f172a; /* slate-900 for strong contrast on light page */
  color: #f8fafc;
}
[data-bs-theme="dark"] .cta-contrast .cta-card{
  background: #ffffff; /* white card on dark page */
  color: #0f172a;
}
/* Ensure headings and copy inside the card have strong contrast */
.cta-contrast .cta-card h2{ color: inherit; }
.cta-contrast .cta-card p{ color: rgba(248,250,252,.9); }
[data-bs-theme="dark"] .cta-contrast .cta-card p{ color: #374151; }

/* Remove the hero action buttons explicitly */
.hero .btn-lg{ display: none !important; }


/* v8: Footer social icon color for visibility */
.site-footer .social a{ color: #111; }
[data-bs-theme="dark"] .site-footer .social a{ color: #fff; }
.site-footer .social a img{ display: block; }
/* Force TikTok svg to inherit current color */
.site-footer .social a img { filter: none; }
[data-bs-theme="dark"] .site-footer .social a img { filter: invert(1); }


/* === v9 updates === */

/* Hero as compact rounded panel */
.hero{ padding: 4rem 0; background: transparent; }
.hero-panel{
  border-radius: 1.25rem;
  padding: 2rem;
  background: var(--bs-body-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .hero-panel{
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Square feature cards */
.square-card{
  background: var(--bs-body-bg);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  height: 100%;
}
[data-bs-theme="dark"] .square-card{ border-color: rgba(255,255,255,.12); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.square-card h5{ font-weight: 800; }
.square-card ul{ margin: .75rem 0 0; padding-left: 1.2rem; }
.square-card li{ margin-bottom: .35rem; }

/* CTA band refined for both themes */
.cta-contrast{ padding: 3.5rem 0; }
:root .cta-contrast{ background: #f8fafc; color: #111827; }            /* light theme: pale band */
[data-bs-theme="dark"] .cta-contrast{ background: #0d1420; color: #e5e7eb; } /* dark theme: deep band */
.cta-contrast .cta-card{ 
  border-radius: 1rem; padding: 2rem; margin-inline: auto; max-width: 720px;
  background: #ffffff; color: #0f172a; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
[data-bs-theme="dark"] .cta-contrast .cta-card{ 
  background: #0f172a; color: #f8fafc; border-color: rgba(255,255,255,.1);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cta-contrast .cta-card p{ opacity: .9; }

/* Footer spacing */
.footer.site-footer{ padding: 1.5rem 0; }


/* === v10: Rounded banner surface === */
/* Navbar itself transparent; inner surface is rounded white with shadow */
.navbar.brand-header{ background: transparent !important; border: none; box-shadow: none; }
.nav-surface{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 2rem;
  padding: .5rem 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Keep links readable on white surface */
.nav-surface .nav-link{ color:#1f2937 !important; }
.nav-surface .nav-link.active{ color: var(--mm-primary) !important; }
.nav-surface .btn-outline-primary{ background: transparent; }

/* Adjust spacing so rounded bar isn't cramped at screen edges */
.navbar.brand-header .container{ padding-top: .25rem; padding-bottom: .25rem; }
@media (min-width: 992px){
  .nav-surface{ padding: .6rem 1.25rem; }
}

/* Logo sizing back to previous comfortable size */
.brand-logo{ height: 56px; width: auto; }
@media (max-width: 991.98px){ .brand-logo{ height: 44px; } }


/* === v11: Force logo not rounded and no background === */
#mainNav .brand-logo{
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
}
#mainNav .navbar-brand{ padding: .25rem .5rem; border-radius: .5rem; }


/* v12: Dark background behind rounded navbar when in dark mode */

/* v12: Improve CTA text contrast in dark mode */
[data-bs-theme="dark"] .cta-contrast .cta-card p{
  color: rgba(248,250,252,.92) !important;
}

/* v14 navbar theme-aware */
.nav-surface{ background:#fff; }
 /* dark navy panel */
[data-bs-theme="dark"] .nav-surface .nav-link{ color:#e5e7eb !important; }
[data-bs-theme="dark"] .nav-surface .btn-outline-primary{ color:#e5e7eb; border-color:rgba(229,231,235,.35); }
[data-bs-theme="dark"] .nav-surface .btn-outline-primary:hover{ background:rgba(229,231,235,.08); }
[data-bs-theme="dark"] .nav-surface .btn-primary{ color:#fff; }

/* v14 reveal animations */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.show{ opacity:1; transform:none; }


/* v15: Side-stepper for How it Works */
.hiw-surface{
  background: var(--bs-body-bg);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .hiw-surface{ border-color: rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

.hiw-steps{
  gap: .75rem;
}
.hiw-steps .nav-link{
  display: flex; align-items: center; justify-content: flex-start;
  gap: .75rem;
  border-radius: .85rem;
  padding: .75rem 1rem;
  background: rgba(47,128,237,.06);
  color: #0f172a;
  border: 1px solid rgba(47,128,237,.12);
  font-weight: 700;
  text-align: left;
}
[data-bs-theme="dark"] .hiw-steps .nav-link{ color: #e5e7eb; background: rgba(86,204,242,.08); border-color: rgba(255,255,255,.12); }
.hiw-steps .nav-link small{ display:block; font-weight: 500; opacity: .8; }
.hiw-steps .nav-link.active{
  background: var(--mm-primary);
  color: #fff !important;
  border-color: var(--mm-primary);
  box-shadow: 0 8px 24px rgba(47,128,237,.35);
}

.hiw-panel{
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .hiw-panel{ border-color: rgba(255,255,255,.12); }
.hiw-panel h3{ font-weight: 800; }
.hiw-list{ margin-top: .75rem; }
.hiw-list li{ margin-bottom: .5rem; }
.hiw-stats{ display:flex; gap:2rem; flex-wrap: wrap; margin-top: 1rem; }
.hiw-stat{ font-weight:800; }

/* v16: banner always white */
.nav-surface{ background:#ffffff !important; color:#0f172a; }
.nav-surface .nav-link{ color:#1f2937 !important; }
.nav-surface .nav-link.active{ color: var(--mm-primary) !important; }


/* v17: Banner always white; backdrop transparent; links strong */
.navbar.brand-header{ background: transparent !important; box-shadow: none !important; border: none !important; }
.navbar.brand-header::before, .navbar.brand-header::after{ display:none !important; }
.nav-surface{ background: #ffffff !important; }
.nav-surface .nav-link{ color:#0f172a !important; opacity:1 !important; font-weight:600; }
.nav-surface .nav-link:hover{ color: var(--mm-primary) !important; }
.nav-surface .btn-outline-primary{ color:#1f4b99; border-color: rgba(47,128,237,.5); opacity:1 !important; }
.nav-surface .btn-outline-primary:hover{ background: rgba(47,128,237,.06); }


/* v18: Navbar text color fixes (banner is always white; text always dark) */
.nav-surface .navbar-nav .nav-link,
.nav-surface .nav-link{
  color: #0f172a !important;   /* dark slate */
  opacity: 1 !important;
}
.nav-surface .nav-link:hover,
.nav-surface .nav-link:focus,
.nav-surface .nav-link.active{
  color: var(--mm-primary) !important;
}
/* Ensure toggler icon (if visible) is dark too */
.nav-surface .navbar-toggler{ border-color: rgba(0,0,0,.2) !important; }
.nav-surface .navbar-toggler-icon{ filter: invert(0) !important; }

/* v19: Navbar button palette tweaks for dark mode */
/* Login becomes blue-filled; Join Now becomes professional yellow */
[data-bs-theme="dark"] .nav-surface .btn-outline-primary{
  background-color: var(--mm-primary) !important;
  color: #ffffff !important;
  border-color: var(--mm-primary) !important;
}
[data-bs-theme="dark"] .nav-surface .btn-outline-primary:hover{
  filter: brightness(1.05);
}
[data-bs-theme="dark"] .nav-surface .btn-primary{
  background-color: var(--mm-yellow) !important;
  border-color: var(--mm-yellow) !important;
  color: #1f2937 !important; /* dark text on yellow */
}
[data-bs-theme="dark"] .nav-surface .btn-primary:hover{
  filter: brightness(1.03);
}
/* Ensure any residual link color in nav is legible */
[data-bs-theme="dark"] .nav-surface .nav-link{ color:#e5e7eb !important; }

/* === v20: NAVBAR LINK COLORS (works for both themes) === */
.navbar.brand-header{
  /* Light mode */
  --bs-navbar-color: #0f172a;
  --bs-navbar-hover-color: #2F80ED;
  --bs-navbar-active-color: #2F80ED;
  --bs-navbar-brand-color: #0f172a;
  --bs-navbar-brand-hover-color: #2F80ED;
}
[data-bs-theme="dark"] .navbar.brand-header{
  --bs-navbar-color: #e5e7eb;
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: #ffffff;
}
.navbar.brand-header .nav-link{
  opacity: 1 !important;
  color: var(--bs-navbar-color) !important;
}
.navbar.brand-header .nav-link:hover,
.navbar.brand-header .nav-link:focus,
.navbar.brand-header .nav-link.active{
  color: var(--bs-navbar-hover-color) !important;
}

/* === v21: Hard override for nav link color in dark (beats any earlier !important) === */
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link{
  color: #e5e7eb !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* === v22: Restore hover/active highlight in dark mode === */
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:hover,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:focus,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:active,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link.active{
  color: #ffffff !important;              /* bright on hover/active */
}

/* === v23: Dark-mode uses WHITE nav-surface with DARK text for contrast === */
[data-bs-theme="dark"] .nav-surface{
  background: #ffffff !important;
  border-color: rgba(0,0,0,.06) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.20) !important;
}
[data-bs-theme="dark"] .nav-surface .nav-link{
  color: #0f172a !important;      /* dark slate on white pill */
  opacity: 1 !important;
}
[data-bs-theme="dark"] .nav-surface .nav-link:hover,
[data-bs-theme="dark"] .nav-surface .nav-link:focus,
[data-bs-theme="dark"] .nav-surface .nav-link.active{
  color: var(--mm-primary) !important;
}


/* Hotfix: keep navbar links readable on white pill in all themes */
.navbar.brand-header .nav-surface .nav-link { 
  color: #0f172a !important;
}
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link {
  color: #0f172a !important;
}


/* ===============================
   FINAL THEME + LAYOUT CONSOLIDATION
   =============================== */

/* Brand */
:root{
  --mm-primary: #3871c1;
  --mm-dark: #4e4a4a;
  --mm-highlight: #3871c1;
  --page-bg-light: #ffffff;
  --page-bg-dark:  #0e1116;
  --bubble-dark:   #0c1f35;                                    /* dark bubble colour */
  --bubble-light:  color-mix(in oklab, #3871c1 10%, #ffffff);  /* light bubble tint */
  --section-gap-sm: 1.75rem;
  --section-gap-lg: 2.5rem;
  --bubble-radius: 28px;
}

/* Single page background per theme */
html[data-bs-theme="light"] body{ background: var(--page-bg-light) !important; }
html[data-bs-theme="dark"]  body{ background: var(--page-bg-dark) !important; }

/* NAV ONLY: highlight on hover/active */
.navbar.brand-header .nav-surface .navbar-nav .nav-link:hover,
.navbar.brand-header .nav-surface .navbar-nav .nav-link:focus,
.navbar.brand-header .nav-surface .navbar-nav .nav-link.active,
html[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link:hover,
html[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link:focus,
html[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link.active{
  color: var(--mm-highlight) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* Keep navbar links readable on white pill in dark mode */
html[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link{
  color:#0b1220 !important; opacity:1 !important;
}

/* HERO: absolutely no bubble/gradient */
header.hero,
header.hero .container,
header.hero .hero-panel{
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
header.hero::before, header.hero::after,
header.hero .container::before, header.hero .container::after{
  display:none !important; content:none !important;
}

/* Uniform section spacing */
section{ padding-block: var(--section-gap-sm) !important; }
@media (min-width: 992px){
  section{ padding-block: var(--section-gap-lg) !important; }
}

/* Kill any strip/band backgrounds that introduce extra colours */
#how, #features, #pricing, #contact, .cta-contrast, .band, .strip, .section-band{
  background: transparent !important;
}
section::before, section::after,
.cta-contrast::before, .cta-contrast::after{ display:none !important; }

/* Bubble containers */
#how > .container, #features > .container, #pricing > .container, #contact > .container{
  margin-block: 0 !important;
  border-radius: var(--bubble-radius) !important;
  padding: 2rem 1.5rem !important;
}

/* Light theme: coloured bubbles (not same as bg) */
html[data-bs-theme="light"] #how > .container,
html[data-bs-theme="light"] #features > .container,
html[data-bs-theme="light"] #pricing > .container,
html[data-bs-theme="light"] #contact > .container{
  background: var(--bubble-light) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.06) !important;
}

/* Dark theme: single deep-blue bubble for all */
html[data-bs-theme="dark"] #how > .container,
html[data-bs-theme="dark"] #features > .container,
html[data-bs-theme="dark"] #pricing > .container,
html[data-bs-theme="dark"] #contact > .container{
  background: var(--bubble-dark) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.06) !important;
  color: #e8edf7 !important;
}

/* CTA band spacing tightened to match sections */
.cta-band{ padding-block: var(--section-gap-sm) !important; margin-block: 0 !important; }
@media (min-width: 992px){ .cta-band{ padding-block: var(--section-gap-lg) !important; } }
.cta-card{ padding: 1.5rem !important; }
@media (min-width: 992px){ .cta-card{ padding: 1.75rem !important; } }
.cta-card h2{ margin-top:0 !important; }
.cta-card p { margin-bottom: 1rem !important; }

/* Prevent extra visual separators */
hr, .section-divider{ margin:0 !important; height:0 !important; border:0 !important; background:transparent !important; }



/* === CTA band: make bottom gap equal to top (use single-gap rhythm) === */
.cta-band{
  padding-top: var(--section-gap-sm) !important;
  padding-bottom: 0 !important;
}
@media (min-width: 992px){
  .cta-band{
    padding-top: var(--section-gap-lg) !important;
    padding-bottom: 0 !important;
  }
}
/* Ensure the section after CTA keeps the standard top gap */
.cta-band + section{ padding-top: var(--section-gap-sm) !important; }
@media (min-width: 992px){
  .cta-band + section{ padding-top: var(--section-gap-lg) !important; }
}



/* === FIX: CTA bottom gap smaller & equal === */
.cta-band{ padding-bottom: 0 !important; }
/* Ensure the next section provides the single gap */
#features{ padding-top: var(--section-gap-sm) !important; }
@media (min-width: 992px){
  #features{ padding-top: var(--section-gap-lg) !important; }
}

/* === FIX: Navbar link colour visibility (always readable on white pill) === */
.navbar.brand-header .nav-surface .nav-link{
  color:#0f172a !important;
  opacity:1 !important;
}
.navbar.brand-header .nav-surface .nav-link:hover,
.navbar.brand-header .nav-surface .nav-link:focus{
  color:#3871c1 !important;
}
.navbar.brand-header .nav-surface .nav-link.active{
  color:#3871c1 !important;
  text-decoration-color:#3871c1 !important;
}



/* ===== NAVBAR FINAL LOCK (place last) ===== */
:root{ --nav-text:#0f172a; --nav-highlight:#3871c1; }

/* White pill remains white in both themes */
html[data-bs-theme="dark"] .navbar.brand-header .nav-surface,
.navbar.brand-header .nav-surface{
  background:#ffffff !important;
}

/* Reset any global .nav-link styling inside the navbar pill */
.navbar.brand-header .nav-surface .nav-link{
  color: var(--nav-text) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}

/* Hover/active highlight only in the nav */
.navbar.brand-header .nav-surface .nav-link:hover,
.navbar.brand-header .nav-surface .nav-link:focus,
.navbar.brand-header .nav-surface .nav-link.active{
  color: var(--nav-highlight) !important;
  text-decoration: none !important;
}

/* Make sure buttons next to nav keep correct palette */
.navbar.brand-header .nav-surface .btn-outline-primary{
  color: var(--nav-highlight) !important;
  border-color: var(--nav-highlight) !important;
}
.navbar.brand-header .nav-surface .btn-outline-primary:hover{
  background: var(--nav-highlight) !important;
  color: #fff !important;
}



/* ======= Grafted navbar fix from working zip ======= */
/* === v20: NAVBAR LINK COLORS (works for both themes) === */
.navbar.brand-header{
  /* Light mode */
  --bs-navbar-color: #0f172a;
  --bs-navbar-hover-color: #2F80ED;
  --bs-navbar-active-color: #2F80ED;
  --bs-navbar-brand-color: #0f172a;
  --bs-navbar-brand-hover-color: #2F80ED;
}
[data-bs-theme="dark"] .navbar.brand-header{
  --bs-navbar-color: #e5e7eb;
  --bs-navbar-hover-color: #ffffff;
  --bs-navbar-active-color: #ffffff;
  --bs-navbar-brand-color: #ffffff;
  --bs-navbar-brand-hover-color: #ffffff;
}
.navbar.brand-header .nav-link{
  opacity: 1 !important;
  color: var(--bs-navbar-color) !important;
}
.navbar.brand-header .nav-link:hover,
.navbar.brand-header .nav-link:focus,
.navbar.brand-header .nav-link.active{
  color: var(--bs-navbar-hover-color) !important;
}

/* === v21: Hard override for nav link color in dark (beats any earlier !important) === */
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link{
  color: #e5e7eb !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* === v22: Restore hover/active highlight in dark mode === */



/* === v22.1: FIX — readable dark text on white navbar in dark mode === */
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link{
  color:#0f172a !important;
  opacity:1 !important;
}
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:hover,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:focus,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link.active{
  color:#3871c1 !important; /* brand highlight */
}

/* === v23: Override with higher/matching specificity for dark mode readability === */
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link {
  color: #0f172a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link:focus,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .navbar-nav .nav-link.active,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:hover,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link:focus,
[data-bs-theme="dark"] .navbar.brand-header .nav-surface .nav-link.active {
  color: #3871c1 !important;
}

/* Unified "Join Now" button style */
.btn-join{
  background-color: var(--mm-yellow) !important;
  border-color: var(--mm-yellow) !important;
  color: #111 !important;
}
.btn-join:hover, .btn-join:focus {
  filter: brightness(0.95);
  color: #111 !important;
}


/* Login bubble overrides */
.navbar.brand-header .btn.btn-primary.btn-pill{
  background-color: var(--mm-primary) !important;
  border-color: var(--mm-primary) !important;
  color: #fff !important;
}
[data-bs-theme="dark"] .navbar.brand-header .btn.btn-primary.btn-pill{
  background-color: var(--mm-primary) !important;
  border-color: var(--mm-primary) !important;
  color: #fff !important;
}


/* Remove default image decorations for hero */
header .img-fluid{
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}


/* === Logo scale without changing banner height === */
:root{ --logo-scale: 1.35; } /* tweak this to visually enlarge/shrink the logo */

.navbar.brand-header .navbar-brand{ position: relative; overflow: visible; }

/* Keep the layout-height the same (56px on desktop, 44px on mobile), but scale visually */
.navbar.brand-header .brand-logo{
  height: 56px !important;
  width: auto !important;
  transform: scale(var(--logo-scale)) !important;
  transform-origin: left center !important;
}

@media (max-width: 991.98px){
  .navbar.brand-header .brand-logo{
    height: 44px !important;
  }
}


/* Clip logo inside the pill */
.navbar.brand-header .nav-surface{
  overflow: hidden; /* ensures scaled logo stays inside rounded banner */
}


/* =============================
   Spacing tweaks (ChatGPT patch)
   - Reduce space above and below the hero
   - Slightly tighten section spacing
   ============================= */
header.hero{
  /* reduce the gap under the sticky navbar and the space below the hero */
  padding-top: 1.25rem !important;
  padding-bottom: 1rem !important;
}
header.hero .hero-panel{
  /* slightly tighter inner padding */
  padding: 1rem !important;
}

/* Ensure no extra margin sneaks in */
.navbar.brand-header + header.hero{ margin-top: 0 !important; }

/* First section after the hero: reduce top padding further */
header.hero + section{ padding-top: 2rem !important; }

/* Keep other sections comfortable but a bit tighter */
section{ padding: 3.5rem 0 !important; }
@media (max-width: 991.98px){
  header.hero{ padding-top: 1rem !important; padding-bottom: .75rem !important; }
  section{ padding: 3rem 0 !important; }
  header.hero + section{ padding-top: 1.5rem !important; }
}


/* == Step logos (uploadable) == */
.hiw-panel { position: relative; }
.hiw-panel-logo{
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: 160px;
  max-height: 120px;
  width: 28%;
  height: auto;
  object-fit: contain;
  opacity: 0.98;
  border-radius: 0.5rem;
}
@media (max-width: 768px){
  .hiw-panel-logo{ display:none; }
}



/* == Step logos: centered on the right side, with dark/light variants == */
.hiw-panel{ position: relative; }
.hiw-panel-logo{
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  max-width: 240px;
  max-height: 200px;
  width: 32%;
  height: auto;
  object-fit: contain;
  opacity: 0.98;
  border-radius: .5rem;
  pointer-events: none;
}
/* Toggle based on site theme */
.hiw-panel-logo-dark, .hiw-panel-logo-light{ display: none; }
html[data-bs-theme="dark"] .hiw-panel-logo-dark{ display: block; }
html[data-bs-theme="light"] .hiw-panel-logo-light{ display: block; }
@media (max-width: 992px){
  .hiw-panel-logo{ display:none !important; }
}



/* === Step logos: center-right, with spacing for text === */
.hiw-panel{ position: relative; padding-right: clamp(1rem, 10vw, 280px); }
.hiw-panel-logo{
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  max-width: clamp(120px, 28vw, 240px);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}
.hiw-panel-logo-dark, .hiw-panel-logo-light{ display: none; }
html[data-bs-theme="dark"] .hiw-panel-logo-dark{ display: block; }
html[data-bs-theme="light"] .hiw-panel-logo-light{ display: block; }
@media (max-width: 992px){
  .hiw-panel{ padding-right: 1rem; }
  .hiw-panel-logo{ display:none !important; }
}



/* === Feature Tiles — Pop (same layout) === */
:root{ --mm-accent:#3871c1; }
.feature-tile{
  position: relative; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bs-body-bg) 92%, transparent),
    color-mix(in oklab, var(--bs-body-bg) 96%, transparent));
  border-color: color-mix(in oklab, var(--bs-border-color) 65%, transparent);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.22);
}
.feature-tile::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:2px;
  background: linear-gradient(180deg, var(--mm-accent), color-mix(in oklab, var(--mm-accent) 35%, transparent));
  opacity:0; transition: opacity .25s ease;
}
.feature-tile::after{
  content:""; position:absolute; inset:0; border-radius: inherit; padding: 1px; pointer-events:none; opacity:.35;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) padding-box,
    linear-gradient(135deg, color-mix(in oklab, var(--mm-accent) 40%, transparent), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .25s ease;
}
.feature-tile:hover{
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.32);
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bs-body-bg) 88%, transparent),
    color-mix(in oklab, var(--bs-body-bg) 94%, transparent));
  border-color: color-mix(in oklab, var(--bs-border-color) 30%, transparent);
}
.feature-tile:hover::after{ opacity:.9; }
.feature-tile:hover::before{ opacity:1; }
.feature-tile h5{ font-weight: 800; letter-spacing: -0.01em; }
.feature-tile p{ color: var(--bs-secondary-color); margin-bottom:0; }
.feature-tile h5 + p::before{ content: none !important; }

/* Policy modal formatting */
.modal .modal-body p{ margin-bottom:.6rem; }
.modal .modal-dialog{ max-width: 860px; }
.modal .modal-body{ max-height: 72vh; overflow:auto; }


/* How it Works: accent colour for key stats */
:root{ --mm-accent:#3871c1; }
.hiw-stats .hiw-stat{ color: var(--mm-accent); }


/* Equal spacing for feature tiles across all panes */
#features .row.g-4{ --bs-gutter-y: 1.5rem; --bs-gutter-x: 1.5rem; }
#features .row.g-4 > [class*="col-"]{ display:flex; }
#features .row.g-4 > [class*="col-"] > .feature-tile{ flex:1; height:100%; margin:0; }


/* === Equal spacing for feature tiles (enforced) === */

#features .tab-pane .row.g-4 > [class*="col-"] { display: flex; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile { flex: 1; height: 100%; margin: 0 !important; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile *:first-child { margin-top: 0; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile *:last-child { margin-bottom: 0; }
/* remove stray margins that create uneven vertical gaps */
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile h5 { margin-bottom: .5rem !important; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile p { margin-bottom: 0 !important; }


/* Strict equal gaps for feature tiles v2 */

#features .tab-pane .row.g-4 > [class*="col-"] { display:flex; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile { flex:1; height:100%; margin:0 !important; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile h5 { margin-top:0 !important; margin-bottom:.5rem !important; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile p { margin-bottom:0 !important; }


/* CTA Slide-in on scroll */
#ctaSlide{ will-change: transform, opacity; }
.reveal-slide{ opacity:0; transform: translateX(72px); transition: transform .7s cubic-bezier(.22,.8,.2,1), opacity .7s ease-out; }
.reveal-slide.from-left{ transform: translateX(-72px); }
.reveal-slide.is-visible{ opacity:1; transform: translateX(0); }
@media (max-width: 575.98px){
  .reveal-slide, .reveal-slide.from-left{ transform: translateY(24px); }
}
@media (prefers-reduced-motion: reduce){
  .reveal-slide{ transition:none; opacity:1 !important; transform:none !important; }
}

/* Strict equal gaps v3 */

#features .tab-pane .row.g-4 > [class*="col-"]{ display:flex; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile{ flex:1; height:100%; margin:0!important; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile > *:first-child{ margin-top:0!important; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile > *:last-child{ margin-bottom:0!important; }


/* ===== Fixes: centering pricing card + equal gap above Contact ===== */
#contact { padding-top: 0 !important; }



/* Hard-center single pricing card without affecting other sections */
#pricing .price-card {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 560px;
}


/* Final override: equal gap above Contact */
section#contact{ padding-top:0 !important; }


/* Center text/content inside feature tiles */




/* features-equal-heights: keep equal height tiles without breaking Bootstrap gutters */
#features .tab-pane .row.g-4 > [class*="col-"] { display: flex; }
#features .tab-pane .row.g-4 > [class*="col-"] > .feature-tile { flex: 1; height: 100%; }
