/*
 * SoftTrak public site. Hand-written, self-contained, no third-party hosts (strict CSP in
 * Marketing::BaseController). Extends the app brand (.impeccable.md): sage #65A363 / #4E8E4B / #F2F7F2,
 * Source Sans 3 + Playfair Display, "Trustworthy, Clear, Modern".
 *
 * Fonts are self-hosted and referenced through asset_path so the production-compiled CSS points at the
 * digested files (pinned by test/integration/marketing/assets_test.rb).
 *
 * Contrast notes (WCAG AA): sage #65A363 is used as a FILL behind dark ink (6.1:1), never as small text on
 * the light paper (2.9:1). Accent text uses --accent-ink.
 */

@font-face {
  font-family: "Source Sans 3";
  src: url(/assets/marketing/source-sans-3-latin-wght-normal-7a19a7027e125257d310c6dbd78ae3a30b5ea1e3794d60b12bb28227a003bfda.woff2) format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url(/assets/marketing/source-sans-3-latin-wght-italic-9a15dafc2c2b2414aaa9d6c30830d9aab4361329d8495b1574633603b994b411.woff2) format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(/assets/marketing/playfair-display-latin-wght-normal-e0c764a8e9e1cce92163c55bac4b2ad6cd4cf8c696ce2289ab5c41565e65b7e2.woff2) format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(/assets/marketing/playfair-display-latin-wght-italic-54af24bd0f911f0fd7399d5445ea2023ff501d6a69f2d728f1213072f977ab14.woff2) format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  --paper: #FBFAF6;
  --paper-2: #F4F2EA;
  --paper-3: #ECE9DE;
  --ink: #1B201B;
  --ink-2: #3F473F;
  --muted: #5E665E;
  --hair: rgba(27, 32, 27, 0.10);
  --hair-2: rgba(27, 32, 27, 0.06);
  --sage: #65A363;
  --sage-700: #4E8E4B;
  --sage-50: #F2F7F2;
  --sage-100: #E1EEE0;
  --accent-ink: #346B32;
  --apricot: #D9824B;
  --apricot-ink: #A3532A;
  --apricot-50: #FBF0E7;
  --apricot-100: #F6DFCC;
  --apricot-on-dark: #F2B48A;
  --forest: #1E3A1E;
  --forest-ink: #EEF4EC;
  --forest-muted: #B9CDB6;
  --amber: #8A5A12;
  --danger: #A3282A;
  --shell: rgba(27, 32, 27, 0.04);
  --core: #FFFFFF;
  --core-hi: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --lift: 0 30px 60px -30px rgba(30, 58, 30, 0.22), 0 12px 24px -16px rgba(30, 58, 30, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --field-edge: #8A918A;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101511;
    --paper-2: #151B16;
    --paper-3: #1C231D;
    --ink: #ECEFE8;
    --ink-2: #C9D0C6;
    --muted: #A2AB9F;
    --hair: rgba(236, 239, 232, 0.12);
    --hair-2: rgba(236, 239, 232, 0.07);
    --sage-50: #18241A;
    --sage-100: #213322;
    --accent-ink: #94C992;
    --apricot-ink: #F0A97A;
    --apricot-50: #1E1712;
    --apricot-100: #3A2A1E;
    --forest: #0B110C;
    --forest-ink: #ECEFE8;
    --forest-muted: #A9BEA6;
    --amber: #E3B66A;
    --danger: #F08A8B;
    --shell: rgba(236, 239, 232, 0.05);
    --field-edge: #6E786E;
    --core: #171E18;
    --core-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --lift: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body.mk {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Fine paper grain on a fixed, non-interactive layer (never on scrolling content). */
body.mk::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.035;
  background-image: url(/assets/marketing/grain-f0c6cfa941fe436960e5a8ea55a6d45ad37120aa7edc9513ca6bcc016ea970f8.svg);
}
/* Background texture: a faint, greyed "access map" (contour lines and dotted request paths between nodes). Fixed,
   non-interactive, masked to fade toward the edges, and kept at ~5% so it never competes with content or contrast. */
body.mk::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.055;
  background-image: url(/assets/marketing/access-map-8c68f088ad9be999a7ad9665fd9d37556676a8e0befcb1a60fd325461fdc15b3.svg); background-size: 1200px 1200px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%);
}
/* The fixed texture layers (body::before grain, body::after access map) sit at z-index -1 inside body's own stacking
   context, so all page content paints above them without forcing position/z-index onto body's children. (A blanket
   `.mk > *` rule did that and, out-ranking .mk-header, put the mobile menu UNDER the hero; reported 2026-11-19.) */
body.mk { isolation: isolate; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--sage) 35%, transparent); border-radius: 8px; }
.mk-btn:focus-visible { border-radius: 999px; }
.mk-input:focus-visible { outline-offset: 1px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

.mk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mk-skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.mk-skip:focus { top: 16px; }

.mk-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mk-wrap--narrow { max-width: 820px; }
.mk-center { text-align: center; }

/* ------------------------------------------------------------------ type */
.mk-display {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.1rem); text-wrap: balance; margin-bottom: 0.4em;
}
.mk-display--sm { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.08; }
.mk-h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.15rem); text-wrap: balance; margin-bottom: 0.45em; }
.mk-h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.5em; }
.mk-h4 { font-family: var(--sans); font-weight: 650; font-size: 1.08rem; line-height: 1.3; margin-bottom: 0.4em; }
.mk-lede { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.mk-body { color: var(--ink-2); max-width: 40em; }
.mk-small { font-size: 0.92rem; color: var(--muted); }
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: 1.2rem;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink);
  padding: 0.35em 0.9em; border-radius: 999px; background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--hair-2);
}
.mk-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--apricot); }
.mk-eyebrow--light { background: rgba(255,255,255,0.08); color: var(--forest-muted); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }

/* ------------------------------------------------------------------ buttons */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em; min-height: 48px;
  padding: 0.7em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  font: 650 1rem/1.2 var(--sans); text-decoration: none; letter-spacing: 0.005em;
  transition: transform 500ms var(--ease), background-color 400ms var(--ease), box-shadow 400ms var(--ease), color 400ms var(--ease);
}
.mk-btn:active { transform: scale(0.98); }
.mk-btn--primary { background: var(--sage); color: #12210F; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 24px -12px rgba(78, 142, 75, 0.7); padding-right: 0.55em; }
.mk-btn--primary:not(:has(.mk-btn__icon)) { padding-right: 1.4em; }
.mk-btn--primary:hover { background: #73B070; }
.mk-btn__icon { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(18, 33, 15, 0.12); transition: transform 500ms var(--ease); }
.mk-btn:hover .mk-btn__icon { transform: translate(2px, -1px) scale(1.05); }
.mk-btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.mk-btn--ghost:hover { background: var(--shell); }
.mk-btn--light { background: var(--forest-ink); color: var(--forest); }
.mk-btn--light:hover { background: #fff; }
.mk-btn--sm { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.95rem; }
.mk-btn--block { width: 100%; }
.mk-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.mk-cta-row--center { justify-content: center; }

/* ------------------------------------------------------------------ header (floating island) */
.mk-header { position: sticky; top: 0; z-index: 20; padding: 14px var(--gutter) 0; }
.mk-nav {
  max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 10px 30px -20px rgba(0,0,0,0.25);
}
.mk-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mk-brand__word { font-family: var(--serif); font-weight: 650; font-size: 1.28rem; letter-spacing: -0.01em; }
.mk-mark__tile { fill: var(--forest); }
.mk-mark__path { stroke: var(--sage); }
.mk-mark__dot { fill: var(--forest-ink); }
.mk-mark__dot--end { fill: var(--sage); }
.mk-nav__links { display: flex; gap: 4px; margin-left: auto; }
.mk-nav__links a { display: inline-block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.98rem; font-weight: 550; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.mk-nav__links a:hover, .mk-nav__links a[aria-current="page"] { background: var(--shell); color: var(--ink); }
.mk-menu { display: none; margin-left: auto; }
.mk-menu__toggle { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-weight: 600; }
.mk-menu__toggle::-webkit-details-marker { display: none; }
.mk-menu__bars { position: relative; width: 18px; height: 12px; }
.mk-menu__bars span { position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 500ms var(--ease), top 500ms var(--ease); }
.mk-menu__bars span:first-child { top: 2px; }
.mk-menu__bars span:last-child { top: 9px; }
.mk-menu[open] .mk-menu__bars span:first-child { top: 5.5px; transform: rotate(45deg); }
.mk-menu[open] .mk-menu__bars span:last-child { top: 5.5px; transform: rotate(-45deg); }
.mk-menu__panel { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); padding: 10px; border-radius: 24px; background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2), var(--lift);  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.mk-menu__panel a { display: block; padding: 14px 16px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 1.1rem; font-weight: 600; }
.mk-menu__panel a:hover { background: var(--shell); }

/* ------------------------------------------------------------------ hero */
.mk-hero { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); overflow: hidden; }
.mk-hero::after { content: ""; position: absolute; z-index: -1; inset: -20% -10% auto 40%; height: 120%; background: radial-gradient(closest-side at 40% 45%, color-mix(in srgb, var(--sage) 26%, transparent), transparent 70%), radial-gradient(closest-side at 78% 70%, color-mix(in srgb, var(--apricot) 22%, transparent), transparent 72%); pointer-events: none; }
.mk-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mk-hero__copy .mk-display { max-width: 11.5em; }

.mk-bezel { padding: 7px; border-radius: var(--radius-xl); background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair-2); }
.mk-bezel__core { border-radius: calc(var(--radius-xl) - 7px); background: var(--core); box-shadow: var(--core-hi), 0 1px 2px rgba(0,0,0,0.04); overflow: hidden; }
.mk-bezel--lift { box-shadow: inset 0 0 0 1px var(--hair-2), var(--lift); }

.mk-hero__visual { position: relative; }
.mk-hero__backdrop { position: absolute; inset: -6% -22% auto 18%; transform: rotate(3deg); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair-2), var(--lift); opacity: 0.9; }
.mk-hero__backdrop img { width: 100%; }
.mk-ticket { margin: 0; position: relative; z-index: 1; }
.mk-ticket__core { padding: 22px 22px 18px; }
.mk-ticket__top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--hair-2); }
.mk-ticket__app { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--forest); color: var(--forest-ink); font: 700 1.2rem/1 var(--serif); }
.mk-ticket__title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.mk-ticket__meta { margin: 0; color: var(--muted); font-size: 0.88rem; }
.mk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.mk-badge--done { background: var(--sage-100); color: var(--accent-ink); }
.mk-badge--done::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.mk-ticket__steps { list-style: none; margin: 16px 0 6px; }
.mk-ticket__steps li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 9px 0; font-size: 0.95rem; }
.mk-ticket__steps li:not(.is-last)::after { content: ""; position: absolute; left: 7px; top: 27px; bottom: -9px; width: 2px; background: var(--sage-100); }
.mk-ticket__dot { width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--sage-50); }
.mk-ticket__step em { display: block; font-style: normal; color: var(--muted); font-size: 0.86rem; }
.mk-ticket__when { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-ticket__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--hair-2); color: var(--muted); font-size: 0.84rem; }
.mk-ticket__chip { position: absolute; left: -24px; top: -22px; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: var(--forest-ink); font-size: 0.92rem; box-shadow: var(--lift); transform: rotate(-2deg); }
.mk-ticket__chip strong { color: var(--apricot-on-dark); }

/* ------------------------------------------------------------------ sections */
.mk-section { padding: clamp(64px, 8vw, 116px) 0; }
.mk-section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.mk-section__intro { font-size: 1.12rem; }

.mk-problem { background: color-mix(in srgb, var(--apricot-50) 82%, transparent); }
.mk-problem__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mk-problem__story { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.4; color: var(--ink); max-width: 24em; }
.mk-questions { counter-reset: q; border-top: 1px solid var(--hair); }
.mk-questions li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--hair); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); font-weight: 550; }
.mk-questions__n { font-family: var(--serif); color: var(--apricot-ink); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.mk-scatter { margin: clamp(48px, 7vw, 96px) 0 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.mk-scatter__side { border-radius: var(--radius-xl); padding: 28px; min-height: 240px; position: relative; }
.mk-scatter__side--before { background: var(--apricot-100); }
.mk-scatter__side--after { background: var(--forest); color: var(--forest-ink); }
.mk-scatter__label { display: block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.mk-scatter__side--after .mk-scatter__label { color: var(--forest-muted); }
.mk-scatter__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-chip { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 12px; background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 0.92rem; }
.mk-chip em { font-style: normal; font-size: 0.75rem; color: var(--apricot-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.mk-chip--r1 { transform: rotate(-2deg); } .mk-chip--r2 { transform: rotate(1.5deg) translateY(6px); } .mk-chip--r3 { transform: rotate(-1deg); }
.mk-chip--r4 { transform: rotate(2.5deg); } .mk-chip--r5 { transform: rotate(-1.5deg) translateY(-4px); }
.mk-scatter__arrow { color: var(--apricot); }
.mk-scatter__flow { list-style: none; display: grid; gap: 10px; counter-reset: f; }
.mk-scatter__flow li { counter-increment: f; display: grid; grid-template-columns: 24px 6.5rem 1fr; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); font-weight: 600; }
.mk-scatter__who { color: var(--forest-muted); font-weight: 500; font-size: 0.92rem; }
.mk-scatter__flow li::before { content: counter(f); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #12210F; font-size: 0.8rem; font-weight: 800; }

/* how it works — the access lifecycle as a drawn timeline */
.mk-timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; --progress: 1; }
.mk-timeline::before { content: ""; position: absolute; left: 28px; right: calc((100% - 80px) / 5 - 28px); top: 27px; height: 2px; background: var(--hair); }
.mk-timeline::after { content: ""; position: absolute; left: 28px; right: calc((100% - 80px) / 5 - 28px); top: 27px; height: 2px; background: linear-gradient(90deg, var(--apricot), var(--sage) 55%); transform-origin: left center; transform: scaleX(var(--progress)); transition: transform 1600ms var(--ease-out); }
.mk-timeline__step { position: relative; }
.mk-timeline__node { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 2px var(--sage), 0 0 0 8px var(--paper); font: 600 1.25rem/1 var(--serif); color: var(--accent-ink); margin-bottom: 22px; }
.mk-timeline__step:first-child .mk-timeline__node { box-shadow: inset 0 0 0 2px var(--apricot), 0 0 0 8px var(--paper); color: var(--apricot-ink); }
.mk-timeline__step:last-child .mk-timeline__node { background: var(--forest); color: var(--forest-ink); box-shadow: 0 0 0 8px var(--paper); }
.mk-timeline__body p { color: var(--ink-2); font-size: 1rem; }

/* features */
.mk-features { background: color-mix(in srgb, var(--sage-50) 82%, transparent); }
.mk-feature-list { display: grid; gap: clamp(64px, 9vw, 128px); }
.mk-feature { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mk-feature--flip { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
.mk-feature--flip .mk-feature__copy { order: 2; }
.mk-feature--wide { grid-template-columns: 1fr; padding: clamp(24px, 4vw, 48px); border-radius: 36px; background: var(--forest); color: var(--forest-ink); }
.mk-feature--wide .mk-feature__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(28px, 5vw, 72px); align-items: start; }
.mk-feature--wide .mk-feature__copy .mk-body { color: var(--forest-muted); }
.mk-feature--wide .mk-feature__copy > .mk-value { grid-column: 2; grid-row: 1 / span 2; }
.mk-feature--wide .mk-value { margin-top: 0; border-color: rgba(255,255,255,0.14); }
.mk-feature--wide .mk-value__row { border-color: rgba(255,255,255,0.14); }
.mk-feature--wide .mk-value dt { color: #A8D8A5; }
.mk-feature--wide .mk-value__row + .mk-value__row dt { color: var(--apricot-on-dark); }
.mk-feature--wide .mk-value dd { color: var(--forest-ink); }
.mk-feature--wide .mk-bezel { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.mk-feature__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.mk-feature--lead .mk-feature__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.mk-value { margin: 1.6rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.mk-value__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.mk-value dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); padding-top: 0.25em; }
.mk-value dd { margin: 0; color: var(--ink); font-weight: 550; }
.mk-value__row + .mk-value__row dt { color: var(--apricot-ink); }
.mk-screen { margin: 0; }
.mk-screen__cap { padding: 10px 16px 12px; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); border-top: 1px solid var(--hair-2); background: var(--core); }
.mk-screen__link { display: block; cursor: zoom-in; }
.mk-screen__img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: top left; transition: transform 900ms var(--ease); }
.mk-screen__link:hover .mk-screen__img { transform: scale(1.015); }
.mk-feature__media .mk-bezel__core { aspect-ratio: 16 / 10; background: var(--paper-3); }
.mk-feature__media .mk-bezel__core:has(.mk-screen) { aspect-ratio: auto; background: var(--core); }

.mk-feature-strip { margin-top: clamp(64px, 8vw, 112px); display: grid; gap: 16px; }
.mk-feature-strip__item { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 8px clamp(28px, 5vw, 72px); align-items: start; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2); }
.mk-feature-strip__item .mk-h4 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.mk-feature-strip__item p { margin: 0; color: var(--ink-2); }

.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; }
.mk-chips li { padding: 6px 12px; border-radius: 999px; background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 0.88rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.mk-drawer { border-radius: var(--radius-lg); background: var(--core); color: var(--ink); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.mk-drawer__summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t c" "h c"; gap: 2px 16px; padding: 26px 28px; }
.mk-drawer__summary::-webkit-details-marker { display: none; }
.mk-drawer__title { grid-area: t; font: 600 1.4rem/1.2 var(--serif); }
.mk-drawer__hint { grid-area: h; color: var(--muted); font-size: 0.95rem; }
.mk-drawer__chev { grid-area: c; align-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-50); position: relative; transition: transform 500ms var(--ease); }
.mk-drawer__chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.mk-drawer[open] .mk-drawer__chev { transform: rotate(180deg); }
.mk-drawer__body { padding: 4px 28px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.mk-drawer__group-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--apricot-ink); margin-bottom: 10px; font-weight: 700; }
.mk-drawer__group li { position: relative; padding: 6px 0 6px 22px; font-size: 0.98rem; color: var(--ink-2); line-height: 1.4; }
.mk-drawer__group li::before { content: ""; position: absolute; left: 2px; top: 0.85em; width: 10px; height: 6px; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }

/* people */
.mk-people__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mk-person { grid-column: span 1; padding: 22px 20px; border-radius: var(--radius-lg); background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2); min-height: 190px; display: flex; flex-direction: column; }
.mk-person p { color: var(--ink-2); margin: 0; }
.mk-person__icon { box-sizing: content-box; padding: 10px; border-radius: 12px; color: var(--accent-ink); background: var(--sage-50); margin-bottom: 16px; }
.mk-person:nth-child(even) .mk-person__icon { color: var(--apricot-ink); background: var(--apricot-50); }

/* security band */
.mk-secure { background: var(--forest); color: var(--forest-ink); }
.mk-secure .mk-body { color: var(--forest-muted); }
.mk-secure__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.mk-secure__list { display: grid; gap: 12px; }
.mk-secure__list li { padding: 20px 22px 20px 56px; border-radius: 16px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09); position: relative; font-size: 1.05rem; }
.mk-secure__list li::before { content: ""; position: absolute; left: 22px; top: 25px; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--sage); }
.mk-secure__list li:nth-child(even)::before { box-shadow: inset 0 0 0 1.5px var(--apricot-on-dark); }
.mk-secure__list li:nth-child(even)::after { border-color: var(--apricot-on-dark); }
.mk-secure__list li::after { content: ""; position: absolute; left: 27px; top: 28px; width: 6px; height: 4px; border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage); transform: rotate(-45deg); }

/* faq */
.mk-faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.mk-faq__list { border-top: 1px solid var(--hair); }
.mk-qa { border-bottom: 1px solid var(--hair); }
.mk-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 650; font-size: 1.12rem; }
.mk-qa summary::-webkit-details-marker { display: none; }
.mk-qa summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); font-weight: 400; transition: transform 500ms var(--ease); }
.mk-qa[open] summary::after { transform: rotate(45deg); color: var(--apricot-ink); box-shadow: inset 0 0 0 1px var(--apricot); }
.mk-qa p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 40em; }

/* closing */
.mk-closing { padding-top: 0; }
.mk-closing__card { border-radius: 36px; padding: clamp(40px, 7vw, 96px); background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--apricot) 34%, var(--forest)), transparent 70%), radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--sage) 38%, var(--forest)), var(--forest) 70%); color: var(--forest-ink); text-align: center; }
.mk-closing__card .mk-body { color: var(--forest-muted); }
.mk-btn--outline-light { color: var(--forest-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); background: transparent; }
.mk-btn--outline-light:hover { background: rgba(255,255,255,0.08); }
.mk-closing__card .mk-body { margin-inline: auto; margin-bottom: 2rem; }

/* inner pages */
.mk-page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.mk-toc { margin-top: 2rem; }
.mk-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.mk-toc a:hover { background: var(--shell); color: var(--ink); }
.mk-toc--cards ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mk-toc--cards a { height: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink); font-weight: 600; transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.mk-toc--cards a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hair), 0 10px 24px -18px rgba(30,58,30,0.4); background: var(--core); }
.mk-toc--cards svg { flex: none; color: var(--accent-ink); }
.mk-toc--cards li:nth-child(even) svg { color: var(--apricot-ink); }
.mk-prose { padding-bottom: clamp(72px, 10vw, 128px); }
.mk-prose section { padding: 36px 0; border-top: 1px solid var(--hair); scroll-margin-top: 96px; }
.mk-prose p { color: var(--ink-2); }
.mk-callout { margin-top: 24px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--apricot-50); box-shadow: inset 0 0 0 1px var(--hair-2); }
.mk-callout p { margin: 0; color: var(--ink); }
.mk-draft { padding: 12px 16px; border-radius: 12px; background: #FFF3D6; color: #5A3B00; font-weight: 650; margin-bottom: 1.5rem; }

/* security page: sticky contents column at wide widths */
@media (min-width: 1240px) {
  .mk-security-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; justify-content: center; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
  .mk-security-layout .mk-toc--side { position: sticky; top: 104px; align-self: start; margin-top: 36px; }
  .mk-security-layout .mk-toc--side ul { grid-template-columns: 1fr; gap: 6px; }
  .mk-security-layout .mk-prose { padding-inline: 0; max-width: none; }
  .mk-toc--top { display: none; }
  .mk-sec-hero { max-width: calc(1076px + 2 * var(--gutter)); padding-left: calc(var(--gutter) + 316px); }
}
@media (max-width: 1239px) { .mk-toc--side { display: none; } }

/* tables: never break words; min column widths; scroll inside a labelled region; cards on phones */
.mk-table-wrap { margin-top: 1.5rem; overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--hair); }
.mk-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.98rem; word-break: normal; overflow-wrap: normal; hyphens: manual; }
.mk-table caption { text-align: left; padding: 14px 18px; font-weight: 700; color: var(--ink); }
.mk-table th, .mk-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--hair-2); }
.mk-table thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.mk-table th[scope="row"] { white-space: nowrap; min-width: 11rem; color: var(--ink); }
.mk-table td:nth-child(2) { min-width: 10rem; color: var(--ink-2); }
.mk-table td:last-child { min-width: 18rem; color: var(--ink-2); }

/* contact */
.mk-contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.mk-form-card { padding: clamp(24px, 4vw, 40px); }
.mk-form { display: grid; gap: 18px; }
.mk-field { display: grid; gap: 6px; }
.mk-label { font-weight: 650; font-size: 0.98rem; }
.mk-optional { font-weight: 400; color: var(--muted); }
.mk-input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; box-shadow: inset 0 0 0 1px var(--field-edge), inset 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow 300ms var(--ease); }
.mk-input:focus { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.mk-input--area { resize: vertical; min-height: 150px; }
.has-error .mk-input { box-shadow: inset 0 0 0 2px var(--danger); }
.mk-field__error { margin: 0; color: var(--danger); font-size: 0.92rem; font-weight: 600; }
.mk-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; background: color-mix(in srgb, var(--danger) 10%, var(--core)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent); color: var(--ink); }
.mk-alert p { margin: 0 0 6px; font-weight: 650; }
.mk-alert ul { padding-left: 1.2em; }
.mk-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mk-thanks__mark { color: var(--accent-ink); display: inline-block; margin-bottom: 18px; }

/* footer */
.mk-footer { padding: 56px 0 40px; border-top: 1px solid var(--hair); background: var(--paper); }
.mk-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.mk-footer__tag, .mk-footer__meta p { color: var(--muted); font-size: 0.95rem; margin: 10px 0 0; }
.mk-footer__nav ul { display: grid; gap: 8px; }
.mk-footer__nav a { color: var(--ink-2); text-decoration: none; }
.mk-footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.mk-footer__credits { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* lightbox (marketing.js) */
.mk-lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible; }
.mk-lightbox[open] { display: flex; flex-direction: column; }
.mk-lightbox::backdrop { background: rgba(10, 14, 11, 0.82); backdrop-filter: blur(6px); }
.mk-lightbox img { max-height: 84vh; width: auto; border-radius: 16px; }
.mk-lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; color: #EEF4EC; }
.mk-lightbox__close { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #EEF4EC; color: #1B201B; font: 650 0.95rem var(--sans); cursor: pointer; }


/* "What happens to one request" walkthrough */
.mk-walk { margin-top: clamp(56px, 7vw, 96px); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--sage-50), var(--apricot-50)); box-shadow: inset 0 0 0 1px var(--hair-2); }
.mk-walk__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.mk-walk__head .mk-h3 { margin: 0; }
.mk-walk__head .mk-small { margin: 0; }
.mk-walk__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mk-walk__tab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: var(--core); color: var(--ink-2); font: 600 0.98rem var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1px var(--hair); transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.mk-walk__tab-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); font-size: 0.85rem; }
.mk-walk__tab[aria-selected="true"] { background: var(--forest); color: var(--forest-ink); box-shadow: none; }
.mk-walk__tab[aria-selected="true"] .mk-walk__tab-n { background: var(--sage); color: #12210F; }
.mk-walk__panels { display: grid; gap: 16px; }
.mk-walk__panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.mk-walk__panel[hidden] { display: none; }
.js .mk-walk__panel:not([hidden]) { animation: mk-walk-in 600ms var(--ease-out); }
@keyframes mk-walk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mk-walk__card { padding: 20px; border-radius: var(--radius-lg); background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2), var(--lift); }
.mk-walk__card-top { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.mk-walk__meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 18px 0 14px; }
.mk-walk__meter span { height: 6px; border-radius: 6px; background: var(--paper-3); }
.mk-walk__meter span.is-on { background: var(--sage); }
.mk-walk__status { margin: 0; font-weight: 700; }
.mk-walk__status--wait { color: var(--apricot-ink); }
.mk-walk__status--go, .mk-walk__status--done { color: var(--accent-ink); }
.mk-walk__who { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.mk-walk__step { font: 600 1.3rem/1.2 var(--serif); margin-bottom: 0.4em; color: var(--ink); }
.mk-walk__text p:last-child { color: var(--ink-2); margin: 0; }
.no-js .mk-walk__panel + .mk-walk__panel { padding-top: 16px; border-top: 1px solid var(--hair); }
@media (max-width: 760px) { .mk-walk__panel { grid-template-columns: 1fr; } .mk-walk__tab { padding-right: 12px; } }


/* photo (credited) */
.mk-photo { margin: 0 0 clamp(28px, 4vw, 48px); }
.mk-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.mk-photo__img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; filter: grayscale(0.2) saturate(0.9) contrast(1.02); }
.mk-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--sage) 14%, transparent), color-mix(in srgb, var(--forest) 18%, transparent)); mix-blend-mode: multiply; pointer-events: none; }
.mk-photo__credit { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.mk-photo__credit a { color: var(--muted); }
/* contact: what happens next */
.mk-next { display: grid; gap: 12px; margin: 28px 0; }
.mk-next li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 1.04rem; }
.mk-next li span { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--apricot-100); color: var(--apricot-ink); font-weight: 700; font-size: 0.85rem; }

/* ------------------------------------------------------------------ motion (JS adds .js; reduced motion opts out) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-mk-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-mk-reveal].is-in { opacity: 1; transform: none; }
  .js .mk-timeline { --progress: 0; }
  .js .mk-timeline.is-in { --progress: 1; }
  .js .mk-timeline__step { transition-delay: calc(var(--i, 0) * 120ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .mk-nav__links { display: none; }
  .mk-menu { display: block; }
  .mk-nav__cta { margin-left: auto; }
  .mk-nav__cta + .mk-menu { margin-left: 0; }
  .mk-people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mk-timeline { grid-template-columns: 1fr; gap: 0; }
  .mk-timeline::before, .mk-timeline::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; transform-origin: center top; transform: scaleY(var(--progress)); }
  .mk-timeline__step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 28px; }
  .mk-timeline__node { margin-bottom: 0; }
  .mk-timeline__body p { max-width: 38em; }
  .mk-hero__grid, .mk-problem__grid, .mk-feature, .mk-feature-strip, .mk-secure__grid, .mk-faq__grid, .mk-contact__grid { grid-template-columns: 1fr; }
  .mk-feature--flip .mk-feature__copy { order: 0; }
  .mk-feature--wide .mk-feature__copy { grid-template-columns: 1fr; }
  .mk-feature--wide .mk-feature__copy > .mk-value { grid-column: auto; grid-row: auto; margin-top: 1.4rem; }
  .mk-scatter { grid-template-columns: 1fr; }
  .mk-scatter__arrow { justify-self: center; transform: rotate(90deg); }
  .mk-ticket__chip { left: 12px; }
  .mk-hero__backdrop { display: none; }
  .mk-footer__grid { grid-template-columns: 1fr 1fr; }
  .mk-footer__brand { grid-column: 1 / -1; }
  .mk-drawer__body { grid-template-columns: 1fr; }
  .mk-feature-strip__item { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.mk { font-size: 17px; }
  .mk-header { padding-top: 10px; }
  .mk-nav { gap: 10px; padding-left: 14px; }
  .mk-nav__cta { display: none; }
  .mk-menu { margin-left: auto; }
  .mk-people__grid { grid-template-columns: 1fr; }
  .mk-person { min-height: 0; }
  .mk-value__row { grid-template-columns: 1fr; gap: 4px; }
  .mk-ticket__steps li { grid-template-columns: 22px 1fr auto; gap: 8px; font-size: 0.9rem; }
  .mk-ticket__step em { font-size: 0.8rem; }
  .mk-footer__grid { grid-template-columns: 1fr; }
  .mk-cta-row .mk-btn { flex: 1 1 100%; }
  /* tables become cards */
  .mk-table-wrap { overflow: visible; box-shadow: none; }
  .mk-table { min-width: 0; }
  .mk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mk-table, .mk-table tbody, .mk-table tr, .mk-table th, .mk-table td { display: block; width: 100%; }
  .mk-table caption { display: block; padding: 0 0 12px; }
  .mk-table tr { margin-bottom: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--core); box-shadow: inset 0 0 0 1px var(--hair-2); }
  .mk-table th, .mk-table td { border: 0; padding: 4px 0; min-width: 0 !important; white-space: normal; }
  .mk-table th[scope="row"] { font-size: 1.05rem; padding-bottom: 6px; }
  .mk-table td::before { content: attr(data-label); display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
}

/* ------------------------------------------------------------------ dark-mode component overrides (after the base rules, so they win) */
@media (prefers-color-scheme: dark) {
  .mk-timeline__step:last-child .mk-timeline__node { background: var(--sage); color: #12210F; }
  .mk-screen__img { filter: brightness(0.9); }
  .mk-mark__tile { fill: #345C36; }
  body.mk::after { filter: invert(1); opacity: 0.06; }
  .mk-scatter__side--after, .mk-feature--wide, .mk-closing__card { box-shadow: inset 0 0 0 1px rgba(148, 201, 146, 0.14); }
}

/* ------------------------------------------------------------------ print */
@media print {
  :root { --paper: #fff; --paper-2: #fff; --paper-3: #fff; --core: #fff; --ink: #000; --ink-2: #222; --muted: #444; --forest: #fff; --forest-ink: #000; --forest-muted: #333; --accent-ink: #000; color-scheme: light; }
  body.mk { font-size: 11pt; background: #fff; }
  body.mk::before, body.mk::after, .mk-header, .mk-skip, .mk-cta-row, .mk-closing, .mk-hero::after, .mk-ticket__chip, .mk-scatter__arrow, .mk-btn, .mk-menu, .mk-toc, form .mk-btn, .mk-hp { display: none !important; }
  .mk-secure, .mk-drawer, .mk-scatter__side--after { background: #fff !important; color: #000 !important; box-shadow: inset 0 0 0 1px #999; }
  .mk-drawer__body { display: grid !important; }
  .mk-qa p { display: block; }
  details > :not(summary) { display: block !important; }
  .js [data-mk-reveal] { opacity: 1 !important; transform: none !important; }
  .mk-person, .mk-timeline__step, .mk-qa, .mk-value__row, .mk-screen, .mk-walk__panel, .mk-prose p, .mk-table tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .mk-hero__visual, .mk-scatter, .mk-photo, .mk-walk__card { display: none !important; }
  .mk-section, .mk-hero, .mk-page-hero { padding: 12pt 0; }
  .mk-display { font-size: 28pt; }
  .mk-h2 { font-size: 20pt; }
  .mk-feature, .mk-feature--wide { display: block; padding: 0; background: #fff !important; color: #000; margin-bottom: 14pt; }
  .mk-feature-list { gap: 12pt; }
  .mk-screen__img { max-height: 3.2in; width: auto; margin: 6pt 0; }
  .mk-value dt, .mk-drawer__group-title, .mk-ticket__chip strong, .mk-eyebrow { color: #000 !important; }
  .mk-feature--wide .mk-value dd, .mk-feature--wide .mk-body, .mk-secure .mk-body { color: #222 !important; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  .mk-screen__link::after { content: none !important; }
}
