:root {
  --msm-ink: #261735;
  --msm-ink-soft: #4c3c59;
  --msm-muted: #786d7d;
  --msm-paper: #fbfaf7;
  --msm-paper-warm: #f3efe8;
  --msm-line: #e3ddd6;
  --msm-gold: #e7b63b;
  --msm-gold-deep: #b47b12;
  --msm-lavender: #c7b8df;
  --msm-lavender-soft: #eee8f5;
  --msm-mint: #9dbdaf;
  --msm-white: #fff;
  --msm-shadow: 0 22px 60px rgba(38, 23, 53, 0.12);
  --msm-content: 1240px;
  --msm-copy: 680px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--msm-paper);
  color: var(--msm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }

.msm-site-shell { min-width: 320px; overflow: clip; }
.msm-container { width: min(calc(100% - 88px), var(--msm-content)); margin-inline: auto; }
.msm-copy { max-width: var(--msm-copy); }

.msm-display,
.msm-heading,
.msm-card-title {
  margin-top: 0;
  color: var(--msm-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.msm-display { font-size: clamp(48px, 6.2vw, 84px); line-height: 0.98; }
.msm-heading { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.04; }
.msm-card-title { font-size: 26px; line-height: 1.12; }

.msm-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--msm-gold-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.msm-eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }

.msm-body { color: var(--msm-ink-soft); font-size: 18px; line-height: 1.65; }
.msm-muted { color: var(--msm-muted); }

.msm-nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(38, 23, 53, 0.08);
  background: rgba(251, 250, 247, 0.96);
}
.msm-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}
.msm-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--msm-ink); text-decoration: none; }
.msm-brand > img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; }
.msm-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--msm-gold);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}
.msm-brand-name { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.msm-nav-links { display: flex; align-items: center; gap: 26px; }
.msm-nav-links a { color: var(--msm-ink-soft); font-size: 14px; font-weight: 650; text-decoration: none; }
.msm-nav-links a:hover { color: var(--msm-gold-deep); }

.msm-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.msm-button:hover { transform: translateY(-2px); }
.msm-button--primary { background: var(--msm-gold); color: var(--msm-ink); }
.msm-button--secondary { border-color: var(--msm-line); background: transparent; color: var(--msm-ink); }

.msm-section { padding: clamp(72px, 8vw, 112px) 0; }
.msm-section--warm { background: var(--msm-paper-warm); }
.msm-section--ink { background: var(--msm-ink); color: var(--msm-white); }
.msm-section--ink .msm-heading,
.msm-section--ink .msm-card-title { color: var(--msm-white); }
.msm-section--ink .msm-body { color: #d7cfdc; }

.msm-hero { padding: clamp(76px, 9vw, 132px) 0 clamp(72px, 8vw, 112px); }
.msm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.msm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.msm-frame {
  border: 1px solid rgba(38, 23, 53, 0.1);
  border-radius: 8px;
  background: var(--msm-white);
  box-shadow: var(--msm-shadow);
}
.msm-frame--dark { background: var(--msm-ink); color: var(--msm-white); }

.msm-footer { padding: 54px 0 30px; background: var(--msm-ink); color: #d7cfdc; }
.msm-footer-grid { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, 0.5fr)); gap: 40px; }
.msm-footer a { color: #d7cfdc; text-decoration: none; }
.msm-footer a:hover { color: var(--msm-gold); }
.msm-footer-links { display: grid; gap: 10px; }
.msm-footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; }

.msm-button:focus-visible,
.msm-nav a:focus-visible,
.msm-footer a:focus-visible {
  outline: 3px solid rgba(180, 123, 18, 0.42);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .msm-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .msm-nav-links a:not(.msm-button) { display: none; }
  .msm-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .msm-container { width: min(calc(100% - 40px), var(--msm-content)); }
  .msm-brand-name { max-width: 142px; line-height: 1.12; }
  .msm-nav-inner { min-height: 70px; gap: 12px; }
  .msm-nav-links { gap: 0; }
  .msm-nav .msm-button { min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .msm-display { overflow-wrap: anywhere; font-size: clamp(34px, 10.5vw, 44px) !important; line-height: 1.03 !important; }
  .msm-body { font-size: 17px; }
  .msm-actions { display: grid; }
  .msm-button { width: 100%; }
  .msm-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .msm-home-hero { background-attachment: scroll !important; }
}

/* Controlled V2 Home page. The legacy GHL canvas remains available in the
 * builder, but is replaced at runtime only when the Home signature is found. */
body.msm-home-mounted {
  overflow-x: hidden;
}

body.msm-home-mounted > *:not(#msm-home-v2):not(script):not(style):not(link) {
  display: none !important;
}

body.msm-page-mounted {
  overflow-x: hidden;
}

body.msm-page-mounted > *:not(#msm-page-v2):not(script):not(style):not(link) {
  display: none !important;
}

#msm-page-v2 {
  display: block !important;
  min-width: 320px;
}

#msm-home-v2 {
  display: block !important;
}

/* GHL wraps custom-code blocks in a centered section/row/column stack. The
 * branded pages own their complete layout, so remove that canvas framing. */
body:has(#msm-home-v2),
body:has(#msm-page-v2) {
  margin: 0 !important;
  overflow-x: hidden !important;
  background: var(--msm-paper) !important;
}

body:has(#msm-home-v2) .c-section:has(#msm-home-v2),
body:has(#msm-home-v2) .c-section:has(#msm-home-v2) > .inner,
body:has(#msm-home-v2) .c-row:has(#msm-home-v2),
body:has(#msm-home-v2) .c-row:has(#msm-home-v2) > .inner,
body:has(#msm-home-v2) .c-column:has(#msm-home-v2),
body:has(#msm-home-v2) .c-column:has(#msm-home-v2) > .inner,
body:has(#msm-home-v2) .c-custom-code:has(#msm-home-v2),
body:has(#msm-page-v2) .c-section:has(#msm-page-v2),
body:has(#msm-page-v2) .c-section:has(#msm-page-v2) > .inner,
body:has(#msm-page-v2) .c-row:has(#msm-page-v2),
body:has(#msm-page-v2) .c-row:has(#msm-page-v2) > .inner,
body:has(#msm-page-v2) .c-column:has(#msm-page-v2),
body:has(#msm-page-v2) .c-column:has(#msm-page-v2) > .inner,
body:has(#msm-page-v2) .c-custom-code:has(#msm-page-v2) {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.msm-home {
  min-width: 320px;
  overflow: hidden;
  background: var(--msm-paper);
  color: var(--msm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.msm-home-container {
  width: min(calc(100% - 72px), 1180px);
  margin-inline: auto;
}

.msm-home h1,
.msm-home h2,
.msm-home h3,
.msm-home p,
.msm-home figure {
  margin-top: 0;
}

.msm-home h1,
.msm-home h2 {
  color: var(--msm-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.msm-home h1 {
  max-width: 690px;
  margin-bottom: 25px;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.98;
}

.msm-home h2 {
  margin-bottom: 18px;
  font-size: clamp(35px, 3.7vw, 52px);
  line-height: 1.06;
}

.msm-home h3 {
  color: var(--msm-ink);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.msm-home p {
  color: var(--msm-ink-soft);
  font-size: 17px;
  line-height: 1.62;
}

.msm-home-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--msm-line);
  background: rgba(251, 250, 247, 0.97);
}

.msm-home-nav__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.msm-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--msm-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.msm-home-brand img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
}

.msm-home-brand:has(img[src*="med-spa-momentum-mark.png"])::before {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--msm-gold);
  color: var(--msm-ink);
  content: "M";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.msm-home-brand img[src*="med-spa-momentum-mark.png"] {
  display: none;
}

.msm-home-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.msm-home-links > a:not(.msm-home-button),
.msm-home-text-link {
  color: var(--msm-ink-soft);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.msm-home-links > a:not(.msm-home-button):hover,
.msm-home-text-link:hover {
  color: var(--msm-gold-deep);
}

.msm-home-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 22px;
  border: 1px solid #dca72e;
  border-radius: 7px;
  background: var(--msm-gold);
  color: var(--msm-ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(180, 123, 18, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.msm-home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(180, 123, 18, 0.2);
}

.msm-home-button--small {
  min-height: 44px;
  padding: 10px 17px;
}

.msm-home-hero {
  min-height: 690px;
  padding: clamp(68px, 7.6vw, 104px) 0 clamp(64px, 7vw, 94px);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.94) 35%, rgba(251, 250, 247, 0.62) 58%, rgba(251, 250, 247, 0.08) 100%),
    url("https://assets.medspamomentum.ai/site/v2/msm-home-hero.jpg") center / cover no-repeat fixed;
}

.msm-home-hero__grid {
  display: block;
}

.msm-home-hero__copy {
  max-width: 690px;
  margin: 0;
  text-align: left !important;
}

.msm-home-hero__copy h1,
.msm-home-hero__copy p,
.msm-home-hero__copy .msm-home-actions {
  margin-inline: 0;
  text-align: left !important;
}

.msm-home-hero__copy h1 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.msm-home-hero__copy .msm-home-actions {
  justify-content: flex-start !important;
}

.msm-home-hero__copy .msm-home-kicker {
  justify-content: flex-start;
}

.msm-home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--msm-gold-deep) !important;
  font-size: 10px !important;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.msm-home-kicker::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.msm-home-lede {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--msm-ink-soft) !important;
  font-size: 18px !important;
}

.msm-home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 31px;
}

.msm-home-assurance {
  margin: 18px 0 0;
  color: var(--msm-muted) !important;
  font-size: 12px !important;
}

.msm-leak-band {
  padding: 66px 0 70px;
  border-block: 1px solid var(--msm-line);
  background: #fff;
}

.msm-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.msm-section-heading > p:not(.msm-home-kicker) {
  max-width: 660px;
  margin-bottom: 0;
}

.msm-section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.msm-section-heading--center .msm-home-kicker {
  justify-content: center;
}

.msm-leak-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.msm-leak-grid article {
  min-width: 0;
  padding: 6px 30px;
  border-right: 1px solid var(--msm-line);
  text-align: center;
}

.msm-leak-grid article:last-child {
  border-right: 0;
}

.msm-leak-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid #dfd4bd;
  border-radius: 50%;
  background: #faf7ef;
  color: var(--msm-ink);
  font-size: 21px;
}

.msm-leak-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.msm-leak-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

.msm-home-section {
  padding: clamp(76px, 8vw, 108px) 0;
}

.msm-home-section--tint {
  border-block: 1px solid var(--msm-line);
  background: var(--msm-paper-warm);
}

.msm-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.msm-system-card {
  display: grid;
  min-height: 214px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--msm-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.68);
}

.msm-system-card__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #dfd4bd;
  border-radius: 50%;
  color: var(--msm-gold-deep);
  font-size: 12px;
  font-weight: 850;
}

.msm-system-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.msm-system-card p {
  margin-bottom: 18px;
  font-size: 15px;
}

.msm-system-card strong {
  color: var(--msm-ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msm-flywheel-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.msm-flywheel-row li {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}

.msm-flywheel-row li:not(:last-child)::after {
  position: absolute;
  top: 23px;
  right: -7px;
  color: var(--msm-gold-deep);
  content: "→";
  font-size: 18px;
}

.msm-flywheel-row span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid #dfd4bd;
  border-radius: 50%;
  background: #fff;
  color: var(--msm-gold-deep);
  font-weight: 850;
}

.msm-flywheel-row strong {
  margin-bottom: 7px;
  color: var(--msm-ink);
  font-size: 13px;
  text-transform: uppercase;
}

.msm-flywheel-row small,
.msm-demand-fuel small {
  color: var(--msm-muted);
  font-size: 11px;
  line-height: 1.4;
}

.msm-demand-fuel {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: 46px auto;
  gap: 1px 16px;
  align-items: center;
  margin: 38px auto 0;
  padding: 17px 20px;
  border: 1px solid #dfd4bd;
  border-radius: 8px;
  background: #fff;
}

.msm-demand-fuel > span {
  grid-row: span 2;
  color: var(--msm-gold-deep);
  font-size: 34px;
  text-align: center;
}

.msm-demand-fuel strong {
  color: var(--msm-ink);
  font-size: 13px;
  text-transform: uppercase;
}

.msm-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.msm-step-grid article {
  padding: 30px;
  border-top: 1px solid var(--msm-ink);
}

.msm-step-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--msm-gold);
  color: var(--msm-ink);
  font-size: 12px;
  font-weight: 850;
}

.msm-step-grid h3 {
  margin-bottom: 11px;
  font-size: 20px;
}

.msm-step-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.msm-founder {
  border-top: 1px solid var(--msm-line);
  background: #fff;
}

.msm-founder__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.msm-founder__grid > img {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
}

.msm-founder__grid h2 {
  max-width: 650px;
}

.msm-founder__grid p:not(.msm-home-kicker) {
  max-width: 700px;
}

.msm-final-cta {
  padding: 74px 0;
  background: var(--msm-ink);
}

.msm-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
}

.msm-final-cta h2 {
  margin-bottom: 12px;
  color: #fff;
}

.msm-final-cta p:not(.msm-home-kicker) {
  max-width: 690px;
  margin-bottom: 0;
  color: #d8d0dc;
}

.msm-home-footer {
  padding: 58px 0 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #1d1129;
  color: #d8d0dc;
}

.msm-home-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(150px, 0.5fr));
  gap: 44px;
}

.msm-home-brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--msm-gold);
  color: var(--msm-ink);
  font-family: Georgia, serif;
  font-size: 22px;
}

.msm-home-brand--footer {
  color: #fff;
}

.msm-home-footer p {
  max-width: 280px;
  margin: 18px 0 0;
  color: #bcb1c2;
  font-size: 13px;
}

.msm-home-footer__grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 10px;
}

.msm-home-footer strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.msm-home-footer a:not(.msm-home-brand) {
  color: #cbbfd0;
  font-size: 13px;
  text-decoration: none;
}

.msm-home-footer__bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #9f93a5;
  font-size: 11px;
}

@media (max-width: 980px) {
  .msm-founder__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .msm-leak-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
  }

  .msm-leak-grid article:nth-child(2) {
    border-right: 0;
  }

  .msm-flywheel-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 0;
  }

  .msm-flywheel-row li:nth-child(3)::after,
  .msm-flywheel-row li:nth-child(6)::after {
    content: none;
  }
}

@media (max-width: 720px) {
  .msm-home-container {
    width: min(calc(100% - 36px), 1180px);
  }

  .msm-home-nav__inner {
    min-height: 68px;
  }

  .msm-home-links > a:not(.msm-home-button) {
    display: none;
  }

  .msm-home-links {
    gap: 0;
  }

  .msm-home-button--small {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 11px;
  }

  .msm-home h1 {
    font-size: clamp(34px, 10.5vw, 44px) !important;
    line-height: 1.03 !important;
  }

  .msm-home h2 {
    font-size: clamp(28px, 8.5vw, 36px) !important;
    line-height: 1.06 !important;
  }

  .c-section .msm-home h1,
  .c-section #msm-home-v2 h1 {
    font-size: clamp(34px, 10.5vw, 44px) !important;
    line-height: 1.03 !important;
  }

  .c-section .msm-home h2,
  .c-section #msm-home-v2 h2 {
    font-size: clamp(28px, 8.5vw, 36px) !important;
    line-height: 1.06 !important;
  }

  .msm-home-hero {
    padding-top: 62px;
  }

  .msm-home-hero__grid {
    display: block;
  }

  .msm-home-hero {
    min-height: 660px;
    background-image:
      linear-gradient(rgba(247, 242, 233, 0.79), rgba(247, 242, 233, 0.79)),
      url("https://assets.medspamomentum.ai/site/v2/msm-home-hero.jpg");
    background-position: 58% center;
    background-attachment: scroll;
  }

  .msm-home-actions {
    display: grid;
    gap: 16px;
  }

  .msm-home-assurance {
    color: var(--msm-ink-soft) !important;
    font-weight: 650;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.95);
  }

  .msm-home-button {
    width: 100%;
  }

  .msm-leak-grid,
  .msm-system-grid,
  .msm-step-grid,
  .msm-final-cta__inner,
  .msm-home-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .msm-leak-grid {
    gap: 0;
  }

  .msm-leak-grid article {
    padding: 24px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--msm-line);
  }

  .msm-leak-grid article:last-child {
    border-bottom: 0;
  }

  .msm-system-card {
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
    padding: 24px 20px;
  }

  .msm-system-card__number {
    width: 40px;
    height: 40px;
  }

  .msm-system-card h3 {
    font-size: 23px;
  }

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

  .msm-flywheel-row li:nth-child(even)::after {
    content: none;
  }

  .msm-step-grid article {
    padding-inline: 0;
  }

  .msm-founder__grid > img {
    width: 100%;
    max-height: 520px;
    aspect-ratio: 4 / 5;
  }

  .msm-final-cta__inner {
    gap: 30px;
  }

  .msm-home-footer__grid {
    gap: 34px;
  }
}

/*
 * GoHighLevel adapter
 *
 * The cloned JP pages retain their native section/row/column structure. These
 * rules give that structure the same visual system as the custom audiobook
 * experience without changing forms, calendars, links, or workflow bindings.
 */
body {
  background: var(--msm-paper) !important;
  color: var(--msm-ink) !important;
}

.c-section,
.fullSection {
  border-color: var(--msm-line) !important;
  background-color: var(--msm-paper) !important;
  background-image: none !important;
}

.c-section > .bg,
.c-section > .inner > .bg,
.c-section .bgCover,
.c-section .fill-width,
.c-section .fill-width-height {
  background-color: transparent !important;
  background-image: none !important;
}

.c-section > .inner,
.c-section .c-row,
.c-section .c-wrapper {
  max-width: var(--msm-content);
}

.c-section > .inner {
  margin-inline: auto !important;
  padding-inline: 44px !important;
}

.c-section:has(.mega-menu-link) {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(38, 23, 53, 0.08) !important;
  background: rgba(251, 250, 247, 0.97) !important;
  box-shadow: none !important;
}

.c-section:has(.mega-menu-link) > .inner {
  min-height: 78px;
}

.c-section:has(.mega-menu-link) .mega-menu-container {
  background: var(--msm-paper) !important;
}

.c-section:has(.mega-menu-link) picture:has(img[alt="Brand Logo"]) {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  background: none !important;
}

.c-section:has(.mega-menu-link) picture:has(img[alt="Brand Logo"])::before {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--msm-gold);
  color: var(--msm-ink);
  content: "M";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
}

.c-section:has(.mega-menu-link) picture:has(img[alt="Brand Logo"])::after {
  color: var(--msm-ink);
  content: "MED SPA MOMENTUM";
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.c-section:has(.mega-menu-link) img[alt="Brand Logo"] {
  display: none !important;
}

.mega-menu-link {
  color: var(--msm-ink-soft) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.mega-menu-link:hover {
  color: var(--msm-gold-deep) !important;
}

.mega-menu-link.msm-nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 15px;
  border-radius: 7px;
  background: var(--msm-gold);
  color: var(--msm-ink) !important;
  white-space: nowrap;
}

.c-section:has(h1) {
  padding-block: clamp(76px, 9vw, 132px) clamp(72px, 8vw, 112px) !important;
  background: var(--msm-paper-warm) !important;
}

.c-section h1,
.c-section h2,
.c-section h3,
.c-section h4 {
  color: var(--msm-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.c-section h1 {
  max-width: 950px;
  margin-inline: auto;
  font-size: clamp(48px, 6.2vw, 84px) !important;
  line-height: 0.98 !important;
}

.c-section h2 {
  font-size: clamp(34px, 4vw, 56px) !important;
  line-height: 1.05 !important;
}

.msm-ghl-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
  color: var(--msm-gold-deep) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.19em !important;
  text-transform: uppercase;
}

.msm-ghl-eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.msm-ghl-subtitle {
  max-width: 760px;
  margin: 26px auto 0 !important;
  color: var(--msm-ink-soft) !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-align: center;
}

.msm-ghl-secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 13px 21px;
  border: 1px solid var(--msm-line);
  border-radius: 7px;
  color: var(--msm-ink) !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.c-section:has(h2) .c-column {
  border-color: var(--msm-line) !important;
  border-radius: 8px !important;
  background-color: var(--msm-white) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.c-section p,
.c-section li,
.c-section label,
.c-section input,
.c-section textarea,
.c-section select {
  color: var(--msm-ink-soft) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

.c-section p,
.c-section li {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.c-section [class*="cbutton-"] {
  min-height: 50px !important;
  padding: 13px 22px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: var(--msm-gold) !important;
  box-shadow: none !important;
  color: var(--msm-ink) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: transform 160ms ease, background 160ms ease !important;
}

.c-section [class*="cbutton-"]:hover {
  background: #efc75f !important;
  transform: translateY(-2px);
}

.c-section img:not([aria-label="Brand Logo"]) {
  border-radius: 8px;
}

.c-section:has([id*="footer"], .footer2),
.c-section:last-of-type {
  border-top: 0 !important;
  background: var(--msm-ink) !important;
  color: #d7cfdc !important;
}

.c-section:has([id*="footer"], .footer2) h2,
.c-section:last-of-type h2,
.c-section:has([id*="footer"], .footer2) p,
.c-section:last-of-type p,
.c-section:has([id*="footer"], .footer2) [class*="cbutton-"] {
  color: #d7cfdc !important;
}

.c-section:has([id*="footer"], .footer2) [class*="cbutton-"],
.c-section:last-of-type [class*="cbutton-"] {
  min-height: auto !important;
  padding: 4px 0 !important;
  background: transparent !important;
  font-weight: 650 !important;
}

.c-section:has([id*="footer"], .footer2) [class*="cbutton-"]:hover,
.c-section:last-of-type [class*="cbutton-"]:hover {
  color: var(--msm-gold) !important;
  transform: none;
}

.form-builder--wrap,
.calendar-widget,
[class*="calendar"],
[class*="form-builder"] {
  border-color: var(--msm-line) !important;
  border-radius: 8px !important;
}

@media (max-width: 900px) {
  .c-section > .inner {
    padding-inline: 20px !important;
  }

  .c-section:has(h1) {
    padding-block: 66px 74px !important;
  }

  .c-section h1 {
    overflow-wrap: anywhere;
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 1.04 !important;
  }

  .c-section p,
  .c-section li {
    font-size: 17px !important;
  }

  .mega-menu-link.msm-nav-cta {
    min-height: 40px;
    padding: 9px 12px;
  }
}

@media (max-width: 640px) {
  .c-section:has(.mega-menu-link) picture:has(img[alt="Brand Logo"])::after {
    display: none;
  }

  .c-section:has(.mega-menu-link) picture:has(img[alt="Brand Logo"])::before {
    width: 44px !important;
    height: 44px !important;
    font-size: 25px;
  }

  .mega-menu-link:not(.msm-nav-cta) {
    display: none !important;
  }

  .msm-ghl-secondary-action {
    display: flex;
    width: fit-content;
    margin: 12px auto 0;
  }
}
