/* 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: larger, matching text height, responsive === */
.hiw-panel {
  position: relative;
  padding-right: clamp(2.5rem, 18vw, 450px); /* Increased padding for even larger images */
  min-height: 200px; /* Ensure enough space for content and image */
}
.hiw-panel-logo {
  position: absolute;
  top: 50%;
  right: 2rem; /* More spacing from right edge */
  transform: translateY(-50%);
  max-width: clamp(250px, 45vw, 500px); /* Larger width range for bigger images */
  width: 55%; /* Increased relative width for prominence */
  height: auto; /* Allow JavaScript to set height */
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  border-radius: 0.5rem;
  min-height: 150px; /* Minimum height to ensure visibility */
}
.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; /* Reset padding on mobile */
  }
  .hiw-panel-logo {
    display: none !important; /* Keep hidden on mobile */
  }
}
/* 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%; }


/* === Mobile nav fix: allow collapsed menu to overflow the white pill === */
@media (max-width: 991.98px){
  .navbar.brand-header .nav-surface{
    overflow: visible !important; /* was: hidden; allows the menu to expand */
  }
  /* Optional: nicer spacing when the menu is expanded */
  .navbar.brand-header .navbar-collapse{
    padding: .5rem 0;
  }
  .navbar.brand-header .navbar-nav .nav-link{
    padding: .5rem 0;
  }
}


/* === Footer gap fix ===
   Kill any trailing whitespace under the footer caused by margin collapse
   or inherited spacing from children. Tighten padding a bit. */
.footer.site-footer,
.site-footer{
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  margin-bottom: 0 !important;
}
.footer.site-footer .container{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.footer.site-footer .container > *:last-child{
  margin-bottom: 0 !important;
}

/* Make sure the page itself doesn't reserve extra space at the bottom */
html, body{ margin-bottom: 0 !important; padding-bottom: 0 !important; }


/* === Mobile navbar behavior === */
@media (max-width: 991.98px){
  .navbar.brand-header .nav-surface{
    overflow: visible !important;  /* allow dropdown to overflow rounded pill */
    flex-wrap: wrap;               /* let the collapse drop under the first row */
    gap: .25rem .5rem;
  }
  .navbar.brand-header .brand-logo{
    height: 36px !important;       /* smaller logo on mobile */
  }
  .navbar.brand-header .navbar-brand{
    flex: 1 1 auto;                /* let brand take leftover space */
  }
  .navbar.brand-header .navbar-toggler{
    margin-left: auto;             /* push hamburger to the right */
    order: 2;
  }
  .navbar.brand-header .navbar-collapse{
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-top: .25rem;
    padding: .25rem 0;
  }
  .navbar.brand-header .navbar-nav .nav-link{
    padding: .5rem 0;
  }
}


/* === Strong footer gap fix === */
.footer.site-footer, .site-footer{ margin: 0 !important; padding-bottom: .75rem !important; }
.footer.site-footer .container{ padding-bottom: 0 !important; margin-bottom: 0 !important; }
.footer.site-footer .container > *:last-child{ margin-bottom: 0 !important; }
body > :last-child{ margin-bottom: 0 !important; }
html, body{ margin-bottom: 0 !important; padding-bottom: 0 !important; }


/* === Responsive brand logo swap === */
.navbar.brand-header .brand-logo-wrap{
  display: inline-flex;
  align-items: center;
}
.navbar.brand-header .brand-logo{
  height: 44px;
  width: auto;
}
@media (max-width: 991.98px){
  .navbar.brand-header .brand-logo{
    height: 32px; /* smaller mobile height */
  }
}


/* === ChatGPT navbar mobile fix v1 === */
/* Keep the brand from hogging all the space */
.navbar.brand-header .navbar-brand{
  display: flex;
  align-items: center;
  flex: 0 1 auto;   /* allow it to shrink */
  min-width: 0;
}

/* Desktop logo sizing */
.navbar.brand-header .brand-logo{
  height: 44px;
  width: auto;
}

/* Ensure the hamburger is visible and on top */
@media (max-width: 991.98px) {
  .navbar.brand-header .navbar-toggler{
    display: block;
    margin-left: auto;
    order: 2;
    z-index: 3;
  }
}
.nav-surface .navbar-toggler-icon{
  background-image: var(--bs-navbar-toggler-icon-bg) !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Let the collapsed menu overflow the rounded “pill” on mobile */
@media (max-width: 991.98px){
  .navbar.brand-header .nav-surface{
    overflow: visible !important;
    flex-wrap: wrap;
    gap: .25rem .5rem;
  }

  /* Mobile logo size (using logo-mobile.svg via <picture>) */
  .navbar.brand-header .brand-logo{
    height: 32px;
  }

  /* Make the collapse use the full width under the first row */
  .navbar.brand-header .navbar-collapse{
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }
}

/* New fixes for the problems */

/* Fix 1: More aggressive footer gap removal */
.footer.site-footer, .site-footer {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Fix 2: Reduce spacing on nav items for medium-large screens to fit more before collapsing */
@media (min-width: 992px) and (max-width: 1200px) {
  .navbar-nav {
    gap: 0.5rem !important;
  }
  .nav-link {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    font-size: 1rem !important; /* Slightly smaller font if needed */
  }
  .nav-surface {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .d-flex.gap-2 {
    gap: 0.5rem !important;
  }
}

/* Fix 3: Ensure hamburger icon is visible in dark mode (dark lines on white background) */
[data-bs-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* New fixes for the problems */

/* Fix 1: Even more aggressive footer gap removal */
.footer.site-footer, .site-footer {
  padding: 1.5rem 0 0 !important;
  margin: 0 !important;
}
.footer.site-footer .container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
body, html {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Fix 2: Make CTA gaps consistent with other sections */
.cta-band {
  padding: var(--section-gap-sm) 0 !important;
}
@media (min-width: 992px) {
  .cta-band {
    padding: var(--section-gap-lg) 0 !important;
  }
}

/* Fix 4: Style login and join buttons for inside the mobile menu (no icons, side by side) */
@media (max-width: 991.98px) {
  /* Adjust the d-flex inside the menu on mobile for side-by-side buttons */
  .navbar.brand-header .collapse .d-flex {
    flex-direction: row !important; /* Side by side */
    flex-wrap: wrap !important; /* Wrap to new line if screen is too narrow */
    justify-content: center !important; /* Center them in the menu */
    gap: 0.75rem !important; /* Space between buttons */
    margin-top: 1.5rem !important; /* Separate from nav links above */
    margin-bottom: 1rem !important; /* Add bottom padding in menu */
  }

  /* Ensure buttons fit nicely: reduce size/padding if needed */
  .navbar.brand-header .d-flex .btn-join,
  .navbar.brand-header .d-flex .btn-primary.btn-pill {
    flex: 1 1 auto; /* Allow them to grow/shrink equally */
    min-width: 120px; /* Minimum width to prevent squishing */
    font-size: 0.9rem; /* Slightly smaller text for mobile fit */
    padding: 0.5rem 1rem !important; /* Tighter padding */
  }
}

  /* Optional: Adjust the d-flex inside the menu on mobile for better spacing/alignment */
  .navbar.brand-header .collapse .d-flex {
    flex-direction: row !important; /* Keep as row for icons side-by-side; change to 'column' if you want them stacked */
    justify-content: center !important; /* Center them in the menu */
    gap: 1rem !important; /* Increase gap between icons if needed */
    margin-top: 1.5rem !important; /* Adjust top margin to separate from nav links */
    margin-bottom: 1rem !important; /* Add bottom margin for padding in menu */
  }

/* Blue gradient for bubbles and similar elements */
.bubble, .some-other-bubble-class { /* Update this class if specific to the bubbles */
  background: linear-gradient(45deg, #2F80ED, #56CCF2);
  color: white; /* Ensure text is readable */
}

/* Hiding the mobile login/join icons on the main page and ensuring they only appear in the navbar */
.mobile-login-join { 
  display: none;
}

@media (max-width: 767px) {
  /* Display mobile icons only in navbar */
  .navbar .mobile-login-join {
    display: inline-block;
  }
}

/* CTA Section: Full centering for card and contents */
.cta-band {
  display: flex; /* Use flexbox to center contents */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 200px; /* Ensure enough height for vertical centering */
  padding: var(--section-gap-sm) 0 !important; /* Keep consistent spacing */
  margin: 0 !important;
  background: transparent !important; /* Remove any background interference */
}

@media (min-width: 992px) {
  .cta-band {
    padding: var(--section-gap-lg) 0 !important;
  }
}

.cta-band .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100% !important; /* Override Bootstrap container max-width */
  padding: 0 1.5rem !important; /* Match Bootstrap's container padding */
  margin: 0 !important;
}

.cta-band .cta-card {
  max-width: 720px; /* Keep your specified max-width */
  width: 100%; /* Ensure it takes available space up to max-width */
  margin: 0 auto !important; /* Explicit horizontal centering */
  text-align: center; /* Center all text and inline elements inside */
  padding: 1.5rem !important; /* Consistent padding */
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #ffffff; /* Ensure consistent background */
}

[data-bs-theme="dark"] .cta-band .cta-card {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Ensure contents inside cta-card are centered */
.cta-card h2,
.cta-card p,
.cta-card .btn {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.cta-card .btn {
  display: inline-block; /* Ensure button behaves as a block for centering */
  width: auto; /* Prevent button from stretching unnecessarily */
}

/* Override reveal animation to prevent offset */
.reveal-slide.from-left {
  transform: translateX(0) !important; /* Disable slide animation to avoid offset */
  opacity: 1 !important; /* Ensure it’s visible without animation */
}

@media (max-width: 575.98px) {
  .cta-card {
    padding: 1.25rem !important; /* Slightly tighter padding on mobile */
  }
}

/* Footer layout and gap fix */
.footer.site-footer,
.site-footer {
  padding: 1.5rem 0 0 !important; /* Remove bottom padding, keep top */
  margin: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0; /* Prevent footer from shrinking */
}

[data-bs-theme="dark"] .footer.site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.footer.site-footer .container {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* Ensure left, center, right alignment */
}

.footer.site-footer .container > * {
  margin: 0 !important; /* Remove margins on all children */
}

.footer.site-footer .order-1 {
  flex: 0 0 auto; /* Fixed width for left content */
  text-align: left; /* Align © text to left */
}

.footer.site-footer .links {
  flex: 1 1 auto; /* Grow to center content */
  text-align: center; /* Center the links */
  display: flex;
  justify-content: center;
  gap: 1rem; /* Consistent spacing between links */
}

.footer.site-footer .links a {
  text-decoration: none;
  margin: 0; /* Remove any margin */
}

.footer.site-footer .links a:hover {
  text-decoration: underline;
}

.footer.site-footer .social {
  flex: 0 0 auto; /* Fixed width for right content */
  display: flex;
  gap: 0.5rem; /* Tighter spacing for icons */
}

.footer.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, 0.12);
  margin: 0 !important; /* Remove any margin */
}

[data-bs-theme="dark"] .footer.site-footer .social a {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Enforce full height layout to eliminate gap */
html {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body > :last-child {
  margin-bottom: 0 !important;
}

/* Ensure content pushes footer to bottom */
.content {
  flex: 1 0 auto; /* Allow content to grow but not shrink */
}

/* Footer layout and gap fix with alignment */
.footer.site-footer,
.site-footer {
  padding: 1.5rem 0 1rem !important; /* 1rem gap below, keep top padding */
  margin: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0; /* Prevent footer from shrinking */
}

[data-bs-theme="dark"] .footer.site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.footer.site-footer .container {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer.site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* Ensure left, center, right */
  }
}

.footer.site-footer .container > * {
  margin: 0 !important; /* Remove margins on all children */
}

.footer.site-footer .order-1 {
  flex: 0 0 auto; /* Fixed width for left content */
  text-align: left; /* Align © text to left */
}

.footer.site-footer .links {
  flex: 1 1 auto; /* Grow to center content */
  text-align: center; /* Center the links */
  display: flex;
  justify-content: center;
  gap: 1rem; /* Consistent spacing between links */
}

.footer.site-footer .links a {
  text-decoration: none;
  margin: 0; /* Remove any margin */
}

.footer.site-footer .links a:hover {
  text-decoration: underline;
}

.footer.site-footer .social {
  flex: 0 0 auto; /* Fixed width for right content */
  display: flex;
  gap: 0.5rem; /* Tighter spacing for icons */
}

.footer.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, 0.12);
  margin: 0 !important; /* Remove any margin */
}

[data-bs-theme="dark"] .footer.site-footer .social a {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Enforce full height layout to eliminate gap */
html {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body > :last-child {
  margin-bottom: 0 !important;
}

/* Ensure content pushes footer to bottom */
.content {
  flex: 1 0 auto; /* Allow content to grow but not shrink */
}

.cta-card .btn-join.btn-lg {
  font-size: 1rem !important; /* Smaller than standard btn-lg (1.25rem) */
  padding: 0.5rem 1.25rem !important; /* Adjust padding to fit smaller text */
}

.footer.site-footer {
  padding: 1.5rem 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

[data-bs-theme="dark"] .footer.site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.footer.site-footer {
  padding: 1.5rem 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

[data-bs-theme="dark"] .footer.site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.footer.site-footer {
  padding: 1.5rem 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

[data-bs-theme="dark"] .footer.site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.footer.site-footer .container {
  padding-right: var(--bs-gutter-x, 0.75rem) !important;
  padding-left: var(--bs-gutter-x, 0.75rem) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  width: 100% !important;
}

@media (min-width: 576px) {
  .footer.site-footer .container {
    max-width: 540px !important;
  }
}
@media (min-width: 768px) {
  .footer.site-footer .container {
    max-width: 720px !important;
  }
}
@media (min-width: 992px) {
  .footer.site-footer .container {
    max-width: 960px !important;
  }
}
@media (min-width: 1200px) {
  .footer.site-footer .container {
    max-width: 1140px !important;
  }
}
@media (min-width: 1400px) {
  .footer.site-footer .container {
    max-width: 1320px !important;
  }
}

.footer.site-footer .left {
  flex: 0 0 auto !important;
  text-align: left !important;
}

.footer.site-footer .center {
  flex: 1 1 auto !important;
  text-align: center !important;
}

.footer.site-footer .right {
  flex: 0 0 auto !important;
  text-align: right !important;
}

.footer.site-footer .links a {
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer.site-footer .links a:hover {
  text-decoration: underline;
}

.footer.site-footer .social {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
}

.footer.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, 0.12);
  color: #111;
}

[data-bs-theme="dark"] .footer.site-footer .social a {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 767.98px) {
  .footer.site-footer .container {
    gap: 1rem !important;
  }
  .footer.site-footer .left,
  .footer.site-footer .center,
  .footer.site-footer .right {
    flex: 0 0 100% !important;
    text-align: center !important;
  }
  .footer.site-footer .social {
    justify-content: center !important;
  }
}

/* Ultimate gap fix: Make all gaps match the 'perfect' one above Contact Us (smaller, using only bottom padding) */
section,
.cta-band,
.cta-contrast,
section#how,
section#features,
section#pricing,
section#contact {
  padding-top: 0 !important; /* No top padding on any section */
  padding-bottom: 5rem !important; /* Consistent bottom padding for ~5rem gaps */
  padding-block-start: 0 !important; /* Override logical properties */
  padding-block-end: 5rem !important;
  margin-top: 0 !important; /* Kill any extra margins */
  margin-bottom: 0 !important;
}

/* Override specific CTA bottom zero-padding and variables */
section.cta-band.cta-contrast {
  padding-bottom: 5rem !important;
  padding-block-end: 5rem !important;
}

/* Remove extra margin/shift on features (below CTA) */
#features {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Disable all reveal shifts (prevents visual extra gaps) */
.reveal,
.reveal-slide,
.reveal-slide.from-left {
  transform: translateY(0) !important;
  transform: translateX(0) !important;
  opacity: 1 !important;
  transition: none !important; /* Optional: disable animation if it causes flicker */
}

/* Override media queries with higher specificity */
@media (min-width: 992px) {
  section,
  .cta-band,
  .cta-contrast,
  section#how,
  section#features,
  section#pricing,
  section#contact {
    padding-top: 0 !important;
    padding-bottom: 5rem !important;
    padding-block-start: 0 !important;
    padding-block-end: 5rem !important;
  }
  .cta-band + section,
  #features {
    padding-top: 0 !important;
  }
}

/* Reduce internal paddings on bubbles/containers to tighten perceived gaps */
.hiw-surface,
.cta-card,
.hero-panel,
.price-card,
.square-card {
  padding: 1rem !important; /* Tighter than before (was 1.5rem-2rem) */
}

/* Optional: If gaps still feel off due to shadows, reduce them */
.hiw-surface,
.cta-card,
.hero-panel,
.price-card,
.square-card,
.nav-surface {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important; /* Softer/shorter shadows */
}

/* Hero adjustments to match section gaps */
.hero {
  padding-bottom: 5rem !important; /* Match section bottom for gap after hero */
}

.price-card {
  text-align: center !important;
}
.price-card * {
  text-align: center !important; /* Centers all children if needed */
}

/* === Mobile navbar: theme icon far left, logo perfectly centered, hamburger far right === */
/* Login & Join Now as full text buttons inside the collapsed menu (stacked, full-width) */
/* No icon-only mode for any buttons */

@media (max-width: 991.98px) {
  .navbar.brand-header .nav-surface {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important; /* JS will balance the side columns */
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  /* Theme button (icon only, far left) */
  #themeIconBtn.theme-btn-mobile {
    justify-self: start !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Logo (perfect center) */
  .navbar.brand-header .navbar-brand {
    justify-self: center !important;
    margin: 0 !important;
  }

  /* Hamburger (far right) */
  .navbar.brand-header .navbar-toggler {
    justify-self: end !important;
  }

  /* Mobile actions container (login + join, stacked full-width text buttons) */
  .mobile-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    padding: 0 1rem !important;
  }

  .mobile-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important; /* Comfortable tap target + text fit */
    font-size: 1rem !important;
  }

  /* Hide empty original .d-flex on mobile (its children have been moved) */
  .d-flex.align-items-center.ms-lg-4 {
    display: none !important;
  }

  /* Ensure collapse has a bit of top spacing when opened */
  .navbar-collapse {
    padding-top: 0.5rem !important;
  }

  /* Smaller logo on mobile (existing rule, kept for consistency) */
  .brand-logo {
    height: 32px !important;
  }

  /* Explicit overrides to ensure login/join are text-only (no icons, full pill with text) */
  .mobile-actions .btn-join,
  .mobile-actions .btn-primary.btn-pill {
    height: auto !important; /* Allow height to fit text */
    border-radius: 9999px !important; /* Pill shape, same as desktop */
    text-indent: 0 !important; /* Show text */
    overflow: visible !important; /* No hiding */
  }

  .mobile-actions .btn-join::before,
  .mobile-actions .btn-primary.btn-pill::before {
    content: none !important; /* Remove any icon pseudo-elements */
  }
}

/* Desktop: ensure .d-flex is row, visible, with proper spacing (override any mobile leaks) */
@media (min-width: 992px) {
  .d-flex.align-items-center.ms-lg-4 {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 991.98px) {
  .navbar.brand-header .nav-surface {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  .navbar.brand-header .navbar-collapse {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    border-radius: 0 0 2rem 2rem !important;
    box-shadow: none !important;
    padding: 1rem !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    border-top: none !important;
  }

  [data-bs-theme="dark"] .navbar.brand-header .navbar-collapse {
    background: #ffffff !important;
    border-color: rgba(0,0,0,.06) !important;
  }

  .nav-surface:has(.navbar-collapse.show) {
    border-radius: 2rem 2rem 0 0 !important;
    border-bottom: none !important;
  }

  [data-bs-theme="dark"] .nav-surface:has(.navbar-collapse.show) {
    border-bottom: none !important;
  }

  .mobile-actions {
    flex-direction: row !important;
    justify-content: space-around !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    padding: 0 !important;
  }

  .mobile-actions .btn {
    flex: 1 1 45% !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: 1rem !important;
    padding: 0.65rem 1rem !important;
  }

  .navbar.brand-header .navbar-brand {
    justify-self: center !important;
    margin: 0 !important;
  }

  .navbar.brand-header .navbar-toggler {
    justify-self: end !important;
  }

  .navbar.brand-header .brand-logo {
    height: 32px !important;
  }
}

/* Reduce navbar height: smaller padding (top/bottom only) */
.nav-surface {
  padding: 0.25rem 1rem !important; /* Halve top/bottom from original 0.5rem; keep horizontal padding for width */
}

@media (min-width: 992px) {
  .nav-surface {
    padding: 0.3rem 1.25rem !important; /* Slightly more than mobile for desktop feel; still reduced from 0.6rem */
  }
}

/* Reduce logo height to fit reduced padding */
.brand-logo {
  height: 36px !important; /* Reduced from 44px */
}

@media (min-width: 992px) {
  .brand-logo {
    height: 48px !important; /* Reduced from 56px */
  }
}

@media (max-width: 991.98px) {
  .brand-logo {
    height: 28px !important; /* Reduced from 32px for mobile */
  }
}

/* Optional: Reduce nav link font size if links feel cramped vertically (test and remove if not needed) */
.navbar.brand-header .nav-link {
  font-size: 1rem !important; /* Reduced from 1.08rem; keeps text fitting without overflow */
}

/* Optional: Tweak button padding if they add too much height (test and remove if not needed) */
.btn-pill {
  padding: 0.4rem 1rem !important; /* Slightly less vertical padding than original */
}

/* Center mobile nav menu items */
@media (max-width: 991.98px) {
  .navbar-collapse .navbar-nav {
    text-align: center; /* Centers the text in each nav link */
  }
  .navbar-collapse .navbar-nav .nav-link {
    justify-content: center; /* If using flex, centers content horizontally */
  }
}

/* =========================================
   MOBILE "HOW IT WORKS" IMAGE FIX
   ========================================= */

@media (max-width: 991.98px) {
  /* 1. Adjust the panel layout for vertical stacking */
  .hiw-panel {
    display: flex;
    flex-direction: column;
    padding: 1.5rem !important; /* Restore standard padding */
    text-align: center;         /* Center text for better mobile look */
  }

  /* 2. Reset image positioning (stop floating right) */
  .hiw-panel-logo {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    
    /* 3. Sizing and Spacing */
    display: block !important;  /* Force visibility */
    width: auto !important;
    max-width: 60% !important;  /* Keep it from being too huge */
    max-height: 180px !important;
    min-height: 0 !important;   /* Override JS calculation */
    margin: 0 auto 1.5rem auto !important; /* Center horizontally + bottom margin */
    order: -1;                  /* Force image to appear BEFORE the title */
  }

  /* 4. Ensure the correct theme image displays */
  html[data-bs-theme="dark"] .hiw-panel-logo-dark {
    display: block !important;
  }
  html[data-bs-theme="light"] .hiw-panel-logo-light {
    display: block !important;
  }

  /* 5. Ensure the WRONG theme image stays hidden */
  html[data-bs-theme="dark"] .hiw-panel-logo-light,
  html[data-bs-theme="light"] .hiw-panel-logo-dark {
    display: none !important;
  }

  /* 6. Clean up list alignment (keep bullet points left-aligned) */
  .hiw-list {
    text-align: left;
    display: inline-block; /* Keeps bullets near text */
    margin-top: 1rem;
  }

  /* 7. Center the stats at the bottom */
  .hiw-stats {
    justify-content: center;
    margin-top: 1.5rem;
  }
}

/* ===== Anti-copy deterrent (site-wide) ===== */

/* stop highlighting/selecting text */
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* stop dragging images to desktop */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* stops long-press save on mobile too */
}

/* BUT still allow selecting/copying inside inputs/forms */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  pointer-events: auto;
}
