/* ==========================================================================
   Mint DM — marketing site
   Recreated from the design handoff (design_handoff_mintdm_website).

   Structure of this file:
     1.  Tokens
     2.  Reset & base
     3.  Shell (background, grid plate, content column)
     4.  Header / nav
     5.  Shared atoms (eyebrow, pill, buttons, gradient italic, dots)
     6.  Hero
     7.  Section heads
     8.  Cards — service, 4-up, phase, side, meta
     9.  Fit boxes
     10. Process steps
     11. Logo wall & testimonials
     12. Lead System — included list, dark interlude, signal loop
     13. Dark CTA panel
     14. Contact form
     15. Footer
     16. Motion
     17. Responsive   <-- MUST STAY LAST (equal-specificity base rules
                          later in the sheet would otherwise win)
   ========================================================================== */


/* 1. TOKENS ================================================================ */

:root {
  /* surface */
  --bg-base:        #EEF0F1;
  --bg-base-end:    #EAEDEE;

  /* ink */
  --ink:            #0E1A1F;
  --ink-soft:       #3F5159;
  --ink-muted:      #5B6E76;
  --ink-faint:      #8A9AA1;
  --ink-on-tint:    #1F3A3A;   /* body copy sitting on a tinted card */
  --ink-wordmark:   #1F2E33;

  /* brand — these are FILL colours (tiles, dots, gradients, buttons) */
  --mint:           #2EE5A8;
  --mint-deep:      #1FBE8C;
  --cyan:           #22A6D8;
  --cyan-deep:      #1A8AB8;
  --cyan-bright:    #29B6E4;
  --cyan-glow:      #22C5F2;

  /*
   * Text-only accents. The fill colours above fail WCAG AA badly as small
   * text on this background — measured 2.09:1 for --mint-deep and 3.42:1 for
   * --cyan-deep against #EEF0F1, where 4.5:1 is the bar. These darker pairs
   * carry the same hue at 4.6:1+ and are used ONLY where the accent is type.
   * Never swap a fill to these; the tiles and dots are correct as they are.
   */
  --mint-text:      #147A5A;   /* 4.64:1 on page, 5.30:1 on white */
  --cyan-text:      #14688C;   /* 4.62:1 on page, 5.28:1 on white */

  /* states */
  --red:            #C44A4A;
  --red-soft:       #8C5757;

  /* dark panels */
  --dark-1:         #0A2E38;
  --dark-2:         #062028;
  --dark-3:         #03171C;
  --on-dark:        #E6EEF1;
  --on-dark-soft:   #C2D2D8;
  --on-dark-faint:  #7C9099;

  /* alphas */
  --border-hairline: rgba(14,42,42,0.10);
  --border-input:    rgba(14,42,42,0.16);
  --border-ghost:    rgba(14,42,42,0.18);
  --card-fill:       rgba(255,255,255,0.85);
  --card-fill-strong:rgba(255,255,255,0.88);
  --card-fill-weak:  rgba(255,255,255,0.55);
  --grid-line:       rgba(14,42,42,0.05);

  /*
   * Raised and recessed neutrals. Added because the booking wizard and the
   * comparison table both referenced --surface / --sunken before they existed,
   * so every one of those rules silently resolved to nothing (transparent
   * backgrounds, invisible borders). Defining them once fixes all nine uses.
   */
  --surface:         #FFFFFF;
  --sunken:          #E3E8E9;

  /* type */
  /* Fallback is a grotesque, not a serif: Bricolage swaps in over it on the
     LCP element, and a serif fallback makes that reflow far larger. */
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-body:    'Poppins', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* fluid type — clamped at the design values on desktop */
  --h1:        104px;
  --h1-contact: 96px;
  --h2:        58px;
  --h2-cta:    84px;   /* 92px overflowed the 1.4fr column on the longer CTA lines */

  /* layout */
  --col-max:   1280px;
  --col-pad:   44px;

  /* shadows */
  --sh-card:        0 18px 40px -28px rgba(14,42,42,0.18);
  --sh-card-strong: 0 18px 44px -28px rgba(14,42,42,0.22);
  --sh-card-mint:   0 18px 40px -28px rgba(31,190,140,0.40);
  --sh-card-cyan:   0 18px 40px -28px rgba(34,166,216,0.40);
  --sh-card-red:    0 18px 40px -28px rgba(216,108,108,0.30);
  --sh-btn-sm:      0 12px 26px -10px rgba(26,138,184,0.45);
  --sh-btn-lg:      0 18px 40px -10px rgba(34,166,216,0.50);
  --sh-btn-dark:    0 16px 32px -14px rgba(14,26,31,0.55);
  --sh-panel-dark:  0 40px 80px -32px rgba(3,23,28,0.40);

  /* per-page accent — overridden by [data-accent] below */
  --accent:       var(--mint-text);
  --accent-light: var(--mint);
  --grad-italic:  linear-gradient(135deg, #1FBE8C 0%, #22A6D8 100%);
  --grad-italic-dark: linear-gradient(135deg, #2EE5A8, #22C5F2);
  --plate-mask-y: 24%;
}

/* Content Engine leads with cyan and reverses the headline gradient. */
[data-accent="cyan"] {
  --accent:       var(--cyan-text);
  --accent-light: var(--cyan);
  --grad-italic:  linear-gradient(135deg, #22A6D8 0%, #1FBE8C 100%);
  --grad-italic-dark: linear-gradient(135deg, #22C5F2, #2EE5A8);
}


/* 2. RESET & BASE ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-body);
  background: var(--bg-base);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a:not(.mdm-btn) { color: var(--mint-text); }
a:not(.mdm-btn):hover { color: var(--cyan-text); }
[data-accent="cyan"] a:not(.mdm-btn) { color: var(--cyan-text); }
[data-accent="cyan"] a:not(.mdm-btn):hover { color: var(--mint-text); }

::selection { background: var(--mint); color: var(--dark-3); }

img { max-width: 100%; }

input, textarea, select { font-family: var(--f-body); }
input::placeholder, textarea::placeholder { color: #9AAAB1; }

.mdm-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* 3. SHELL ================================================================= */

.mdm-shell {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(46,229,168,0.18), transparent 70%),
    radial-gradient(900px 700px at 88% 6%,  rgba(34,180,230,0.16), transparent 70%),
    radial-gradient(1100px 800px at 80% 88%, rgba(34,180,230,0.12), transparent 70%),
    radial-gradient(700px 500px at 10% 70%, rgba(46,229,168,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-end) 100%);
}

/* Content Engine swaps the first two stops so cyan leads. */
.mdm-shell--cyan {
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(34,180,230,0.20), transparent 70%),
    radial-gradient(900px 700px at 88% 6%,  rgba(46,229,168,0.14), transparent 70%),
    radial-gradient(1100px 800px at 80% 88%, rgba(34,180,230,0.12), transparent 70%),
    radial-gradient(700px 500px at 10% 70%, rgba(46,229,168,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-end) 100%);
}

.mdm-plate {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% var(--plate-mask-y), black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% var(--plate-mask-y), black 30%, transparent 80%);
}

.mdm-wrap {
  position: relative;
  max-width: var(--col-max);
  margin: 0 auto;
  padding-left: var(--col-pad);
  padding-right: var(--col-pad);
}

/* section rhythm */
.mdm-section       { padding-top: 20px;  padding-bottom: 100px; }
.mdm-section--tall { padding-top: 20px;  padding-bottom: 110px; }
.mdm-section--flush{ padding-top: 0;     padding-bottom: 110px; }
.mdm-section--pad  { padding-top: 60px;  padding-bottom: 60px;  }
.mdm-section--wide { padding-top: 90px;  padding-bottom: 90px;  }


/* 4. HEADER =============================================================== */

.mdm-header {
  position: relative;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 32px var(--col-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mdm-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.mdm-logo img { width: 36px; height: auto; display: block; }
.mdm-logo__word {
  font-family: var(--f-body);
  font-weight: 300; font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink-wordmark);
}
.mdm-logo__word b { font-weight: 600; }

.mdm-nav { display: flex; gap: 36px; align-items: center; }
.mdm-nav a:not(.mdm-btn) {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  transition: color .18s ease;
}
.mdm-nav a:not(.mdm-btn):hover { color: var(--ink); }
.mdm-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Menu-panel CTA. Hidden on desktop, where the header button already carries
   this; revealed with the panel at <=860px.
   Scoped to .mdm-nav deliberately: a bare .mdm-nav__cta loses to
   `.mdm-btn { display: inline-flex }`, which is defined later in this file at
   equal specificity — so the button leaked into the desktop nav bar. */
.mdm-nav .mdm-nav__cta { display: none; }

/* mobile nav toggle — not in the design, added for < 860px */
.mdm-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--card-fill);
  border: 1px solid var(--border-ghost);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}


/* 5. SHARED ATOMS ========================================================= */

.mdm-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.mdm-eyebrow--muted { color: var(--ink-muted); letter-spacing: 0.14em; margin-bottom: 0; }
.mdm-eyebrow--sm    { font-size: 11px; }
/* Used when an eyebrow is a real heading element — strips the UA h2 defaults
   so the label looks identical while the outline stays correct. */
.mdm-eyebrow--head  { font-weight: 400; margin-top: 0; }
h2.mdm-side__label  { font-size: 11px; }

.mdm-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* gradient italic inside headlines.
   The padding/margin pair is load-bearing: line-height 0.96 makes the inline
   box shorter than the italic glyphs, so background-clip:text would crop the
   ascenders and the final glyph. The negative margin cancels the layout shift. */
.mdm-grad {
  font-style: italic;
  font-weight: 400;
  /* background-image, NOT the `background` shorthand: the shorthand resets
     background-clip to border-box, and any later rule that re-declares it
     would silently un-clip the gradient and paint a solid block over the
     headline. That is exactly what .mdm-grad--dark used to do. */
  background-image: var(--grad-italic);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.18em 0.24em 0.18em 0;
  margin: -0.18em 0 -0.18em 0;
}
.mdm-grad--dark { background-image: var(--grad-italic-dark); }

/* buttons — every filled button/pill on every page is blue, by design rule */
.mdm-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; text-decoration: none;
  font-family: var(--f-body);
  border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mdm-btn:hover { transform: translateY(-1px); }

.mdm-btn--blue {
  background: linear-gradient(180deg, var(--cyan-bright) 0%, var(--cyan-deep) 100%);
  color: #FFFFFF;
  box-shadow: var(--sh-btn-sm);
}
.mdm-btn--blue:hover { color: #FFFFFF; box-shadow: 0 16px 32px -10px rgba(26,138,184,0.55); }

.mdm-btn--dark {
  background: var(--ink);
  color: #F5F8F9;
  box-shadow: var(--sh-btn-dark);
}
.mdm-btn--dark:hover { color: #F5F8F9; box-shadow: 0 20px 38px -14px rgba(14,26,31,0.62); }

.mdm-btn--mint {
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: var(--dark-3); font-weight: 600;
  box-shadow: 0 16px 34px -14px rgba(31,190,140,0.55);
}
.mdm-btn--mint:hover { color: var(--dark-3); box-shadow: 0 20px 40px -14px rgba(31,190,140,0.7); }

.mdm-btn--ghost {
  color: var(--ink);
  border: 1px solid var(--border-ghost);
  background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.mdm-btn--ghost:hover { color: var(--ink); background: rgba(255,255,255,0.82); }

/* sizes — nav/pill buttons hold a 44px minimum so they stay a valid tap
   target on touch; the design's 11px padding lands at 43px on its own. */
.mdm-btn--nav   { padding: 11px 22px; font-size: 14px;   font-weight: 600; gap: 8px; min-height: 44px; }
.mdm-btn--md    { padding: 14px 24px; font-size: 15px;   font-weight: 500; gap: 10px; }
.mdm-btn--lg    { padding: 18px 30px; font-size: 15.5px; font-weight: 500; }
.mdm-btn--ghost.mdm-btn--lg { padding: 18px 24px; }
.mdm-btn--xl    { padding: 22px 32px; font-size: 17px;   font-weight: 600; gap: 16px; box-shadow: var(--sh-btn-lg); }
.mdm-btn--submit{ padding: 19px 30px; font-size: 16px;   font-weight: 600; gap: 14px; box-shadow: 0 18px 40px -14px rgba(34,166,216,0.5); }

.mdm-btn__dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #FFFFFF;
}
.mdm-btn__dot--mint {
  width: 7px; height: 7px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(46,229,168,0.7);
}
.mdm-btn__dot--cyan {
  width: 7px; height: 7px;
  background: var(--cyan-glow);
  box-shadow: 0 0 10px rgba(34,197,242,0.7);
}

/* pills */
.mdm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan-bright), var(--cyan-deep));
  color: #FFFFFF; font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
}

.mdm-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(34,166,216,0.12);
  border: 1px solid rgba(34,166,216,0.3);
  color: var(--cyan-deep);
  font-weight: 500; font-size: 13px;
}
.mdm-chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}

.mdm-tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(34,166,216,0.14);
  color: var(--cyan-deep);
  font-weight: 600; font-size: 12px;
}
.mdm-tag--dark {
  padding: 6px 14px;
  background: var(--ink);
  color: #F5F8F9;
  font-weight: 500;
  position: relative;
}
.mdm-tag__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(46,229,168,0.7);
}
.mdm-tag__dot--cyan { background: var(--cyan-glow); box-shadow: 0 0 8px rgba(34,197,242,0.7); }

/* icon tiles */
.mdm-tile {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
}
.mdm-tile--sm     { width: 46px; height: 46px; }
.mdm-tile--lg     { width: 56px; height: 56px; border-radius: 18px; }
.mdm-tile--mint   { background: linear-gradient(180deg, var(--mint), var(--mint-deep)); }
.mdm-tile--blue   { background: linear-gradient(180deg, var(--cyan-bright), var(--cyan-deep)); }
.mdm-tile--cyan   { background: rgba(34,166,216,0.14); border: 1px solid rgba(34,166,216,0.34); }
.mdm-tile--cyan-soft { background: rgba(34,166,216,0.12); border: 1px solid rgba(34,166,216,0.30); }
.mdm-tile--mint-soft { background: rgba(46,229,168,0.14); border: 1px solid rgba(31,190,140,0.30); }
.mdm-tile--red    { background: rgba(216,108,108,0.18); border: 1px solid rgba(216,108,108,0.4); }
.mdm-tile--glass  { background: rgba(255,255,255,0.75); border: 1px solid rgba(31,190,140,0.45); position: relative; }
.mdm-tile--glass-cyan { background: rgba(255,255,255,0.75); border: 1px solid rgba(34,166,216,0.45); position: relative; }

/* bullet lists */
.mdm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mdm-list--tight { gap: 12px; margin-top: 6px; }
.mdm-list--loose { gap: 18px; }

.mdm-list--tight li {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  align-items: start;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.mdm-list--loose li {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  align-items: start;
  font-size: 16.5px; line-height: 1.55; color: var(--ink-soft);
}

.mdm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px;
}
.mdm-list--loose .mdm-dot { width: 10px; height: 10px; margin-top: 8px; }
.mdm-dot--mint { background: var(--mint-deep); box-shadow: 0 0 10px rgba(31,190,140,0.6); }
.mdm-dot--cyan { background: var(--cyan);      box-shadow: 0 0 10px rgba(34,166,216,0.5); }
.mdm-dot--cyan-deep { background: var(--cyan-deep); box-shadow: 0 0 12px rgba(26,138,184,0.5); }
.mdm-bar { width: 12px; height: 2px; background: var(--red); margin-top: 14px; }

/* decorative floating dots */
.mdm-float {
  position: absolute; border-radius: 50%;
  pointer-events: none;
}
.mdm-float--a {
  top: 150px; right: 36%; width: 12px; height: 12px;
  background: var(--mint-deep); box-shadow: 0 0 24px rgba(31,190,140,0.7);
  animation: floaty 5s ease-in-out infinite;
}
.mdm-float--b {
  bottom: 70px; left: 46%; width: 8px; height: 8px;
  background: var(--cyan); box-shadow: 0 0 20px rgba(34,166,216,0.7);
}
[data-accent="cyan"] .mdm-float--a { background: var(--cyan); box-shadow: 0 0 24px rgba(34,166,216,0.7); }
[data-accent="cyan"] .mdm-float--b { background: var(--mint-deep); box-shadow: 0 0 20px rgba(31,190,140,0.7); }


/* 6. HERO ================================================================= */

.mdm-hero { padding-top: 64px; padding-bottom: 104px; }
.mdm-hero--lead    { padding-top: 72px; padding-bottom: 110px; }
.mdm-hero--contact { padding-top: 56px; padding-bottom: 64px; }

.mdm-crumb {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.mdm-hero--contact .mdm-crumb { margin-bottom: 48px; }
.mdm-hero--lead    .mdm-crumb { margin-bottom: 56px; }
.mdm-crumb__rule { width: 24px; height: 1px; background: #BCC8CD; }
.mdm-crumb__here { color: var(--accent); }
.mdm-crumb__status {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-muted);
}
.mdm-status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31,190,140,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
[data-accent="cyan"] .mdm-status-dot { box-shadow: 0 0 0 4px rgba(34,166,216,0.18); }

.mdm-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: end;
}

.mdm-h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--h1);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.mdm-h1--contact { font-size: var(--h1-contact); }

.mdm-hero__pill { margin-bottom: 28px; }
.mdm-hero__actions {
  margin-top: 44px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

.mdm-hero__aside { display: flex; flex-direction: column; gap: 28px; }
.mdm-lede {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0; max-width: 440px; font-weight: 300;
}

/* --- Home hero: single column, headline and lede as one focal pair ------- */

/* NO max-width on .mdm-hero__lead. A `ch` cap here resolves against this
   element's own 16px font — not the 104px H1 it was meant to measure — which
   collapsed the entire hero into a 151px column. Cap the H1 itself, where
   `ch` means what it looks like it means. */
.mdm-hero__lead .mdm-h1 {
  max-width: 15ch;                 /* ~660px at 104px — holds it to three lines */
  text-wrap: balance;
  margin-bottom: 0;
}
.mdm-lede--hero {
  font-size: 20px; line-height: 1.62;
  max-width: 46ch;
  margin-top: 30px;
  color: var(--ink-soft);
}

/* Facts become a rule-separated strip along the base of the hero rather than
   a boxed card competing with the headline. */
.mdm-facts {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.mdm-facts__item { display: flex; flex-direction: column; gap: 8px; }
.mdm-facts__label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.mdm-facts__value {
  font-family: var(--f-display); font-size: 21px;
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}


/* 7. SECTION HEADS ======================================================== */

.mdm-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 40px; margin-bottom: 56px; flex-wrap: wrap;
}
.mdm-head--stack { display: block; }

.mdm-h2 {
  font-family: var(--f-display);
  font-size: var(--h2);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  max-width: 860px;
}
.mdm-h2--wide  { max-width: 920px; }
.mdm-h2--gap   { margin-bottom: 56px; }
.mdm-h2--56    { font-size: 56px; }
.mdm-h2--66    { font-size: 66px; letter-spacing: -0.028em; max-width: 1040px; }


/* 8. CARDS ================================================================ */

.mdm-card {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  border-radius: 22px;
  padding: 28px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: var(--sh-card);
  transition: box-shadow .2s ease;
}
.mdm-card:hover { box-shadow: 0 18px 40px -24px rgba(14,42,42,0.26); }

/* hero meta card */
.mdm-meta {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 26px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -24px rgba(14,42,42,0.18);
}
.mdm-meta__label { font-family: var(--f-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.mdm-meta__value { font-family: var(--f-display); font-size: 20px; font-weight: 500; margin-top: 6px; color: var(--ink); }

/* two service cards on Home */
.mdm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.mdm-service {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.mdm-service--mint {
  background: linear-gradient(160deg, rgba(46,229,168,0.20) 0%, rgba(255,255,255,0.88) 100%);
  border: 1px solid rgba(31,190,140,0.36);
  box-shadow: 0 18px 44px -26px rgba(31,190,140,0.42);
}
/*
 * Dark service card. Website Foundation is the prerequisite step, not a third
 * option, so it is deliberately a different material from the pair below it.
 *
 * The mint radials are held at 0.22/0.16: at 0.30 the brightest point of the
 * gradient dropped the 15px list copy to 4.5:1, right on the AA limit.
 */
.mdm-service--dark {
  color: var(--on-dark);
  /*
   * Near-black, not a glowing teal panel. The mint radials that used to sit on
   * top lifted this to roughly #15655A at its brightest, which read as green
   * rather than as the brand's dark. The accent now comes only from the orb,
   * the icon tile and the bullets.
   */
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark-3) 68%);
  border: 1px solid rgba(46,229,168,0.20);
  box-shadow: var(--sh-panel-dark);
}
/* Every descendant that hardcodes a light-surface colour has to be flipped,
   or it renders near-invisible on the dark fill. */
.mdm-service--dark .mdm-h3 { color: #FFFFFF; }
.mdm-service--dark .mdm-service__kicker--mint { color: var(--mint); }
.mdm-service--dark .mdm-service__body--tint { color: var(--on-dark); font-weight: 300; }
.mdm-service--dark .mdm-list--tight li { color: var(--on-dark-soft); }
/* Kept low: the orb is the only thing lightening the panel now. */
.mdm-service--dark .mdm-service__orb { opacity: 0.16; }

.mdm-service--plain {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px -30px rgba(14,42,42,0.2);
}
.mdm-service > * { position: relative; }
.mdm-service__orb {
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--mint); opacity: 0.26; filter: blur(48px);
}
.mdm-service__head { display: flex; align-items: center; gap: 14px; }
.mdm-service__kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.mdm-service__kicker--mint { color: var(--mint-text); }
.mdm-service__kicker--cyan { color: var(--cyan-text); }
.mdm-h3 {
  font-family: var(--f-display);
  font-size: 30px; font-weight: 500;
  margin: 2px 0 0; letter-spacing: -0.02em; color: var(--ink);
}
.mdm-service__body { font-size: 16px; line-height: 1.62; margin: 0; }
.mdm-service__body--tint  { color: var(--ink-on-tint); font-weight: 400; }
.mdm-service__body--plain { color: var(--ink-soft);    font-weight: 300; }
.mdm-service__cta { margin-top: auto; align-self: flex-start; }

/* 4-up cards */
.mdm-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.mdm-fcard {
  display: flex; flex-direction: column; gap: 18px;
  min-height: 300px;
}
.mdm-fcard--hi {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 28px;
  background: linear-gradient(160deg, rgba(46,229,168,0.22) 0%, rgba(34,166,216,0.18) 100%);
  border: 1px solid rgba(31,190,140,0.40);
  box-shadow: 0 18px 40px -22px rgba(31,190,140,0.4);
}
.mdm-fcard--hi-cyan {
  background: linear-gradient(160deg, rgba(34,166,216,0.22) 0%, rgba(46,229,168,0.18) 100%);
  border: 1px solid rgba(34,166,216,0.40);
  box-shadow: 0 18px 40px -22px rgba(34,166,216,0.4);
}
.mdm-fcard--hi > * { position: relative; }
.mdm-fcard__orb {
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--mint); opacity: 0.30; filter: blur(40px);
}
.mdm-fcard__orb--cyan { background: var(--cyan-glow); }
.mdm-fcard__num  { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); }
.mdm-fcard__num--accent { color: var(--accent); }
.mdm-fcard__title {
  font-family: var(--f-display);
  font-size: 23px; font-weight: 500;
  margin: -4px 0 0; line-height: 1.18; letter-spacing: -0.015em; color: var(--ink);
}
.mdm-fcard__body { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; font-weight: 300; }
.mdm-fcard__body--tint { color: var(--ink-on-tint); font-weight: 400; }

/* phase cards (3-up) */
.mdm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mdm-phase {
  border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.mdm-phase--plain {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: var(--sh-card);
}
.mdm-phase--feat-mint {
  position: relative; overflow: hidden;
  background:
    radial-gradient(500px 400px at 100% 0%, rgba(34,166,216,0.20), transparent 70%),
    linear-gradient(160deg, rgba(46,229,168,0.22) 0%, rgba(255,255,255,0.9) 100%);
  border: 1px solid rgba(31,190,140,0.4);
  box-shadow: 0 18px 40px -22px rgba(31,190,140,0.35);
}
.mdm-phase--feat-cyan {
  position: relative; overflow: hidden;
  background:
    radial-gradient(500px 400px at 100% 0%, rgba(46,229,168,0.20), transparent 70%),
    linear-gradient(160deg, rgba(34,166,216,0.22) 0%, rgba(255,255,255,0.9) 100%);
  border: 1px solid rgba(34,166,216,0.4);
  box-shadow: 0 18px 40px -22px rgba(34,166,216,0.35);
}
.mdm-phase__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.mdm-phase__label--accent { color: var(--accent); }
.mdm-phase__title { font-family: var(--f-display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.mdm-phase__body  { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; font-weight: 300; }
.mdm-phase__body--tint { color: var(--ink-on-tint); font-weight: 400; }
.mdm-phase__foot {
  margin-top: auto; padding-top: 24px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
}
.mdm-phase__foot--mint { color: var(--mint-text); }
.mdm-phase__foot--cyan { color: var(--cyan-text); }
.mdm-phase__foot .mdm-dot { margin-top: 0; width: 6px; height: 6px; }


/* 9. FIT BOXES ============================================================ */

.mdm-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.mdm-fit__card {
  border-radius: 24px;
  padding: 40px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.mdm-fit__card--yes-mint {
  background: linear-gradient(160deg, rgba(46,229,168,0.18) 0%, rgba(255,255,255,0.85) 100%);
  border: 1px solid rgba(31,190,140,0.30);
  box-shadow: var(--sh-card-mint);
}
.mdm-fit__card--yes-cyan {
  background: linear-gradient(160deg, rgba(34,166,216,0.16) 0%, rgba(255,255,255,0.85) 100%);
  border: 1px solid rgba(34,166,216,0.30);
  box-shadow: var(--sh-card-cyan);
}
/* "What's included" boxes reuse the fit geometry with different fills. */
.mdm-fit__card--plain {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 18px 40px -28px rgba(14,42,42,0.2);
}
.mdm-fit__card--tint-cyan {
  background: linear-gradient(160deg, rgba(34,166,216,0.16) 0%, rgba(255,255,255,0.88) 100%);
  border: 1px solid rgba(34,166,216,0.30);
  box-shadow: var(--sh-card-cyan);
}
.mdm-fit__card--no {
  background: linear-gradient(160deg, rgba(255,240,235,0.85) 0%, rgba(255,255,255,0.85) 100%);
  border: 1px solid rgba(216,108,108,0.30);
  box-shadow: var(--sh-card-red);
}
.mdm-fit__head { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.mdm-fit__kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.mdm-fit__kicker--mint { color: var(--mint-text); }
.mdm-fit__kicker--cyan { color: var(--cyan-text); }
.mdm-fit__kicker--red  { color: var(--red); }
.mdm-fit__title {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 500;
  margin: 2px 0 0; letter-spacing: -0.015em; color: var(--ink);
}
.mdm-fit__card--yes-mint .mdm-list li,
.mdm-fit__card--yes-cyan .mdm-list li { color: var(--ink); }
.mdm-fit__note {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px dashed rgba(216,108,108,0.35);
  font-size: 14.5px; color: var(--red-soft);
  line-height: 1.55; font-style: italic;
}


/* 10. PROCESS ============================================================= */

.mdm-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mdm-steps__line {
  position: absolute; top: 40px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, rgba(31,190,140,0.5), rgba(34,166,216,0.4));
  pointer-events: none;
}
.mdm-step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.mdm-step__num {
  width: 80px; height: 80px; border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 30px; font-weight: 500;
  color: var(--ink);
  box-shadow: 0 16px 34px -22px rgba(14,42,42,0.28);
}
.mdm-step__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint-text); }
.mdm-step__title {
  font-family: var(--f-display); font-size: 24px; font-weight: 500;
  margin: -6px 0 0; letter-spacing: -0.018em; color: var(--ink); line-height: 1.16;
}
.mdm-step__body { font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); margin: 0; font-weight: 300; }


/* 11. LOGO WALL & TESTIMONIALS ============================================ */

.mdm-wall__head { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.mdm-wall__label {
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.mdm-wall__rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(14,42,42,0.14), transparent); }
.mdm-wall__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.mdm-wall__slot {
  height: 88px; border-radius: 16px;
  border: 1px dashed var(--border-ghost);
  background: rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase;
}
.mdm-wall__slot img { max-height: 44px; width: auto; }

.mdm-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mdm-quote {
  background: var(--card-fill-weak);
  border: 1px dashed rgba(14,42,42,0.20);
  border-radius: 22px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 280px;
}
.mdm-quote--filled {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: var(--sh-card);
}
.mdm-quote__mark { font-family: var(--f-display); font-size: 52px; line-height: 0.6; color: rgba(31,190,140,0.45); }
.mdm-quote__body { font-size: 16px; line-height: 1.62; color: var(--ink-faint); margin: 0; font-weight: 300; font-style: italic; }
.mdm-quote--filled .mdm-quote__body { color: var(--ink-soft); font-style: normal; }
.mdm-quote__attr { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.mdm-quote__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px dashed rgba(14,42,42,0.20); flex-shrink: 0;
  object-fit: cover;
}
.mdm-quote--filled .mdm-quote__avatar { border: none; }
.mdm-quote__name { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--ink-muted); }
.mdm-quote--filled .mdm-quote__name { color: var(--ink); }
.mdm-quote__meta { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }


/* 12. LEAD SYSTEM — included list, interlude, signal loop ================== */

.mdm-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.mdm-split__sticky { position: sticky; top: 40px; }
.mdm-split__lede { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0; max-width: 380px; font-weight: 300; }

.mdm-rows {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  padding: 8px 32px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px -28px rgba(14,42,42,0.2);
}
.mdm-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(14,42,42,0.08);
}
.mdm-row:last-child { border-bottom: none; }
.mdm-row__num {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(46,229,168,0.14);
  border: 1px solid rgba(31,190,140,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 13px; color: var(--mint-text);
}
.mdm-row__title {
  font-family: var(--f-display); font-size: 22px; font-weight: 500;
  margin: 0 0 4px; letter-spacing: -0.015em; color: var(--ink);
}
.mdm-row__body { font-size: 14.5px; color: var(--ink-muted); margin: 0; font-weight: 300; }
.mdm-row__arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14,42,42,0.04);
  border: 1px solid rgba(14,42,42,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.mdm-interlude {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(34,166,216,0.30), transparent 70%),
    radial-gradient(600px 500px at 10% 100%, rgba(46,229,168,0.32), transparent 70%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  border: 1px solid rgba(46,229,168,0.25);
  border-radius: 28px;
  padding: 64px;
  color: var(--on-dark);
  box-shadow: 0 30px 60px -32px rgba(3,23,28,0.4);
}
.mdm-interlude__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.mdm-interlude__h2 {
  font-family: var(--f-display); font-size: 54px; line-height: 1.02;
  letter-spacing: -0.025em; font-weight: 500; margin: 0; color: #FFFFFF;
}
.mdm-interlude__body { font-size: 18px; line-height: 1.6; margin: 0 0 28px; color: var(--on-dark-soft); font-weight: 300; }
.mdm-callout {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 22px;
  background: rgba(3,23,28,0.5);
  border-radius: 14px;
  border: 1px solid rgba(46,229,168,0.3);
}
.mdm-callout__tile {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(180deg, var(--mint), var(--mint-deep));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mdm-callout__title { font-family: var(--f-display); font-size: 19px; font-weight: 500; line-height: 1.2; color: #FFFFFF; }
.mdm-callout__sub { font-size: 14px; color: #9FB2BA; margin-top: 2px; font-weight: 300; }

.mdm-loop {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 28px;
  font-family: var(--f-mono); font-size: 13px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -28px rgba(14,42,42,0.2);
}
.mdm-loop__label { color: var(--ink-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; font-size: 11px; }
.mdm-loop__list { display: flex; flex-direction: column; gap: 14px; }
.mdm-loop__step { display: flex; align-items: center; gap: 12px; }
.mdm-loop__chip {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(46,229,168,0.18);
  border: 1px solid rgba(31,190,140,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--mint-text); font-weight: 600;
}
.mdm-loop__chip--fill {
  background: linear-gradient(180deg, var(--mint), var(--mint-deep));
  border: none; color: var(--dark-3); font-weight: 700;
}
.mdm-loop__rule { margin-left: 12px; height: 14px; width: 1.5px; background: rgba(14,42,42,0.18); }
.mdm-loop__text { color: var(--ink); }
.mdm-loop__text--accent { color: var(--mint-text); font-weight: 500; }

.mdm-why { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.mdm-why__lede { font-size: 20px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 600px; font-weight: 300; }


/* 13. DARK CTA PANEL ====================================================== */

.mdm-cta {
  position: relative; overflow: hidden;
  border-radius: 32px;
  padding: 84px 64px;
  color: var(--on-dark);
  box-shadow: var(--sh-panel-dark);
  background:
    radial-gradient(700px 500px at 15% 50%, rgba(46,229,168,0.45), transparent 70%),
    radial-gradient(600px 400px at 90% 100%, rgba(34,166,216,0.30), transparent 70%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  border: 1px solid rgba(46,229,168,0.30);
}
.mdm-cta--cyan {
  background:
    radial-gradient(700px 500px at 15% 50%, rgba(34,166,216,0.45), transparent 70%),
    radial-gradient(600px 400px at 90% 100%, rgba(46,229,168,0.30), transparent 70%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  border: 1px solid rgba(34,197,242,0.30);
}
.mdm-cta__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: end; }
.mdm-cta__eyebrow {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--mint);
}
.mdm-cta--cyan .mdm-cta__eyebrow { color: var(--cyan-glow); }
.mdm-cta__h2 {
  font-family: var(--f-display);
  font-size: var(--h2-cta); line-height: 0.96;
  letter-spacing: -0.035em; font-weight: 500;
  margin: 0; color: #FFFFFF;
}
.mdm-cta__lede { font-size: 17px; line-height: 1.65; color: var(--on-dark-soft); margin: 0 0 32px; font-weight: 300; }
.mdm-cta__meta {
  margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--on-dark-faint); letter-spacing: 0.1em;
}


/* 14. CONTACT FORM ======================================================== */

.mdm-contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }

.mdm-form-card {
  background: var(--card-fill-strong);
  border: 1px solid var(--border-hairline);
  border-radius: 26px;
  padding: 44px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: var(--sh-card-strong);
}
.mdm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.mdm-field { display: flex; flex-direction: column; gap: 9px; }
.mdm-field__label {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-muted); letter-spacing: 0.14em; text-transform: uppercase;
}
.mdm-field__label span { text-transform: none; letter-spacing: 0; }
.mdm-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-input);
  background: #FFFFFF;
  /* 16px exactly: below this iOS Safari auto-zooms the page on focus and
     leaves it zoomed — on the one page that carries the conversion. */
  font-size: 16px;
  color: var(--ink);
}
textarea.mdm-input { line-height: 1.6; resize: vertical; }
.mdm-input:focus {
  /* transparent (not none) so forced-colors mode can repaint a real ring */
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px rgba(34,166,216,0.16);
}
.mdm-input--error { border-color: var(--red); }

.mdm-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.mdm-radio {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--border-input);
  background: #FFFFFF; font-size: 15px; cursor: pointer;
}
.mdm-radio input { accent-color: var(--cyan-deep); width: 16px; height: 16px; margin: 0; }
.mdm-radio:has(input:checked) { border-color: var(--cyan-deep); box-shadow: 0 0 0 2px rgba(34,166,216,0.14); }

.mdm-form__group-label {
  display: block;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-muted); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.mdm-form__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mdm-form__note { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); letter-spacing: 0.08em; }

/* validation + server error surfaces — not in the design, added per handoff */
.mdm-error {
  font-size: 13.5px; color: var(--red);
  margin-top: -8px; margin-bottom: 20px;
}
.mdm-alert {
  padding: 14px 18px; border-radius: 14px;
  background: rgba(216,108,108,0.10);
  border: 1px solid rgba(216,108,108,0.30);
  color: var(--red-soft);
  font-size: 14.5px; line-height: 1.55;
  margin-bottom: 24px;
}
.mdm-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* success panel */
.mdm-sent { display: flex; flex-direction: column; gap: 20px; padding: 40px 0; align-items: flex-start; }
.mdm-sent__title { font-family: var(--f-display); font-size: 38px; font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.mdm-sent__body { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 460px; font-weight: 300; }

/* --- Direct-contact block (shown while the form is switched off) --------- */

.mdm-reach__lede {
  font-size: 17px; line-height: 1.62; color: var(--ink-soft);
  font-weight: 300; margin: 0 0 34px; max-width: 52ch;
}
.mdm-reach__grid {
  display: grid; gap: 14px;
  margin-bottom: 34px;
}
.mdm-reach__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--border-input);
  border-radius: 16px;
  background: #FFFFFF;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.mdm-reach__item:hover {
  border-color: var(--cyan-deep);
  box-shadow: 0 12px 26px -18px rgba(14,42,42,0.35);
  transform: translateY(-1px);
}
.mdm-reach__item--static { background: rgba(255,255,255,0.6); }
.mdm-reach__label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.mdm-reach__value {
  font-family: var(--f-display); font-size: 24px;
  font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
}
.mdm-reach__value--sm { font-size: 18px; line-height: 1.45; }
.mdm-reach__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* side column */
.mdm-side { display: flex; flex-direction: column; gap: 22px; }
.mdm-side__card {
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  border-radius: 22px; padding: 32px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: var(--sh-card);
}
.mdm-side__card--mint {
  background: linear-gradient(160deg, rgba(46,229,168,0.18) 0%, rgba(255,255,255,0.85) 100%);
  border: 1px solid rgba(31,190,140,0.30);
  box-shadow: var(--sh-card-mint);
}
.mdm-side__label {
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px;
}
.mdm-side__label--mint { color: var(--mint-text); margin-bottom: 14px; }
.mdm-next { display: flex; flex-direction: column; gap: 20px; }
.mdm-next__row { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.mdm-next__chip {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(46,229,168,0.16);
  border: 1px solid rgba(31,190,140,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--mint-text);
}
.mdm-next__text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); font-weight: 300; }
.mdm-direct { display: flex; flex-direction: column; gap: 18px; }
.mdm-direct__label { font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; }
.mdm-direct__value { font-family: var(--f-display); font-size: 20px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mdm-direct__value:hover { color: var(--cyan-deep); }
.mdm-direct__note {
  padding-top: 16px; border-top: 1px dashed rgba(14,42,42,0.16);
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.1em; line-height: 1.7;
}
.mdm-side__body { font-size: 15px; line-height: 1.6; color: var(--ink-on-tint); margin: 0 0 20px; font-weight: 400; }
.mdm-side__links { display: flex; gap: 10px; flex-wrap: wrap; }
.mdm-side__links .mdm-btn { padding: 11px 18px; font-size: 14px; font-weight: 500; gap: 8px; }


/* 15. FOOTER ============================================================== */

.mdm-footer {
  position: relative;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--col-pad) 56px;
}
.mdm-footer__inner {
  border-top: 1px solid var(--border-hairline);
  padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.mdm-footer__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mdm-footer__logo img { width: 28px; height: auto; display: block; }
.mdm-footer__word { font-family: var(--f-body); font-weight: 300; font-size: 17px; color: var(--ink-soft); }
.mdm-footer__word b { font-weight: 600; }
.mdm-footer__tag {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.mdm-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.mdm-footer__links a { font-size: 13.5px; color: var(--ink-muted); text-decoration: none; }
.mdm-footer__links a:hover { color: var(--ink); }


/* 15b. FIRST-LOAD OVERLAY ================================================= */

/*
 * Shown once per session while fonts and assets settle, then faded out. It is
 * hidden by default and only revealed by script, so a visitor without JS never
 * sees it and can never be trapped behind it.
 */
.mdm-loader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(700px 500px at 30% 30%, rgba(46,229,168,0.16), transparent 70%),
    radial-gradient(700px 500px at 75% 70%, rgba(34,166,216,0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-end) 100%);
  opacity: 1;
  transition: opacity .45s ease;
}
.mdm-loader[hidden] { display: none; }
.mdm-loader.is-done { opacity: 0; pointer-events: none; }

.mdm-loader__mark { width: 54px; height: auto; display: block; }
.mdm-loader__word {
  font-family: var(--f-body); font-weight: 300; font-size: 24px;
  letter-spacing: -0.005em; color: var(--ink-wordmark);
}
.mdm-loader__word b { font-weight: 600; }
.mdm-loader__msg {
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); text-align: center;
  max-width: 34ch; line-height: 1.9; margin: 0;
  padding: 0 24px;
}
.mdm-loader__bar {
  width: 168px; height: 2px; border-radius: 999px;
  background: rgba(14,42,42,0.10);
  overflow: hidden;
}
.mdm-loader__fill {
  display: block; height: 100%; width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-deep), var(--cyan));
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}


/* 15c. PAGE-TRANSITION COVER ============================================== */

/*
 * A dark panel — the site's CTA-block colour — that rises from the bottom to
 * cover the outgoing page, then drops away on the next page to reveal it.
 * Driven entirely by mintdm.js; with no JS it stays parked off-screen and does
 * nothing. z-index sits above the sticky header and the first-load overlay.
 */
.mdm-pagecover {
  position: fixed; inset: 0; z-index: 1000;
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
  background:
    radial-gradient(700px 500px at 30% 40%, rgba(46,229,168,0.14), transparent 70%),
    radial-gradient(600px 400px at 75% 80%, rgba(34,166,216,0.12), transparent 70%),
    linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
}
/* Arriving via an internal link: the pre-paint script adds .mdm-navin, holding
   the cover down over the page until the reveal animation lifts it. */
.mdm-navin .mdm-pagecover { transform: translateY(0); }


/* 15c. BOOKING WIZARD ===================================================== */

.mdm-wiz {
  background: var(--card-fill-strong);
  border: 1px solid var(--border-hairline);
  border-radius: 26px; padding: 40px; max-width: 760px; margin: 0 auto;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--sh-card-strong);
}
.mdm-wiz__rail { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.mdm-wiz__pip { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.mdm-wiz__rail::before { content: ""; position: absolute; top: 15px; left: 10%; right: 10%; height: 2px; background: var(--sunken); z-index: 0; border-radius: 2px; }
.mdm-wiz__rail::after { content: ""; position: absolute; top: 15px; left: 10%; height: 2px; border-radius: 2px; z-index: 0; width: calc((100% - 20%) * var(--wiz-progress, 0)); background: linear-gradient(90deg, var(--mint-deep), var(--cyan)); transition: width .5s cubic-bezier(.22,.61,.36,1); }
.mdm-wiz__pipnum { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--sunken); font-size: 12px; color: var(--ink-faint); transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease; }
/* The rail's track and fill run underneath every circle, so the circle has to
   be opaque or the line shows through the number. Same 12% mint tint, laid
   over the surface colour instead of over the line. */
.mdm-wiz__pip.is-current .mdm-wiz__pipnum { border-color: var(--mint-deep); color: var(--mint-text); background-color: var(--surface); background-image: linear-gradient(rgba(46,229,168,0.12), rgba(46,229,168,0.12)); transform: scale(1.06); }
.mdm-wiz__pip.is-current { color: var(--ink); }
.mdm-wiz__pip.is-done .mdm-wiz__pipnum { background: linear-gradient(180deg, var(--mint), var(--mint-deep)); border-color: var(--mint-deep); color: var(--dark-3); }
.mdm-wiz__pip.is-done { color: var(--ink-soft); }
.mdm-wiz__viewport { position: relative; }
.mdm-wiz__step[hidden] { display: none; }
.mdm-wiz__step { display: block; }
.js .mdm-wiz__step.is-enter { animation: wizIn .5s cubic-bezier(.22,.61,.36,1); }
.js .mdm-wiz[data-dir="back"] .mdm-wiz__step.is-enter { animation: wizInBack .5s cubic-bezier(.22,.61,.36,1); }
@keyframes wizIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes wizInBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.mdm-wiz__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.mdm-wiz__back { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); padding: 6px 2px; transition: color .18s ease; }
.mdm-wiz__back:hover { color: var(--ink); }
.mdm-wiz__note { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-muted); letter-spacing: 0.04em; margin: 18px 0 0; }
.mdm-cal__nav { display: flex; align-items: center; gap: 14px; }
.mdm-cal__arrow { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border-input); color: var(--ink); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.mdm-cal__arrow:hover:not(:disabled) { border-color: var(--cyan-deep); transform: translateY(-1px); }
.mdm-cal__arrow:disabled { opacity: .35; cursor: not-allowed; }
.mdm-cal__month { font-family: var(--f-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; min-width: 9.5ch; text-align: center; }
.mdm-cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.mdm-cal__dow span { text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.mdm-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mdm-cal__day { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid transparent; background: var(--surface); color: var(--ink); font-family: var(--f-body); font-size: 15px; cursor: pointer; position: relative; transition: background .16s ease, border-color .16s ease, transform .16s ease, color .16s ease; }
.mdm-cal__day:hover:not([disabled]) { border-color: var(--cyan-deep); transform: translateY(-2px); }
.mdm-cal__day[disabled] { color: var(--ink-faint); opacity: .4; cursor: default; background: transparent; }
.mdm-cal__day.is-today { font-weight: 600; box-shadow: inset 0 0 0 1px var(--border-input); }
.mdm-cal__day.is-selected { background: linear-gradient(180deg, var(--cyan-bright), var(--cyan-deep)); color: #FFFFFF; border-color: transparent; box-shadow: var(--sh-btn-sm); }
.mdm-cal__day--blank { background: none; border: none; cursor: default; }
.mdm-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; min-height: 120px; }
.mdm-slot { padding: 13px 10px; border-radius: 12px; border: 1px solid var(--border-input); background: var(--surface); font-family: var(--f-body); font-size: 15px; color: var(--ink); cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease, transform .16s ease, color .16s ease; }
.mdm-slot:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.mdm-slot.is-selected { background: linear-gradient(180deg, var(--cyan-bright), var(--cyan-deep)); color: #FFFFFF; border-color: transparent; box-shadow: var(--sh-btn-sm); }
.mdm-slots__empty, .mdm-slots__loading { grid-column: 1 / -1; text-align: center; padding: 34px 20px; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.mdm-slots__spin { width: 26px; height: 26px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--sunken); border-top-color: var(--cyan-deep); animation: wizSpin .8s linear infinite; }
@keyframes wizSpin { to { transform: rotate(360deg); } }
.mdm-wiz__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.mdm-wiz__step--done { text-align: center; padding: 20px 0; }
.mdm-wiz__check { margin: 0 auto 22px; }
.mdm-wiz__step--done .mdm-sent__title, .mdm-wiz__step--done .mdm-sent__body { margin-left: auto; margin-right: auto; }
.mdm-wiz__ticket { margin: 26px auto 0; max-width: 420px; border: 1px solid var(--border-hairline); border-radius: 16px; background: var(--card-fill); overflow: hidden; }
.mdm-wiz__ticket-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; text-align: left; }
.mdm-wiz__ticket-row + .mdm-wiz__ticket-row { border-top: 1px solid var(--border-hairline); }
.mdm-wiz__ticket-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.mdm-wiz__ticket-v { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--ink); text-align: right; }
.mdm-wiz__doneactions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.mdm-wiz__noscript { text-align: center; padding: 20px 0; }
.mdm-wiz [data-wiz-error] { margin-top: 22px; }

/* --- Qualifying questions -------------------------------------------------
   Five steps before the calendar. Each is a heading, an optional hint, and a
   set of tap targets; single-choice steps advance on tap, so the options have
   to read as buttons, not radio labels. */

.mdm-q__count {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mint-text); margin-bottom: 12px;
}
.mdm-q__title {
  font-family: var(--f-display); font-size: 30px; font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.18; color: var(--ink);
  margin: 0 0 10px; max-width: 20ch;
}
.mdm-q__title:focus { outline: none; }
.mdm-q__hint {
  font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--ink-soft);
  margin: 0 0 24px; max-width: 46ch;
}
.mdm-q__title + .mdm-q__opts,
.mdm-q__title + .mdm-q__grid { margin-top: 24px; }

.mdm-q__opts { display: grid; gap: 10px; }
.mdm-q__opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 54px 18px 22px; border-radius: 16px;
  border: 1px solid var(--border-input); background: var(--surface);
  position: relative;
  transition: border-color .16s ease, background .16s ease,
              transform .16s ease, box-shadow .16s ease;
}
.mdm-q__opt:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.mdm-q__opt-label {
  display: block; font-family: var(--f-display); font-size: 17px;
  font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.mdm-q__opt-desc {
  display: block; margin-top: 5px; font-size: 14px; line-height: 1.55;
  font-weight: 300; color: var(--ink-soft);
}
/* Tick mark — drawn always, revealed on selection so nothing reflows. */
.mdm-q__opt::after {
  content: ""; position: absolute; top: 50%; right: 20px;
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  border: 1.5px solid var(--border-input); background: transparent;
  transition: background .16s ease, border-color .16s ease;
}
.mdm-q__opt.is-selected {
  border-color: var(--mint-deep);
  background: rgba(46,229,168,0.07);
  box-shadow: var(--sh-btn-sm);
}
.mdm-q__opt.is-selected::after {
  border-color: var(--mint-deep);
  background: var(--mint-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303171C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
.mdm-q__opt--exclusive { margin-top: 4px; }

/* Specialty chips — a long fixed list, so density matters more than desc. */
.mdm-q__grid { display: flex; flex-wrap: wrap; gap: 9px; }
.mdm-q__chip {
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-input); background: var(--surface);
  font-family: var(--f-body); font-size: 14.5px; color: var(--ink);
  transition: border-color .16s ease, background .16s ease,
              transform .16s ease, color .16s ease;
}
.mdm-q__chip:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.mdm-q__chip.is-selected {
  background: linear-gradient(180deg, var(--cyan-bright), var(--cyan-deep));
  color: #FFFFFF; border-color: transparent; box-shadow: var(--sh-btn-sm);
}

.mdm-q__reveal { margin-top: 22px; animation: wizReveal .34s cubic-bezier(.22,.61,.36,1); }
.mdm-q__reveal[hidden] { display: none; }
.mdm-q__reveal .mdm-field { margin-bottom: 16px; }
@keyframes wizReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mdm-q__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 26px;
}
.mdm-q__nav .mdm-wiz__back { order: 2; }
.mdm-q__nav .mdm-btn { order: 1; margin-left: auto; }
.mdm-q__nav .mdm-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.mdm-wiz__back--rec { margin-right: auto; }

/* --- The recommendation step --------------------------------------------- */

.mdm-rec {
  border: 1px solid var(--border-hairline); border-radius: 20px;
  background: var(--card-fill); padding: 26px 28px; margin: 6px 0 28px;
}
.mdm-rec__lead {
  font-size: 16px; line-height: 1.65; font-weight: 300;
  color: var(--ink-soft); margin: 0 0 20px;
}
.mdm-rec__list { margin: 0; }
.mdm-rec__link {
  display: inline-block; margin-top: 20px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mint-text);
  text-decoration: none; border-bottom: 1px solid rgba(31,190,140,0.4);
  padding-bottom: 2px; transition: border-color .18s ease;
}
.mdm-rec__link:hover { border-bottom-color: var(--mint-deep); }
.mdm-rec__note {
  margin: 20px 0 0; padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  font-size: 14px; line-height: 1.6; font-weight: 300; color: var(--ink-muted);
}

/* --- Slots + consent ------------------------------------------------------ */

.mdm-slots__wrap[hidden] { display: none; }
.mdm-slots__wrap { animation: wizReveal .34s cubic-bezier(.22,.61,.36,1); }

.mdm-consent {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 16px 18px; margin: 0 0 24px; border-radius: 14px;
  border: 1px solid var(--border-hairline); background: var(--card-fill);
}
.mdm-consent input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--mint-deep); cursor: pointer;
}
.mdm-consent__text {
  font-size: 13px; line-height: 1.6; font-weight: 300; color: var(--ink-muted);
}

.mdm-wiz__mock {
  margin: -8px 0 26px; padding: 11px 16px; border-radius: 12px;
  background: rgba(46,229,168,0.09); border: 1px solid rgba(31,190,140,0.28);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--mint-text); text-align: center;
}



/* Content Engine — per-surface explainer under each surface heading */
.mdm-surface__lede {
  font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
  font-weight: 300; margin: -14px 0 26px; max-width: 46ch;
}
.mdm-surface__lede strong { font-weight: 500; color: var(--ink); }

/* 15e. SERVICE SEQUENCE (home) ============================================
   Website Foundation is the prerequisite, so it gets a full-width card ahead
   of the pair rather than sitting beside them as an equal option. */

.mdm-seq__intro {
  font-size: 17px; line-height: 1.7; font-weight: 300;
  color: var(--ink-soft); max-width: 68ch; margin: -14px 0 30px;
}
.mdm-seq__intro strong { font-weight: 500; color: var(--ink); }

.mdm-service--wide { margin-bottom: 0; }

/* The connector between step 01 and the step 02 pair. The rules are drawn
   with flex siblings so the label stays centred at any width. */
.mdm-seq__then {
  display: flex; align-items: center; gap: 18px;
  margin: 26px 0; color: var(--ink-muted);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.mdm-seq__then::before, .mdm-seq__then::after {
  content: ""; flex: 1 1 0; height: 1px;
  background: var(--border-hairline);
}
.mdm-seq__then span { flex: 0 0 auto; }

/* 15f. LEGAL / LONG-FORM PROSE ============================================
   Terms, policies. Measure capped for readability; nothing decorative. */

.mdm-legal {
  max-width: 76ch; margin: 0 auto;
  background: var(--card-fill);
  border: 1px solid var(--border-hairline);
  border-radius: 26px; padding: 48px 52px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mdm-legal__h {
  font-family: var(--f-display);
  font-size: 21px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink); margin: 38px 0 12px;
}
.mdm-legal__h:first-child { margin-top: 0; }
.mdm-legal p {
  font-size: 15.5px; line-height: 1.75; font-weight: 300;
  color: var(--ink-soft); margin: 0 0 14px;
}
.mdm-legal a { color: var(--mint-text); text-decoration: underline; text-underline-offset: 2px; }
.mdm-legal a:hover { color: var(--ink); }
.mdm-legal__list { margin: 0 0 16px; padding-left: 20px; }
.mdm-legal__list li {
  font-size: 15.5px; line-height: 1.7; font-weight: 300;
  color: var(--ink-soft); margin-bottom: 7px;
}
.mdm-legal__list li strong { font-weight: 500; color: var(--ink); }
.mdm-legal__addr {
  padding: 18px 22px; border-radius: 14px;
  background: var(--card-fill-weak);
  border: 1px solid var(--border-hairline);
  font-style: normal;
}

@media (max-width: 640px) {
  .mdm-legal { padding: 30px 20px; border-radius: 18px; }
  .mdm-legal__h { font-size: 18.5px; margin-top: 30px; }
  .mdm-legal p { font-size: 15px; }
}

/* 15d. WITH / WITHOUT COMPARISON ========================================== */

.mdm-vs {
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  background: var(--card-fill);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.mdm-vs__head,
.mdm-vs__row {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1.35fr;
  gap: 0;
  align-items: stretch;
}
.mdm-vs__head { border-bottom: 1px solid var(--border-hairline); }
.mdm-vs__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 18px 24px;
}
.mdm-vs__label--no  { color: var(--red-soft);  background: rgba(216,108,108,0.07); }
.mdm-vs__label--yes { color: var(--mint-text); background: rgba(46,229,168,0.09); }

.mdm-vs__row + .mdm-vs__row { border-top: 1px solid var(--hair); }
.mdm-vs__topic {
  padding: 20px 24px;
  font-family: var(--f-display); font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  background: linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  display: flex; align-items: center;
}
.mdm-vs__cell {
  padding: 20px 24px;
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  align-items: start;
  font-size: 15px; line-height: 1.55;
}
.mdm-vs__cell--no  { color: var(--ink-soft); background: rgba(216,108,108,0.05); }
.mdm-vs__cell--yes { color: var(--ink);      background: rgba(46,229,168,0.07); }

.mdm-vs__mark { width: 12px; height: 12px; margin-top: 5px; position: relative; }
.mdm-vs__mark--no::before,
.mdm-vs__mark--no::after {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 12px; height: 2px; background: var(--red); border-radius: 2px;
}
.mdm-vs__mark--no::before { transform: rotate(45deg); }
.mdm-vs__mark--no::after  { transform: rotate(-45deg); }
.mdm-vs__mark--yes::before {
  content: ""; position: absolute; left: 1px; top: 0;
  width: 6px; height: 10px;
  border-right: 2px solid var(--mint-deep);
  border-bottom: 2px solid var(--mint-deep);
  transform: rotate(42deg); border-radius: 1px;
}
.mdm-vs__foot {
  margin: 22px 0 0; font-size: 15px; line-height: 1.6;
  color: var(--ink-muted); font-weight: 300; max-width: 62ch;
}


/* comparison — stack into labelled cards below 860px */
@media (max-width: 860px) {
  .mdm-vs__head { display: none; }
  .mdm-vs__row { grid-template-columns: 1fr; }
  .mdm-vs__row + .mdm-vs__row { border-top: 1px solid var(--border-hairline); }
  .mdm-vs__topic { padding: 16px 20px; font-size: 17px; }
  .mdm-vs__cell { padding: 12px 20px; }
  .mdm-vs__cell--no  { padding-top: 14px; }
  .mdm-vs__cell--yes { padding-bottom: 22px; }
  /* the columns lose their headers when stacked, so label them inline */
  .mdm-vs__cell::before {
    grid-column: 1 / -1;
    font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 2px;
  }
  .mdm-vs__cell--no::before  { content: "Without"; color: var(--red-soft); }
  .mdm-vs__cell--yes::before { content: "With";    color: var(--mint-text); }
}

/* 16. MOTION ============================================================== */

/*
 * Entrance choreography. Three rules keep it feeling premium rather than busy:
 *   1. Everything animates ONCE. Nothing loops, nothing replays on scroll-back.
 *   2. Only transform and opacity — compositor-only, no paint, no layout.
 *   3. Nothing moves far. 14px and 0.985 scale read as "settling", not "flying".
 *
 * Initial hidden state is scoped to .js, applied by an inline script in the
 * head. With JS off, or if the script fails, every element is simply visible.
 */

.js [data-anim] {
  opacity: 0;
  will-change: opacity, transform;
}
.js [data-anim="rise"]  { transform: translateY(14px); }
.js [data-anim="fade"]  { transform: none; }
.js [data-anim="pop"]   { transform: translateY(10px) scale(.985); }

.js [data-anim].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .62s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms),
    transform .72s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms);
}
/* Release the compositor hint once the element has arrived. */
.js [data-anim].is-done { will-change: auto; }

/*
 * Typewriter. The text is present and occupies its full width from the first
 * frame; only its paint is masked, so this cannot shift layout. A caret rides
 * the reveal and retires when it finishes.
 */
.js [data-type] {
  clip-path: inset(0 100% 0 0);
  position: relative;
}
.js [data-type].is-in {
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--type-dur, 1100ms) steps(var(--type-steps, 24), end) var(--d, 0ms);
}
.js [data-type].is-in::after {
  content: "";
  position: absolute; top: 0.1em; right: -0.42em;
  width: 0.06em; height: 0.95em;
  background: var(--accent);
  animation: caret .75s steps(1, end) 6;
  animation-delay: var(--d, 0ms);
}
.js [data-type].is-done::after { display: none; }

@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse  { 0%, 100% { opacity: .55; }            50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  /* No page-cover motion — it stays off-screen and inert. */
  .mdm-pagecover, .mdm-navin .mdm-pagecover { transform: translateY(100%) !important; transition: none !important; }
  .mdm-float--a, .mdm-status-dot, .mdm-loader__fill { animation: none !important; }
  .mdm-loader { transition: none !important; }
  .mdm-loader__fill { width: 100%; }
  .mdm-btn:hover { transform: none; }
  * { scroll-behavior: auto !important; }

  /* Entrances collapse to "already there" — no motion, nothing hidden. */
  .js [data-anim],
  .js [data-anim].is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js [data-type],
  .js [data-type].is-in {
    clip-path: none !important;
    transition: none !important;
  }
  .js [data-type].is-in::after { display: none; }
}


/* 17. RESPONSIVE — KEEP THIS BLOCK LAST =================================== */

@media (max-width: 1280px) {
  :root {
    --col-pad: 32px;
    --h1: 72px;
    --h1-contact: 68px;
    --h2: 44px;
    --h2-cta: 64px;
  }
  .mdm-h2--56 { font-size: 44px; }
  .mdm-h2--66 { font-size: 50px; }
  .mdm-interlude__h2 { font-size: 42px; }
  .mdm-hero__grid, .mdm-split, .mdm-why { gap: 56px; }
  .mdm-cta { padding: 68px 48px; }
  .mdm-cta__grid { gap: 56px; }
}

@media (max-width: 1024px) {
  .mdm-hero__grid,
  .mdm-contact,
  .mdm-split,
  .mdm-why,
  .mdm-cta__grid,
  .mdm-interlude__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .mdm-quad { grid-template-columns: 1fr 1fr; }
  .mdm-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .mdm-steps__line { display: none; }
  .mdm-quotes { grid-template-columns: 1fr 1fr; }
  .mdm-trio { grid-template-columns: 1fr; }
  /* The interlude grid is still 2-up here while the padding reduction hasn't
     fired, which squeezes its headline onto four lines. Step the type down. */
  .mdm-interlude__h2 { font-size: 38px; }
  .mdm-split__sticky { position: static; }
  .mdm-lede, .mdm-split__lede, .mdm-why__lede { max-width: none; }
  .mdm-fcard { min-height: 0; }
  .mdm-phase { min-height: 0; }
  .mdm-interlude { padding: 48px; }
}

@media (max-width: 860px) {
  .mdm-nav {
    display: none;
    position: absolute; top: 100%; left: var(--col-pad); right: var(--col-pad);
    z-index: 20;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border-hairline);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: var(--sh-card-strong);
  }
  .mdm-nav[data-open="true"] { display: flex; }
  .mdm-nav a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .mdm-nav a:hover { background: rgba(14,42,42,0.04); }
  .mdm-nav-toggle { display: inline-flex; }
  .mdm-header { position: relative; flex-wrap: wrap; padding: 20px var(--col-pad); }

  /* One call-to-action at a time: the header button steps aside for the menu's
     own "Book now" as soon as the panel exists. */
  .mdm-header > .mdm-btn--nav { display: none; }
  .mdm-nav .mdm-nav__cta {
    display: inline-flex;
    justify-content: center;
    margin: 8px 4px 4px;
    padding: 15px 22px;
    font-size: 15.5px;
  }
  .mdm-nav__cta:hover { color: #FFFFFF; }
  /* Separator drawn on the panel itself — a pseudo-element on the pill would
     have no positioned ancestor to anchor to and would drift. */
  .mdm-nav a:not(.mdm-nav__cta):last-of-type { margin-bottom: 8px; }
  .mdm-nav__cta { border-top: 0; box-shadow: 0 -1px 0 0 transparent, var(--sh-btn-sm); }

  .mdm-duo, .mdm-fit, .mdm-quad, .mdm-quotes, .mdm-form__grid { grid-template-columns: 1fr; }
  .mdm-steps { grid-template-columns: 1fr; row-gap: 32px; }
  /* .mdm-facts had no responsive rule at all: four columns hit their
     min-content floor at ~405px and the fourth fact was silently clipped by
     the shell's overflow-x:hidden — content loss with no scrollbar to find it. */
  .mdm-facts { grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 56px; }
}

@media (max-width: 640px) {
  :root {
    --col-pad: 20px;
    --h1: 46px;
    --h1-contact: 44px;
    --h2: 34px;
    --h2-cta: 38px;
  }
  body { font-size: 15.5px; }

  .mdm-h2--56 { font-size: 34px; }
  .mdm-h2--66 { font-size: 36px; }
  .mdm-interlude__h2 { font-size: 32px; }
  .mdm-sent__title { font-size: 30px; }

  .mdm-section, .mdm-section--tall, .mdm-section--flush { padding-bottom: 68px; }
  .mdm-section--pad, .mdm-section--wide { padding-top: 40px; padding-bottom: 40px; }
  .mdm-hero { padding-top: 32px; padding-bottom: 64px; }
  .mdm-hero--lead { padding-top: 32px; padding-bottom: 64px; }
  .mdm-hero--contact { padding-top: 28px; padding-bottom: 40px; }
  .mdm-hero__actions { margin-top: 32px; }
  .mdm-crumb { margin-bottom: 32px; font-size: 11px; gap: 10px; }
  .mdm-crumb__status { margin-left: 0; width: 100%; }

  .mdm-service, .mdm-fit__card { padding: 28px; border-radius: 20px; }
  .mdm-form-card { padding: 28px; border-radius: 20px; }
  .mdm-card, .mdm-fcard--hi, .mdm-phase, .mdm-side__card, .mdm-quote { padding: 24px; }
  .mdm-rows { padding: 4px 22px; }
  .mdm-row { grid-template-columns: auto 1fr; gap: 16px; }
  .mdm-row__arrow { display: none; }
  .mdm-interlude { padding: 32px 24px; border-radius: 22px; }
  .mdm-cta { padding: 48px 28px; border-radius: 24px; }
  .mdm-meta { grid-template-columns: 1fr; gap: 18px; padding: 22px; }

  /* Header CTA is already hidden from 860px down, where the menu's own
     "Book now" takes over. Scoped with > so it can never match that button,
     which lives inside .mdm-nav. */
  .mdm-header > .mdm-btn--nav { display: none; }

  .mdm-facts { margin-top: 44px; gap: 22px 24px; }
  /* Footer links were ~20px tall — well under a usable tap target. */
  .mdm-footer__links { gap: 8px 20px; }
  .mdm-footer__links a { padding: 12px 0; display: inline-block; }
  .mdm-logo, .mdm-footer__logo { padding: 6px 0; }

  .mdm-float--a, .mdm-float--b { display: none; }
  .mdm-head { margin-bottom: 36px; gap: 20px; }
  .mdm-h2--gap { margin-bottom: 36px; }
  .mdm-btn--xl { padding: 18px 26px; font-size: 16px; }
  .mdm-footer__inner { justify-content: flex-start; gap: 20px; }
}

/* booking wizard — mobile: tighten padding so calendar cells stay tappable */
@media (max-width: 640px) {
  .mdm-wiz { padding: 26px 16px; }
  .mdm-cal__grid, .mdm-cal__dow { gap: 5px; }
  .mdm-cal__day { font-size: 14px; border-radius: 10px; }
  .mdm-slots { grid-template-columns: repeat(3, 1fr); }
  .mdm-wiz__piplabel { font-size: 9.5px; }
  .mdm-wiz__ticket-v { font-size: 15px; }

  /* Five phase labels won't fit side by side on a phone — the numbered
     circles plus the filled rail still say where you are. */
  .mdm-wiz__piplabel { display: none; }
  .mdm-wiz__pipnum { width: 26px; height: 26px; font-size: 11px; }
  .mdm-wiz__rail { margin-bottom: 28px; }
  .mdm-wiz__rail::before, .mdm-wiz__rail::after { top: 13px; }

  .mdm-q__title { font-size: 24px; max-width: none; }
  .mdm-q__opt { padding: 16px 48px 16px 18px; border-radius: 14px; }
  .mdm-q__opt-label { font-size: 16px; }
  .mdm-q__opt-desc { font-size: 13.5px; }
  .mdm-q__chip { padding: 11px 15px; font-size: 13.5px; }  /* keeps the tap target at 44px */
  .mdm-q__nav .mdm-btn { width: 100%; justify-content: center; order: 1; }
  .mdm-q__nav .mdm-wiz__back { order: 2; }
  .mdm-rec { padding: 22px 18px; border-radius: 16px; }
}
