/* =====================================================================
   CFD AI - pages-marketing.css (A68). Owner: phase-2 marketing agent.
   Page-specific rules for: features, feature_*, physics, examples, pricing, download, docs, about, contact, security, terms, privacy, changelog, research, 404/500, sign-in/up/forgot/reset, checkout.
   Build from the tokens and components of site.css first; add a rule
   here only for what a component cannot do. Prefix selectors with the
   page class (e.g. .page-marketing-...), never restyle a component globally.
   Included automatically by _layout_site.html (every marketing page) - no template edit needed.
   Spec: docs/design/WEBSITE_DESIGN.md
   Every new class here starts with "mk-" (marketing); page overrides are
   scoped by the page's body class (.page-*). Sections:
     1 shared parts (hero media, backdrop, specs, example link, CTA)
     2 in-page sub-navigation          9 changelog timeline
     3 feature / physics blocks       10 contact
     4 examples (filters, cards,      11 about
       compact mobile, detail)        12 legal + security (doc layout)
     5 pricing compare + billing FAQ  13 auth split (sign in / up / reset)
     6 download                       14 checkout
     7 docs hub                       15 message, 404 / 500, research
     8 AI pages + cloud flow
   ===================================================================== */

/* ------------------------------------------------------ 1 shared parts */
.page-hero--dark .lead { color: #b6c3d6; }
.mk-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .mk-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.mk-hero > * { min-width: 0; }
.mk-hero h1 { margin-bottom: var(--s-4); }
.mk-hero .lead { max-width: 36em; }
.mk-hero__facts { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), max-content)); gap: 1rem clamp(1.25rem, .8rem + 1.6vw, 2.5rem); }
.mk-hero__facts .stat__value { font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem); white-space: nowrap; }

/* a media column with the soft blue/cyan backdrop of the home spotlights */
.mk-media { position: relative; isolation: isolate; }
.mk-media::before { content: ""; position: absolute; inset: 7% -3% -5% 5%; z-index: -1; border-radius: 28px; background: radial-gradient(closest-side, rgba(37, 99, 235, .14), transparent), linear-gradient(135deg, #e0ecff, #e3f7fb); }
.mk-media .shot, .mk-media .window-frame { box-shadow: var(--shadow-lg); }
.page-hero--dark .mk-media::before { background: radial-gradient(closest-side, rgba(56, 189, 248, .22), transparent); inset: 2% -6% -8% 2%; }
.page-hero--dark .mk-media .shot { border-color: rgba(148, 163, 184, .28); box-shadow: 0 40px 80px rgba(2, 6, 23, .5); }
.mk-media--plain::before { display: none; }

/* a two-column definition list of short facts */
.mk-specs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: var(--s-5) 0 0; border-top: 1px solid var(--c-line); }
@media (min-width: 640px) { .mk-specs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.mk-specs > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s-3); padding: .7rem 0; border-bottom: 1px solid var(--c-line); }
.mk-specs dt { font: 600 var(--fs-xs)/1.5 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); padding-top: .15rem; }
.mk-specs dd { margin: 0; color: var(--c-text); font-size: .9375rem; overflow-wrap: break-word; }
@media (max-width: 479.98px) { .mk-specs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* "See it in an example" link card */
.mk-exlink { position: relative; display: flex; gap: .9rem; align-items: center; padding: .6rem .9rem .6rem .6rem; margin-top: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-xs); text-decoration: none; color: inherit; max-width: 460px; transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.mk-exlink:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.mk-exlink picture, .mk-exlink img { flex: none; width: 76px; height: 57px; border-radius: 8px; object-fit: cover; background: #eef2f7; }
.mk-exlink__text { display: grid; gap: 1px; min-width: 0; }
.mk-exlink__kicker { font: 700 11px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.mk-exlink__title { font: 600 .9375rem/1.35 var(--font-head); color: var(--ink); }
.mk-exlink .icon { margin-left: auto; color: var(--primary); width: 18px; height: 18px; }

/* small muted note with an icon */
.mk-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--c-muted); margin: var(--s-4) 0 0; }
.mk-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-eyebrow); }

/* honest limits */
.mk-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mk-limits li { position: relative; padding-left: 1.75rem; color: var(--c-text); font-size: .9375rem; }
.mk-limits li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--warn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: inset 0 0 0 1px var(--warn-line); }

/* closing call-to-action band (dark, centred) */
.mk-cta .band-dark { text-align: center; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.mk-cta h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.mk-cta .lead { color: #b6c3d6; max-width: 620px; margin-inline: auto; }
.mk-cta .eyebrow { justify-content: center; }
.mk-cta .btn-row { justify-content: center; margin-top: var(--s-6); }
@media (max-width: 479.98px) { .mk-cta .btn-row .btn { width: 100%; } }

/* number + label tiles (facts read from data) */
.mk-figures { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; padding: 0; list-style: none; }
.mk-figures li { padding: 1.1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
@media (min-width: 640px) and (max-width: 1023.98px) { .mk-figures { grid-template-columns: repeat(6, minmax(0, 1fr)); } .mk-figures li { grid-column: span 2; } .mk-figures li:nth-last-child(-n+2):nth-child(3n+1), .mk-figures li:nth-last-child(-n+2):nth-child(3n+1) ~ li { grid-column: span 3; } }
.mk-figures strong { display: block; font: 700 clamp(1.5rem, 1.3rem + .8vw, 2rem)/1.1 var(--font-head); color: var(--c-heading); letter-spacing: -.02em; }
.mk-figures span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--c-muted); }

/* the generated streamline field as a quiet background (same file as the
   home hero; its pulse animation stops under reduced motion) */
.mk-flowbg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mk-flowbg .hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-flowbg .hero-flow__base { stroke-width: 1.1; opacity: .14; }
.mk-flowbg .hero-flow__pulse { stroke-width: 1.5; opacity: .55; stroke-linecap: round; stroke-dasharray: 1.4 8.6; }
.mk-flowbg .hero-flow__pulse use { stroke-dasharray: inherit; }
@keyframes mkFlow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .mk-flowbg .hero-flow__pulse, .mk-flowbg .hero-flow__pulse use { animation: none !important; } }

/* dark page heroes: the dark variants site.css gives .band-dark / .section--dark */
.page-hero--dark .icon-tile { color: #7dd3fc; background: rgba(125, 211, 252, .1); }
.page-hero--dark .check-list li::before { background-color: rgba(125, 211, 252, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.page-hero > .mk-flowbg { z-index: 0; }
.page-hero > .mk-flowbg ~ .container { position: relative; z-index: 1; }

/* --------------------------------------------- 2 in-page sub-navigation */
html:has(.mk-subnav) { scroll-padding-top: calc(var(--nav-h) + 76px); }
.mk-subnav { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.mk-subnav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .55rem 0; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 1099.98px) { .mk-subnav__list { padding-right: 2rem; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); } }
.mk-subnav__list::-webkit-scrollbar { display: none; }
.mk-subnav__list li { flex: none; }
.mk-subnav a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: var(--r-pill); color: #334155; font: 600 .875rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap; }
.mk-subnav a:hover { background: var(--primary-50); color: var(--primary); }
.mk-subnav .icon { width: 16px; height: 16px; color: var(--primary); }

/* ------------------------------------------- 3 feature / physics blocks */
.mk-block__head { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--s-4); }
.mk-block__head .eyebrow { margin: 0; }
.mk-block h2 { margin-bottom: var(--s-3); }
.mk-block .lead { margin-bottom: 0; }
.mk-block .check-list { margin-top: var(--s-5); }
/* a wide picture (a system diagram): text on top in two columns, the
   picture full width below */
.mk-block--wide .container > div:first-child { display: grid; gap: 0 clamp(2rem, 1rem + 4vw, 4.5rem); }
@media (min-width: 960px) { .mk-block--wide .container > div:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mk-block--wide .check-list, .mk-block--wide .mk-exlink { grid-column: 2; } .mk-block--wide .check-list { margin-top: 0; grid-row: 1 / span 4; } }
.mk-block--wide .mk-block__media { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.mk-block__media { position: relative; isolation: isolate; }
.mk-block__media::before { content: ""; position: absolute; inset: 6% -3% -5% 5%; z-index: -1; border-radius: 26px; background: linear-gradient(135deg, #e6efff, #e6f8fb); }
.section--alt .mk-block__media::before { background: linear-gradient(135deg, #eef3fb, #eaf7f9); }
.mk-block__media .shot { box-shadow: var(--shadow-lg); }
/* a tall panel shot is not stretched past its own size when the block
   stacks */
@media (max-width: 1023.98px) { .mk-block__media .shot--crop { max-width: 460px; margin-inline: auto; } }
/* six example cards: three per row on desktop */
@media (min-width: 960px) { .mk-exgrid.mk-exgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023.98px) { .mk-block__media::before { inset: 4% -1.5% -3% 3%; } }
.mk-block__caption { margin-top: .75rem; font-size: .8125rem; color: var(--muted); text-align: center; }
/* two pictures stacked with an offset */
.mk-duo { display: grid; gap: 1rem; }
@media (min-width: 640px) { .mk-duo { grid-template-columns: 1.15fr .85fr; align-items: end; } .mk-duo > :last-child { margin-bottom: -1.5rem; } }
.mk-duo .shot img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }

/* a strip of related small capabilities under a block */
.mk-mini { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: clamp(1.5rem, 1.2rem + 1vw, 2rem); border-top: 1px solid var(--line); }
.mk-mini__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .75rem; align-items: start; align-content: start; }
.mk-mini__item .icon { grid-row: span 2; width: 20px; height: 20px; margin-top: 3px; color: var(--primary); }
.mk-mini__item strong { font: 600 .9375rem/1.35 var(--font-head); color: var(--ink); }
.mk-mini__item span { font-size: .875rem; color: var(--muted); line-height: 1.5; }

.section--dark .mk-mini { border-top-color: var(--c-line); }
.section--dark .mk-mini__item strong { color: #fff; }
.section--dark .mk-mini__item span { color: #94a3b8; }
.section--dark .mk-mini__item .icon { color: #67e8f9; }

/* tag list of interface / condition names */
.mk-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.mk-tags li { padding: .25rem .6rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 500 .8125rem/1.4 var(--font-body); color: #334155; }
.section--alt .mk-tags li { background: #f1f5f9; }
.mk-tags__label { display: block; margin-top: var(--s-5); font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* the physics overview grid at the top of /physics */
.mk-physgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.mk-physgrid a { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.mk-physgrid a:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.mk-physgrid strong { display: block; font: 600 1rem/1.3 var(--font-head); }
.mk-physgrid small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

/* coupling matrix (rows = from, cols = to) */
.mk-links { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.mk-links th, .mk-links td { padding: .65rem .8rem; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.mk-links thead th { background: var(--surface-2); font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.mk-links tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mk-links td { color: var(--text); }
.mk-links tr:last-child > * { border-bottom: 0; }
.mk-links .mono { color: var(--primary); font-size: .8125rem; }
/* the link catalog: a white panel that closes the couplings section */
.mk-links-sec { padding-top: 0; border-top: 0; }
#coupling { border-bottom: 0; }
.mk-links-card { padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-xs); }
.mk-links-card h3 { margin: 0; }
.mk-specs--card { margin-top: 0; }
.mk-block-title { display: block; margin: 0; }
.mk-flowbg--55 { opacity: .55; } .mk-flowbg--6 { opacity: .6; } .mk-flowbg--7 { opacity: .7; }
.mk-prompts--one { grid-template-columns: minmax(0, 1fr) !important; }
.mk-start { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.mk-version { font-size: 2rem; font-weight: 600; color: var(--ink); margin: 0 0 .75rem; }
.mk-links-card .table-wrap { border: 0; border-radius: 0; }
@media (max-width: 639.98px) {
  /* each link becomes two lines: "Flow -> Heat   u, muT" / its effect */
  .mk-links thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mk-links, .mk-links tbody { display: block; }
  .mk-links tr { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; grid-template-areas: "from to qty" "eff eff eff"; gap: 2px .4rem; padding: .7rem 0; border-bottom: 1px solid #eef2f7; }
  .mk-links tr:last-child { border-bottom: 0; }
  .mk-links th, .mk-links td { padding: 0; border: 0; }
  .mk-links tr > :nth-child(1) { grid-area: from; }
  .mk-links tr > :nth-child(2) { grid-area: to; font-weight: 600; color: var(--ink); }
  .mk-links tr > :nth-child(2)::before { content: "\2192\00a0"; color: var(--muted); font-weight: 400; }
  .mk-links tr > :nth-child(3) { grid-area: qty; text-align: right; }
  .mk-links tr > :nth-child(4) { grid-area: eff; color: var(--muted); font-size: .8125rem; }
}

/* ----------------------------------------------------------- 4 examples */
.mk-exbar { display: grid; gap: 1rem; margin-top: var(--s-6); }
.mk-search { display: flex; gap: .5rem; max-width: 620px; }
.mk-search__field { position: relative; flex: 1; min-width: 0; }
.mk-search__field .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mk-search__field .input { padding-left: 2.6rem; background: #fff; }
.mk-search .btn { flex: none; }
.mk-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.mk-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .4rem .55rem .4rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; color: #334155; font: 600 .875rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.mk-chip:hover { border-color: var(--primary); color: var(--primary); }
.mk-chip__n { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.45rem; padding: 0 .4rem; border-radius: var(--r-pill); background: #eef2f7; color: #475569; font: 600 .75rem/1 var(--font-mono); }
.mk-chip[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.mk-chip[aria-current="page"] .mk-chip__n { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 639.98px) {
  .mk-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .35rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2rem), transparent); }
  .mk-chips::-webkit-scrollbar { display: none; }
  .mk-chips li { flex: none; }
}
.mk-exresult { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: var(--s-5); color: var(--muted); font-size: .9375rem; }
.mk-exresult strong { color: var(--ink); }
.mk-excat { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); scroll-margin-top: calc(var(--nav-h) + 16px); }
.mk-excat:first-child { margin-top: 0; }
.mk-excat__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.mk-excat__head h2 { font-size: var(--fs-h3); margin: 0 0 .25rem; }
.mk-excat__head p { margin: 0; color: var(--muted); max-width: 70ch; font-size: .9375rem; }
@media (max-width: 1023.98px) { .mk-excat__head { flex-direction: column; align-items: flex-start; } }
.mk-excat__head .mk-chip__n { margin-left: .4rem; vertical-align: middle; }
.mk-exgrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
.mk-exgrid > li { display: flex; min-width: 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.mk-excard { width: 100%; }
.mk-excard .card__media { aspect-ratio: 4 / 3; position: relative; }
.mk-excard .card__body { gap: .4rem; }
/* AI examples: how the setup was made */
.mk-excard__origin { display: inline-flex; align-items: center; gap: .4rem; font: 700 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.mk-excard__origin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex: none; }
.mk-excard__origin--recorded { color: var(--primary); }
.mk-excard__origin--recorded::before { background: linear-gradient(135deg, #22d3ee, #2563eb); }
/* an example without a results picture (geometry only): a designed tile,
   not the program's "no picture yet" placeholder */
.mk-exph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #e8efff 0%, transparent 70%), linear-gradient(transparent 23px, rgba(37, 99, 235, .07) 24px) 0 0 / 100% 24px, linear-gradient(90deg, transparent 23px, rgba(37, 99, 235, .07) 24px) 0 0 / 24px 100%, #f4f7fd; }
.mk-exph__tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid #dbe5f6; box-shadow: var(--shadow-sm); color: var(--primary); }
.mk-exph__tile .icon { width: 26px; height: 26px; }
.mk-exph__label { font: 600 .8125rem/1.3 var(--font-body); color: #334155; }
.mk-exph__note { max-width: 30ch; font-size: .875rem; color: var(--muted); }
.mk-exph--large { aspect-ratio: 4 / 3; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mk-exph--large .mk-exph__tile { width: 72px; height: 72px; border-radius: 18px; }
.mk-exph--large .mk-exph__tile .icon { width: 34px; height: 34px; }
.mk-exph--large .mk-exph__label { font-size: 1rem; }
.mk-excard .card__title { font-size: 1.0625rem; margin: 0; }
.mk-excard .card__text { font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-excard__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.mk-excard__meta .badge { font-weight: 500; }
.mk-excard__state { position: absolute; left: .6rem; top: .6rem; }
.mk-exgrid > li:target .mk-excard { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .25), var(--shadow-md); }
/* compact cards on phones: thumbnail left, text right */
@media (max-width: 639.98px) {
  .mk-exgrid { gap: .75rem; }
  .mk-excard { flex-direction: row; align-items: stretch; }
  .mk-excard .card__media { flex: 0 0 104px; aspect-ratio: auto; min-height: 96px; }
  .mk-excard .card__body { padding: .7rem .85rem .75rem; gap: .2rem; }
  .mk-excard .card__title { font-size: .9375rem; line-height: 1.3; }
  .mk-excard .card__text { -webkit-line-clamp: 2; font-size: .8125rem; line-height: 1.45; }
  .mk-excard__meta { display: none; }
  .mk-excard__state { display: none; }
}
.mk-excat__more { display: none; max-width: 340px; margin: 1.25rem auto 0; }
/* two small categories share a row on desktop */
@media (min-width: 1024px) {
  .mk-excat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
  .mk-excat-pair > .mk-excat { margin-top: 0; }
  .mk-excat-pair .mk-exgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* one way to see a whole category: the button below the cards when it
   is shown, else the link in the head */
@media (max-width: 1023.98px) { .mk-excat--collapse .mk-excat__head .link-arrow { display: none; } }
@media (min-width: 1024px) { .mk-excat--cap .mk-excat__head .link-arrow { display: none; } }
@media (max-width: 1023.98px) {
  .mk-exgrid--collapse > li:nth-child(n+4):not(:target) { display: none; }
  .mk-excat__more { display: block; }
}
/* desktop: a long category (the AI assistants) shows two rows of four */
@media (min-width: 1024px) {
  .mk-exgrid--cap > li:nth-child(n+9):not(:target) { display: none; }
  .mk-excat__more--cap { display: block; }
}
@media (max-width: 639.98px) {
  .mk-exph { gap: .3rem; padding: .5rem; }
  .mk-exph .mk-exph__label { display: none; }
  .mk-exph .mk-exph__tile { width: 40px; height: 40px; border-radius: 11px; }
  .mk-exph .mk-exph__tile .icon { width: 20px; height: 20px; }
  .mk-exph--large .mk-exph__label { display: block; }
}
/* the example's own page: breadcrumb under the fixed nav */
.mk-exdetail-page { padding-top: calc(var(--nav-h) + clamp(1.5rem, 1rem + 2vw, 2.75rem)); }
.mk-crumbs { margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.mk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--muted); }
.mk-crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.mk-crumbs li + li::before { content: "/"; color: #b6c0cf; }
.mk-crumbs a { color: var(--muted); text-decoration: none; }
.mk-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.mk-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 639.98px) { .mk-crumbs li:last-child { display: none; } }
@media (min-width: 640px) and (max-width: 1023.98px) {
  .mk-exgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .mk-excard__meta .badge { font-size: .6875rem; padding: .15rem .45rem; }
}
.mk-shot--narrow { max-width: 460px; margin-inline: auto; }
/* detail view (?ex=<name>) */
.mk-exdetail { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .mk-exdetail { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.mk-exdetail > * { min-width: 0; }
.mk-exdetail__media .shot img { aspect-ratio: 4 / 3; object-fit: cover; }

.mk-exdetail h1 { font-size: var(--fs-h2); line-height: 1.15; margin-bottom: var(--s-3); }
.mk-exdetail__summary { font-size: var(--fs-lead); color: var(--muted); }
.mk-path { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; padding: .75rem 1rem; border-radius: var(--r-md); background: var(--navy-900); color: #e2e8f0; font: 500 .875rem/1.4 var(--font-mono); }
.mk-path .icon { width: 14px; height: 14px; color: #67e8f9; }
/* example detail: the shipped prompt and the brief (AI examples) */
.mk-exinput { display: grid; gap: var(--s-5); align-items: stretch; }
.mk-exdoc strong { white-space: nowrap; }
@media (max-width: 479.98px) { .mk-exdetail .btn-row .btn { width: 100%; } }
@media (min-width: 640px) and (max-width: 959.98px) { .mk-exinput--docs { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.mk-exinput > * { min-width: 0; }
/* desktop: the prompt and the brief fill the column under the picture */
@media (min-width: 960px) {
  .mk-exdetail--input { grid-template-areas: "media info" "input info"; grid-template-rows: auto 1fr; row-gap: var(--s-6); }
  .mk-exdetail--input > .mk-exdetail__media { grid-area: media; }
  .mk-exdetail--input > .mk-exdetail__info { grid-area: info; }
  .mk-exdetail--input > .mk-exinput { grid-area: input; }
}
.mk-exprompt { margin: 0; padding: 1.25rem 1.35rem 1.1rem; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); }
.mk-exprompt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .85rem; }
.mk-exprompt__head h2 { margin: 0; font-size: 1.0625rem; letter-spacing: 0; }
.mk-exprompt__text { margin: 0; padding: .9rem 1.1rem; border-left: 3px solid var(--primary); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); color: var(--text); font-size: .9375rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 22rem; overflow-y: auto; }
.mk-exprompt__foot { margin: .75rem 0 0; color: var(--c-muted); font-size: .8125rem; }
.mk-exdocs { padding: 1.25rem 1.35rem; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); }
.mk-exdocs h2 { margin: 0 0 .4rem; font-size: 1.0625rem; letter-spacing: 0; }
.mk-exdocs > p { margin: 0 0 1rem; color: var(--c-muted); font-size: .9375rem; }
.mk-exdocs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mk-exdoc { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mk-exdoc:hover { border-color: #93c5fd; box-shadow: var(--shadow-sm); color: var(--ink); }
.mk-exdoc > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.mk-exdoc strong { color: var(--ink); font-size: .9375rem; }
.mk-exdoc small { color: var(--c-muted); font-size: .8125rem; }
.mk-exdoc .icon-tile { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.mk-exdoc__go { width: 16px; height: 16px; color: var(--c-muted); flex: none; }
.mk-exnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; align-items: start; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.mk-exnav > :last-child:not(:first-child) { justify-self: end; text-align: right; }
@media (max-width: 479.98px) { .mk-exnav { grid-template-columns: minmax(0, 1fr); } .mk-exnav > :last-child:not(:first-child) { justify-self: start; text-align: left; } }

/* ---------------------------------------------- 5 pricing compare + FAQ */
.mk-compare { min-width: 640px; }
.mk-compare thead th { vertical-align: bottom; padding-top: 1.1rem; padding-bottom: 1rem; text-transform: none; letter-spacing: 0; font: 600 1rem/1.3 var(--font-head); color: var(--ink); white-space: normal; text-align: center; }
.mk-compare thead th:first-child { text-align: left; font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mk-compare thead th small { display: block; margin-top: .3rem; font: 500 .8125rem/1.3 var(--font-mono); color: var(--muted); }
.mk-compare thead th.is-featured { background: var(--primary-50); box-shadow: inset 0 3px 0 var(--primary); }
.mk-compare td { text-align: center; vertical-align: middle; }
.mk-compare tbody th { text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; font: 600 .9375rem/1.35 var(--font-body); color: var(--ink); background: #fff; padding: .8rem 1rem; border-bottom: 1px solid #eef2f7; }
.mk-compare tbody th small { display: block; margin-top: 2px; font: 400 .8125rem/1.4 var(--font-body); color: var(--muted); }
.mk-compare td.is-featured { background: #f7faff; }
.mk-compare tr.mk-compare__group th { background: var(--surface-2); font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .9rem; }
.mk-compare tr.mk-compare__group td { background: var(--surface-2); }
.mk-compare .mono { font-weight: 600; color: var(--ink); }
.mk-yes, .mk-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.mk-yes { background: var(--ok-bg); color: var(--ok-fg); }
.mk-no { background: #f1f5f9; color: #94a3b8; }
.mk-yes .icon, .mk-no .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.mk-compare tfoot td { padding: 1rem; border-bottom: 0; border-top: 1px solid var(--line); background: #fff; }
.mk-compare tfoot th { background: #fff; border-bottom: 0; border-top: 1px solid var(--line); }
.mk-compare tfoot .btn { gap: .3em; }
.mk-packs-table, .mk-limits { max-width: 760px; }
.mk-compare .mk-sm { display: none; }
@media (max-width: 639.98px) {
  .mk-compare { min-width: 0; table-layout: fixed; }
  .mk-compare thead th:first-child { width: 36%; }
  .mk-compare th, .mk-compare td { padding-left: .4rem; padding-right: .4rem; }
  .mk-compare thead th { font-size: .875rem; }
  .mk-compare thead th small { font-size: .6875rem; }
  .mk-compare tbody th { font-size: .8125rem; padding-left: .75rem; }
  .mk-compare tbody th small { display: none; }
  .mk-compare td { font-size: .8125rem; }
  .mk-compare td .text-sm { display: block; font-size: .6875rem; }
  .mk-compare tfoot .btn { padding-inline: .35rem; font-size: .75rem; white-space: normal; }
  .mk-compare .mk-lg { display: none; }
  .mk-compare .mk-sm { display: inline; }
}
.mk-compare tfoot form { margin: 0; }
.mk-meters { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .mk-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-meter-card .mk-specs .mono { white-space: nowrap; }
.mk-meter-card h3 { display: flex; align-items: center; gap: .65rem; margin-bottom: .5rem; }
.mk-meter-card .mk-specs { margin-top: var(--s-4); }
.mk-meter-card .mk-specs > div { grid-template-columns: 8.5rem minmax(0, 1fr); }
/* A31 /pricing: four plans, each sold for 1, 3 or 12 prepaid months. Without
   JavaScript a card lists its three prices; static/js/pricing.js shows the
   switch (.mk-terms) and marks the grid .is-term-switch: the chosen price large. */
@media (min-width: 1100px) { .pricing-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } .pricing-grid--4 .price-card { padding: 1.5rem 1.35rem; } }
@media (min-width: 640px) and (max-width: 1099.98px) { .pricing-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-terms { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0 0 var(--s-6); }
.mk-terms[hidden] { display: none; }
.mk-terms__label { margin: 0; font: 600 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mk-terms .segmented button { cursor: pointer; font-family: inherit; line-height: 1.3; }
.mk-terms__save { display: block; font-weight: 500; font-size: .6875rem; color: var(--ok-fg); }
.price-terms { display: grid; gap: .8rem; }
.price-term + .price-term { padding-top: .8rem; border-top: 1px dashed var(--line); }
.price-term__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; margin: 0; }
.price-term__name { font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-term .price-card__amount { font-size: 1.5rem; letter-spacing: -.02em; }
.price-term .price-card__currency, .price-term .price-card__period { font-size: .8125rem; }
.price-term__note { margin: .2rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.price-term__note .mono { color: var(--text); }
.price-term__note .badge { margin-left: .15rem; vertical-align: 1px; }
.is-term-switch .price-term { display: none; padding-top: 0; border-top: 0; }
.is-term-switch .price-term.is-selected { display: block; }
.is-term-switch .price-term__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-term-switch .price-term .price-card__amount { font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); letter-spacing: -.03em; }
.is-term-switch .price-term .price-card__currency { font-size: 1rem; }
.is-term-switch .price-term .price-card__period { font-size: .9375rem; }
.is-term-switch .price-term__note { min-height: 3em; margin-top: .45rem; }
.mk-buys { max-width: 960px; }
.mk-buys__title { margin: var(--s-6) 0 var(--s-3); font-size: 1.125rem; }
/* the compare table with four plans: equal plan columns. Below 1100 px the
   row of each plan's packs (too wide for a narrow column) is left to the
   "Token packs" section that follows the table. */
.page-pricing .mk-compare { table-layout: fixed; width: 100%; }
.page-pricing .mk-compare thead th:first-child { width: 30%; }
@media (max-width: 1099.98px) {
  .page-pricing .mk-compare { min-width: 0; }
  .page-pricing .mk-compare tr:has(td .nowrap), .page-pricing .mk-compare tr.mk-compare__group:has(+ tr td .nowrap) { display: none; }
}
@media (max-width: 639.98px) {
  .page-pricing .mk-compare thead th:first-child { width: 34%; }
}
.mk-faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .mk-faq-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 4rem; } }

/* ----------------------------------------------------------- 6 download */
.mk-platforms { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.mk-platform {
  --os-accent: #2674cb; --os-tint: #ecf4fd;
  min-width: 0; overflow: clip; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: #fff; box-shadow: var(--shadow-md); scroll-margin-top: calc(var(--nav-h) + 16px);
}
#macos.mk-platform { --os-accent: #584ba3; --os-tint: #f2effb; }
#linux.mk-platform { --os-accent: #077674; --os-tint: #e9f6f3; }
.mk-platform__head, .mk-platform__builds, .mk-install-guide { padding: clamp(1.1rem, 3vw, 2rem); }
.mk-platform__head {
  display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, var(--os-tint), #fff 85%);
}
.mk-platform__head .icon-tile { width: 3rem; height: 3rem; flex: none; border-radius: .85rem; background: var(--os-accent); color: #fff; }
.mk-platform__head .icon { width: 1.5rem; height: 1.5rem; }
.mk-platform__head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; }
.mk-platform__head p { margin: .25rem 0 0; color: var(--text); font-size: .95rem; }
.mk-platform__builds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 820px) { .mk-platform__builds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-platform__builds > :only-child { grid-column: 1 / -1; }
.mk-build { min-width: 0; padding: clamp(.9rem, 2vw, 1.35rem); border: 1px solid var(--line); border-radius: var(--r-md); }
.mk-build__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; }
.mk-build__top > div { flex: 1 1 11rem; }
.mk-build__name { margin: 0; font: 650 1.125rem/1.3 var(--font-head); color: var(--ink); }
.mk-build__meta { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.mk-build__details { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.mk-build__details summary, .mk-first-open summary { width: fit-content; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--primary-hover); }
.mk-build__details summary:hover, .mk-first-open summary:hover { text-decoration: underline; }
.mk-build .mk-specs { margin-top: .75rem; }
.mk-build .mk-specs > div { grid-template-columns: 4.3rem minmax(0, 1fr); gap: .5rem; padding: .6rem 0; }
.mk-build .mk-specs dd { min-width: 0; font-family: var(--font-mono); font-size: .8125rem; overflow-wrap: anywhere; }
@media (max-width: 499px) {
  .mk-build__top { align-items: start; flex-direction: column; }
  .mk-build__top > div { flex: auto; }
  .mk-build__top .btn { width: 100%; }
  .mk-build .mk-specs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.mk-sha { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.mk-sha code { background: none; padding: 0; color: var(--ink); word-break: break-all; }
.mk-copy { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; color: var(--primary); font: 600 .75rem/1.2 var(--font-body); }
.mk-copy:hover { border-color: var(--primary); }
.mk-copy.is-copied { color: var(--ok-fg); border-color: var(--ok-line); }
.mk-copy .icon { width: 13px; height: 13px; }
.mk-reqs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mk-req { padding: 1.25rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.mk-req .icon-tile { margin-bottom: .85rem; }
.mk-req h3 { font-size: 1rem; margin: 0 0 .35rem; }
.mk-req p { margin: 0; font-size: .9375rem; color: var(--muted); }
.mk-req p strong { color: var(--ink); }
.mk-install-guide { display: grid; align-items: start; gap: 1.1rem; border-top: 1px solid var(--line); background: #f8fafc; scroll-margin-top: calc(var(--nav-h) + 16px); }
.mk-install-guide h3 { margin: 0; color: var(--ink); font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.mk-install-guide .mk-olist { min-width: 0; max-width: 76ch; }
.mk-install-guide .mk-olist > li::before { background: var(--os-tint); color: var(--os-accent); border-radius: 50%; }
.mk-first-open { margin-top: .55rem; }
.mk-first-open[open] > summary { margin-bottom: .45rem; }
.mk-install-guide code { white-space: normal; }
.mk-install-guide [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (min-width: 820px) { .mk-install-guide { grid-template-columns: minmax(12rem, .55fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); } }
.mk-olist { list-style: none; margin: 0; padding: 0; counter-reset: mk; display: grid; gap: 1rem; }
.mk-olist > li { position: relative; padding-left: 2.6rem; counter-increment: mk; color: var(--text); }
.mk-olist > li::before { content: counter(mk); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 9px; background: var(--navy-800); color: #fff; font: 700 .8125rem/1 var(--font-mono); }
.mk-olist strong { color: var(--ink); }
.mk-olist p { margin: .2rem 0 0; font-size: .9375rem; color: var(--muted); }
.mk-olist code { font-size: .8125em; overflow-wrap: anywhere; }

/* ---------------------------------------------------------- 7 docs hub */
.mk-docsearch { margin-top: var(--s-6); max-width: 620px; }
.mk-start { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .mk-start { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-start__card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.mk-start__card .step__num { margin-bottom: .5rem; }
.mk-start__card h3 { font-size: 1.125rem; margin: 0; }
.mk-start__card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.mk-start__card .link-arrow { margin-top: auto; padding-top: .5rem; font-size: .9375rem; align-self: flex-start; }
.mk-chapters { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mk-chapter { display: flex; flex-direction: column; gap: .75rem; padding: 1.35rem 1.4rem 1.25rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); }
.mk-chapter__head { display: flex; gap: .85rem; align-items: flex-start; }
/* two chapter cards per row on tablets: an odd last one spans the row */
@media (min-width: 640px) and (max-width: 1023.98px) { .mk-chapters > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.mk-chapter__num { font: 600 .75rem/1 var(--font-mono); color: var(--muted); display: block; margin-bottom: .2rem; }
.mk-chapter h4 { font-size: 1.0625rem; margin: 0; }
.mk-chapter h4 a { color: var(--ink); text-decoration: none; }
.mk-chapter h4 a:hover { color: var(--primary); text-decoration: underline; }
.mk-chapter p { margin: 0; font-size: .875rem; color: var(--muted); }
.mk-chapter ul { list-style: none; margin: 0; padding: .75rem 0 0; border-top: 1px solid #eef2f7; display: grid; gap: .35rem; }
.mk-chapter li a { display: inline-flex; align-items: baseline; gap: .45rem; font-size: .875rem; text-decoration: none; color: #334155; }
.mk-chapter li a:hover { color: var(--primary); text-decoration: underline; }
.mk-chapter li a span { font: 500 .75rem/1 var(--font-mono); color: var(--muted); }
.mk-chapter--group { grid-column: 1 / -1; }
.mk-group-title { display: flex; align-items: center; gap: .6rem; margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0 1rem; font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mk-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mk-group-title:first-child { margin-top: 0; }

/* ------------------------------------------- 8 AI pages + cloud flow */
.mk-modes { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .mk-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-mode { display: flex; flex-direction: column; gap: .75rem; padding: 0; overflow: hidden; }
.mk-mode__media { aspect-ratio: 16 / 10; background: #eef2f7; overflow: hidden; border-bottom: 1px solid var(--line); }
.mk-mode__media picture, .mk-pillar__media picture { display: block; height: 100%; }
.mk-mode__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.mk-mode__media--center img { object-position: center; }
.mk-mode__body { padding: 0 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
/* tablet: each way to use it as a horizontal card, picture left */
@media (min-width: 640px) and (max-width: 959.98px) { .mk-mode { flex-direction: row; align-items: stretch; } .mk-mode__media { flex: 0 0 40%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); } .mk-mode__body { padding: 1.25rem; } }
.mk-mode__where { font: 500 .8125rem/1.4 var(--font-mono); color: var(--primary); }
.mk-mode__body p { margin: 0; color: var(--muted); font-size: .9375rem; }
.mk-mode__body .check-list { margin-top: .4rem; font-size: .9375rem; gap: .45rem; }
.mk-prompt { position: relative; margin: 0; padding: 1rem 1.15rem 1rem 1.15rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: .9375rem; color: var(--text); }
.mk-prompt::before { content: "Prompt"; display: block; margin-bottom: .35rem; font: 700 11px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.mk-prompt--bad::before { content: "Too vague"; color: var(--warn-fg); }
.mk-prompt--good { border-color: var(--ok-line); }
.mk-prompt--good::before { content: "From a shipped example"; color: var(--ok-fg); }
.mk-prompts { display: grid; gap: 1rem; }
@media (min-width: 768px) { .mk-prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-inputs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.mk-flow { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: flow; }
@media (min-width: 768px) { .mk-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1099.98px) { .mk-flow li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .mk-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mk-flow li { position: relative; padding: 1.25rem; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); counter-increment: flow; }
.mk-flow li::before { content: counter(flow, decimal-leading-zero); display: block; margin-bottom: .6rem; font: 700 .8125rem/1 var(--font-mono); color: var(--c-eyebrow); }
.mk-flow h3 { font-size: 1.0625rem; margin: 0 0 .35rem; }
.mk-flow p { margin: 0; font-size: .875rem; color: var(--c-muted); }
@media (min-width: 1100px) { .mk-flow li:not(:last-child)::after { content: ""; position: absolute; top: 1.6rem; right: -1rem; width: 1rem; height: 2px; background: var(--flow); opacity: .7; } }
.mk-models { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* the cloud schematic (feature_cloud hero) */
.mk-cd { display: grid; gap: 10px; }
.mk-cd__node { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 163, 184, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mk-cd__node .icon-tile { flex: none; }
.mk-cd__node strong { display: block; color: #fff; font-weight: 600; }
.mk-cd__node small { display: block; color: #94a3b8; font-size: .8125rem; margin-top: 2px; }
.mk-cd__node--queue { background: linear-gradient(rgba(15, 26, 51, .94), rgba(15, 26, 51, .94)) padding-box, var(--flow) border-box; border-color: transparent; }
.mk-cd__servers { display: grid; gap: 10px; }
@media (min-width: 560px) { .mk-cd__servers { grid-template-columns: 1fr 1fr; } }
.mk-cd__servers .mk-cd__node { min-width: 0; }
.mk-cd__slots { display: flex; gap: 4px; margin-left: auto; }
.mk-cd__slots span { width: 9px; height: 20px; border-radius: 3px; background: rgba(148, 163, 184, .25); }
.mk-cd__slots span.on { background: linear-gradient(180deg, #22d3ee, #2563eb); }
.mk-cd__arrow { justify-self: center; width: 2px; height: 18px; position: relative; background: linear-gradient(180deg, rgba(103, 232, 249, .9), rgba(37, 99, 235, .2)); }
.mk-cd__arrow::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 8px; border-right: 2px solid #67e8f9; border-bottom: 2px solid #67e8f9; transform: translateX(-50%) rotate(45deg); }

/* ------------------------------------------------- 9 changelog timeline */
.mk-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.mk-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--primary), rgba(37, 99, 235, .08)); }
.mk-timeline > li { position: relative; padding: 0 0 clamp(1.5rem, 1.2rem + 1vw, 2.25rem) 2.25rem; }
.mk-timeline > li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.mk-timeline > li.is-latest::before { background: var(--primary); }
.mk-release { scroll-margin-top: calc(var(--nav-h) + 16px); }
.mk-release__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: .6rem; }
.mk-release__head h2 { font-size: var(--fs-h3); margin: 0; }
.mk-release__date { font: 500 .875rem/1.3 var(--font-mono); color: var(--muted); }
.mk-release__platforms { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.mk-release__notes p { margin: 0 0 .5rem; color: var(--text); }
.mk-release__notes p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- 10 contact */
.mk-contact { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 1024px) { .mk-contact { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.mk-contact > * { min-width: 0; }
.mk-formcard { padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.mk-formcard h2 { font-size: var(--fs-h3); margin: 0 0 .35rem; }
.mk-formcard > p { color: var(--muted); margin: 0 0 1.5rem; }
.mk-formcard .form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.mk-formcard .alert { margin-bottom: 1.25rem; }
/* the static site's contact result panels: contact.php redirects to #sent
   or #error-<code>, site.js also marks them from the query */
.mk-state { display: none; scroll-margin-top: calc(var(--nav-h) + 24px); }
.mk-state:target, .mk-state.is-shown { display: block; }
.alert.mk-state:target, .alert.mk-state.is-shown { display: flex; }
.mk-state:focus { outline: none; }
.mk-formcard:has(#sent:target) .mk-form-wrap, .mk-formcard.is-sent .mk-form-wrap { display: none; }
.mk-formcard.is-sent #sent { display: block; }
.mk-sent { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.mk-sent__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); box-shadow: 0 0 0 8px rgba(16, 185, 129, .08); }
.mk-sent__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.mk-sent h2 { margin-bottom: .5rem; }
.mk-sent p { color: var(--muted); max-width: 44ch; margin: 0 auto; }
.mk-sent p + p { margin-top: 1rem; }
.mk-sent .btn-row { justify-content: center; margin-top: 1.75rem; }
.mk-side { display: grid; gap: 1rem; }
.mk-side__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; padding: 1.15rem 1.25rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; transition: border-color .18s, box-shadow .18s; }
a.mk-side__item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); color: inherit; }
a.mk-side__item { grid-template-columns: auto minmax(0, 1fr) auto; }
a.mk-side__item::after { content: "\2192"; grid-row: 1 / span 2; grid-column: 3; align-self: center; color: var(--muted); font-size: 1.1rem; }
a.mk-side__item:hover::after { color: var(--primary); }
.mk-side__item .icon-tile { grid-row: span 2; }
.mk-side__item strong { font: 600 1rem/1.3 var(--font-head); color: var(--ink); align-self: end; }
.mk-side__item span { font-size: .875rem; color: var(--muted); }
.mk-topics { margin: 0; padding: 1.15rem 1.25rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.mk-topics h3 { font-size: .9375rem; margin: 0 0 .6rem; }
.mk-topics ul { margin: 0; padding-left: 1.1rem; font-size: .875rem; color: var(--muted); display: grid; gap: .3rem; }

/* ------------------------------------------------------------- 11 about */
.mk-mission { font: 600 clamp(1.4rem, 1.15rem + 1.1vw, 2rem)/1.35 var(--font-head); color: var(--ink); letter-spacing: -.015em; max-width: 30em; margin: 0; }
.mk-mission em { font-style: normal; color: var(--primary-hover); }
.mk-pillars { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .mk-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mk-pillar { display: flex; flex-direction: column; gap: .6rem; padding: 0; overflow: hidden; }
.mk-pillar__media { aspect-ratio: 16 / 9; overflow: hidden; background: #eef2f7; border-bottom: 1px solid var(--line); }
.mk-pillar__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mk-pillar__body { padding: 0 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mk-pillar__body p { margin: 0; color: var(--muted); font-size: .9375rem; }
.mk-pillar__body .link-arrow { margin-top: auto; padding-top: .5rem; }
@media (min-width: 640px) and (max-width: 959.98px) { .mk-pillar { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; } .mk-pillar__media { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); } .mk-pillar__body { padding: 1.4rem; } }

/* ------------------------------------- 12 legal + security (doc layout) */
.mk-doc { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .mk-doc { grid-template-columns: 250px minmax(0, 1fr); gap: 4rem; } }
.mk-doc > * { min-width: 0; }
.mk-toc { padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
@media (min-width: 1024px) { .mk-toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; } }
.mk-toc h2 { font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.mk-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; counter-reset: toc; }
.mk-toc li { counter-increment: toc; }
.mk-toc a { display: flex; gap: .55rem; padding: .35rem .5rem; border-radius: 8px; font-size: .875rem; line-height: 1.4; color: #334155; text-decoration: none; }
.mk-toc a::before { content: counter(toc); flex: none; min-width: 1.1rem; font: 500 .75rem/1.6 var(--font-mono); color: var(--muted); }
.mk-toc a:hover { background: var(--primary-50); color: var(--primary); }
.mk-toc--plain a::before { display: none; }
/* a phone: two narrow columns, so the contents do not fill a screen */
@media (max-width: 639.98px) { .mk-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-toc a { font-size: .8125rem; padding: .3rem .35rem; } }
.mk-legal-hero .lead { max-width: 60ch; }
.mk-legal p.muted { color: var(--muted); }
@media (max-width: 1023.98px) { .mk-toc ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); } }
.mk-legal { max-width: 72ch; }
.mk-legal__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 var(--s-6); padding: 0 0 var(--s-5); border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--muted); list-style: none; }
.mk-legal__meta strong { color: var(--ink); font-weight: 600; }
.mk-legal section { scroll-margin-top: calc(var(--nav-h) + 16px); }
.mk-legal section + section { margin-top: var(--s-7); }
.mk-legal h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.625rem); margin: 0 0 var(--s-3); display: flex; gap: .65rem; align-items: baseline; }
.mk-legal h2 .mk-legal__n { font: 600 .9375rem/1 var(--font-mono); color: var(--primary); }
.mk-legal h3 { font-size: 1.0625rem; margin: var(--s-5) 0 var(--s-2); }
.mk-legal p, .mk-legal li { color: var(--text); }
.mk-legal ul, .mk-legal ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.mk-legal li + li { margin-top: .35rem; }
.mk-legal .table-wrap { margin: var(--s-4) 0 var(--s-5); }
.mk-legal .table td { font-size: .875rem; }
/* the meta row is a flex list: no list indent, no stacked-item gap */
.mk-legal ul.mk-legal__meta { padding-left: 0; }
.mk-legal .mk-legal__meta li + li { margin-top: 0; }
.mk-summary { margin: 0 0 var(--s-6); padding: 1.25rem 1.4rem; border-radius: var(--r-lg); background: var(--primary-50); border: 1px solid var(--info-line); }
.mk-summary h2 { font-size: 1.0625rem !important; margin: 0 0 .6rem !important; }
.mk-summary ul { margin: 0; }
.mk-summary li { color: #1e3a8a; }
.mk-measures { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mk-measure { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; align-items: start; padding: 1.25rem; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); }
.mk-measure .icon-tile { grid-row: span 2; }
.mk-measure h3 { font-size: 1.0625rem; margin: .45rem 0 0; }
.mk-measure p { margin: 0; font-size: .9375rem; color: var(--c-muted); }

/* --------------------------------------- 13 auth split (sign in / up) */
.mk-auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: min(100vh, 880px); padding-top: var(--nav-h); background: radial-gradient(760px 420px at 0% 0%, #e3ecff 0%, transparent 60%), var(--bg); }
@media (min-width: 960px) { .mk-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1280px) { .mk-auth { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.mk-auth > * { min-width: 0; }
.mk-auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--gutter); }
.mk-auth__card { width: 100%; max-width: 448px; padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mk-auth__mark { display: block; width: 44px; height: 44px; margin-bottom: 1.25rem; }
.mk-auth__card h1 { font-size: clamp(1.625rem, 1.4rem + .9vw, 2.125rem); margin: 0 0 .5rem; }
.mk-auth__sub { color: var(--muted); margin: 0 0 1.5rem; font-size: .9375rem; }
.mk-auth__card .alert { margin-bottom: 1.25rem; }
.mk-auth__form { display: grid; gap: 1.1rem; }
.mk-auth__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mk-auth__labelrow a { font-size: .8125rem; font-weight: 600; text-decoration: none; }
.mk-auth__labelrow a:hover { text-decoration: underline; }
.mk-auth__form .btn { margin-top: .35rem; }
.mk-auth__plan { margin: 0; display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .95rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: .875rem; color: var(--text); }
.mk-auth__plan .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--primary); }
.mk-auth__alt { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9375rem; }
.mk-auth__alt a { font-weight: 600; }
.mk-auth__legal { margin: 1rem 0 0; text-align: center; font-size: .8125rem; color: var(--muted); text-wrap: pretty; }
.mk-auth__req { margin: -.75rem 0 1.1rem; font-size: .8125rem; color: var(--muted); }
.mk-auth__sim { margin: 1rem 0 0; text-align: center; }
.mk-auth__brand { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem); background: radial-gradient(700px 420px at 10% 0%, rgba(37, 99, 235, .45), transparent 62%), radial-gradient(600px 380px at 100% 100%, rgba(6, 182, 212, .2), transparent 60%), var(--navy-900); }
.mk-auth__brand h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); color: #fff; margin: 0; max-width: 18em; }
.mk-auth__brand .lead { color: #b6c3d6; margin: 0; max-width: 34em; }
.mk-auth__brand .check-list { max-width: 34em; }
.mk-auth__shot { margin: .5rem 0 0; max-width: 560px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(148, 163, 184, .25); box-shadow: 0 30px 60px rgba(2, 6, 23, .5); }
.mk-auth__shot img { display: block; width: 100%; height: auto; }
@media (max-width: 959.98px) {
  .mk-auth { min-height: 0; }
  .mk-auth__brand { padding-block: 2.5rem; }
  .mk-auth__shot { display: none; }
}

/* ---------------------------------------------------------- 14 checkout */
.mk-checkout { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .mk-checkout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; } }
.mk-checkout > * { min-width: 0; }
.mk-co-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.mk-co-head h1 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem); margin: 0; }
.mk-co-sim { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 1rem 1.15rem; border-radius: var(--r-md); border: 1px solid var(--warn-line); background: var(--warn-bg); color: #78350f; }
.mk-co-sim .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--warn-fg); }
.mk-co-sim strong { display: block; color: #78350f; }
.mk-co-sim p { margin: .15rem 0 0; font-size: .9375rem; }
.mk-co-card { padding: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.mk-co-card h2 { font-size: 1.125rem; margin: 0 0 1rem; }
.mk-co-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mk-co-item strong { font: 600 1.0625rem/1.35 var(--font-head); color: var(--ink); }
.mk-co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; }
.mk-co-total span { color: var(--muted); font-weight: 600; }
.mk-co-total strong { font: 700 clamp(1.6rem, 1.4rem + .8vw, 2rem)/1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.mk-co-total strong.mk-co-total__note { font: 600 1.0625rem/1.3 var(--font-head); letter-spacing: 0; }
.mk-co-item__sub { display: block; margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.mk-co-state__actions { justify-content: center; }
.mk-co-card .mk-specs { margin-top: 1.25rem; }
.mk-co-card .mk-specs > div { grid-template-columns: 7.5rem minmax(0, 1fr); padding: .55rem 0; }
@media (max-width: 479.98px) { .mk-co-card .mk-specs > div { grid-template-columns: 6rem minmax(0, 1fr); gap: .5rem; } .mk-co-card .mk-specs dd.mono { font-size: .8125rem; } }
.mk-co-pay { display: grid; gap: 1rem; }
.mk-co-pay form { margin: 0; }
.mk-co-picks { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.mk-co-picks legend { font: 600 .9375rem/1.3 var(--font-body); color: var(--ink); margin-bottom: .6rem; padding: 0; }
.mk-co-pick { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .9rem 2.75rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mk-co-pick input { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.mk-co-pick:hover { border-color: #94a3b8; }
.mk-co-pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.mk-co-pick strong { font: 600 1rem/1.3 var(--font-head); color: var(--ink); }
.mk-co-pick span { font: 600 .9375rem/1.3 var(--font-mono); color: var(--ink); }
.mk-co-pick small { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.mk-co-state { text-align: center; padding: .5rem 0; }
.mk-co-state .mk-sent__icon { margin-bottom: 1rem; }
.mk-co-state--bad .mk-sent__icon { background: var(--bad-bg); color: var(--bad-fg); box-shadow: 0 0 0 8px rgba(239, 68, 68, .08); }
.mk-co-state--warn .mk-sent__icon { background: var(--warn-bg); color: var(--warn-fg); box-shadow: 0 0 0 8px rgba(245, 158, 11, .1); }
.mk-co-state h2 { margin: 0 0 .4rem; font-size: 1.375rem; }
.mk-co-state p { color: var(--muted); margin: 0; }
.mk-co-foot { margin: 1rem 0 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.mk-co-foot .sim-marker { margin-top: .5rem; }

/* ---------------------------------- 15 message, 404 / 500, research */
.mk-message { min-height: 70vh; display: flex; align-items: center; }
.mk-message .container { display: flex; justify-content: center; }
.mk-message__card { width: 100%; max-width: 560px; text-align: center; padding: clamp(2rem, 1.5rem + 2.5vw, 3.25rem); }
.mk-message__card .icon-tile { width: 60px; height: 60px; margin: 0 auto 1.25rem; border-radius: 18px; }
.mk-message__card .icon-tile .icon { width: 28px; height: 28px; }
.mk-message__card h1 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); margin-bottom: .5rem; }
.mk-message__card p { color: var(--muted); }
.mk-message__card .btn-row { justify-content: center; margin-top: 1.5rem; }
.mk-error { position: relative; isolation: isolate; min-height: 78vh; display: flex; align-items: center; }
.mk-error__code { display: inline-block; font: 700 clamp(4.5rem, 3rem + 7vw, 9rem)/.9 var(--font-head); letter-spacing: -.04em; background: var(--flow-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; margin-bottom: 1rem; opacity: .95; }
.mk-error .lead { margin-inline: auto; }
.mk-error__links { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 2.25rem auto 0; max-width: 760px; text-align: left; }
.mk-error__links a { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid rgba(148, 163, 184, .22); background: rgba(255, 255, 255, .04); color: #e2e8f0; text-decoration: none; transition: border-color .18s, background .18s; }
.mk-error__links a:hover { border-color: rgba(103, 232, 249, .6); background: rgba(255, 255, 255, .08); color: #fff; }
.mk-error__links .icon { color: #67e8f9; }
.mk-error__links strong { display: block; font: 600 .9375rem/1.3 var(--font-head); }
.mk-error__links small { display: block; font-size: .8125rem; color: #94a3b8; }
.mk-error__path { margin-top: 2rem; font-size: .8125rem; color: #94a3b8; }
.mk-error__path .mono { color: #cbd5e1; overflow-wrap: anywhere; }
@media (min-width: 960px) { .mk-consent { position: sticky; top: calc(var(--nav-h) + 24px); } }
.mk-consent { padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.mk-consent__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.mk-consent__head h2 { font-size: 1.25rem; margin: 0; }
.mk-consent__text p { color: var(--text); }
.mk-consent__text p:last-child { margin-bottom: 0; }
.mk-two { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .mk-two { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; } }
.mk-two > * { min-width: 0; }
.mk-hero .mk-measures { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
/* four places to continue: one column on a phone, 2 x 2, then one row */
.mk-error__links { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
@media (min-width: 480px) { .mk-error__links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; } }
@media (min-width: 960px) { .mk-error__links { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; } }
@media (max-width: 639.98px) {
  .mk-physgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .mk-physgrid a { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .8rem; }
  .mk-physgrid small { display: none; }
  .mk-physgrid .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
}
@media (max-width: 639.98px) { .mk-compare tfoot { display: none; } }

/* ---- static site (tools/site_export.py) ---- */
/* "Early access" note under a hero lead */
.mk-early { display: flex; align-items: center; gap: .5rem .75rem; max-width: 640px; margin: 1.5rem auto 0; padding: .7rem 1rem; border: 1px solid var(--info-line); border-radius: var(--r-md); background: var(--info-bg); color: #1e3a8a; font-size: .9375rem; text-align: left; text-wrap: pretty; }
.mk-early__badge { flex: none; padding: .2rem .6rem; border-radius: 999px; background: #1d4ed8; color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.mk-early a { color: inherit; font-weight: 600; }
@media (max-width: 479.98px) { .mk-early { flex-direction: column; align-items: flex-start; } }
/* the example search filters the cards of /examples/ (site.js) */
.mk-exlist.is-searching .mk-exgrid > li { display: flex; }
.mk-exlist.is-searching .mk-excat__more { display: none; }
/* Recorded showcases reuse the site typography and colour tokens. */
.showcase-demo__poster[hidden],.showcase-demo__frame[hidden]{display:none}
.showcase-slide>a{aspect-ratio:16/9!important}.showcase-slide img,.showcase-card__image img,.showcase-demo__poster img{object-fit:contain!important}
.showcase-demo__frame iframe{height:980px!important}
.showcase-demo__poster .btn{max-width:100%;white-space:normal;text-align:center}
.showcase-section-heading,.showcase-story,.showcase-next{display:flex;justify-content:space-between;align-items:center;gap:2rem;margin-bottom:2rem}
.showcase-section-heading>div{max-width:48rem}.showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.showcase-card{border:1px solid #dce4ef;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 36px #10244608}
.showcase-card__image{display:block;position:relative;background:#eaf0f5;overflow:hidden;aspect-ratio:16/10}
.showcase-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.showcase-card:hover img{transform:scale(1.025)}
.showcase-card__image>span{position:absolute;top:1rem;left:1rem;padding:.35rem .7rem;border-radius:99px;background:#0b1428e8;color:#fff;font-size:.75rem;letter-spacing:.04em}
.showcase-card__body{padding:1.5rem}.showcase-card h3{font-size:1.3rem;line-height:1.3;margin:0 0 .8rem}.showcase-card h3 a{color:#10223d;text-decoration:none}.showcase-card p{color:#506176}
.showcase-slider{min-width:0;position:relative;align-self:center;padding:0 0 2rem!important}.showcase-slider__screen{border:1px solid #ffffff26;border-radius:22px;overflow:hidden;background:#10213b;box-shadow:0 28px 80px #0006}
.showcase-slide[hidden]{display:none}.showcase-slide>a{display:block;aspect-ratio:16/10;background:#f1f5f9}.showcase-slide img{width:100%;height:100%;object-fit:cover}
.showcase-slide__caption{padding:1.35rem 1.6rem}.showcase-slide__caption>span{font-size:.73rem;text-transform:uppercase;letter-spacing:.17em;color:#77d8e8}.showcase-slide h2{font-size:1.55rem;margin:.5rem 0}.showcase-slide h2 a{color:#fff;text-decoration:none}.showcase-slide p{font-size:.9rem;color:#c3cfdf;min-height:3.8em}
.showcase-slider__controls{display:flex;align-items:center;justify-content:center;gap:.8rem;margin-top:1rem;color:#ced8e8;font-size:.8rem}.showcase-slider__controls button{background:#ffffff0d;color:#fff;border:1px solid #ffffff30;border-radius:9px;min-height:40px;min-width:40px;padding:.4rem .7rem;cursor:pointer}
.showcase-hero .lead{max-width:55rem}.showcase-back{display:inline-block;margin-bottom:1.8rem;color:#c6d2e4}.showcase-player{overflow:hidden;border:1px solid #ffffff24;border-radius:20px;background:#07101f;margin-top:2.5rem;box-shadow:0 24px 70px #0004}.showcase-player video{display:block;width:100%;max-height:75vh;aspect-ratio:16/9;background:#07101f}
.showcase-video-note{font-size:.85rem;color:#acbdd3;margin-top:1rem}.showcase-story>div{max-width:44rem}.showcase-highlights{list-style:none;padding:0;min-width:32%;margin:0}.showcase-highlights li{display:flex;align-items:center;gap:.8rem;padding:1rem 0;border-bottom:1px solid #dce4ef}.showcase-highlights svg{color:#007e91;flex-shrink:0}
.showcase-pill{border:1px solid #b3d4dc;background:#e2f4f5;border-radius:99px;padding:.6rem 1rem;white-space:nowrap;color:#00616e;font-size:.85rem}
.showcase-demo{border:1px solid #cedae7;border-radius:22px;overflow:hidden;background:#07162a;box-shadow:0 16px 48px #10223b10}.showcase-demo__poster{position:relative;min-height:430px;display:grid;grid-template-columns:1fr 1fr;align-items:center;color:#fff}.showcase-demo__poster img{width:100%;height:100%;object-fit:cover}.showcase-demo__poster>div{padding:2rem}.showcase-demo__poster p{color:#cbd7e5}.showcase-demo__frame iframe{width:100%;height:760px;border:0;display:block;background:#fff}.showcase-demo-details{display:grid;grid-template-columns:1fr 1fr;gap:1rem 3rem;margin-top:1.5rem;color:#506176}.showcase-demo-details a{grid-column:1/-1}.showcase-demo-status{min-height:1.5em;color:#00616e}
.showcase-feature-links{display:flex;gap:2rem;flex-wrap:wrap;padding:1.5rem}.footer-social{display:flex;gap:.65rem;margin:1.2rem 0}.footer-social:empty{display:none}.footer-social a{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff30;border-radius:12px;color:#fff;transition:background .2s,transform .2s}.footer-social a:hover{background:#ffffff18;transform:translateY(-2px)}
@media(max-width:1100px){.showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.showcase-section-heading,.showcase-story,.showcase-next{align-items:flex-start;flex-direction:column}.showcase-demo__poster{grid-template-columns:1fr 1fr;min-height:340px}}
@media(max-width:600px){.showcase-grid{grid-template-columns:1fr}.showcase-demo__poster{display:block;min-height:0}.showcase-demo__poster img{max-height:240px}.showcase-demo-details{grid-template-columns:1fr}.showcase-demo__frame iframe{height:700px}.showcase-slide__caption{padding:1rem}.showcase-slider__controls{gap:.4rem}.showcase-story,.showcase-next{gap:1rem}.showcase-highlights{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.showcase-card__image img,.footer-social a{transition:none}}
.example-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.example-case-grid article { padding: clamp(1.25rem, 2vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.example-case-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.showcase-report-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }

/* ---- example page: the full case description (2026-11-04) ------------
   marketing/example.html below the hero: an in-page table of contents
   (sticky beside the article from 1024 px, the four group links above it
   on smaller screens) and the article - the problem, the model setup and
   the results as the program's report builder reads them from the
   project (tools/website_example_details.py). Wide tables scroll inside
   their own .table-wrap; the page itself never scrolls sideways. */
.exd-jump { margin: var(--s-5) 0 0; }
.exd { scroll-margin-top: var(--nav-h); }
.exd-layout { display: grid; gap: var(--s-6); align-items: start; }
.exd-layout > * { min-width: 0; }
@media (min-width: 1024px) { .exd-layout--toc { grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); } }
.exd-toc { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: .9375rem; }
.exd-toc__title { margin: 0 0 var(--s-3); font: 700 var(--fs-xs)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.exd-toc ol { list-style: none; margin: 0; padding: 0; }
.exd-toc li { margin: 0; }
.exd-toc a { display: block; padding: .3rem 0; color: var(--text); line-height: 1.35; text-decoration: none; }
.exd-toc a:hover { color: var(--primary); text-decoration: underline; }
.exd-toc > ol > li > a { font-weight: 600; color: var(--ink); }
.exd-toc ol ol { margin: 0 0 .35rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.exd-toc ol ol a { font-size: .875rem; color: var(--muted); }
@media (min-width: 1024px) { .exd-toc { position: sticky; top: calc(var(--nav-h) + 1.25rem); max-height: calc(100vh - var(--nav-h) - 2.5rem); overflow-y: auto; } }
@media (max-width: 1023.98px) {
  .exd-toc > ol { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .exd-toc ol ol { display: none; }
}
.exd-article { max-width: 62rem; overflow-wrap: break-word; }
.exd-group + .exd-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); border-top: 1px solid var(--line-strong); }
.exd-group > h2 { margin: 0 0 var(--s-4); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; }
.exd-group > p, .exd-sec > p { max-width: 74ch; line-height: 1.75; color: var(--text); }
.exd-intro { color: var(--muted) !important; }
.exd-sec { margin-top: var(--s-6); scroll-margin-top: calc(var(--nav-h) + 16px); }
.exd-group, .exd-sec, .exd-table { scroll-margin-top: calc(var(--nav-h) + 16px); }
.exd-sec > h3 { margin: 0 0 var(--s-3); font-size: 1.25rem; line-height: 1.3; }
.exd-sec > h3::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .6rem; border-radius: 2px; background: var(--flow); vertical-align: .12em; }
.exd-glance { margin-top: 0; margin-bottom: var(--s-2); }
.exd-glance dd { overflow-wrap: anywhere; }
.exd-note-block > p { color: var(--text); }
.exd-aside { padding: .75rem 1rem; border-left: 3px solid var(--line-strong); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted) !important; font-size: .9375rem; }
.exd-callout { padding: .85rem 1.1rem; border: 1px solid var(--info-line); border-radius: var(--r-md); background: var(--info-bg); color: var(--info-fg) !important; }
.exd-table { margin-top: var(--s-4); }
.exd-table:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.exd-table .table { font-size: .9rem; }
.exd-table { container-type: inline-size; }
/* the caption stays in view (and wraps) while a wide table scrolls under it */
.exd-table caption { position: sticky; left: 0; box-sizing: border-box; max-width: calc(100vw - 2 * var(--gutter) - 2px); max-width: 100cqi; padding: .7rem .9rem; font-size: .9375rem; line-height: 1.4; border-bottom: 1px solid var(--line); }
.exd-table thead th { padding: .55rem .75rem; }
.exd-table td { padding: .55rem .75rem; overflow-wrap: break-word; min-width: 5.5rem; }
.exd-table td.num { overflow-wrap: normal; min-width: 0; }
.exd-table tbody th { padding: .55rem .75rem; text-align: left; vertical-align: top; min-width: 8rem; background: transparent; color: var(--ink); font: 600 .9rem/1.45 var(--font-body); letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: anywhere; border-bottom: 1px solid #eef2f7; }
.exd-table tbody tr:last-child th { border-bottom: 0; }
.exd-kv { margin: 0; padding: 0; list-style: none; }
.exd-kv li + li { margin-top: .2rem; }
.exd-bullets { max-width: 74ch; margin: var(--s-4) 0 0; padding-left: 1.25rem; }
.exd-bullets li { line-height: 1.65; }
.exd-bullets li + li { margin-top: .5rem; }
/* units in the headers keep their case (m³, not M³) */
.exd-table thead th { text-transform: none; letter-spacing: .01em; font-size: .8125rem; color: var(--muted); }
/* a document's long label ("Download three-chip base-plate case sheet")
   wraps instead of pushing the page sideways at 375 / 768 px */
.mk-exdoc strong { white-space: normal; overflow-wrap: anywhere; }
/* 2026-11-05: a showcase links to its example page (description + project download) */
.showcase-card__body .link-arrow+.link-arrow{display:flex;width:fit-content;margin-top:.55rem}.showcase-slide__caption .link-arrow{color:#9fe3ee;margin-left:1rem;font-size:.9rem;white-space:nowrap}.showcase-example-link{margin:1.2rem 0 0}.showcase-example-link .btn,.showcase-report-links .btn{white-space:normal;text-align:left;max-width:100%}

/* A31: the packs row of the compare table - a pack and its price wrap inside the narrow plan columns */
.mk-compare td .nowrap { white-space: normal; display: inline-block; margin-bottom: 4px; }
