/* Shared marketing kit (web/src/pages/_ui/marketing.tsx). Built only on design-system tokens so
   every page shares the homepage's language: stage white, flat brand shapes, product shown not
   described. Prefixed mk- to stay clear of older page styles. */

.mk-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk-mono { font-family: var(--font-family-mono); font-size: var(--font-size-xs); }
.mk-muted { color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.mk-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-full); font-weight: var(--font-weight-semibold); font-size: var(--font-size-base); text-decoration: none; transition: background-color 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart); }
.mk-btn--primary { background: var(--color-accent); color: var(--color-accent-contrast); box-shadow: var(--shadow-signature); }
.mk-btn--primary:hover { background: var(--color-accent-hover); color: var(--color-accent-contrast); transform: translateY(-1px); }
.mk-btn--primary svg { transition: transform 0.2s var(--ease-out-quart); }
.mk-btn--primary:hover svg { transform: translateX(3px); }
.mk-btn--quiet { color: var(--color-text); border: 1px solid var(--color-border-strong); background: var(--color-surface); }
.mk-btn--quiet:hover { border-color: var(--color-text); color: var(--color-text); }
.mk-band .mk-btn--quiet { background: transparent; color: var(--color-ink-text); border-color: rgba(255, 255, 255, 0.3); }
.mk-band .mk-btn--quiet:hover { border-color: var(--color-ink-text); color: var(--color-ink-text); }

/* ---------- Hero: copy left, the product right, standing on the brand shapes ---------- */
.mk-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.mk-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.mk-hero h1 { font-size: clamp(2.6rem, 3.6vw + 1rem, 4.75rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: var(--font-weight-heavy); margin-top: var(--space-5); }
.mk-hero__lede { margin-top: var(--space-6); font-size: clamp(1.1rem, 0.4vw + 1rem, 1.3rem); line-height: 1.55; color: var(--color-text-muted); max-width: 54ch; text-wrap: pretty; }
.mk-hero__copy > .mk-actions { margin-top: var(--space-8); }
.mk-hero__note { margin-top: var(--space-4); font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* One brand kicker per page, at the top only: the spark dot is the voice. */
/* Kicker: the same white status chip as the checker pill, on a hairline at elevation 1. A label, not a button. */
.mk-kicker { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 3px var(--space-4) 3px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); box-shadow: var(--elevation-1); color: var(--color-text); font-size: 0.84375rem; font-weight: var(--font-weight-semibold); letter-spacing: 0.01em; }
.mk-kicker__spark { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); flex-shrink: 0; }
@media (prefers-contrast: more) { .mk-kicker { border-color: var(--color-border-strong); } }

.mk-hero__stage { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.mk-shape { position: absolute; display: block; pointer-events: none; }
.mk-shape--circle { width: min(62%, 340px); aspect-ratio: 1; left: -4%; top: 2%; border-radius: 50%; background: var(--color-accent); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.mk-shape--half { width: min(46%, 260px); aspect-ratio: 2 / 1; right: -2%; bottom: 6%; border-radius: 0 0 999px 999px; background: var(--color-coral); }
.mk-shape--squircle { width: min(28%, 150px); aspect-ratio: 1; right: 6%; top: 0; border-radius: 30%; background-color: var(--color-lavender); background-image: radial-gradient(rgba(255, 255, 255, 0.8) 2px, transparent 2.6px); background-size: 16px 16px; }
.mk-hero__visual { position: relative; width: min(100%, 470px); }

/* Entrance: the product card settles onto the stage once. Visible by default; motion is extra. */
@media (prefers-reduced-motion: no-preference) {
  .mk-hero__visual { animation: mk-settle 0.9s var(--ease-out-expo) both 0.1s; }
  .mk-shape { animation: mk-rise 1.1s var(--ease-out-expo) both; }
  .mk-shape--half { animation-delay: 0.08s; }
  .mk-shape--squircle { animation-delay: 0.16s; }
}
@keyframes mk-settle { from { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mk-rise { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }

/* ---------- Product drawings ---------- */
.mk-ui { margin: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius-2xl); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 4px rgba(36, 27, 53, 0.06), 0 50px 100px -30px rgba(36, 27, 53, 0.35); color: var(--color-text); }
.mk-ui__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.mk-example { font-family: var(--font-family-mono); font-size: 0.6875rem; color: var(--color-text-muted); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); padding: 2px 8px; }
.mk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border-radius: var(--radius-full); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.mk-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mk-chip--coral { background: var(--color-coral-soft); color: var(--color-coral-soft-text); }
.mk-chip--coral .mk-dot { background: var(--color-coral); }
.mk-chip--violet { background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.mk-chip--violet .mk-dot { background: var(--color-accent); }
.mk-chip--apricot { background: var(--color-apricot-soft); color: var(--color-apricot-soft-text); }
.mk-chip--apricot .mk-dot { background: var(--color-apricot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-apricot) 35%, transparent); }
.mk-approval__title { font-family: var(--font-family-display); font-weight: var(--font-weight-heavy); font-size: 1.25rem; letter-spacing: -0.02em; }
.mk-approval__why { margin-top: var(--space-3); font-size: var(--font-size-sm); line-height: 1.55; color: var(--color-text-muted); }
.mk-diff { margin-top: var(--space-4); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); font-size: var(--font-size-sm); }
.mk-diff__row { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); line-height: 1.45; }
.mk-diff__row--old { background: var(--color-coral-soft); color: var(--color-coral-soft-text); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--color-coral-soft-text) 45%, transparent); }
.mk-diff__row--new { background: var(--color-accent-soft); color: var(--color-accent-soft-text); font-weight: var(--font-weight-medium); }
.mk-diff__sign { font-family: var(--font-family-mono); font-weight: var(--font-weight-bold); text-decoration: none; }
.mk-checks { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mk-checks li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--font-size-xs); color: var(--color-text-muted); }
.mk-checks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.mk-ui__actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.mk-fakebtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-5); border-radius: var(--radius-full); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); border: 1px solid var(--color-border-strong); background: var(--color-surface); }
.mk-fakebtn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); box-shadow: var(--shadow-signature); }
.mk-fakebtn--ghost { border-color: transparent; background: transparent; color: var(--color-text-muted); }

.mk-result__chart { width: 100%; height: auto; margin-top: var(--space-4); overflow: visible; }
.mk-chart__axis { stroke: var(--color-border); }
.mk-chart__marker { stroke: var(--color-border-strong); stroke-dasharray: 3 4; }
.mk-chart__base { fill: none; stroke: var(--color-text-muted); stroke-width: 2; opacity: 0.45; stroke-linecap: round; stroke-linejoin: round; }
.mk-chart__page { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mk-chart__spark { fill: var(--color-apricot); }
@media (prefers-reduced-motion: no-preference) {
  .mk-chart__page { stroke-dasharray: 400; stroke-dashoffset: 400; animation: mk-draw 1.6s var(--ease-out-quart) forwards 0.6s; }
}
@keyframes mk-draw { to { stroke-dashoffset: 0; } }
.mk-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--font-size-xs); color: var(--color-text-muted); }
.mk-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.mk-legend__page { background: var(--color-accent); }
.mk-legend__base { background: var(--color-text-muted); opacity: 0.5; }

.mk-vis__rows { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mk-vis__rows li { padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-muted); }
.mk-vis__prompt { display: block; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); }
.mk-vis__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }
.mk-vis__chip { font-size: 0.6875rem; font-weight: var(--font-weight-semibold); padding: 3px 8px; border-radius: var(--radius-full); }
.mk-vis__engine { font-weight: var(--font-weight-regular); }
.mk-vis__chip--cited { background: var(--color-accent); color: var(--color-accent-contrast); }
.mk-vis__chip--mentioned { background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.mk-vis__chip--absent { background: var(--color-surface); color: var(--color-text-muted); border: 1px solid var(--color-border-strong); }

.mk-queue__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.mk-queue__rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-rest); }
.mk-queue__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-queue__title { font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); }
.mk-queue__copy .mk-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-queue .mk-chip { flex-shrink: 0; }
@media (max-width: 480px) { .mk-queue__rows li { flex-direction: column; align-items: flex-start; } }

/* ---------- Sections ---------- */
.mk-section { padding-top: var(--space-section); }
.mk-section--muted { padding-bottom: var(--space-section); margin-top: var(--space-section); background: var(--color-surface-muted); }
.mk-section--muted + .mk-section { padding-top: var(--space-section); }
.mk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-5) var(--space-10); margin-bottom: var(--space-12); }
.mk-head h2 { font-size: var(--font-size-headline); max-width: 17ch; }
.mk-head p { max-width: 44ch; font-size: 1.0625rem; line-height: 1.6; color: var(--color-text-muted); }

/* ---------- The loop: a real sequence, joined by one track ---------- */
.mk-loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-8) var(--space-6); position: relative; }
.mk-loop::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 12px); }
.mk-loop__step { position: relative; }
.mk-loop__num { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-accent); color: var(--color-accent-text); font-family: var(--font-family-mono); font-weight: var(--font-weight-bold); }
.mk-loop__step:last-child .mk-loop__num { background: var(--color-accent); color: var(--color-accent-contrast); }
.mk-loop h3 { margin-top: var(--space-5); font-size: 1.375rem; letter-spacing: -0.02em; }
.mk-loop p { margin-top: var(--space-2); color: var(--color-text-muted); line-height: 1.6; font-size: var(--font-size-base); }
@media (max-width: 900px) { .mk-loop::before { display: none; } }

/* ---------- Works with ---------- */
.mk-works { padding-top: clamp(40px, 5vw, 72px); }
.mk-works__title { font-family: var(--font-family-display); font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); letter-spacing: -0.02em; color: var(--color-text); }
.mk-works__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) clamp(32px, 5vw, 72px); margin-top: var(--space-6); }
.mk-works__group-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-text-muted); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border-strong); }
.mk-works__list { list-style: none; margin: 0; padding: 0; }
.mk-works__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); row-gap: 2px; align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.mk-works__name { font-family: var(--font-family-display); font-size: clamp(1.25rem, 0.9vw + 1rem, 1.625rem); font-weight: var(--font-weight-heavy); letter-spacing: -0.035em; line-height: 1.15; color: var(--color-text); }
.mk-works__role { grid-column: 1 / -1; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.mk-works__status { display: inline-flex; align-items: center; gap: 0.45em; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); white-space: nowrap; color: var(--color-text); }
.mk-works__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mk-works__status--live::before { background: var(--color-accent); }
.mk-works__status--testing { color: var(--color-text-muted); }
.mk-works__status--testing::before { border: 1.5px solid var(--color-apricot); background: transparent; }
.mk-works__note { margin-top: var(--space-5); font-size: var(--font-size-sm); color: var(--color-text-muted); }
@media (max-width: 760px) { .mk-works__groups { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bento ---------- */
.mk-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--space-5); }
.mk-bento__item { grid-column: span 2; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); min-height: 280px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-2xl); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-rest); transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart); }
/* Bento cards aren't links, so they don't lift on hover. Cards without a visual don't need the tall minimum. */
.mk-bento__item:not(:has(.mk-bento__visual)) { min-height: 200px; }
.mk-bento__item--wide { grid-column: span 4; }
.mk-bento__item--half { grid-column: span 3; }
.mk-bento__copy h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.mk-bento__copy p { margin-top: var(--space-3); line-height: 1.6; color: var(--color-text-muted); max-width: 46ch; }
.mk-bento__visual { position: relative; }
.mk-tone--violet { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.mk-tone--violet .mk-bento__copy p { color: rgba(255, 255, 255, 0.9); }
.mk-tone--coral { background-color: var(--color-coral); border-color: var(--color-coral); background-image: repeating-linear-gradient(-24deg, transparent 0 22px, rgba(36, 27, 53, 0.08) 22px 28px); }
.mk-tone--coral .mk-bento__copy p, .mk-tone--apricot .mk-bento__copy p { color: var(--color-text); }
.mk-tone--apricot { background: var(--color-apricot); border-color: var(--color-apricot); }
.mk-tone--ink { background: var(--color-ink-bg); border-color: var(--color-ink-bg); color: var(--color-ink-text); }
.mk-tone--ink .mk-bento__copy p { color: var(--color-ink-text-muted); }
.mk-tone--ink h3, .mk-tone--violet h3 { color: inherit; }
@media (max-width: 900px) {
  .mk-bento { grid-template-columns: 1fr; }
  .mk-bento__item, .mk-bento__item--wide, .mk-bento__item--half { grid-column: auto; }
}

/* ---------- CTA band ---------- */
.mk-band { position: relative; overflow: hidden; border-radius: 44px; background: var(--color-ink-bg); color: var(--color-ink-text); padding: clamp(40px, 7vw, 96px); }
.mk-band__circle { position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--color-accent); }
.mk-band__spark { position: absolute; right: 300px; top: 64px; width: 40px; height: 40px; border-radius: 50%; background: var(--color-apricot); }
.mk-band__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); max-width: 680px; }
.mk-band h2 { color: var(--color-ink-text); font-size: var(--font-size-headline); }
.mk-band p { font-size: 1.125rem; line-height: 1.65; color: var(--color-ink-text-muted); max-width: 52ch; }
@media (max-width: 640px) {
  .mk-band__spark { right: var(--space-8); top: var(--space-8); }
  .mk-band__circle { width: 260px; height: 260px; right: -110px; bottom: -130px; }
}

.mk-faq { max-width: 76ch; }
/* Keep the +/− icon on the question's first line instead of floating it below long questions. */
.mk-faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.mk-faq summary::after { float: none; margin-left: 0; flex-shrink: 0; }

/* Product drawing beside a short explanation. */
.mk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mk-split__copy { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.mk-split__copy p { font-size: 1.125rem; line-height: 1.65; color: var(--color-text-muted); max-width: 52ch; }
@media (max-width: 900px) { .mk-split { grid-template-columns: 1fr; } }
.mk-link { font-weight: var(--font-weight-semibold); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mk-link::after { content: "→"; transition: transform 0.2s var(--ease-out-quart); }
.mk-link:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .mk-link:hover::after { transform: none; } }
.mk-cta-tail { padding-bottom: var(--space-section); }

/* ---------- Responsive hero ---------- */
@media (max-width: 960px) {
  .mk-hero__grid { grid-template-columns: 1fr; }
  .mk-hero__stage { min-height: 0; padding: var(--space-12) 0 var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-btn, .mk-btn svg { transition: none; }
  .mk-btn--primary:hover, .mk-btn--primary:hover svg { transform: none; }
}

/* Agencies hero: example client site list. Rows land in order once, then the one alert the portal
   really sends appears under its site (the page's signature moment). */
.mk-sites { width: min(100%, 440px); }
.mk-sites__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; }
.mk-sites__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px var(--space-3); padding: 12px 0; border-top: 1px solid var(--color-border); }
.mk-sites__name { font-family: var(--font-family-mono); font-size: var(--font-size-sm); color: var(--color-text); overflow-wrap: anywhere; }
.mk-sites__score { min-width: 40px; padding: 2px 10px; border-radius: var(--radius-full); text-align: center; font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); }
.mk-sites__score--ready { background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.mk-sites__score--partly { background: var(--color-apricot-soft); color: var(--color-apricot-soft-text); }
.mk-sites__score--low { background: var(--color-coral-soft); color: var(--color-coral-soft-text); }
.mk-sites__alert { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 4px 12px; border-radius: var(--radius-full); background: var(--color-coral-soft); color: var(--color-coral-soft-text); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }
.mk-sites__alert .mk-dot { background: var(--color-coral); }
@media (prefers-reduced-motion: no-preference) {
  .mk-sites__list li { animation: mk-row-in var(--duration-entrance) var(--ease-out-expo) calc(0.5s + var(--i, 0) * 0.12s) both; }
  .mk-sites__alert { animation: mk-row-in var(--duration-entrance) var(--ease-out-expo) 1.4s both; }
}
@keyframes mk-row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Product bento: example page history behind one-tap undo. */
.mk-undo { margin-top: var(--space-2); background: rgba(255, 255, 255, 0.9); }
.mk-undo .mk-ui__bar p { margin: 0; }
.mk-undo__list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; }
.mk-undo__list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 10px 0; border-top: 1px solid var(--color-border); font-size: var(--font-size-sm); }
.mk-undo__what { color: var(--color-text); font-weight: var(--font-weight-medium); }
.mk-undo__list li.is-undo .mk-undo__what { color: var(--color-accent-soft-text); font-weight: var(--font-weight-semibold); }
@media (prefers-reduced-transparency: reduce) {
  .mk-ui { background: var(--color-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* "Keep reading": a quiet list of hand-picked related pages near the end of a page body.
   Hairline rows like the free tools list, no cards or shadows. */
.mk-related { padding-top: var(--space-section); }
.mk-related__title { font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 var(--space-5); }
.mk-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: var(--space-8); }
.mk-related__list li { border-top: 1px solid var(--color-border); padding: var(--space-4) 0; }
.mk-related__list a { font-weight: var(--font-weight-semibold); text-underline-offset: 3px; }
.mk-related__list p { margin: 4px 0 0; color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.5; text-wrap: pretty; }
.guide .mk-related { padding-top: 0; margin-top: var(--space-12); }
