/* MEW premium UI (26 Oct recovery): one visual system for the commercial pages — tokens, buttons, cards, status
   pills, forms, the Resource Library, guide articles and MEW Letter. Loaded after site.css / website-p0.css.
   Thai text needs generous line-height for stacked tone marks; inputs use 16px so iOS does not zoom on focus. */
:root {
  --mx-bg: #faf8f5; --mx-surface: #ffffff; --mx-tint: #f4f0ea; --mx-ink: #141414; --mx-ink-2: #3c3a36; --mx-muted: #6b6761;
  --mx-line: #e9e4dc; --mx-line-2: #d8d1c6; --mx-coral: #d9512f; --mx-coral-text: #b8432a; --mx-violet: #7458f0;
  --mx-alpha-bg: #fff0ea; --mx-alpha-ink: #a8391f; --mx-soon-bg: #efecff; --mx-soon-ink: #4a37c4; --mx-open-bg: #e9f6ee; --mx-open-ink: #1d6f38;
  --mx-r-lg: 22px; --mx-r: 16px; --mx-r-sm: 12px; --mx-max: 1160px; --mx-gutter: 20px;
  --mx-shadow: 0 1px 1px rgba(20, 20, 20, .03), 0 12px 32px rgba(20, 20, 20, .06);
  --mx-shadow-hover: 0 2px 2px rgba(20, 20, 20, .04), 0 18px 40px rgba(20, 20, 20, .10);
}
@media (max-width: 640px) { :root { --mx-gutter: 16px; } }

.mx-site { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.mx-site .notebook-rail, .mx-site .top-ticker { display: none !important; }
.mx-wrap { width: 100%; max-width: var(--mx-max); margin: 0 auto; padding: 0 var(--mx-gutter); box-sizing: border-box; }
.mx-wrap--narrow { max-width: 820px; }
.mx-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-center { text-align: center; margin-top: 28px; }

/* Type */
.mx-eyebrow { margin: 0 0 12px; color: var(--mx-coral-text); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
.mx-h1 { margin: 0 0 18px; color: var(--mx-ink); font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.55rem); font-weight: 800; line-height: 1.24; letter-spacing: -.01em; }
.mx-h2 { margin: 0 0 14px; color: var(--mx-ink); font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.3; }
.mx-h3 { margin: 0 0 10px; color: var(--mx-ink); font-size: 1.22rem; font-weight: 800; line-height: 1.4; }
.mx-h1, .mx-h2, .mx-h3 { text-wrap: balance; }
.mx-hero--split .mx-h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 2.8rem); }
.mx-lead { margin: 0 0 20px; color: var(--mx-ink-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem); line-height: 1.75; max-width: 62ch; }
.mx-note { margin: 10px 0 0; color: var(--mx-muted); font-size: .86rem; line-height: 1.65; }
.mx-grad-text { background: linear-gradient(92deg, var(--mx-coral) 0%, #c04fa0 48%, var(--mx-violet) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mx-text-link { color: var(--mx-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.mx-text-link:hover { color: var(--mx-coral); }

/* Buttons: one primary (ink pill), one secondary (outline pill), one text style — everywhere */
.mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8em 1.45em; border: 1px solid var(--mx-ink); border-radius: 999px; background: var(--mx-ink); color: #fff; font: inherit; font-size: 1rem; font-weight: 750; line-height: 1.3; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; box-sizing: border-box; }
.mx-btn:hover { transform: translateY(-1px); box-shadow: var(--mx-shadow-hover); color: #fff; }
.mx-btn--ghost { background: transparent; color: var(--mx-ink); border-color: var(--mx-line-2); }
.mx-btn--ghost:hover { background: var(--mx-surface); color: var(--mx-ink); border-color: var(--mx-ink); }
.mx-btn--sm { min-height: 42px; padding: .6em 1.15em; font-size: .95rem; }
.mx-btn--block { width: 100%; }
.mx-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.mx-text-btn { padding: .4em .2em; border: 0; background: none; color: var(--mx-ink-2); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mx-site :is(.mx-btn, .mx-text-btn, .mx-chip, .mx-option, a, summary, input, select, textarea):focus-visible { outline: 3px solid var(--mx-coral); outline-offset: 2px; }

/* Status pills (truthful product state) */
.mx-status { display: inline-flex; align-items: center; margin: 0 0 12px; padding: .3em .85em; border-radius: 999px; background: #efebe4; color: var(--mx-ink-2); font-size: .8rem; font-weight: 750; line-height: 1.5; }
.mx-status--alpha { background: var(--mx-alpha-bg); color: var(--mx-alpha-ink); }
.mx-status--soon { background: var(--mx-soon-bg); color: var(--mx-soon-ink); }
.mx-status--open { background: var(--mx-open-bg); color: var(--mx-open-ink); }
.mx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.mx-pills .mx-status { margin: 0; }
.mx-badge { display: inline-block; padding: .1em .6em; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.mx-badge--draft { background: #fff4d6; color: #7a5300; }
.mx-badge--new { background: var(--mx-alpha-bg); color: var(--mx-alpha-ink); }
.mx-banner { margin: 0 0 18px; padding: 12px 16px; border: 1px solid #f1d58a; border-radius: var(--mx-r-sm); background: #fffaeb; color: #5c4300; font-size: .92rem; line-height: 1.6; }

/* Surfaces */
.mx-card { position: relative; padding: 24px; border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); background: var(--mx-surface); box-shadow: var(--mx-shadow); box-sizing: border-box; }
.mx-card--muted { background: #fcfbf9; box-shadow: none; }
.mx-hero { position: relative; padding: 104px 0 40px; background: radial-gradient(60% 80% at 0% 0%, rgba(217, 81, 47, .08), transparent 60%), radial-gradient(50% 70% at 100% 10%, rgba(116, 88, 240, .08), transparent 60%); }
.mx-section { padding: 56px 0; }
.mx-section--tint { background: var(--mx-tint); }
@media (min-width: 980px) { .mx-hero { padding: 132px 0 60px; } .mx-section { padding: 80px 0; } }
.mx-split { display: grid; gap: 32px; }
@media (min-width: 980px) { .mx-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; } .mx-hero-form { position: sticky; top: 96px; } }
.mx-hero-links { margin: 6px 0 0; }
.mx-two { display: grid; gap: 20px; }
@media (min-width: 860px) { .mx-two { grid-template-columns: 1fr 1fr; } }
.mx-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.mx-steps li { display: grid; gap: 2px; padding-left: 40px; position: relative; counter-increment: s; }
.mx-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mx-ink); color: #fff; font-size: .82rem; font-weight: 800; display: grid; place-items: center; }
.mx-steps b { color: var(--mx-ink); font-size: 1rem; }
.mx-steps span { color: var(--mx-muted); font-size: .93rem; line-height: 1.6; }
.mx-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--mx-ink-2); line-height: 1.6; }
.mx-checklist { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mx-checklist li { position: relative; padding-left: 30px; color: var(--mx-ink-2); line-height: 1.65; }
.mx-checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--mx-open-ink); border-bottom: 2.5px solid var(--mx-open-ink); transform: rotate(-45deg); }
/* MEW EDIT (execution order 23 Oct): alpha note, target-behaviour label, four-step flow with today's status, facts. */
.mx-alpha-note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--mx-coral); border-radius: 0 var(--mx-r-sm) var(--mx-r-sm) 0; background: var(--mx-alpha-bg); color: var(--mx-ink-2); font-size: .95rem; line-height: 1.65; max-width: 62ch; }
.mx-alpha-note a { color: var(--mx-alpha-ink); font-weight: 750; }
.mx-status--target { background: var(--mx-soon-bg); color: var(--mx-soon-ink); margin: 0 8px 0 0; }
.mx-target-note { margin: 0 0 24px; color: var(--mx-ink-2); line-height: 1.75; max-width: 70ch; }
.mx-flow4 { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .mx-flow4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mx-flow4 { grid-template-columns: repeat(4, 1fr); } }
.mx-flow-step { display: flex; flex-direction: column; gap: 4px; }
.mx-flow-step > p { margin: 0; color: var(--mx-ink-2); line-height: 1.65; }
.mx-flow-n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--mx-coral), var(--mx-violet)); color: #fff; font-weight: 800; }
.mx-flow-step .mx-flow-today { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--mx-line-2); color: var(--mx-muted); font-size: .9rem; }
.mx-flow-today span { display: block; margin-bottom: 4px; color: var(--mx-alpha-ink); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mx-alpha-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .mx-alpha-facts { grid-template-columns: repeat(2, 1fr); } }
.mx-alpha-facts p { margin: 0; color: var(--mx-ink-2); line-height: 1.7; }
.mx-flow { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 860px) { .mx-flow { grid-template-columns: repeat(3, 1fr); } }
.mx-flow li { padding: 24px; border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); background: var(--mx-surface); }
.mx-flow li > b { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--mx-ink); color: #fff; font-weight: 800; }
.mx-flow h3 { margin: 0 0 6px; font-size: 1.1rem; }
.mx-flow p { margin: 0; color: var(--mx-muted); line-height: 1.65; }
.mx-faq details { border-bottom: 1px solid var(--mx-line); }
.mx-faq summary { padding: 18px 32px 18px 0; color: var(--mx-ink); font-weight: 750; line-height: 1.55; cursor: pointer; list-style: none; position: relative; }
.mx-faq summary::-webkit-details-marker { display: none; }
.mx-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--mx-muted); }
.mx-faq details[open] summary::after { content: "–"; }
.mx-faq details p { margin: 0 0 18px; color: var(--mx-ink-2); line-height: 1.75; }

/* Product strip */
.mx-product-grid { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
@media (min-width: 860px) { .mx-product-grid { grid-template-columns: repeat(3, 1fr); } }
.mx-product { display: flex; flex-direction: column; }
.mx-product h3, .mx-product h2 { margin: 0 0 8px; font-size: 1.3rem; }
.mx-product p { margin: 0 0 18px; color: var(--mx-muted); line-height: 1.65; }
.mx-product .mx-status { align-self: flex-start; }
.mx-product .mx-btn { margin-top: auto; align-self: flex-start; }

/* Forms */
.mx-form { display: grid; gap: 10px; }
.mx-label { display: block; margin: 6px 0 0; color: var(--mx-ink); font-size: .95rem; font-weight: 750; line-height: 1.5; }
.mx-label small, .mx-check small { color: var(--mx-muted); font-weight: 500; }
.mx-input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--mx-line-2); border-radius: var(--mx-r-sm); background: #fff; color: var(--mx-ink); font: inherit; font-size: 16px; line-height: 1.5; box-sizing: border-box; }
textarea.mx-input { min-height: 96px; resize: vertical; }
.mx-input:focus { border-color: var(--mx-ink); outline: none; box-shadow: 0 0 0 3px rgba(217, 81, 47, .18); }
.mx-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; color: var(--mx-ink-2); font-size: .92rem; line-height: 1.6; cursor: pointer; }
.mx-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mx-ink); }
.mx-check a { color: inherit; font-weight: 700; }
.mx-form-status { min-height: 1.4em; margin: 4px 0 0; color: var(--mx-ink-2); font-size: .93rem; font-weight: 700; line-height: 1.55; }
.mx-grid-2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .mx-grid-2 { grid-template-columns: 1fr 1fr; } }
.mx-fieldset { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.mx-options { display: grid; gap: 10px; }
.mx-options--wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--mx-line-2); border-radius: 14px; background: #fff; color: var(--mx-ink); font-weight: 650; line-height: 1.45; cursor: pointer; transition: border-color .12s ease, background .12s ease, box-shadow .12s ease; }
.mx-option:hover { border-color: var(--mx-ink); }
.mx-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--mx-ink); }
.mx-option:has(input:checked) { border-color: var(--mx-ink); background: #fffaf6; box-shadow: 0 0 0 1px var(--mx-ink) inset; }
.mx-option--pill { padding: 9px 14px; border-radius: 999px; font-size: .93rem; }

/* MEW EDIT qualification (multi-step when JS adds .is-stepped) */
.mx-qualify { display: grid; gap: 12px; padding: 24px; }
@media (min-width: 640px) { .mx-qualify { padding: 30px; } }
.mx-qualify-head .mx-eyebrow { margin-bottom: 6px; }
.mx-progress-text { margin: 0 0 8px; color: var(--mx-muted); font-size: .85rem; font-weight: 700; }
.mx-progress { height: 6px; border-radius: 999px; background: var(--mx-tint); overflow: hidden; }
.mx-progress span { display: block; height: 100%; width: 20%; border-radius: 999px; background: linear-gradient(90deg, var(--mx-coral), var(--mx-violet)); transition: width .25s ease; }
.mx-step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.mx-step + .mx-step { margin-top: 14px; }
.mx-step-q { margin: 0 0 4px; padding: 0; color: var(--mx-ink); font-size: 1.12rem; font-weight: 800; line-height: 1.5; }
.mx-qualify.is-stepped .mx-step { display: none; }
.mx-qualify.is-stepped .mx-step.is-current { display: grid; margin-top: 0; }
.mx-qualify.is-stepped .mx-progress-text, .mx-qualify.is-stepped .mx-progress { display: block; }
.mx-qualify:not(.is-stepped) .mx-progress-text, .mx-qualify:not(.is-stepped) .mx-progress { display: none; }
.mx-step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mx-step-nav[hidden] { display: none; }
.mx-profile-form { display: grid; gap: 8px; padding: 24px; }
@media (min-width: 640px) { .mx-profile-form { padding: 30px; } }
.mx-profile-form .mx-h3 { margin-bottom: 4px; }
.mx-building { margin-top: 28px; }

/* Resource Library */
.mx-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--mx-ink-2); font-size: .95rem; }
.mx-facts b { color: var(--mx-ink); font-size: 1.15rem; }
.mx-featured { padding: 8px 0 0; }
.mx-featured-card { display: block; padding: clamp(22px, 4vw, 36px); border-left: 4px solid var(--mx-coral); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mx-featured-card:hover { transform: translateY(-2px); box-shadow: var(--mx-shadow-hover); }
.mx-featured-card .mx-lead { max-width: 62ch; }
.mx-library { padding-top: 32px; }
.mx-search { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 18px; border: 1px solid var(--mx-line-2); border-radius: 999px; background: #fff; box-shadow: var(--mx-shadow); color: var(--mx-muted); }
.mx-search:focus-within { border-color: var(--mx-ink); }
.mx-search-input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; color: var(--mx-ink); font: inherit; font-size: 16px; outline: none; }
.mx-facets { display: grid; gap: 12px; margin: 22px 0 6px; }
.mx-facet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mx-facet-label { min-width: 74px; color: var(--mx-muted); font-size: .85rem; font-weight: 750; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: .45em .95em; border: 1px solid var(--mx-line-2); border-radius: 999px; background: #fff; color: var(--mx-ink-2); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
.mx-chip:hover { border-color: var(--mx-ink); color: var(--mx-ink); }
.mx-chip[aria-pressed="true"] { border-color: var(--mx-ink); background: var(--mx-ink); color: #fff; }
.mx-chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--mx-tint); color: var(--mx-ink-2); font-size: .74rem; font-weight: 800; box-sizing: border-box; }
.mx-chip[aria-pressed="true"] .mx-chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
.mx-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 6px 0 14px; color: var(--mx-muted); font-size: .92rem; font-weight: 700; }
.mx-results-bar p { margin: 0; }
.mx-guide-grid { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
@media (min-width: 720px) { .mx-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mx-guide-grid { grid-template-columns: repeat(3, 1fr); } }
.mx-guide { padding: 0; transition: transform .15s ease, box-shadow .15s ease; }
.mx-guide:hover { transform: translateY(-2px); box-shadow: var(--mx-shadow-hover); }
.mx-guide[hidden] { display: none; }
.mx-guide-link { display: flex; flex-direction: column; height: 100%; padding: 24px; color: inherit; text-decoration: none; box-sizing: border-box; }
.mx-guide-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mx-guide-kicker > span:not(.mx-badge) { padding: .15em .65em; border-radius: 999px; background: var(--mx-tint); color: var(--mx-ink-2); font-size: .76rem; font-weight: 800; }
.mx-guide-title { margin: 0 0 10px; color: var(--mx-ink); font-size: 1.24rem; font-weight: 800; line-height: 1.45; }
.mx-guide-text { margin: 0 0 14px; color: var(--mx-muted); font-size: .95rem; line-height: 1.7; }
.mx-guide-meta { margin: 0 0 12px; color: var(--mx-muted); font-size: .84rem; font-weight: 650; }
.mx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.mx-tags li, .mx-tags a { display: inline-block; padding: .15em .7em; border: 1px solid var(--mx-line); border-radius: 999px; color: var(--mx-ink-2); font-size: .78rem; font-weight: 650; text-decoration: none; }
.mx-tags a:hover { border-color: var(--mx-ink); }
.mx-tags .mx-tag-product { border-color: transparent; background: var(--mx-soon-bg); color: var(--mx-soon-ink); }
/* Library tags (execution order 23 Oct): problem line, audience chips, "what's inside" counts. */
.mx-guide-for, .mx-article-for { margin: 0 0 10px; color: var(--mx-ink-2); font-size: .88rem; font-weight: 650; line-height: 1.5; }
.mx-guide-for span, .mx-article-for span { display: inline-block; margin-right: 8px; color: var(--mx-alpha-ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mx-article-for a { color: var(--mx-ink); }
.mx-includes { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; padding: 0; list-style: none; }
.mx-includes li { padding: .15em .7em; border-radius: 999px; background: var(--mx-open-bg); color: var(--mx-open-ink); font-size: .76rem; font-weight: 750; }
.mx-guide-cta { margin-top: auto; color: var(--mx-ink); font-weight: 800; }
.mx-guide:hover .mx-guide-cta { color: var(--mx-coral); }
.mx-empty { padding: 32px; border: 1px dashed var(--mx-line-2); border-radius: var(--mx-r-lg); text-align: center; color: var(--mx-muted); }
.mx-empty[hidden] { display: none; }

/* Guide article */
/* The modern header is fixed (top 12-16px, 58px tall): first blocks clear it. */
.mx-article-head { padding: 100px 0 28px; background: radial-gradient(60% 90% at 0% 0%, rgba(217, 81, 47, .07), transparent 60%), radial-gradient(50% 80% at 100% 0%, rgba(116, 88, 240, .07), transparent 60%); }
@media (min-width: 980px) { .mx-article-head { padding-top: 124px; } }
.mx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--mx-muted); font-size: .88rem; font-weight: 650; }
.mx-crumbs a { color: var(--mx-ink-2); }
.mx-article-title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); }
.mx-article-meta { margin: 0 0 14px; color: var(--mx-muted); font-size: .92rem; }
.mx-article-layout { display: grid; gap: 24px; padding-top: 12px; padding-bottom: 32px; }
@media (min-width: 1024px) { .mx-article-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } .mx-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; } }
.mx-toc details { padding: 14px 16px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: #fff; }
.mx-toc summary { color: var(--mx-ink); font-weight: 800; cursor: pointer; }
.mx-toc ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.mx-toc a { display: block; padding: 5px 0; color: var(--mx-ink-2); font-size: .88rem; line-height: 1.5; text-decoration: none; }
.mx-toc a:hover { color: var(--mx-coral); }
.mx-toc .mx-toc-l3 a { padding-left: 12px; font-size: .84rem; color: var(--mx-muted); }
.mx-prose { min-width: 0; max-width: 74ch; color: var(--mx-ink-2); font-size: 1.07rem; line-height: 1.88; overflow-wrap: anywhere; }
.mx-prose > :first-child { margin-top: 0; }
.mx-prose h2 { margin: 2.1em 0 .6em; color: var(--mx-ink); font-size: 1.55rem; line-height: 1.4; scroll-margin-top: 96px; }
.mx-prose h3 { margin: 1.8em 0 .5em; color: var(--mx-ink); font-size: 1.22rem; line-height: 1.45; scroll-margin-top: 96px; }
.mx-prose h4 { margin: 1.5em 0 .4em; color: var(--mx-ink); font-size: 1.06rem; line-height: 1.5; scroll-margin-top: 96px; }
.mx-prose p { margin: 0 0 1.05em; }
.mx-prose strong { color: var(--mx-ink); }
.mx-prose a { color: var(--mx-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mx-prose ul, .mx-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.mx-prose li { margin: .3em 0; }
.mx-prose li > ul, .mx-prose li > ol { margin: .3em 0 .4em; }
.mx-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--mx-coral); color: var(--mx-ink); }
.mx-prose blockquote p:last-child { margin-bottom: 0; }
.mx-prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--mx-line); }
.mx-prose code { padding: .12em .4em; border-radius: 6px; background: var(--mx-tint); color: var(--mx-ink); font-size: .9em; }
.g-code { position: relative; margin: 1.2em 0 1.4em; }
.g-code pre { margin: 0; padding: 44px 18px 18px; border-radius: 14px; background: #17161a; color: #f2f2f3; font-size: .9rem; line-height: 1.65; overflow-x: auto; }
.g-code pre code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }
.g-code pre[data-lang]::before { content: attr(data-lang); position: absolute; left: 16px; top: 12px; color: #a3a1aa; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.g-copy { position: absolute; right: 10px; top: 8px; min-height: 30px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.g-copy:hover { background: rgba(255, 255, 255, .16); }
/* Copyable worksheet (:::worksheet in a guide): plain text in the site font, copied whole with one button. */
.g-worksheet { margin: 1.4em 0 1.6em; border: 1px solid var(--mx-line-2); border-radius: 16px; background: #fffdf9; overflow: hidden; }
.g-worksheet figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px dashed var(--mx-line-2); background: var(--mx-tint); }
.g-worksheet figcaption b { flex: 1 1 200px; color: var(--mx-ink); font-size: 1rem; }
.g-worksheet-kicker { flex-basis: 100%; color: var(--mx-alpha-ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.g-worksheet .g-copy { position: static; border-color: var(--mx-ink); background: var(--mx-ink); color: #fff; }
.g-worksheet .g-copy:hover { background: #333; }
.g-worksheet-body { margin: 0; padding: 16px 18px 18px; color: var(--mx-ink-2); font-family: inherit; font-size: .95rem; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.g-callout { display: flex; gap: 12px; margin: 1.3em 0; padding: 16px 18px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: #fcfaf6; }
.g-callout-icon { flex: 0 0 auto; font-size: 1.3rem; line-height: 1.5; }
.g-callout > div > :last-child { margin-bottom: 0; }
.g-details { margin: 1.2em 0; padding: 4px 18px; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: #fff; }
.g-details summary { padding: 12px 0; color: var(--mx-ink); font-weight: 750; cursor: pointer; }
.g-table { margin: 1.2em 0 1.5em; overflow-x: auto; border: 1px solid var(--mx-line); border-radius: var(--mx-r); }
.g-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; line-height: 1.6; }
.g-table th, .g-table td { padding: 10px 14px; border-bottom: 1px solid var(--mx-line); text-align: left; vertical-align: top; }
.g-table th { background: var(--mx-tint); color: var(--mx-ink); font-weight: 800; }
.g-table tr:last-child td { border-bottom: 0; }
.g-figure { margin: 1.4em 0; }
.g-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--mx-line); border-radius: var(--mx-r); background: var(--mx-tint); }
.g-figure figcaption { margin-top: 8px; color: var(--mx-muted); font-size: .86rem; text-align: center; }
.g-tasks { padding-left: 0 !important; list-style: none; }
.g-task label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.g-task input { flex: 0 0 auto; width: 20px; height: 20px; margin: .35em 0 0; accent-color: var(--mx-ink); }
.g-task input:checked + span { color: var(--mx-muted); text-decoration: line-through; text-decoration-color: var(--mx-line-2); }
.mx-article-foot { padding: 12px 0 72px; }
.mx-article-foot .mx-wrap > * + * { margin-top: 24px; }
.mx-next .mx-btn { margin-top: 6px; }
.mx-related-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) { .mx-related-list { grid-template-columns: repeat(3, 1fr); } }
.mx-related-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; color: inherit; text-decoration: none; }
.mx-related-card b { color: var(--mx-ink); line-height: 1.45; }
.mx-related-card > span:last-child { color: var(--mx-muted); font-size: .85rem; }
.mx-back { margin: 28px 0 0; }

/* MEW Letter */
.mx-newsletter { display: grid; gap: 24px; padding: 28px; border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); background: #fff; box-shadow: var(--mx-shadow); }
@media (min-width: 900px) { .mx-newsletter:not(.mx-newsletter--compact) { grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; } }
.mx-newsletter-copy p { color: var(--mx-ink-2); line-height: 1.7; }
.mx-newsletter-copy a { color: var(--mx-ink); font-weight: 700; }
.mx-more { margin: 4px 0; padding: 10px 14px; border: 1px solid var(--mx-line); border-radius: var(--mx-r-sm); background: #fcfbf9; }
.mx-more summary { color: var(--mx-ink-2); font-weight: 700; cursor: pointer; }
.mx-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; padding: 0; border: 0; }
.mx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--mx-line-2); border-radius: 999px; background: #fff; font-size: .88rem; cursor: pointer; }
.mx-pill:has(input:checked) { border-color: var(--mx-ink); background: #fffaf6; }
.mx-newsletter-form.is-done .mx-form-status { color: var(--mx-open-ink); }
.mx-unsub-form { max-width: 520px; }

/* Thank-you receipt answers */
.p0-receipt-answers { padding: 12px 16px; border-radius: var(--mx-r-sm); background: var(--mx-tint); color: var(--mx-ink); font-weight: 650; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) { .mx-btn, .mx-guide, .mx-progress span { transition: none; } .mx-btn:hover, .mx-guide:hover { transform: none; } }

/* Legacy page components (writing, start, pain, work, privacy, learn …) brought into the premium system — the
   notebook-era lime highlights, hard offset shadows, tilted covers, tape/stamp stickers and square buttons are
   retired everywhere (26 Oct recovery). Scoped to .mx-site so they outrank the old single-class rules. */
.mx-site .button { min-height: 48px; padding: .8em 1.45em; border-radius: 999px; border: 1px solid var(--mx-ink); font-weight: 750; letter-spacing: normal; text-transform: none; box-shadow: none; }
.mx-site .button-primary { background: var(--mx-ink); color: #fff; box-shadow: none; }
.mx-site .button-primary:hover { color: #fff; box-shadow: var(--mx-shadow-hover); transform: translateY(-1px); }
.mx-site .button-ghost { background: transparent; color: var(--mx-ink); border-color: var(--mx-line-2); box-shadow: none; }
.mx-site .button-ghost:hover { border-color: var(--mx-ink); background: #fff; }
.mx-site .gradient-text, .mx-site .ink-underline { color: transparent; background: linear-gradient(92deg, var(--mx-coral) 0%, #c04fa0 48%, var(--mx-violet) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; box-shadow: none; }
.mx-site .ink-underline::after { display: none; }
.mx-site .eyebrow { color: var(--mx-coral-text); font-family: inherit; font-weight: 800; letter-spacing: .1em; }
.mx-site .notebook-cover { transform: none; border-radius: var(--mx-r-lg); border: 0; box-shadow: var(--mx-shadow); min-height: 0; }
.mx-site .notebook-cover::before { display: none; }
.mx-site .notebook-cover h2 { margin-top: 28px; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.05; }
.mx-site .cover-tape, .mx-site .cover-stamp { display: none; }
.mx-site .paper-form, .mx-site .lead-magnet-form { border-radius: var(--mx-r-lg); box-shadow: var(--mx-shadow); }
.mx-site .paper-label { border-color: var(--mx-line-2); box-shadow: none; border-radius: 999px; font-family: inherit; }
.mx-site .number-badge { border-color: var(--mx-line-2); background: #fff; }
.mx-site :is(.money-card, .fit-card, .writing-card) { border-radius: var(--mx-r-lg); box-shadow: var(--mx-shadow); }
/* The notebook palette routes its highlights through --lime / --accent-a: remap both to the MEW brand palette. */
.mx-site { --lime: #f4cdbf; --accent-a: var(--mx-coral); }
.mx-site .quote { color: var(--mx-ink-2) !important; }
/* Small coral text on the light palette must reach WCAG AA 4.5:1 (#ed765b was 2.74:1 on #fbfaf8; #ae4f3a = --fl-coral-text, 5.06:1). */
.mx-site :is(.v6-kicker, .v6-num, .v3-kicker, .v6-flow small, .free-checklist b) { color: #ae4f3a; }
.mx-site .nav-link.nav-featured { background: var(--mx-ink); color: #fff; border-color: var(--mx-ink); box-shadow: none; }
.mx-site { --shadow: 0 1px 1px rgba(20, 20, 20, .03), 0 12px 32px rgba(20, 20, 20, .06); }
.mx-site :is(.signal-card, .path-card, .money-card, .fit-card, .result-card, .writing-card, .gate-card, .lead-magnet-form, .course-cover, .final-cta, .faq, .process-grid, .paper-resource-card) { border-color: var(--mx-line); border-radius: var(--mx-r-lg); box-shadow: var(--mx-shadow); }
.mx-site :is(.path-card, .writing-card, .paper-resource-card):hover { transform: translateY(-2px); box-shadow: var(--mx-shadow-hover); border-color: var(--mx-line-2); }
.mx-site .status-pill { box-shadow: none; border-radius: 999px; }
.mx-site .site-nav { box-shadow: var(--mx-shadow); border-radius: var(--mx-r); border-color: var(--mx-line); }
.mx-site .free-product-cta-shot img { box-shadow: var(--mx-shadow); border-color: var(--mx-line); border-radius: var(--mx-r-sm); }

/* Mobile sticky CTA (MEW EDIT): appears only while the questionnaire is out of view; no price, no urgency. */
.mx-sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--mx-line); border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: var(--mx-shadow-hover); backdrop-filter: blur(10px); font-size: .88rem; font-weight: 750; color: var(--mx-ink); }
.mx-sticky-cta[hidden] { display: none; }
@media (min-width: 980px) { .mx-sticky-cta { display: none !important; } }

/* One type scale (founder execution order 23 Oct): older page templates keep their layout but use the shared heading
   sizes of .mx-h1 / .mx-h2 instead of their display sizes (up to 7rem), so every page reads as one editorial system. */
.mx-site .hero-copy h1, .mx-site .work-hero h1, .mx-site .course-hero h1, .mx-site .article-hero h1, .mx-site .conversion-hero h1,
.mx-site .lead-magnet-copy h1, .mx-site .v3-hero h1, .mx-site .free-v3-hero h1, .mx-site.v6-site .v6p-hero h1, .mx-site .rf h1 {
  font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.55rem); line-height: 1.22; letter-spacing: -.01em;
}
.mx-site .section-heading h2, .mx-site .final-cta h2, .mx-site .money-card h2, .mx-site .included-grid h2, .mx-site .lead-form-intro h2,
.mx-site .guide-reader-end h2, .mx-site .gate-heading h2, .mx-site .paper-resource-card h2, .mx-site .v3-section h2, .mx-site .v3-final h2,
.mx-site.v6-site .v6-head h2, .mx-site.v6-site .v6p-cta h2, .mx-site .course-cover h2, .mx-site .rf h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem); line-height: 1.3; letter-spacing: -.005em;
}

/* /help/ topic links (overnight directive 24 Oct). */
.mx-help-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mx-help-toc a { padding: .35em .9em; border: 1px solid var(--mx-line-2); border-radius: 999px; background: var(--mx-surface); color: var(--mx-ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.mx-help-toc a:hover { border-color: var(--mx-ink); }
.mx-faq details p a { color: var(--mx-ink); font-weight: 650; }

/* /social-video/install/ (gated install guide). */
.mx-install-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.mx-install-steps li { padding: 20px 22px; border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); background: var(--mx-surface); }
.mx-install-steps p { margin: 0; color: var(--mx-ink-2); line-height: 1.75; }
.mx-install-steps code { font-size: .9em; }
.mx-hash { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #17161a; color: #f2f2f3; font-size: .82rem; word-break: break-all; }
