
/* Shared visual identity. Loaded last on both marketing and product pages. */
:root {
  --mm-ivory: #faf7f2;
  --mm-white: #fffdf9;
  --mm-ink: #35332e;
  --mm-sage: #64795d;
  --mm-sage-dark: #506449;
  --mm-sage-soft: #e8eee4;
  --mm-champagne: #c9a05f;
  --mm-line: #dedbd1;
  --mm-rose: #f6eeeb;
  --terra: var(--mm-sage);
  --sage: var(--mm-sage);
  --sagelight: var(--mm-sage-soft);
  --pinklight: var(--mm-rose);
  --espresso: var(--mm-ink);
}
body { color: var(--mm-ink); }
.hero.hero--milestone .btn-primary,
.btn.btn-primary, .btn:not(.secondary):not(.btn-ghost) {
  background: var(--mm-sage);
  border-color: var(--mm-sage);
  color: #fff;
  border-radius: 10px;
  box-shadow: none;
}
.hero.hero--milestone .btn-primary:hover,
.btn.btn-primary:hover, .btn:not(.secondary):not(.btn-ghost):hover {
  background: var(--mm-sage-dark);
  border-color: var(--mm-sage-dark);
  color: #fff;
  box-shadow: none;
}
.btn.secondary, .btn.btn-ghost {
  background: var(--mm-white);
  color: var(--mm-sage-dark);
  border-color: #a8b5a2;
  border-radius: 10px;
}
.btn.secondary:hover, .btn.btn-ghost:hover { background: var(--mm-sage-soft); color: var(--mm-sage-dark); }
.btn:focus-visible, .hero.hero--milestone .btn-primary:focus-visible,
.choice:focus-visible, .linkbtn:focus-visible, .mm-modal-close:focus-visible {
  outline: 2px solid var(--mm-sage-dark);
  outline-offset: 3px;
}
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
body:has(.launch-header) { background: var(--mm-ivory); --paper: var(--mm-ivory); --line: var(--mm-line); --ink: var(--mm-ink); }
.assessment-frame .choice, .choice { border-color: #d4d9ce; background: var(--mm-white); }
.assessment-frame .choice:hover, .choice:hover { background: #f2f4ee; }
.assessment-frame .choice[aria-pressed=true], .choice[aria-pressed=true] {
  background: var(--mm-sage-soft); border-color: var(--mm-sage); box-shadow: inset 0 0 0 1px var(--mm-sage);
}
.choice .radio { border-color: #9ca695; }
.choice[aria-pressed=true] .radio { border-color: var(--mm-sage-dark); }
.choice[aria-pressed=true] .radio:after { background: var(--mm-sage-dark); }
.guided-service-options label:has(input:checked) { background: var(--mm-sage-soft); border-color: var(--mm-sage); }
.guide-frame .guided-service-options input[type=checkbox], .inline-check { accent-color: var(--mm-sage-dark); }
body:has(.launch-header) a, .linkbtn, #plan-access .plan-access-inner summary { color: var(--mm-sage-dark); }
body:has(.launch-header) input:focus-visible, body:has(.launch-header) select:focus-visible, body:has(.launch-header) textarea:focus-visible { outline-color: var(--mm-sage-dark); }
.welcome-path-step.is-next > .path-current, .guide-task, .hero-next { background: var(--mm-sage-soft); border-color: #cbd7c4; }
.welcome-frame .eyebrow, .welcome-path-step .path-label { color: #6d5735; }
.welcome-path-step.is-next .path-node { background: #f1e2c3; color: #87612f; box-shadow: 0 0 0 4px #f1e2c34d; }
.result-tile:hover { background: var(--mm-sage-soft); border-color: #a8b5a2; }
.status.pending, .error { color: #783f35; background: var(--mm-rose); }
.brand-mark, .logo img, .mm-modal-brand img { filter: drop-shadow(0 0 3px #e6bf7966); }
.hero.hero--milestone .milestone-eyebrow { color: #775c36; }
.mm-modal.mm-full-plan[open] { width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; border-radius: 0; margin: 0; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .choice { transition: background-color .18s ease, border-color .18s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .choice, .mm-modal { transition: none !important; }
}

/* Every landing-page entry into the same assessment uses the same primary action. */
body .btn[href="/assessment"], .opening-day-action .opening-day-btn[href="/assessment"] {
  background: var(--mm-sage);
  border-color: var(--mm-sage);
  color: #fff !important;
  border-radius: 10px;
}
body .btn[href="/assessment"]:hover, .opening-day-action .opening-day-btn[href="/assessment"]:hover {
  background: var(--mm-sage-dark);
  border-color: var(--mm-sage-dark);
  color: #fff !important;
}
.opening-day-btn[href="/assessment"] svg { color: #fff; }
#demo .choice[aria-pressed=true] { background: var(--mm-sage-soft); border-color: var(--mm-sage); box-shadow: inset 0 0 0 1px var(--mm-sage); }
#demo .choice[aria-pressed=true]::before { background: var(--mm-sage); border-color: var(--mm-sage); }
html.embedded, html.embedded body, .mm-modal, .mm-modal-bar, .mm-modal iframe { background: var(--mm-ivory); }
.assessment-frame .choice[aria-pressed=true]:focus:not(:focus-visible) { outline: none; }
.brand-mark { filter: drop-shadow(0 0 3px #e6bf7966); }

/* Wordmark and headings use charcoal everywhere; sage is reserved for actions and links. */
.launch-header .logo, .launch-header .logo span, .mm-modal-brand { color: var(--mm-ink); }
.hero.hero--milestone h1, .hero.hero--milestone h1.display { color: var(--mm-ink); }
.emotion-story { background: var(--mm-ink); }
/* Older rust accents on the landing page follow the standard. */
.clarity-arrow, .clear-num, .tool-mark.tool-initial { color: var(--mm-sage-dark); }
.closing-banner { background: linear-gradient(160deg, #45423b, var(--mm-ink)); }
/* Quiet restart action, separate from the primary plan action. */
.welcome-frame { position: relative; }
.welcome-restart { display:flex; justify-content:flex-end; margin:-12px 0 0; }
.welcome-restart .linkbtn { min-height:44px; font-size:.8125rem; font-weight:500; color:var(--mm-sage-dark); text-underline-offset:3px; }
@media(max-width:480px) { .welcome-restart { margin:-8px 0 0; } }

/* Third-party names are plain text; icons are our own neutral initials. */
.tool-cloud .tool-mark.tool-initial { flex:0 0 30px; width:30px; height:30px; border-radius:7px; background:var(--mm-sage-soft); color:var(--mm-sage-dark); font:650 11px/1 Inter,Arial,sans-serif; letter-spacing:.02em; }
.tool-cloud .tool-tile > div { min-width:0; }
@media(max-width:460px){.tool-cloud .tool-mark.tool-initial{flex-basis:26px;width:26px;height:26px;font-size:10px}}

/* Hero supporting line: one clean line where it fits; otherwise two even lines, never a lone last word. */
.hero.hero--milestone .lead { text-wrap: balance; }
@media (min-width: 1100px) {
  .hero.hero--milestone .milestone-hero-copy { container-type: inline-size; }
  @supports (font-size: 1cqi) { .hero.hero--milestone .milestone-hero-copy > .lead { font-size: clamp(17px, 3.5cqi, 22.32px); max-width: none; } }
}

/* Recognizable company logos in the technology example (illustrative, no affiliation). */
.tool-cloud .tool-mark.tool-logo { flex:0 0 30px; width:30px; height:30px; border-radius:7px; background:#fff; border:1px solid #e6e0d6; display:grid; place-items:center; overflow:hidden; }
.tool-cloud .tool-mark.tool-logo svg { width:18px; height:18px; }
.tool-cloud .tool-mark.tool-logo img { width:100%; height:100%; display:block; }
.tool-cloud .tool-mark.tool-logo.tool-logo-fill { border:0; background:transparent; }
.tool-cloud .tool-mark.tool-logo.tool-logo-fill svg { width:100%; height:100%; }
@media(max-width:460px){ .tool-cloud .tool-mark.tool-logo { flex-basis:26px; width:26px; height:26px; } .tool-cloud .tool-mark.tool-logo svg { width:16px; height:16px; } }

/* Headline in two deliberate lines: "Open your own medspa" / "with confidence." The first line always fits its column. */
.hero.hero--milestone .milestone-hero-copy { container-type:inline-size; }
.hero.hero--milestone .display .display-line { display:block; white-space:nowrap; }
.hero.hero--milestone .display { max-width:none; }
@supports (font-size:1cqi) { .hero.hero--milestone .milestone-hero-copy > h1.display { font-size:min(64px, 9.8cqi); } }

/* Cinematic headline entrance on load: left column first, then the hero story takes over. */
.hero.hero--milestone .display .display-line { width:max-content; max-width:100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero.hero--milestone .milestone-eyebrow { animation:hero-in .7s ease-out both; }
  .hero.hero--milestone .display .display-line:first-child { animation:hero-rise .9s .1s cubic-bezier(.22,1,.36,1) both; }
  .hero.hero--milestone .display .display-line:last-child {
    background:linear-gradient(100deg,#35332e 0%,#35332e 40%,#b98a43 47%,#f3dca4 50%,#b98a43 53%,#35332e 60%,#35332e 100%);
    background-size:300% 100%; background-position:0 0; -webkit-background-clip:text; background-clip:text; color:transparent;
    animation:hero-rise .9s .4s cubic-bezier(.22,1,.36,1) both, hero-shine 1.5s .75s cubic-bezier(.45,0,.25,1) both;
  }
  .hero.hero--milestone .milestone-hero-copy > .lead { animation:hero-in .8s .8s ease-out both; }
  .hero.hero--milestone .milestone-hero-copy > .btn-row { animation:hero-in .8s .95s ease-out both; }
  .hero.hero--milestone .milestone-hero-copy > .micro { animation:hero-in .8s 1.05s ease-out both; }
  @keyframes hero-rise { from { opacity:0; transform:translateY(22px); filter:blur(6px); } to { opacity:1; transform:none; filter:none; } }
  @keyframes hero-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
  @keyframes hero-shine { from { background-position:100% 0; } to { background-position:0 0; } }
}
