/* ─────────────────────────────────────────────────────────────────────────────
   marketing-shared.css — the chrome and content blocks every public page shares.

   The site has two landing themes (".tl" Structure, ".tv" Velocity) plus a set of plain
   content pages (/features, /pricing, /about, …). They must not each hand-roll a nav, a
   footer and a feature grid, so everything below is written against CSS custom properties
   and never hard-codes a brand colour. A theme's only job is to redefine the variables in
   the "Theme tokens" block; the components then come out in that theme automatically.

   Contrast rule for this file: every foreground token is chosen to clear WCAG AA (4.5:1) on
   the ground it is declared against. The Velocity theme shipped with black and 40%-alpha grey
   text over a near-black green and was genuinely hard to read — do not lower these values.

   Naming: .mk-* ("marketing kit"). Never reuse a .tl-* or .tv-* name here.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Theme tokens ────────────────────────────────────────────────────────────
   Default palette (deep navy / teal). Applies to any element carrying .mk-page —
   used by the standalone content pages that aren't inside a landing theme. */
.mk-page,
.mk-scope {
  --mk-bg:          #070b12;   /* deepest ground                                   */
  --mk-bg-2:        #0d1420;   /* raised dark ground (cards, nav when solid)       */
  --mk-bg-3:        #121b2b;   /* highest dark ground (hover, inset panels)        */
  --mk-surface:     #f2f5f9;   /* light section ground                             */
  --mk-surface-2:   #ffffff;   /* light card                                       */

  /* Foregrounds. The faintest of each pair is the floor: --mk-fg-faint on --mk-bg and
     --mk-ink-dim on --mk-surface both clear WCAG AA (4.5:1) with room to spare. Anything
     dimmer than these does not. */
  --mk-fg:          #f4f7fb;   /* primary text on dark    */
  --mk-fg-dim:      #b6c2d4;   /* secondary text on dark  */
  --mk-fg-faint:    #8b99ae;   /* tertiary / labels       */
  --mk-ink:         #0c1220;   /* primary text on light   */
  --mk-ink-dim:     #51607a;   /* secondary text on light */

  --mk-accent:      #1ec8a5;
  --mk-accent-deep: #0b8f73;
  --mk-accent-soft: rgba(30, 200, 165, 0.14);
  --mk-on-accent:   #04160f;   /* text that sits on top of --mk-accent             */

  --mk-line:        rgba(232, 237, 245, 0.16);
  --mk-line-strong: rgba(232, 237, 245, 0.30);
  --mk-line-light:  rgba(12, 18, 32, 0.12);

  --mk-radius:      10px;
  --mk-radius-sm:   7px;
  --mk-max:         1180px;
  --mk-nav-h:       68px;

  --mk-font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mk-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Structure theme — blueprint navy + signal teal. Square-ish corners, engineered feel. */
.tl {
  --mk-bg:          #070b12;
  --mk-bg-2:        #0d1420;
  --mk-bg-3:        #121b2b;
  --mk-surface:     #f2f5f9;
  --mk-surface-2:   #ffffff;
  --mk-fg:          #f4f7fb;
  --mk-fg-dim:      #b6c2d4;
  --mk-fg-faint:    #8b99ae;
  --mk-ink:         #0c1220;
  --mk-ink-dim:     #51607a;
  --mk-accent:      #1ec8a5;
  --mk-accent-deep: #0b8f73;
  --mk-accent-soft: rgba(30, 200, 165, 0.14);
  --mk-on-accent:   #04160f;
  --mk-line:        rgba(232, 237, 245, 0.16);
  --mk-line-strong: rgba(232, 237, 245, 0.30);
  --mk-line-light:  rgba(12, 18, 32, 0.12);
  --mk-radius:      4px;
  --mk-radius-sm:   3px;
  --mk-max:         1180px;
  --mk-nav-h:       72px;
  --mk-font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mk-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Velocity theme — near-black green + volt lime.
   The greys here are deliberately much lighter than the theme originally shipped with: on a
   #0e1210 ground, anything under ~#8f978d fails AA at body size. */
.tv {
  --mk-bg:          #0e1210;
  --mk-bg-2:        #151c17;
  --mk-bg-3:        #1c251e;
  --mk-surface:     #f3f5f0;
  --mk-surface-2:   #ffffff;
  --mk-fg:          #eef2ea;   /* 16.9:1 on --mk-bg */
  --mk-fg-dim:      #c2cbbd;   /* 10.4:1            */
  --mk-fg-faint:    #98a394;   /*  5.9:1            */
  --mk-ink:         #101510;
  --mk-ink-dim:     #4e5a4c;
  --mk-accent:      #c6f000;
  --mk-accent-deep: #7d9c00;
  --mk-accent-soft: rgba(198, 240, 0, 0.14);
  --mk-on-accent:   #131a05;
  --mk-line:        rgba(232, 236, 230, 0.18);
  --mk-line-strong: rgba(232, 236, 230, 0.34);
  --mk-line-light:  rgba(16, 21, 16, 0.12);
  --mk-radius:      3px;
  --mk-radius-sm:   2px;
  --mk-max:         1180px;
  --mk-nav-h:       68px;
  --mk-font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mk-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Flip the foreground tokens for a block that sits on the light surface. Children keep reading
   --mk-fg / --mk-fg-dim / --mk-line and come out correct without a single extra selector. */
.mk-invert {
  --mk-fg:       var(--mk-ink);
  --mk-fg-dim:   var(--mk-ink-dim);
  --mk-fg-faint: var(--mk-ink-dim);
  --mk-line:     var(--mk-line-light);
  --mk-line-strong: rgba(12, 18, 32, 0.22);
  --mk-bg:       var(--mk-surface);
  --mk-bg-2:     var(--mk-surface-2);
  --mk-bg-3:     var(--mk-surface-2);
}

/* ── Base for standalone content pages ───────────────────────────────────── */
html:has(.mk-page),
html:has(.mk-page) body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: var(--mk-bg, #070b12);
}

.mk-page {
  margin: 0;
  background: var(--mk-bg);
  color: var(--mk-fg);
  font-family: var(--mk-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mk-page *,
.mk-page *::before,
.mk-page *::after { box-sizing: border-box; }

/* ZERO specificity via :where() so this default can never tie-and-win against a real
   `.mk-* a` colour (e.g. `.mk-mobilenav a`). Landing themes used to declare `.tl a` /
   `.tv a` at (0,1,1) and paint every branded link near-black; Velocity was fixed in
   landing-v2.css, Structure in landing.css (TASK-75). Same trap here if this rule stayed
   at (0,1,1) and a later sheet reordered past `.mk-mobilenav a`. */
:where(.mk-page) :where(a) { color: inherit; text-decoration: none; }

.mk-page h1, .mk-page h2, .mk-page h3, .mk-page h4 {
  font-family: var(--mk-font-display);
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin: 0;
}

/* ── Logo lockup ─────────────────────────────────────────────────────────── */
.mk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.mk-logo-mark { display: block; flex-shrink: 0; }

.mk-logo-word {
  font-family: var(--mk-font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--mk-fg);
  white-space: nowrap;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.mk-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: var(--mk-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* Content pages have no hero to sit over, so their nav is solid from the first pixel. */
.mk-nav--solid,
.mk-nav.is-solid {
  background: color-mix(in srgb, var(--mk-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--mk-line);
}

.mk-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 22px);
  margin-left: auto;
}

.mk-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mk-fg-dim);
  white-space: nowrap;
  transition: color 0.15s ease;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.mk-nav-link:hover,
.mk-nav-link.is-active { color: var(--mk-fg); }

.mk-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--mk-radius-sm);
  background: var(--mk-accent);
  color: var(--mk-on-accent) !important;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.mk-nav-cta:hover { filter: brightness(1.08); }

/* Structure/Velocity theme switch. Kept in the shared nav so both pages offer the same control. */
.mk-themeswitch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius-sm);
  background: color-mix(in srgb, var(--mk-bg) 60%, transparent);
}

.mk-themeswitch a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mk-fg-faint);
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.mk-themeswitch a:hover { color: var(--mk-fg); }

.mk-themeswitch a.is-active {
  background: var(--mk-accent);
  color: var(--mk-on-accent);
}

/* ── Features mega-menu ──────────────────────────────────────────────────── */
.mk-mega-host {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.mk-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 32px));
  padding: 26px 28px 20px;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Hover-open (no JS): these pages render as static SSR so there is no circuit to handle a click.
   :focus-within keeps it keyboard-reachable. */
.mk-mega-host:hover .mk-mega,
.mk-mega-host:focus-within .mk-mega { display: block; }

.mk-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.mk-mega-col-label {
  margin: 0 0 12px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-accent);
}

.mk-mega-link {
  display: block;
  padding: 5px 0;
  font-size: 0.855rem;
  line-height: 1.45;
  color: var(--mk-fg-dim);
  transition: color 0.12s ease;
}

.mk-mega-link:hover { color: var(--mk-fg); }

.mk-mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mk-line);
  font-size: 0.85rem;
  color: var(--mk-fg-faint);
}

.mk-mega-foot a { color: var(--mk-accent); font-weight: 700; }

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
.mk-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius-sm);
  color: var(--mk-fg);
  cursor: pointer;
}
.mk-burger svg { pointer-events: none; }

.mk-mobilenav {
  display: none;
  position: fixed;
  top: var(--mk-nav-h);
  left: 0;
  right: 0;
  z-index: 299;
  max-height: calc(100dvh - var(--mk-nav-h));
  overflow-y: auto;
  padding: 8px 0 16px;
  background: var(--mk-bg-2);
  border-bottom: 1px solid var(--mk-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.mk-mobilenav.is-open { display: block; }

.mk-mobilenav-section {
  padding: 14px 22px 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-accent);
}

.mk-mobilenav a {
  display: block;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mk-fg-dim);
  border-bottom: 1px solid var(--mk-line);
}

.mk-mobilenav a:hover { color: var(--mk-fg); }

.mk-mobilenav a.mk-mobilenav-cta {
  margin: 14px 22px 0;
  padding: 12px 18px;
  text-align: center;
  font-weight: 700;
  border: 0;
  border-radius: var(--mk-radius-sm);
  background: var(--mk-accent);
  color: var(--mk-on-accent);
}

@media (max-width: 940px) {
  .mk-nav-links { display: none; }
  .mk-burger { display: inline-flex; }
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.mk-section {
  padding: clamp(64px, 10vh, 112px) clamp(20px, 5vw, 56px);
  background: var(--mk-bg);
  color: var(--mk-fg);
}

.mk-section--tight { padding-block: clamp(48px, 7vh, 76px); }

.mk-inner { max-width: var(--mk-max); margin: 0 auto; }

.mk-kicker {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-accent);
}

.mk-invert .mk-kicker { color: var(--mk-accent-deep); }

.mk-h2 {
  margin: 0 0 14px;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--mk-fg);
  max-width: 22ch;
}

.mk-lead {
  margin: 0 0 clamp(32px, 5vh, 52px);
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--mk-fg-dim);
}

/* ── Pain points ─────────────────────────────────────────────────────────── */
.mk-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--mk-line);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  overflow: hidden;
}

.mk-pain {
  padding: 28px 26px 30px;
  background: var(--mk-bg);
}

.mk-pain-quote {
  margin: 0 0 10px;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--mk-fg);
}

.mk-pain-detail {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--mk-fg-faint);
}

.mk-pain-answer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: var(--mk-accent);
}

.mk-pain-answer svg { flex-shrink: 0; margin-top: 2px; }

.mk-pain-answer-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--mk-fg-dim);
}

/* ── Feature grid ────────────────────────────────────────────────────────── */
.mk-fgroup + .mk-fgroup { margin-top: clamp(44px, 6vh, 72px); }

.mk-fgroup-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-fgroup-title {
  margin: 0;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--mk-fg);
}

.mk-fgroup-lead {
  margin: 0;
  font-size: 0.925rem;
  color: var(--mk-fg-faint);
}

.mk-fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 4px;
}

.mk-feature {
  padding: 22px 22px 24px;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  background: var(--mk-bg-2);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mk-feature:hover {
  background: var(--mk-bg-3);
  border-color: var(--mk-line-strong);
}

.mk-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: var(--mk-radius-sm);
  background: var(--mk-accent-soft);
  color: var(--mk-accent);
}

.mk-invert .mk-feature-icon { color: var(--mk-accent-deep); }

/* h3 on the landing pages (section h2 → feature h3), h4 on /features where the group heading
   already takes h3 — same visual weight either way. */
.mk-feature h3,
.mk-feature h4 {
  margin: 0 0 7px;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.022em;
  color: var(--mk-fg);
}

.mk-feature p {
  margin: 0;
  font-size: 0.895rem;
  line-height: 1.62;
  color: var(--mk-fg-dim);
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.mk-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.mk-step { padding-top: 20px; border-top: 2px solid var(--mk-accent); }

.mk-step-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--mk-accent);
}

.mk-invert .mk-step-num { color: var(--mk-accent-deep); }

.mk-step h3 {
  margin: 0 0 8px;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: var(--mk-fg);
}

.mk-step p { margin: 0; font-size: 0.93rem; line-height: 1.62; color: var(--mk-fg-dim); }

/* ── Comparison table ────────────────────────────────────────────────────── */
.mk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
}

.mk-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mk-table th,
.mk-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--mk-line);
}

.mk-table thead th {
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-fg-faint);
  white-space: nowrap;
}

.mk-table tbody th {
  font-weight: 600;
  color: var(--mk-fg);
  white-space: nowrap;
}

.mk-table td { color: var(--mk-fg-dim); }

.mk-table tr > *:last-child {
  background: var(--mk-accent-soft);
  color: var(--mk-fg);
  font-weight: 600;
}

.mk-table thead th:last-child { color: var(--mk-accent); }

.mk-invert .mk-table thead th:last-child { color: var(--mk-accent-deep); }

.mk-table tbody tr:last-child > * { border-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.mk-faq-list {
  display: grid;
  gap: 1px;
  background: var(--mk-line);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  overflow: hidden;
}

.mk-faq-item { background: var(--mk-bg); }

.mk-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mk-font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.018em;
  color: var(--mk-fg);
}

.mk-faq-item summary::-webkit-details-marker { display: none; }

.mk-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--mk-accent);
}

.mk-faq-item[open] summary::after { content: "\2212"; }

.mk-faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  max-width: 74ch;
  font-size: 0.925rem;
  line-height: 1.68;
  color: var(--mk-fg-dim);
}

.mk-faq-item a { color: var(--mk-accent); text-decoration: underline; text-underline-offset: 2px; }

.mk-invert .mk-faq-item a { color: var(--mk-accent-deep); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--mk-radius-sm);
  background: var(--mk-accent);
  color: var(--mk-on-accent) !important;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  transition: filter 0.15s ease;
}

.mk-btn:hover { filter: brightness(1.08); }

.mk-btn--ghost {
  background: transparent;
  color: var(--mk-fg) !important;
  border: 1px solid var(--mk-line-strong);
}

.mk-btn--ghost:hover { border-color: var(--mk-fg); filter: none; }

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
.mk-cta {
  padding: clamp(64px, 11vh, 120px) clamp(20px, 5vw, 56px);
  background: var(--mk-bg-2);
  border-top: 1px solid var(--mk-line);
}

.mk-cta-inner {
  max-width: var(--mk-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.mk-cta h2 {
  margin: 0 0 10px;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--mk-fg);
}

.mk-cta p { margin: 0; max-width: 46ch; font-size: 1.02rem; color: var(--mk-fg-dim); }

.mk-cta-note {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--mk-fg-faint);
}

.mk-cta-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 8px;
}

/* ── Screenshot frame ────────────────────────────────────────────────────── */
.mk-shot {
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  overflow: hidden;
  background: var(--mk-bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.mk-shot img { display: block; width: 100%; height: auto; }

.mk-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--mk-line);
  background: var(--mk-bg-3);
}

.mk-shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mk-line-strong);
}

.mk-shot-cap {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--mk-fg-faint);
}

/* ── Resource hub sub-page hero (Docs index, Blog index, Support, doc article, blog post) ──
   Shared by the pages one level below /resources. Pages whose hero needs different sizing
   (the /resources hub itself) keep their own .rs-hero-h1/.rs-hero-lead override below this in
   the DOM, which wins on source order at equal specificity — same pattern as .mk-invert. */
.rs-crumb { color: inherit; text-decoration: none; }
.rs-crumb:hover { text-decoration: underline; }

.rs-hero-h1 {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 10px 0 16px;
  color: var(--mk-fg);
}

.rs-hero-lead { font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 64ch; }

/* ── Single-article hero (doc article, blog post). Margin/max-width vary per page and stay
   local overrides. ── */
.da-hero-h1 {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--mk-fg);
}

/* ── Article body + aside layout (doc article, support) ── */
.da-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 900px) {
  .da-grid { grid-template-columns: 1fr; }
}

.da-content h2 {
  font-family: var(--mk-font-display);
  font-weight: 750;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 34px 0 12px;
  color: var(--mk-fg);
}

.da-content h2:first-child { margin-top: 0; }

.da-content p, .da-content li {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--mk-fg-dim);
}

.da-content ul, .da-content ol { padding-left: 1.3em; margin: 0 0 16px; }
.da-content li { margin-bottom: 6px; }
.da-content strong { color: var(--mk-fg); }
.da-content .mk-shot { margin-top: 20px; }

.da-aside-card {
  background: var(--mk-surface-2, var(--mk-surface));
  border: 1px solid var(--mk-line-strong);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.da-aside-head {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--mk-fg-dim);
  margin: 0 0 10px;
}

.da-aside-link {
  display: block;
  font-size: 0.9rem;
  color: var(--mk-fg-dim);
  text-decoration: none;
  padding: 6px 0;
  border-top: 1px solid var(--mk-line);
}

.da-aside-link:first-of-type { border-top: none; }
.da-aside-link:hover,
.da-aside-link.is-active { color: var(--mk-accent); }

.da-aside-note a { color: var(--mk-accent); }

.mk-invert .da-aside-link:hover,
.mk-invert .da-aside-link.is-active,
.mk-invert .da-aside-note a { color: var(--mk-accent-deep); }

/* ── Doc / blog card grid (docs index, blog index) ── */
.rs-doc-card {
  display: block;
  padding: 20px;
  border-radius: 12px;
  background: var(--mk-surface-2, var(--mk-surface));
  border: 1px solid var(--mk-line-strong);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}

.rs-doc-card:hover { border-color: var(--mk-accent); transform: translateY(-2px); }
.mk-invert.rs-doc-card:hover { border-color: var(--mk-accent-deep); }
.rs-doc-card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; color: var(--mk-fg); }
.rs-doc-card p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--mk-fg-dim); }

/* ── Solutions pages (Agencies, Small Business, Software Teams) — identical hero/workflow/links
   block previously copy-pasted verbatim into all three pages' inline <style>. ── */
.sol-hero-h1 {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 20ch;
  margin: 0 0 20px;
  color: var(--mk-fg);
}

.sol-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 66ch; }
.sol-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.sol-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
}

.sol-workflow {
  padding: 24px 24px 26px;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  background: var(--mk-bg-2);
}

.sol-workflow h3 {
  margin: 0 0 10px;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--mk-fg);
}

.sol-workflow p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--mk-fg-dim); }

.sol-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 4px; }
.sol-links a { font-size: 0.94rem; font-weight: 600; color: var(--mk-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.mk-footer {
  background: var(--mk-bg);
  color: var(--mk-fg-faint);
  border-top: 1px solid var(--mk-line);
  font-family: var(--mk-font-body);
}

.mk-footer-top {
  max-width: var(--mk-max);
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 32px) 40px;
}

.mk-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.mk-footer-blurb {
  margin: 16px 0 18px;
  max-width: 30ch;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mk-fg-faint);
}

.mk-footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mk-fg-dim);
}

.mk-footer-mail:hover { color: var(--mk-accent); }

.mk-footer-head {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mk-fg);
}

.mk-footer-link {
  display: block;
  padding: 5px 0;
  font-size: 0.895rem;
  color: var(--mk-fg-faint);
  transition: color 0.14s ease;
}

.mk-footer-link:hover { color: var(--mk-accent); }

/* Marks a link whose destination still needs something from a human (a real social account, a
   real careers listing). Visible in Development/QA only — Production never renders these. */
.mk-footer-link.is-placeholder,
.mk-social.is-placeholder {
  outline: 1px dashed var(--mk-line-strong);
  outline-offset: 2px;
  opacity: 0.72;
}

.mk-footer-bottom { border-top: 1px solid var(--mk-line); }

.mk-footer-bottom-inner {
  max-width: var(--mk-max);
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--mk-fg-faint);
}

.mk-footer-bottom-inner strong { color: var(--mk-fg-dim); font-weight: 600; }

.mk-socials { display: flex; align-items: center; gap: 18px; }

.mk-social {
  display: inline-flex;
  color: var(--mk-fg-faint);
  transition: color 0.15s ease;
}

.mk-social:hover { color: var(--mk-fg); }

@media (max-width: 900px) {
  .mk-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .mk-footer-brand-col { grid-column: 1 / -1; }
  .mk-mega-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .mk-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Reveal-on-scroll (opt-in) ───────────────────────────────────────────────
   Default state is VISIBLE. The hidden-then-fade-in state only exists under .mk-js, which an
   inline <head> script in App.razor stamps on <html> before first paint. Written this way round
   deliberately: if the script is blocked, fails, or the visitor is a crawler with no JS, the
   content is simply there — the failure mode of the opposite arrangement is a permanently blank
   page, which is how "reveal on scroll" usually ships as a bug. */
.mk-js .mk-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mk-js .mk-reveal.is-in { opacity: 1; transform: none; }

/* Visually hidden but still announced (used for the comparison table's empty corner header). */
.visually-hidden-inline {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
