/* ModelPad marketing site: the home page at / and the persona pages at
   /for/<persona>. One stylesheet for all of them, served at
   /mk/marketing.css. Every class is prefixed mk- so a page can never
   pick up an app or theme rule by accident.

   The palette is the simple workspace's (frontend/simple/simple.css): the
   page a visitor reads and the product they land in should feel like one
   thing. Dark bands (.mk-band--dark) carry the developer material. */

:root {
  --mk-bg: #f6f3ee;
  --mk-surface: #ffffff;
  --mk-sunken: #efeae2;
  --mk-ink: #1c2230;
  --mk-ink-soft: #3b4354;
  --mk-muted: #5f6878;
  --mk-line: #e4ded3;
  --mk-line-strong: #cfc7b9;
  --mk-accent: #b23c66;
  --mk-accent-hover: #9c3158;
  --mk-accent-soft: #fbedf2;
  --mk-good: #1c7449;
  --mk-good-soft: #e3f3ea;
  --mk-info: #2c5d8f;
  --mk-info-soft: #e7f0f9;
  --mk-warn-soft: #fcf0d4;
  --mk-dark: #14161d;
  --mk-dark-2: #1c1f29;
  --mk-dark-line: rgba(255, 255, 255, 0.09);
  --mk-dark-ink: #e9ebf1;
  --mk-dark-muted: #9aa1b2;
  --mk-radius: 16px;
  --mk-radius-sm: 10px;
  --mk-shadow: 0 1px 2px rgba(28, 34, 48, 0.06), 0 12px 40px rgba(28, 34, 48, 0.10);
  --mk-shadow-sm: 0 1px 2px rgba(28, 34, 48, 0.05), 0 4px 14px rgba(28, 34, 48, 0.06);
  --mk-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mk-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mk-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --mk-wide: 1180px;
  --mk-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mk-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--mk-ink);
  background: var(--mk-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mk-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mk-accent-hover); }
h1, h2, h3, h4 { margin: 0; color: var(--mk-ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(178, 60, 102, 0.45); outline-offset: 2px; border-radius: 6px; }

.mk-wrap { width: 100%; max-width: var(--mk-wide); margin: 0 auto; padding: 0 24px; }
.mk-wrap--narrow { max-width: var(--mk-narrow); }
.mk-skip { position: absolute; left: -9999px; }
.mk-skip:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.mk-nav { position: sticky; top: 0; z-index: 100; background: rgba(246, 243, 238, 0.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mk-nav.is-scrolled { border-bottom-color: var(--mk-line); }
.mk-nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.mk-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--mk-ink); text-decoration: none; }
.mk-logo img { width: 26px; height: 26px; }
.mk-nav-links { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.mk-nav-links a, .mk-nav-menu > summary { font-size: 15px; font-weight: 500; color: var(--mk-ink-soft); text-decoration: none; cursor: pointer; }
.mk-nav-links a:hover, .mk-nav-menu > summary:hover { color: var(--mk-ink); }
.mk-nav-links a[aria-current="page"] { color: var(--mk-accent); }
.mk-nav-menu { position: relative; }
.mk-nav-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.mk-nav-menu > summary::-webkit-details-marker { display: none; }
.mk-nav-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.mk-nav-panel { position: absolute; top: calc(100% + 14px); left: -16px; width: 340px; background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); box-shadow: var(--mk-shadow); padding: 8px; display: grid; gap: 2px; }
.mk-nav-panel a { display: block; padding: 10px 12px; border-radius: var(--mk-radius-sm); }
.mk-nav-panel a:hover { background: var(--mk-sunken); }
.mk-nav-panel strong { display: block; font-size: 15px; color: var(--mk-ink); font-weight: 600; }
.mk-nav-panel span { display: block; font-size: 13.5px; color: var(--mk-muted); line-height: 1.45; }
.mk-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mk-nav-toggle { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1; padding: 14px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.mk-btn--primary { background: var(--mk-accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(178, 60, 102, .22); }
.mk-btn--primary:hover { background: var(--mk-accent-hover); color: #fff; transform: translateY(-1px); }
.mk-btn--ghost { background: var(--mk-surface); color: var(--mk-ink); border-color: var(--mk-line-strong); }
.mk-btn--ghost:hover { border-color: var(--mk-ink-soft); color: var(--mk-ink); }
.mk-btn--quiet { background: transparent; color: var(--mk-ink-soft); padding-left: 10px; padding-right: 10px; }
.mk-btn--quiet:hover { color: var(--mk-ink); }
.mk-btn--sm { font-size: 14.5px; padding: 10px 16px; border-radius: 10px; }
.mk-btn--dark { background: #fff; color: var(--mk-dark); }
.mk-btn--dark:hover { background: #f0f0f3; color: var(--mk-dark); }

/* ── Type helpers ────────────────────────────────────────────────── */
.mk-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-accent); margin-bottom: 14px; }
.mk-h1 { font-size: clamp(40px, 6.2vw, 72px); letter-spacing: -0.035em; line-height: 1.02; }
.mk-h1 em, .mk-h2 em { font-family: var(--mk-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--mk-accent); }
.mk-h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
.mk-h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
.mk-lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--mk-ink-soft); max-width: 640px; }
.mk-muted { color: var(--mk-muted); }
.mk-small { font-size: 14px; }
.mk-center { text-align: center; }
.mk-center .mk-lede { margin-left: auto; margin-right: auto; }
.mk-kbd { font-family: var(--mk-mono); font-size: .88em; background: var(--mk-sunken); border: 1px solid var(--mk-line); padding: 1px 6px; border-radius: 6px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.mk-hero { padding: 72px 0 40px; }
.mk-hero .mk-lede { margin-top: 22px; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.mk-center .mk-actions { justify-content: center; }
.mk-hero-note { margin-top: 14px; font-size: 14px; color: var(--mk-muted); }
.mk-hero-media { margin-top: 56px; }
.mk-hero--split .mk-wrap { display: grid; grid-template-columns: 1fr 1.04fr; gap: 52px; align-items: center; }
/* In the hero the desktop shot is the picture; the phone is a detail. */
.mk-hero .mk-stack { padding-right: 48px; padding-bottom: 32px; }
.mk-hero .mk-stack .mk-shot--phone { width: 168px; border-radius: 26px; padding: 7px; }
.mk-hero .mk-stack .mk-shot--phone img { border-radius: 20px; }
.mk-hero--split .mk-hero-media { margin-top: 0; }

/* ── Sections ────────────────────────────────────────────────────── */
.mk-section { padding: 96px 0; }
.mk-section--tight { padding: 64px 0; }
.mk-section--sunken { background: var(--mk-sunken); }
.mk-section--surface { background: var(--mk-surface); }
.mk-section-head { max-width: 720px; margin-bottom: 48px; }
.mk-section-head .mk-lede { margin-top: 16px; }
.mk-center.mk-section-head, .mk-section-head.mk-center { margin-left: auto; margin-right: auto; }

.mk-band--dark { background: var(--mk-dark); color: var(--mk-dark-ink); }
.mk-band--dark h1, .mk-band--dark h2, .mk-band--dark h3, .mk-band--dark h4 { color: #fff; }
.mk-band--dark .mk-lede, .mk-band--dark .mk-muted, .mk-band--dark p { color: var(--mk-dark-muted); }
.mk-band--dark .mk-eyebrow { color: #f08bb0; }
.mk-band--dark .mk-card { background: var(--mk-dark-2); border-color: var(--mk-dark-line); box-shadow: none; }
.mk-band--dark .mk-card p { color: var(--mk-dark-muted); }
.mk-band--dark a:not(.mk-btn):not(.mk-card) { color: #f39bbb; }
.mk-band--dark .mk-kbd { background: rgba(255,255,255,.06); border-color: var(--mk-dark-line); color: var(--mk-dark-ink); }

/* ── Split: copy beside a picture ────────────────────────────────── */
.mk-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.mk-split + .mk-split { margin-top: 112px; }
.mk-split--reverse > :first-child { order: 2; }
.mk-split--even { grid-template-columns: 1fr 1fr; }
.mk-split .mk-lede { margin-top: 16px; }
.mk-split h3 + p { margin-top: 10px; }

/* ── Checklist / feature bullets ─────────────────────────────────── */
.mk-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.mk-checks li { position: relative; padding-left: 32px; color: var(--mk-ink-soft); }
.mk-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mk-good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231c7449' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat; }
.mk-checks strong { color: var(--mk-ink); }
.mk-band--dark .mk-checks li { color: var(--mk-dark-muted); }
.mk-band--dark .mk-checks strong { color: #fff; }

/* ── Cards / grids ───────────────────────────────────────────────── */
.mk-grid { display: grid; gap: 20px; }
.mk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mk-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mk-card { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 26px 24px; box-shadow: var(--mk-shadow-sm); }
.mk-card h3 { font-size: 18px; margin-bottom: 8px; }
.mk-card p { font-size: 15.5px; color: var(--mk-muted); margin: 0; line-height: 1.6; }
.mk-card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mk-accent-soft); color: var(--mk-accent); margin-bottom: 16px; }
.mk-card-icon svg { width: 22px; height: 22px; }
.mk-card-icon--green { background: var(--mk-good-soft); color: var(--mk-good); }
.mk-card-icon--blue { background: var(--mk-info-soft); color: var(--mk-info); }
.mk-card-icon--amber { background: var(--mk-warn-soft); color: #8a5600; }
a.mk-card { display: block; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.mk-card:hover { transform: translateY(-3px); box-shadow: var(--mk-shadow); border-color: var(--mk-line-strong); }
.mk-card-link { display: inline-flex; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--mk-accent); }
.mk-card-link::after { content: "→"; margin-left: 6px; transition: transform .15s; }
a.mk-card:hover .mk-card-link::after { transform: translateX(3px); }

/* Persona cards: a picture on top. */
.mk-persona { padding: 0; overflow: hidden; }
.mk-persona .mk-persona-img { aspect-ratio: 16 / 10; background: var(--mk-sunken); border-bottom: 1px solid var(--mk-line); overflow: hidden; }
.mk-persona .mk-persona-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mk-persona .mk-persona-body { padding: 20px 22px 22px; }

/* ── Screenshots ─────────────────────────────────────────────────── */
.mk-shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--mk-surface); border: 1px solid var(--mk-line); box-shadow: var(--mk-shadow); }
.mk-shot img { width: 100%; }
.mk-shot--browser::before { content: ""; display: block; height: 34px; border-bottom: 1px solid var(--mk-line); background: #faf8f5 radial-gradient(circle at 18px 17px, #e2dcd2 5px, transparent 5.5px), #faf8f5; background-image: radial-gradient(circle at 18px 17px, #ddd6cb 5px, transparent 5.5px), radial-gradient(circle at 36px 17px, #ddd6cb 5px, transparent 5.5px), radial-gradient(circle at 54px 17px, #ddd6cb 5px, transparent 5.5px); }
.mk-band--dark .mk-shot { border-color: var(--mk-dark-line); background: var(--mk-dark-2); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.mk-band--dark .mk-shot--browser::before { background-color: #20232d; border-bottom-color: var(--mk-dark-line); background-image: radial-gradient(circle at 18px 17px, #3a3e4b 5px, transparent 5.5px), radial-gradient(circle at 36px 17px, #3a3e4b 5px, transparent 5.5px), radial-gradient(circle at 54px 17px, #3a3e4b 5px, transparent 5.5px); }
.mk-shot--phone { width: 300px; max-width: 100%; border-radius: 38px; padding: 10px; background: #1c2230; border: none; box-shadow: var(--mk-shadow); }
.mk-shot--phone img { border-radius: 29px; }
.mk-shot figcaption, .mk-caption { font-size: 14px; color: var(--mk-muted); padding: 12px 4px 0; }
.mk-figure { margin: 0; }
.mk-figure figcaption { font-size: 14px; color: var(--mk-muted); margin-top: 12px; }
.mk-band--dark .mk-figure figcaption { color: var(--mk-dark-muted); }

/* A phone sitting over the corner of a desktop shot. */
.mk-stack { position: relative; padding-right: 64px; padding-bottom: 40px; }
.mk-stack .mk-shot--phone { position: absolute; right: 0; bottom: 0; width: 210px; border-radius: 30px; padding: 8px; }
.mk-stack .mk-shot--phone img { border-radius: 23px; }

/* Before / after pair. */
.mk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mk-pair-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-muted); margin-bottom: 10px; }

/* Gallery strip of sites. */
.mk-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mk-gallery figure { margin: 0; }
.mk-gallery .mk-shot { border-radius: 10px; box-shadow: var(--mk-shadow-sm); }
.mk-gallery figcaption { font-size: 13.5px; color: var(--mk-muted); margin-top: 8px; }
.mk-gallery figcaption strong { color: var(--mk-ink); font-weight: 600; }

/* ── Steps ───────────────────────────────────────────────────────── */
.mk-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: mkstep; }
.mk-steps li { counter-increment: mkstep; background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 24px; }
.mk-steps li::before { content: counter(mkstep); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mk-accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.mk-steps h3 { font-size: 18px; margin-bottom: 6px; }
.mk-steps p { font-size: 15.5px; color: var(--mk-muted); margin: 0; }

/* ── Prompt bubble: a request typed to the assistant ─────────────── */
.mk-prompt { display: inline-block; max-width: 520px; background: var(--mk-accent); color: #fff; padding: 14px 18px; border-radius: 18px 18px 4px 18px; font-size: 16px; line-height: 1.5; box-shadow: var(--mk-shadow-sm); }
.mk-prompts { display: grid; gap: 10px; justify-items: start; }
.mk-prompts .mk-prompt:nth-child(even) { justify-self: end; }
.mk-band--dark .mk-prompt { background: #2a2e3b; color: var(--mk-dark-ink); }

/* ── Terminal ────────────────────────────────────────────────────── */
.mk-terminal { background: #0f1117; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.mk-terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.mk-terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mk-terminal-bar span { margin-left: 10px; font-size: 12.5px; color: #7c8396; font-family: var(--mk-mono); }
.mk-terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mk-mono); font-size: 13.5px; line-height: 1.75; color: #d4d8e2; }
.mk-terminal .t-dim { color: #6b7285; }
.mk-terminal .t-cmd { color: #f39bbb; font-weight: 600; }
.mk-terminal .t-str { color: #8be9b4; }
.mk-terminal .t-ok { color: #8be9b4; }
.mk-terminal .t-key { color: #9ec5ff; }

/* ── Code sample (marketing copy of the Dracula-ish site highlight) ─ */
.mk-code { background: #282a36; color: #f8f8f2; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-family: var(--mk-mono); font-size: 13.5px; line-height: 1.7; margin: 0; }
.mk-code .k { color: #ff79c6; } .mk-code .s { color: #f1fa8c; } .mk-code .c { color: #6272a4; } .mk-code .f { color: #50fa7b; } .mk-code .n { color: #bd93f9; } .mk-code .t { color: #8be9fd; }

/* ── Live embed (a playground in an iframe) ──────────────────────── */
.mk-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0c10; border: 1px solid var(--mk-dark-line); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.mk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mk-embed-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-embed-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); border: 0; cursor: pointer; color: #fff; font: inherit; }
.mk-embed-play span { display: inline-flex; align-items: center; gap: 10px; background: rgba(20, 22, 29, .78); backdrop-filter: blur(8px); padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid rgba(255,255,255,.18); }
.mk-embed-play:hover span { background: rgba(178, 60, 102, .92); }
.mk-embed-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--mk-dark-muted); }

/* ── Graph diagram (home: one connected business) ────────────────── */
.mk-graph { width: 100%; height: auto; display: block; }
.mk-graph-edges line { stroke: var(--mk-line-strong); stroke-width: 1.5; }
.mk-graph-hub circle { fill: var(--mk-accent); }
.mk-graph-hub text { fill: #fff; font: 700 17px var(--mk-sans); text-anchor: middle; }
.mk-graph-nodes circle { fill: var(--mk-surface); stroke: var(--mk-line-strong); stroke-width: 1.5; }
.mk-graph-nodes text { fill: var(--mk-ink); font: 600 13.5px var(--mk-sans); text-anchor: middle; }

/* ── Live graph (home): static/graph.js draws it in three.js ────────── */
.mk-graph-band { overflow: hidden; background: radial-gradient(ellipse 70% 60% at 72% 50%, rgba(178, 60, 102, .16), transparent 70%), var(--mk-dark); }
.mk-graph-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.mk-graph-copy .mk-lede { margin-top: 16px; }
.mk-graph3d { margin: 0; position: relative; height: 620px; display: flex; flex-direction: column; }
.mk-graph3d > svg { margin: auto; max-height: 100%; }
.mk-band--dark .mk-graph-edges line { stroke: rgba(255, 255, 255, .14); }
.mk-band--dark .mk-graph-nodes circle { fill: var(--mk-dark-2); stroke: rgba(255, 255, 255, .22); }
.mk-band--dark .mk-graph-nodes text { fill: var(--mk-dark-ink); }
.mk-g3-stage { position: relative; flex: 1; min-height: 0; cursor: grab; touch-action: pan-y; overflow: hidden; }
.mk-g3-stage:active { cursor: grabbing; }
.mk-g3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mk-g3-labels { position: absolute; inset: 0; pointer-events: none; }
.mk-g3-label { position: absolute; left: 0; top: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--c, #fff); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); will-change: transform; }
.mk-g3-label.is-hub { color: #fff; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(178, 60, 102, .55); border: 1px solid rgba(255, 255, 255, .25); text-shadow: none; }
.mk-g3-caption { margin: 8px 0 0; min-height: 76px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-start; align-content: flex-start; font-size: 14.5px; color: var(--mk-dark-muted); }
.mk-g3-step { display: inline-flex; align-items: center; gap: 7px; opacity: .6; transition: opacity .4s; }
.mk-g3-step i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 10px currentColor; }
.mk-g3-step.is-now { opacity: 1; color: #fff; }
.mk-g3-step + .mk-g3-step::before { content: "→"; margin-right: 7px; color: rgba(255, 255, 255, .35); }

/* ── Two workspaces compare ──────────────────────────────────────── */
.mk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mk-mode { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.mk-mode--dark { background: var(--mk-dark); border-color: var(--mk-dark); color: var(--mk-dark-ink); }
.mk-mode--dark h3 { color: #fff; }
.mk-mode--dark p, .mk-mode--dark .mk-checks li { color: var(--mk-dark-muted); }
.mk-mode--dark .mk-checks strong { color: #fff; }
.mk-mode-tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--mk-accent-soft); color: var(--mk-accent); }
.mk-mode--dark .mk-mode-tag { background: rgba(255,255,255,.08); color: #f39bbb; }
.mk-mode .mk-shot { margin-top: auto; }

/* ── Stat row (only real, checkable numbers) ─────────────────────── */
.mk-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mk-fact { border-top: 2px solid var(--mk-ink); padding-top: 14px; }
.mk-fact b { display: block; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.mk-fact span { font-size: 14.5px; color: var(--mk-muted); }
.mk-band--dark .mk-fact { border-top-color: #fff; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.mk-faq { display: grid; gap: 10px; }
.mk-faq details { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: 14px; padding: 0 22px; }
.mk-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--mk-muted); }
.mk-faq details[open] summary::after { content: "–"; }
.mk-faq details > div { padding: 0 0 20px; color: var(--mk-ink-soft); }
.mk-faq details > div p:last-child { margin-bottom: 0; }

/* ── Closing call to action ──────────────────────────────────────── */
.mk-cta { background: var(--mk-dark); color: var(--mk-dark-ink); border-radius: 28px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.mk-cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(178, 60, 102, .38), transparent); pointer-events: none; }
.mk-cta > * { position: relative; }
.mk-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.mk-cta p { color: var(--mk-dark-muted); max-width: 560px; margin: 16px auto 0; font-size: 18px; }
.mk-cta .mk-actions { justify-content: center; }
.mk-cta .mk-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.mk-cta .mk-btn--ghost:hover { border-color: #fff; }

/* ── Footer ──────────────────────────────────────────────────────── */
.mk-footer { padding: 64px 0 48px; border-top: 1px solid var(--mk-line); margin-top: 96px; font-size: 14.5px; color: var(--mk-muted); }
.mk-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.mk-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--mk-ink); margin-bottom: 12px; }
.mk-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mk-footer a { color: var(--mk-muted); text-decoration: none; }
.mk-footer a:hover { color: var(--mk-ink); }
.mk-footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mk-line); font-size: 13.5px; }

/* ── Reveal on scroll (marketing.js adds .is-in) ─────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .mk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .mk-reveal.is-in { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .mk-graph-layout { grid-template-columns: 1fr; }
  .mk-graph3d { height: 520px; }
  .mk-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .mk-gallery { grid-template-columns: repeat(3, 1fr); }
  .mk-hero--split .mk-wrap { grid-template-columns: 1fr; gap: 40px; }
  .mk-split, .mk-split--even { grid-template-columns: 1fr; gap: 36px; }
  .mk-split--reverse > :first-child { order: 0; }
  .mk-facts { grid-template-columns: repeat(2, 1fr); }
  .mk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .mk-nav-links { display: none; }
  .mk-nav-links.is-open { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: var(--mk-bg); border-bottom: 1px solid var(--mk-line); padding: 12px 24px 20px; gap: 14px; }
  .mk-nav-links.is-open .mk-nav-panel { position: static; width: auto; box-shadow: none; margin-top: 8px; }
  .mk-nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--mk-line-strong); background: var(--mk-surface); cursor: pointer; }
  .mk-nav-actions .mk-btn--quiet { display: none; }
  .mk-section { padding: 64px 0; }
  .mk-hero { padding: 48px 0 24px; }
  .mk-grid--2, .mk-grid--3, .mk-steps, .mk-modes, .mk-pair { grid-template-columns: 1fr; }
  .mk-gallery { grid-template-columns: repeat(2, 1fr); }
  /* On a phone the overlapping phone frame would cover the copy above it,
     and the reader is holding the phone view already: show the desktop shot. */
  .mk-stack, .mk-hero .mk-stack { padding: 0; }
  .mk-stack .mk-shot--phone { display: none; }
  .mk-cta { padding: 48px 24px; border-radius: 20px; }
}
@media (max-width: 520px) {
  .mk-graph3d { height: 440px; }
  .mk-grid--4, .mk-facts { grid-template-columns: 1fr; }
  .mk-footer-grid { grid-template-columns: 1fr; }
  .mk-actions .mk-btn { width: 100%; }
}
