/* Avbrottskollen, the marketing site (ui/marketing). The same brand as the
   app: the font and the colour tokens in the two :root blocks are app.css's
   own values (a test in assets.rs keeps every shared token equal); the type
   scale, spacing and section rhythm (--mk-*) are the marketing site's.
   No scripts: the theme follows the system, the phone menu is <details>. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/vendor/inter/inter-latin-wght-normal.woff2?v=3100e775e861") format("woff2-variations"),
       url("/static/vendor/inter/inter-latin-wght-normal.woff2?v=3100e775e861") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: #e3e7ec;
  --border: #d5dae1;
  --border-strong: #8a939f;
  --text: #1a1e24;
  --text-muted: #59626e;
  --brand: #0b1a3d;
  --accent: #243f8f;
  --accent-hover: #1a2f6e;
  --accent-contrast: #ffffff;
  --focus: #243f8f;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 10%);
  --shadow-pop: 0 10px 28px rgb(16 24 40 / 14%), 0 2px 6px rgb(16 24 40 / 8%);
  --ok: #1a6e35;
  --warn-bg: #fdf1dc;
  --warn-mark: #c98200;
  --bad: #b42318;
  --cat-el: #b26b00;
  --cat-vatten: #1764c4;
  --cat-avlopp: #7a5530;
  --cat-fjarrvarme: #c7361a;
  --cat-fiber_tele: #7444c2;
  --cat-vag: #0b7676;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  /* The marketing site's own scale. */
  --mk-max: 1160px;
  --mk-gutter: clamp(1rem, 4vw, 2rem);
  --mk-section: clamp(4rem, 8vw, 7rem);
  --mk-h1: clamp(2.375rem, 1.5rem + 3vw, 3.75rem);
  --mk-h1-page: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --mk-h2: clamp(1.75rem, 1.25rem + 1.8vw, 2.625rem);
  --mk-h3: 1.25rem;
  --mk-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --mk-body: 1.0625rem;
  --mk-small: 0.875rem;
  --mk-round: 16px;
  --mk-tint: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --mk-glow: color-mix(in srgb, var(--accent) 16%, transparent);
  --mk-shot-shadow: 0 32px 64px -24px rgb(16 24 40 / 30%), 0 2px 8px rgb(16 24 40 / 8%);
  --mk-bezel: #15191f;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111418;
    --surface: #181c22;
    --surface-2: #20252d;
    --surface-3: #2a313b;
    --border: #2f3640;
    --border-strong: #6c7682;
    --text: #e5e8ec;
    --text-muted: #a3acb8;
    --brand: #dfe6f5;
    --accent: #93acf0;
    --accent-hover: #b0c3f6;
    --accent-contrast: #0d1117;
    --focus: #a3b9f4;
    --shadow: 0 1px 3px rgb(0 0 0 / 40%);
    --shadow-pop: 0 10px 28px rgb(0 0 0 / 55%), 0 2px 6px rgb(0 0 0 / 40%);
    --ok: #5cc27d;
    --warn-bg: #33270f;
    --warn-mark: #f0b252;
    --bad: #ff8a7e;
    --cat-el: #e8a93a;
    --cat-vatten: #5ea6ff;
    --cat-avlopp: #c29a6b;
    --cat-fjarrvarme: #ff7f5c;
    --cat-fiber_tele: #ac8cf5;
    --cat-vag: #3fc0bd;
    --mk-tint: color-mix(in srgb, var(--accent) 10%, var(--surface));
    --mk-glow: color-mix(in srgb, var(--accent) 12%, transparent);
    --mk-shot-shadow: 0 32px 64px -24px rgb(0 0 0 / 70%), 0 2px 8px rgb(0 0 0 / 40%);
    --mk-bezel: #000000;
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font-family: var(--font); font-size: var(--mk-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main { display: block; }
main:focus { outline: none; }
time { font-variant-numeric: tabular-nums; }

.mk-wrap { width: 100%; max-width: var(--mk-max); margin: 0 auto; padding: 0 var(--mk-gutter); }
.mk-narrow { max-width: 860px; }
.mk-skip {
  position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 16px;
  background: var(--accent); color: var(--accent-contrast); border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.mk-skip:focus { top: 8px; }
.mk-muted { color: var(--text-muted); }
.mk-nowrap { white-space: nowrap; }

/* ---- Buttons ---- */
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  white-space: nowrap; cursor: pointer;
}
.mk-btn:hover { text-decoration: none; }
.mk-btn-large { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.mk-btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.mk-btn-primary { background: var(--accent); color: var(--accent-contrast); }
.mk-btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.mk-btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow); }
.mk-btn-secondary:hover { color: var(--text); border-color: var(--border-strong); }
.mk-link-arrow { font-weight: 600; text-decoration: none; }
.mk-link-arrow::after { content: " →"; }
.mk-link-arrow:hover { text-decoration: underline; }

/* ---- Header ---- */
.mk-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.mk-header-inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }
/* The logo (crates/web/src/brand.rs) in the brand ink: navy on the light
   theme, the light tint on the dark one. */
.mk-brand { display: inline-flex; align-items: center; flex: none; color: var(--brand); text-decoration: none; border-radius: 6px; }
.mk-brand:hover { color: var(--brand); text-decoration: none; }
.mk-logo { display: block; height: 40px; width: calc(40px * 821.75 / 184); }
.mk-footer .mk-logo { height: 36px; width: calc(36px * 821.75 / 184); }
.mk-nav { display: flex; align-items: center; gap: 28px; }
.mk-nav a, .mk-login { color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.mk-nav a:hover, .mk-nav a[aria-current="page"], .mk-login:hover { color: var(--text); }
.mk-header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.mk-menu { display: none; position: relative; }
.mk-menu summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 8px; color: var(--text); cursor: pointer;
}
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mk-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
}
.mk-menu-panel a { padding: 12px 14px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.mk-menu-panel a:hover, .mk-menu-panel a[aria-current="page"] { background: var(--surface-2); }

/* ---- Hero ---- */
.mk-top, .mk-page-head {
  background:
    radial-gradient(900px 520px at 88% -8%, var(--mk-glow), transparent 70%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--cat-vag) 7%, transparent), transparent 70%),
    var(--bg);
}
.mk-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}
/* Wide screens: the hero fills the first screen and the product picture
   only peeks in, so the headline is what paints first (LCP is text). */
@media (min-width: 1001px) {
  .mk-hero-grid { min-height: clamp(560px, calc(100svh - 68px - 64px), 1100px); padding-block: 48px; }
}
.mk-eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 600; font-size: 0.9375rem; }
.mk-hero h1 { font-size: var(--mk-h1); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px; }
.mk-lead { font-size: var(--mk-lead); line-height: 1.55; color: var(--text-muted); max-width: 38rem; margin: 0 0 32px; }
.mk-hero-note { margin: 20px 0 0; color: var(--text-muted); font-size: 0.9375rem; }
.mk-live {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--mk-round);
  padding: 28px; box-shadow: var(--shadow-pop);
}
.mk-live-title { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 0; }
.mk-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.mk-figures div { display: flex; flex-direction: column-reverse; }
.mk-figures dt { color: var(--text-muted); font-size: var(--mk-small); }
.mk-figures dd { margin: 0; font-size: 2.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mk-live-text { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 20px; }
.mk-live .mk-cats { margin-bottom: 24px; }
.mk-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mk-cats li {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; font-size: var(--mk-small); background: var(--surface);
}
.mk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--border-strong)); flex: none; }
.mk-dot.cat-el { --dot: var(--cat-el); }
.mk-dot.cat-vatten { --dot: var(--cat-vatten); }
.mk-dot.cat-avlopp { --dot: var(--cat-avlopp); }
.mk-dot.cat-fjarrvarme { --dot: var(--cat-fjarrvarme); }
.mk-dot.cat-fiber_tele { --dot: var(--cat-fiber_tele); }
.mk-dot.cat-vag { --dot: var(--cat-vag); }

/* ---- Product imagery: CSS frames around real screenshots ---- */
.mk-showcase { background: linear-gradient(transparent 0 58%, var(--surface) 58%); padding-bottom: clamp(1rem, 3vw, 2rem); }
.mk-stage { position: relative; padding-right: 9%; }
.mk-frame {
  margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--mk-shot-shadow);
}
.mk-frame-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mk-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); }
.mk-frame img, .mk-phone img { display: block; width: 100%; height: auto; background: var(--surface-2); }
.mk-phone {
  position: absolute; right: 0; bottom: -48px; width: 21%; margin: 0;
  border: 7px solid var(--mk-bezel); border-radius: 34px; overflow: hidden;
  background: var(--mk-bezel); box-shadow: var(--mk-shot-shadow);
}
.mk-caption { margin: 88px auto 0; max-width: 44rem; text-align: center; color: var(--text-muted); font-size: 0.9375rem; }

/* ---- Sections ---- */
.mk-section { padding-block: var(--mk-section); background: var(--surface); }
.mk-section-alt { background: var(--bg); }
.mk-section-tight { padding-block: clamp(2.5rem, 5vw, 4rem) var(--mk-section); }
.mk-h2 { font-size: var(--mk-h2); letter-spacing: -0.025em; margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 24em; }
.mk-h3 { font-size: var(--mk-h3); margin-bottom: 12px; letter-spacing: -0.01em; }
.mk-grid { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.mk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-point::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 20px; }
.mk-point h3 { font-size: 1.125rem; margin-bottom: 8px; }
.mk-point p { color: var(--text-muted); }
.mk-text-lg { font-size: var(--mk-lead); line-height: 1.5; margin-bottom: 20px; }

.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
.mk-steps h3 { font-size: var(--mk-h3); margin: 20px 0 10px; }
.mk-steps p { color: var(--text-muted); }
.mk-step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--mk-tint); color: var(--accent); font-weight: 600; font-size: 1.125rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.mk-feature {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem);
  align-items: center; margin-top: clamp(3rem, 7vw, 6rem);
}
.mk-feature:first-of-type { margin-top: 0; }
.mk-feature-flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.mk-feature-flip .mk-feature-text { order: 2; }
.mk-feature-text h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.mk-feature-text p { color: var(--text-muted); font-size: 1.125rem; line-height: 1.6; }
.mk-frame-mail { max-width: 480px; width: 100%; justify-self: center; }
.mk-cards { margin-top: clamp(3.5rem, 7vw, 6rem); }
.mk-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.mk-section-alt .mk-card { background: var(--surface); }
.mk-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.mk-card p { color: var(--text-muted); }

.mk-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; }
.mk-split .mk-h2 { margin-bottom: 20px; }
.mk-split p { max-width: 44rem; color: var(--text-muted); }
.mk-split .mk-text-lg { color: var(--text); }
.mk-split-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---- FAQ ---- */
.mk-faq { border-top: 1px solid var(--border); max-width: 860px; }
.mk-faq details { border-bottom: 1px solid var(--border); }
.mk-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 600; font-size: 1.125rem;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text-muted); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.mk-faq details[open] summary::after { content: "−"; }
.mk-faq p { color: var(--text-muted); max-width: 65ch; }
.mk-faq details > p:last-child { padding-bottom: 24px; }

/* ---- Closing band ---- */
.mk-closing { background: var(--accent); color: var(--accent-contrast); text-align: center; padding-block: clamp(4rem, 8vw, 6rem); }
.mk-closing h2 { font-size: var(--mk-h2); letter-spacing: -0.025em; margin-bottom: 16px; }
.mk-closing p { font-size: var(--mk-lead); margin: 0 auto 32px; max-width: 36rem; }
.mk-closing .mk-actions { justify-content: center; }
.mk-closing .mk-btn-primary { background: var(--accent-contrast); color: var(--accent); }
.mk-closing .mk-btn-primary:hover { background: color-mix(in srgb, var(--accent-contrast) 90%, var(--accent)); color: var(--accent); }
.mk-closing .mk-btn-secondary { background: transparent; color: var(--accent-contrast); border-color: color-mix(in srgb, var(--accent-contrast) 55%, transparent); box-shadow: none; }
.mk-closing .mk-btn-secondary:hover { border-color: var(--accent-contrast); color: var(--accent-contrast); }

/* ---- Footer ---- */
.mk-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: 0.9375rem; }
.mk-footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.mk-footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 26rem; }
.mk-footer nav { display: flex; flex-direction: column; gap: 10px; }
.mk-footer h2 { font-size: var(--mk-small); color: var(--text); margin-bottom: 6px; letter-spacing: 0; }
.mk-footer nav a { color: var(--text-muted); text-decoration: none; }
.mk-footer nav a:hover { color: var(--text); text-decoration: underline; }
.mk-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--mk-small); }
.mk-footer-legal p { margin: 0; }

/* ---- Inner pages ---- */
.mk-page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.mk-page-head h1 { font-size: var(--mk-h1-page); letter-spacing: -0.03em; margin-bottom: 20px; }
.mk-page-head .mk-lead { margin-bottom: 0; }
.mk-404 .mk-actions { margin-top: 32px; }
.mk-list { margin: 0; padding-left: 1.2em; color: var(--text-muted); }
.mk-list li { margin-bottom: 10px; }
.mk-list li::marker { color: var(--border-strong); }
.mk-list strong { color: var(--text); }
.mk-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 32px 0 0; color: var(--text-muted); font-size: var(--mk-small); }
.mk-legend .mk-reach { white-space: normal; } /* the long legend line wraps on phones */
.mk-lan { margin-top: 48px; }
.mk-lan .mk-h3 { padding-bottom: 12px; border-bottom: 2px solid var(--text); margin-bottom: 0; }
.mk-count { color: var(--text-muted); font-weight: 400; }
.mk-pubs { list-style: none; margin: 0; padding: 0; }
.mk-pubs li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mk-pub-main strong { display: block; }
.mk-pub-meta { color: var(--text-muted); font-size: 0.9375rem; }
.mk-reach { display: inline-flex; align-items: center; gap: 8px; font-size: var(--mk-small); white-space: nowrap; }
.mk-reach-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.mk-reach.is-current .mk-reach-dot { background: var(--ok); }
.mk-reach.is-delayed .mk-reach-dot { background: var(--warn-mark); }
.mk-pub-age { color: var(--text-muted); }

/* Prices */
.mk-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.mk-price {
  display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--mk-round); box-shadow: var(--shadow);
}
.mk-price.is-highlight { border: 2px solid var(--accent); box-shadow: var(--shadow-pop); }
.mk-price h2 { font-size: var(--mk-h3); }
.mk-price-sites { color: var(--text-muted); margin: 0; }
.mk-price-amount { margin: 8px 0; color: var(--text-muted); }
.mk-price-amount strong { color: var(--text); font-size: 2.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mk-price .mk-btn { margin-top: auto; }
.mk-price-note { margin-top: 24px; color: var(--text-muted); font-size: 0.9375rem; }
.mk-checks { list-style: none; margin: 0 0 16px; padding: 0; }
.mk-checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.mk-checks li::before {
  content: ""; position: absolute; left: 4px; top: 0.45em; width: 11px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.mk-pilot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  margin-top: 48px; padding: 32px; border-radius: var(--mk-round); background: var(--mk-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.mk-pilot p { color: var(--text-muted); }
.mk-pilot .mk-checks { margin: 16px 0 0; }
.mk-pilot-price { margin: 0; text-align: right; }
.mk-pilot-price strong { display: block; font-size: 2rem; letter-spacing: -0.02em; color: var(--text); }
.mk-pilot-price span { color: var(--text-muted); font-size: var(--mk-small); }
.mk-contact .mk-pilot { grid-template-columns: 1fr; margin-top: 32px; padding: 24px; }
.mk-contact .mk-pilot-price { text-align: left; }

/* Contact */
.mk-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(2rem, 6vw, 5rem); align-items: start; }
.mk-contact-form { grid-column: 2; grid-row: 1 / span 2; }
.mk-contact-extra { grid-column: 1; grid-row: 2; }
.mk-contact-text .mk-lead { margin-bottom: 20px; }
.mk-contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--mk-round); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-pop); }
.mk-form { display: flex; flex-direction: column; gap: 18px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; }
.mk-field label { font-weight: 600; font-size: 0.9375rem; }
.mk-optional { font-weight: 400; color: var(--text-muted); }
.mk-field input, .mk-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
}
.mk-field textarea { resize: vertical; min-height: 120px; }
.mk-field input:focus-visible, .mk-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.mk-field ::placeholder { color: var(--text-muted); opacity: 0.8; }
.mk-form .mk-btn { align-self: flex-start; }
.mk-form-help { color: var(--text-muted); font-size: var(--mk-small); }
.mk-form-error { margin: 0; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); color: var(--bad); font-weight: 600; }
.mk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mk-thanks h2 { margin-bottom: 8px; }

/* Legal texts */
.mk-doc { padding-block: clamp(3rem, 6vw, 4.5rem) var(--mk-section); }
.mk-doc h1 { font-size: var(--mk-h1-page); letter-spacing: -0.03em; margin-bottom: 24px; }
.mk-doc h2 { font-size: 1.5rem; margin: 48px 0 16px; }
.mk-doc h3 { font-size: 1.125rem; margin: 32px 0 12px; }
.mk-doc p, .mk-doc li { max-width: 70ch; }
.mk-doc li { margin-bottom: 6px; }
.mk-doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9375rem; display: block; overflow-x: auto; }
.mk-doc th, .mk-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mk-doc th { font-weight: 600; background: var(--surface-2); }
.mk-doc code { font-size: 0.875em; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.mk-note { margin: 0 0 32px; padding: 14px 16px; border-radius: 10px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn-mark) 45%, transparent); }

/* ---- Narrow screens ---- */
@media (max-width: 1000px) {
  .mk-nav, .mk-login { display: none; }
  .mk-menu { display: block; }
  .mk-header-actions { gap: 8px; }
  .mk-hero-grid { grid-template-columns: 1fr; }
  .mk-live { max-width: 560px; }
  .mk-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-feature, .mk-feature-flip { grid-template-columns: 1fr; }
  .mk-feature-flip .mk-feature-text { order: 0; }
  .mk-feature-text { max-width: 40rem; }
  .mk-contact { grid-template-columns: 1fr; gap: 32px; }
  .mk-contact-form, .mk-contact-extra { grid-column: 1; grid-row: auto; }
  .mk-contact .mk-pilot { margin-top: 0; }
}
@media (max-width: 760px) {
  .mk-grid-2, .mk-grid-3, .mk-grid-4, .mk-steps { grid-template-columns: 1fr; }
  .mk-split { grid-template-columns: 1fr; }
  .mk-footer-grid { grid-template-columns: 1fr 1fr; }
  .mk-footer-brand { grid-column: 1 / -1; }
  .mk-pilot { grid-template-columns: 1fr; }
  .mk-pilot-price { text-align: left; }
  /* On a phone the phone screenshot says more than a shrunken desktop. */
  .mk-stage { padding-right: 0; display: flex; justify-content: center; }
  .mk-stage > .mk-frame { display: none; }
  .mk-phone { position: static; width: min(72%, 300px); }
  .mk-caption { margin-top: 32px; }
  .mk-pubs li { flex-direction: column; gap: 4px; }
  /* Feature pictures: the part that matters, large enough to read. */
  .mk-focus-left img, .mk-focus-right img { aspect-ratio: 1 / 1; object-fit: cover; }
  .mk-focus-left img { object-position: 0 0; }
  .mk-focus-right img { object-position: 100% 30%; }
}
@media (max-width: 480px) {
  .mk-hero .mk-actions .mk-btn { flex: 1 1 auto; }
  .mk-header .mk-logo { height: 32px; width: calc(32px * 821.75 / 184); }
  .mk-figures dd { font-size: 2rem; }
  .mk-live { padding: 22px; }
}
@media (max-width: 359px) {
  /* Very narrow phones: the mark alone leaves room for "Boka demo". */
  .mk-header .mk-logo { width: calc(32px * 215.25 / 184); }
  .mk-header .brand-logo-word { display: none; }
}
@media print {
  .mk-header, .mk-footer, .mk-closing, .mk-showcase { display: none; }
}
