/* ==========================================================================
   MamaMotion — Design System  (concept v3 · "Soft Bento")
   Brand-compliant evolution toward a playful, app-like bento dashboard look.

   Brand colors (from 2025 style guide):
     #FFF5F5 cream · #FBE7E7 blush · #251110 ink · #CBB5B5 mauve · #B89796 rose
   Type (style guide): Host Grotesk (text + subheader). Astonpoliz = display
     header (not web-available → Host Grotesk 700 stands in). BD Supper = logo.

   The brand palette stays DOMINANT (cream/blush canvas, ink type, rose/mauve
   accents). A small set of soft "assistive" pastels (lavender/mint/butter/
   peach) + gentle data-viz hues add the playful bento energy — used sparingly.
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* ---- Brand palette (exact, source of truth) ---- */
  --cream: #fff5f5;
  --blush: #fbe7e7;
  --ink: #251110;
  --mauve: #cbb5b5;
  --rose: #b89796;

  /* ---- Brand-derived (same hue family) ---- */
  --ink-2: #3a201d;
  --blush-2: #f7d9d9;
  --blush-deep: #f2cccc;
  --rose-700: #8b5b5a; /* deep rose — links, AA text on light */
  --rose-600: #7a4d4c;
  --line: #f1dede;
  --line-2: #e8cfcf;

  /* ---- Accent role ----
     Brand-only by default: the accent IS ink (the only palette color with
     enough contrast to carry emphasis). An optional highlight hue can be
     switched on via [data-accent] below (previewable in Tweaks). */
  --accent: var(--ink);
  --accent-600: var(--ink-2);

  /* ---- Text ---- */
  --text: #4a3634;
  --text-soft: #8a7370;
  --heading: var(--ink);
  --accent-ink: var(--rose-700);

  /* ---- Assistive pastels (playful accent tiles) ---- */
  --lav: #dfdcf4;
  --lav-ink: #5f59a0;
  --mint: #cfe7d8;
  --mint-ink: #4c8268;
  --butter: #f7e7a6;
  --butter-ink: #8a6f16;
  --peach: #f8dccb;
  --peach-ink: #b3694a;
  --sky: #d4e4f1;
  --sky-ink: #4f7299;

  /* ---- Warm glow tone (terracotta) — for soft background "glow" pools.
     Same hue as [data-accent="terracotta"], promoted to a standalone token so
     the hero/section glow can warm the cream canvas without changing --accent. */
  --terracotta: #bd6242;

  /* ---- Data-viz (soft, for rings/charts) ---- */
  --viz-rose: #cf6f93;
  --viz-purple: #9a82d6;
  --viz-green: #7cb795;
  --viz-track: #f3e6e6;

  /* ---- Type (brand: Poppins titles, Open Sans body) ---- */
  --font:
    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: clamp(38px, 7vw, 76px);
  --fs-h1: clamp(31px, 5vw, 54px);
  --fs-h2: clamp(26px, 3.6vw, 40px);
  --fs-h3: clamp(19px, 2vw, 24px);
  --fs-lead: clamp(17px, 1.7vw, 20px);
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-xs: 13px;
  --star: #f0c869; /* review/rating stars (gold) */
  /* per-course identity (source: live single-product pages' "Muut
     valmennuksemme" cards) — use for tags/badges/cards referring to a course */
  --course-flow-bg: #ffffff;
  --course-flow-ink: var(--rose-700);
  --course-bloom-bg: var(--rose);
  --course-bloom-ink: var(--blush);
  --course-glow-bg: var(--mauve);
  --course-glow-ink: var(--ink);
  --course-plus-bg: var(--ink);
  --course-plus-ink: var(--blush);
  --fs-eyebrow: 12.5px;

  --lh-tight: 1.02;
  --lh-head: 1.08;
  --lh-body: 1.65;

  /* ---- Spacing ---- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 56px;
  --s10: 72px;
  --section-y: clamp(48px, 8vw, 104px);
  --container: 1220px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 44px);
  --bento-gap: clamp(14px, 1.6vw, 22px);

  /* ---- Radius (driven by [data-radius]) ---- */
  --r-sm: 16px;
  --r: 24px;
  --r-lg: 32px;
  --r-xl: 40px;
  --pill: 999px;

  /* ---- Shadow / motion ---- */
  --sh-sm: 0 1px 2px rgba(37, 17, 16, 0.04), 0 8px 24px rgba(37, 17, 16, 0.05);
  --sh-md: 0 16px 44px rgba(37, 17, 16, 0.09);
  --sh-lg: 0 30px 70px rgba(37, 17, 16, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.22s;
}

/* 2. RADIUS MODES (Tweak: softness) ======================================= */
[data-radius="crisp"] {
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --pill: 10px;
}
[data-radius="balanced"] {
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 26px;
  --r-xl: 32px;
  --pill: 999px;
}
[data-radius="soft"] {
  --r-sm: 18px;
  --r: 26px;
  --r-lg: 34px;
  --r-xl: 44px;
  --pill: 999px;
}

/* Optional highlight hue (Tweak: korostusväri). Default = brand-only (ink). */
[data-accent="berry"] {
  --accent: #c2516c;
  --accent-600: #a83e58;
}
[data-accent="terracotta"] {
  --accent: #bd6242;
  --accent-600: #a04d31;
}
[data-accent="plum"] {
  --accent: #7e3350;
  --accent-600: #662840;
}

/* 3. BASE ================================================================== */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-ink);
  text-decoration: none;
}
::selection {
  background: var(--rose);
  color: #fff;
}

/* 4. TYPOGRAPHY ============================================================ */
.mm-display,
.mm-h1,
.mm-h2,
.mm-h3 {
  font-family: var(--font-head);
  color: var(--heading);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mm-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}
.mm-h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-head);
}
.mm-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
}
.mm-h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}
/* mixed-weight display: wrap secondary words in <span class="mm-thin"> */
.mm-thin {
  font-weight: 400;
}
.mm-display em,
.mm-h1 em,
.mm-h2 em {
  font-style: normal;
  color: var(--accent);
}

.mm-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  text-wrap: pretty;
}
.mm-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0;
  text-wrap: pretty;
}
.mm-sm {
  font-size: var(--fs-sm);
}
.mm-muted {
  color: var(--text-soft);
}
.mm-measure {
  max-width: 56ch;
}
.mm-center {
  text-align: center;
}
.mm-center .mm-lead,
.mm-center .mm-body {
  margin-left: auto;
  margin-right: auto;
}

.mm-eyebrow {
  font-family: var(--font);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  white-space: nowrap;
}
.mm-eyebrow .mm-spark {
  width: 15px;
  height: 15px;
}

/* 5. LAYOUT ================================================================ */
.mm-section {
  padding: var(--section-y) 0;
  position: relative;
}
.mm-section--tight {
  padding: clamp(32px, 5vw, 60px) 0;
}
.mm-section--blush {
  background: var(--blush);
}
.mm-section--ink {
  background: var(--ink);
  color: rgba(255, 245, 245, 0.82);
}
.mm-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.mm-container--narrow {
  max-width: var(--container-narrow);
}
.mm-stack > * + * {
  margin-top: var(--s5);
}
.mm-stack-sm > * + * {
  margin-top: var(--s3);
}
.mm-section-head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}
.mm-section-head.mm-center {
  text-align: center;
}
.mm-section-head .mm-lead {
  margin-top: var(--s4);
  color: var(--text-soft);
}

/* ---- Bento grid ---- */
.mm-bento {
  display: grid;
  gap: var(--bento-gap);
  /* minmax(0, 1fr) (not bare 1fr = minmax(auto,1fr)) so a content-heavy item
     — e.g. a flex slider track — can't push its track past the container and
     blow out the grid on mobile. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, auto);
}
.mm-bento--6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .mm-bento--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.col-2 {
  grid-column: span 2;
}
.col-3 {
  grid-column: span 3;
}
.col-4 {
  grid-column: span 4;
}
.col-6 {
  grid-column: span 6;
}
.row-2 {
  grid-row: span 2;
}
@media (max-width: 759px) {
  .mm-bento [class*="col-"] {
    grid-column: span 2;
  }
  .mm-bento .row-2 {
    grid-row: span 1;
  }
}

.mm-grid {
  display: grid;
  gap: var(--bento-gap);
}
.mm-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.mm-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.mm-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

/* 6. TILES / CARDS ========================================================= */
.mm-tile {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  min-height: 0;
}
a.mm-tile,
.mm-tile--link {
  cursor: pointer;
}
a.mm-tile:hover,
.mm-tile--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.mm-tile--white {
  background: #fff;
  box-shadow: var(--sh-sm);
}
.mm-tile--blush {
  background: var(--blush);
}
.mm-tile--cream {
  background: var(--cream);
  border: 1px solid var(--line);
}
.mm-tile--mauve {
  background: var(--mauve);
}
.mm-tile--rose {
  background: var(--rose);
}
.mm-tile--lav {
  background: var(--lav);
}
.mm-tile--mint {
  background: var(--mint);
}
.mm-tile--butter {
  background: var(--butter);
}
.mm-tile--peach {
  background: var(--peach);
}
.mm-tile--sky {
  background: var(--sky);
}
.mm-tile--ink {
  background: var(--ink);
  color: rgba(255, 245, 245, 0.84);
}
.mm-tile__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
}
.mm-tile--ink .mm-tile__title {
  color: var(--cream);
}
.mm-tile__text {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
}
.mm-tile--ink .mm-tile__text {
  color: rgba(255, 245, 245, 0.7);
}
.mm-tile__cta {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 17, 16, 0.08);
  color: var(--ink);
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.mm-tile__cta svg {
  width: 18px;
  height: 18px;
}
a.mm-tile:hover .mm-tile__cta,
.mm-tile--link:hover .mm-tile__cta {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(0) scale(1.06);
}
.mm-tile--ink .mm-tile__cta {
  background: rgba(255, 245, 245, 0.16);
  color: var(--cream);
}
.mm-tile__spacer {
  flex: 1;
  min-height: 28px;
}
/* eyebrow chip inside tiles */
.mm-tile__kicker {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.mm-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--sh-sm);
}
.mm-card--blush {
  background: var(--blush);
  box-shadow: none;
}

/* 7. BUTTONS / PILLS / CHIPS =============================================== */
.mm-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  padding: 18px 30px;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  min-height: 54px;
  transition:
    transform 0.32s var(--ease),
    background 0.32s var(--ease),
    color 0.32s var(--ease),
    border-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}
.mm-btn:hover {
  transform: translateY(-2px);
}
.mm-btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.08s;
}
.mm-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.mm-btn__arrow {
  transition: transform 0.32s var(--ease);
}
.mm-btn:hover .mm-btn__arrow {
  transform: translateX(4px);
}
/* sheen sweep on filled buttons */
.mm-btn--primary::after,
.mm-btn--rose::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}
.mm-btn--primary:hover::after,
.mm-btn--rose:hover::after {
  transform: translateX(130%);
}

.mm-btn--primary {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: var(--cream);
  box-shadow:
    0 8px 20px rgba(37, 17, 16, 0.24),
    0 2px 5px rgba(37, 17, 16, 0.18);
}
.mm-btn--primary:hover {
  box-shadow:
    0 14px 30px rgba(37, 17, 16, 0.3),
    0 3px 8px rgba(37, 17, 16, 0.2);
}
.mm-btn--rose {
  background: var(--rose);
  color: var(--ink);
  box-shadow:
    0 8px 20px rgba(139, 91, 90, 0.3),
    0 2px 5px rgba(139, 91, 90, 0.2);
}
.mm-btn--rose:hover {
  background: #ab8a89;
  box-shadow:
    0 14px 30px rgba(139, 91, 90, 0.38),
    0 3px 8px rgba(139, 91, 90, 0.24);
}
.mm-btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(37, 17, 16, 0.16);
  box-shadow: 0 1px 2px rgba(37, 17, 16, 0.04);
}
.mm-btn--secondary:hover {
  border-color: var(--ink);
  background: var(--cream);
  box-shadow: 0 8px 20px rgba(37, 17, 16, 0.1);
}
.mm-btn--ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 10px;
  padding-right: 10px;
  min-height: 0;
}
.mm-btn--ghost:hover {
  color: var(--accent);
  transform: none;
}
.mm-btn--block {
  display: flex;
  width: 100%;
}
.mm-btn--lg {
  padding: 20px 36px;
  font-size: 17px;
  min-height: 60px;
}
.mm-btn--sm {
  padding: 12px 20px;
  font-size: 14px;
  min-height: 44px;
}
.mm-section--ink .mm-btn--primary,
.mm-tile--ink .mm-btn--primary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.mm-section--ink .mm-btn--secondary,
.mm-tile--ink .mm-btn--secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 245, 245, 0.4);
}
.mm-section--ink .mm-btn--secondary:hover,
.mm-tile--ink .mm-btn--secondary:hover {
  background: rgba(255, 245, 245, 0.1);
  border-color: var(--cream);
}

/* circular icon button */
.mm-iconbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.mm-iconbtn:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.mm-iconbtn svg {
  width: 20px;
  height: 20px;
}

.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #fff;
  color: var(--accent-ink);
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: var(--pill);
}
.mm-pill--blush {
  background: var(--blush);
  border-color: transparent;
}
.mm-pill--ink {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}
.mm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.mm-chip:hover,
.mm-chip[aria-pressed="true"] {
  border-color: var(--rose);
  background: var(--blush);
}

.mm-link {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}
.mm-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.mm-link:hover::after {
  transform: scaleX(1);
}
.mm-link:hover .mm-btn__arrow {
  transform: translateX(3px);
}

/* 8. SIGNATURE VISUALS ===================================================== */
/* Gradient progress ring (conic + mask) */
.mm-ring {
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.mm-ring__track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 130deg,
    var(--viz-rose) 0deg,
    var(--viz-purple) 120deg,
    var(--viz-green) 235deg,
    var(--viz-track) 235deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 22px),
    #000 calc(100% - 21px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 22px),
    #000 calc(100% - 21px)
  );
}
.mm-ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.mm-ring__n {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mm-ring__l {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin-top: 4px;
}
.mm-ring__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  border: 3px solid var(--viz-rose);
}

/* Capsule data-viz (satisfaction bars) */
.mm-caps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(8px, 1.4vw, 16px);
  align-items: end;
}
.mm-caps__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mm-caps__track {
  width: clamp(34px, 5vw, 52px);
  height: 150px;
  background: var(--cream);
  border-radius: var(--pill);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.mm-caps__fill {
  width: 100%;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  padding-bottom: 10px;
  align-items: end;
}
.mm-caps__label {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}
.mm-caps__label .mm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Bubble matrix */
.mm-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fill, 26px);
  gap: 7px;
}
.mm-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--viz-track);
}
.mm-bubble.on {
  background: var(--mint);
}

/* Mood faces (brand-colored circles) */
.mm-moods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mm-mood {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
  border: 2px solid transparent;
}
.mm-mood:hover,
.mm-mood[aria-pressed="true"] {
  transform: translateY(-3px) scale(1.06);
}
.mm-mood svg {
  width: 26px;
  height: 26px;
}

/* App phone */
.mm-phone {
  position: relative;
  width: min(280px, 80%);
  aspect-ratio: 9/19;
  background: #160c0b;
  border-radius: 44px;
  padding: 9px;
  box-shadow: var(--sh-lg);
  margin: 0 auto;
}
.mm-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    120% 90% at 50% 8%,
    var(--cream) 0%,
    var(--blush) 55%,
    #f6d3d8 100%
  );
}
.mm-bottomnav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 58px;
  background: #fff;
  border-radius: var(--pill);
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.mm-bottomnav__i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-soft);
}
.mm-bottomnav__i.on {
  background: var(--rose-700);
  color: #fff;
}
.mm-bottomnav__i svg {
  width: 20px;
  height: 20px;
}

/* 9. ELEMENTS (accordion / tip / quote / form) ============================= */
.mm-acc__item {
  background: #fff;
  border-radius: var(--r);
  margin-bottom: var(--bento-gap);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.mm-acc__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding: clamp(18px, 2.4vw, 24px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 18px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.mm-acc__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-700);
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease);
}
.mm-acc__icon svg {
  width: 16px;
  height: 16px;
}
.mm-acc__trigger[aria-expanded="true"] .mm-acc__icon {
  transform: rotate(45deg);
  background: var(--rose-700);
  color: #fff;
}
.mm-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.mm-acc__panel-inner {
  padding: 0 clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px);
  color: var(--text-soft);
  max-width: 64ch;
  line-height: 1.65;
}

.mm-tip {
  background: var(--blush);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  gap: var(--s4);
}
.mm-tip__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose-700);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
}
.mm-tip__label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 6px;
}
.mm-tip__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.mm-quote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.mm-section--ink .mm-quote {
  color: var(--cream);
}
.mm-quote__cite {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
}
.mm-quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mauve);
  flex-shrink: 0;
  object-fit: cover;
}
.mm-quote__name {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-sm);
}
.mm-quote__role {
  font-size: var(--fs-xs);
  color: var(--text-soft);
}

.mm-field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.mm-label {
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.mm-input {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  width: 100%;
}
.mm-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(184, 151, 150, 0.22);
}

/* 10. HEADER / NAV / FOOTER =============================================== */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.mm-header.is-stuck {
  background: rgba(255, 245, 245, 0.66);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(37, 17, 16, 0.05);
}
.mm-header__inner {
  margin: 0 auto;
  max-width: 1640px;
  padding: clamp(14px, 1.6vw, 20px) var(--gutter);
}
/* NOTE: the header keeps a CONSTANT height when stuck (only bg/blur/border
   change). It used to shrink its padding on scroll, but that changed
   header.offsetHeight → the JS-published --header-h → the hero's pull-up
   margin/padding → a layout jump (and flicker if you paused at the .is-stuck
   threshold). Constant height keeps --header-h stable, so the hero never
   shifts. */
.mm-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}
.mm-logo {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.mm-logo svg {
  height: 26px;
  width: auto;
}
.mm-logo__img {
  height: clamp(20px, 2.4vw, 26px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.mm-logo__img--light {
  filter: brightness(0) invert(1);
}
.mm-nav {
  display: none;
  align-items: center;
  gap: clamp(var(--s5), 2.4vw, var(--s9));
  margin: 0 auto;
}
.mm-nav a {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 4px;
  position: relative;
}
.mm-nav a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.mm-nav a:hover::after {
  transform: scaleX(1);
}
.mm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.mm-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.mm-burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.mm-header__cta {
  display: none;
}
@media (min-width: 980px) {
  .mm-nav {
    display: flex;
  }
  .mm-burger {
    display: none;
  }
  .mm-header__cta {
    display: inline-flex;
  }
}

.mm-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}
.mm-drawer.is-open {
  visibility: visible;
}
.mm-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(37, 17, 16, 0.42);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.mm-drawer.is-open .mm-drawer__scrim {
  opacity: 1;
}
.mm-drawer__panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(86vw, 360px);
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transform: translateX(110%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}
.mm-drawer.is-open .mm-drawer__panel {
  transform: none;
}
.mm-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s2);
}
.mm-drawer__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.mm-drawer__nav {
  display: flex;
  flex-direction: column;
}
.mm-drawer__nav a {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.mm-footer {
  background: var(--ink);
  color: rgba(255, 245, 245, 0.72);
  padding: clamp(48px, 7vw, 88px) 0 var(--s8);
}
.mm-footer a {
  color: rgba(255, 245, 245, 0.72);
  transition: color var(--dur) var(--ease);
}
.mm-footer a:hover {
  color: var(--cream);
}
.mm-footer__grid {
  display: grid;
  gap: var(--s8);
  grid-template-columns: 1fr;
}
.mm-footer__brand .mm-logo {
  color: var(--cream);
}
.mm-footer__brand p {
  margin: var(--s5) 0 0;
  max-width: 34ch;
  color: rgba(255, 245, 245, 0.6);
  font-size: var(--fs-sm);
}
.mm-footer__col h4 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 245, 245, 0.5);
  margin: 0 0 var(--s4);
}
.mm-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.mm-footer__col a {
  font-size: var(--fs-sm);
}
.mm-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-top: var(--s9);
  padding-top: var(--s6);
  border-top: 1px solid rgba(255, 245, 245, 0.12);
  font-size: var(--fs-xs);
  color: rgba(255, 245, 245, 0.5);
}
.mm-social {
  display: flex;
  gap: var(--s2);
}
.mm-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 245, 0.18);
  display: grid;
  place-items: center;
}
.mm-social a:hover {
  background: rgba(255, 245, 245, 0.1);
}
.mm-social svg {
  width: 18px;
  height: 18px;
}
@media (min-width: 720px) {
  .mm-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--s7);
  }
  .mm-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* 11. DECOR + MOTION ====================================================== */
.mm-spark {
  display: inline-block;
  color: var(--rose-700);
  flex-shrink: 0;
}
.mm-ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      120% 120% at 25% 12%,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0) 45%
    ),
    linear-gradient(150deg, var(--blush) 0%, var(--mauve) 100%);
  color: rgba(139, 91, 90, 0.5);
  overflow: hidden;
}
.mm-ph svg {
  width: clamp(56px, 28%, 140px);
  height: auto;
  opacity: 0.85;
}
.mm-ph[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: var(--pill);
}
.mm-ratio {
  position: relative;
  overflow: hidden;
}
.mm-ratio > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mm-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 245, 245, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px rgba(37, 17, 16, 0.1);
  display: none;
}
.mm-stickybar .mm-btn {
  width: 100%;
}
@media (max-width: 820px) {
  .mm-stickybar {
    display: block;
  }
}

.mm-js .mm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}
.mm-js .mm-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .mm-js .mm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mm-btn:hover,
  a.mm-tile:hover,
  .mm-btn:active {
    transform: none;
  }
  .mm-btn--primary::after,
  .mm-btn--rose::after {
    display: none;
  }
}
