/* Reused app classes the public site restyles everywhere, so they keep their place among the components. */
@layer components {
  .is-menu { --kind: var(--menu); --kind-soft: var(--menu-soft); --kind-ink: var(--menu-ink); }
  .is-input { --kind: var(--input); --kind-soft: var(--input-soft); --kind-ink: var(--input-ink); }
  .is-router { --kind: var(--router); --kind-soft: var(--router-soft); --kind-ink: var(--router-ink); }
  .is-end { --kind: var(--end); --kind-soft: var(--end-soft); --kind-ink: var(--ok-ink); }
  .dial-key, .call-key { transition: background-color .15s ease, filter .15s ease; }
}

@layer modules {
  /* The public site: the editor's palette at full strength. Screen-kind colours code the story; bands of amber, ink, forest and violet pace the page. */
  :root {
    --mk-amber: #f5a000;
    --mk-amber-deep: #d98700;
    --mk-ink-band: #1c2420;
    --mk-forest: #0e3b29;
    --mk-forest-line: #3c7a5b;
    --mk-violet: #5b34e6;
    --mk-on-band: #f4f7f4;
    --mk-on-band-2: rgb(244 247 244 / .74);
    --mk-on-band-3: rgb(244 247 244 / .52);
    --mk-on-band-line: rgb(244 247 244 / .14);
    --mk-on-band-faint: rgb(244 247 244 / .07);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --mk-amber: #e99b12; --mk-amber-deep: #b87a06; --mk-ink-band: #19201c; --mk-forest: #0c3021; --mk-forest-line: #2f6a4c; --mk-violet: #4a2cc4; }
  }
  :root[data-theme="dark"] { --mk-amber: #e99b12; --mk-amber-deep: #b87a06; --mk-ink-band: #19201c; --mk-forest: #0c3021; --mk-forest-line: #2f6a4c; --mk-violet: #4a2cc4; }

  .is-marketing { background: var(--bg); }
  /* Lenis, the smooth-scroll library, needs these (from lenis/dist/lenis.css). */
  html.lenis, html.lenis body { height: auto; }
  .lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
  .lenis [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-smooth iframe { pointer-events: none; }
  /* Lenis honours this as the browser does, so a click, a deep link and a reduced-motion jump all land in the same place. */
  html:has(body.is-marketing) { scroll-padding-top: 8.8rem; }
  .is-marketing main { overflow-x: clip; }
  .mk-skip { position: absolute; left: 1.6rem; top: -10rem; z-index: 60; padding: .8rem 1.2rem; border-radius: var(--r-control); background: var(--primary); color: var(--on-primary); }
  .mk-skip:focus { top: 1.2rem; }

  /* In service: the one real line, named by what a caller dials. */
  .mk-in-service-logo { display: block; width: auto; height: 6.4rem; margin: 0 0 2rem; }
  .mk-in-service-body { display: grid; justify-items: start; gap: 2rem; }
  .mk-dial { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem 1.4rem; margin: 0; }
  .mk-dial-code { padding: .4rem 1.4rem; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); font-family: var(--mono); font-size: 2.8rem; font-weight: 600; letter-spacing: -.02em; }
  .mk-dial-networks { color: var(--ink-2); font-size: 1.5rem; font-weight: 550; }
  .mk-in-service .mk-section-lede { margin: 0; }

  /* Header */
  .mk-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
  .mk-bar { display: flex; align-items: center; gap: 2.4rem; max-width: 124rem; height: 6.4rem; margin: 0 auto; padding: 0 2.4rem; }
  .mk-wordmark { font-size: 2.1rem; }
  .mk-nav { display: flex; gap: .2rem; margin-left: 1.2rem; }
  .mk-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
  .mk-nav-link { padding: .6rem 1rem; border-radius: var(--r-control); color: var(--ink-2); font-size: 1.45rem; font-weight: 550; text-decoration: none; }
  .mk-nav-link:hover { background: var(--surface); color: var(--ink); }

  /* Type */
  .mk-display { max-width: 13ch; margin: 0; font-size: clamp(4.4rem, 6.6vw, 8.4rem); font-weight: 760; font-stretch: 80%; line-height: .94; letter-spacing: -.03em; text-wrap: balance; }
  .mk-h1 { max-width: 20ch; margin: 0; font-size: clamp(3.4rem, 4.6vw, 5.6rem); font-weight: 740; font-stretch: 82%; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
  .mk-h2 { max-width: 22ch; margin: 0; font-size: clamp(3rem, 3.8vw, 4.6rem); font-weight: 720; font-stretch: 84%; line-height: 1.02; letter-spacing: -.022em; text-wrap: balance; }
  .mk-h3 { margin: 0; font-size: 2.3rem; font-weight: 680; font-stretch: 90%; line-height: 1.15; letter-spacing: -.012em; }
  .mk-lede { max-width: 50ch; margin: 2.4rem 0 0; font-size: clamp(1.75rem, 1.6vw, 2.05rem); line-height: 1.5; color: var(--ink-2); }
  .mk-section-lede { max-width: 58ch; margin: 1.6rem 0 0; font-size: 1.85rem; line-height: 1.55; color: var(--ink-2); }
  .mk-note { margin: 1.8rem 0 0; font-size: 1.4rem; color: var(--ink-3); }
  .mk-btn-large { min-height: 4.8rem; padding: .8rem 2.2rem; font-size: 1.6rem; }
  .mk-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3.2rem; }
  .mk-points { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
  .mk-points li { position: relative; padding-left: 2.4rem; color: var(--ink-2); }
  .mk-points li::before { content: ""; position: absolute; left: .2rem; top: .75em; width: 1.2rem; height: .2rem; border-radius: 2px; background: var(--ink-3); }

  /* Sections */
  .mk-section { max-width: 124rem; margin: 0 auto; padding: 10.4rem 2.4rem; border-top: 1px solid var(--line); }
  .mk-section-head { margin-bottom: 5.6rem; }
  .mk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: start; }

  /* Full-bleed colour bands without extra wrappers: the band's own colour spreads to the viewport edges. */
  .mk-band { position: relative; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); border-top: 0; }
  .mk-on-dark { --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); --line: rgb(255 255 255 / .14); --line-strong: rgb(255 255 255 / .24); color: var(--ink); }
  .mk-on-dark a { color: var(--ink); text-decoration-color: rgb(255 255 255 / .4); }

  /* Type */
  .mk-display { max-width: 12ch; margin: 0; font-size: clamp(4.6rem, 6.8vw, 8.8rem); font-weight: 780; font-stretch: 78%; line-height: .92; letter-spacing: -.035em; text-wrap: balance; }
  .mk-h1 { max-width: 20ch; margin: 0; font-size: clamp(3.4rem, 4.6vw, 5.6rem); font-weight: 740; font-stretch: 82%; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
  .mk-h2 { max-width: 20ch; margin: 0; font-size: clamp(3.2rem, 4.2vw, 5.4rem); font-weight: 740; font-stretch: 80%; line-height: .98; letter-spacing: -.028em; text-wrap: balance; }
  .mk-h3 { margin: 0; font-size: 2.3rem; font-weight: 680; font-stretch: 90%; line-height: 1.15; letter-spacing: -.012em; }
  .mk-lede { max-width: 46ch; margin: 2.8rem 0 0; font-size: clamp(1.8rem, 1.6vw, 2.1rem); line-height: 1.5; color: var(--ink-2); }
  .mk-section-lede { max-width: 56ch; margin: 1.8rem 0 0; font-size: 1.9rem; line-height: 1.55; color: var(--ink-2); }
  .mk-note { margin: 1.8rem 0 0; font-size: 1.4rem; color: var(--ink-3); }
  .mk-btn-large { min-height: 5rem; padding: .8rem 2.4rem; font-size: 1.6rem; border-radius: 999px; }
  .mk-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3.6rem; }
  .mk-points { display: grid; gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
  .mk-points li { position: relative; padding-left: 2.4rem; color: var(--ink-2); }
  .mk-points li::before { content: ""; position: absolute; left: .2rem; top: .75em; width: 1.2rem; height: .2rem; border-radius: 2px; background: currentColor; opacity: .6; }

  /* Sections */
  .mk-section { max-width: 124rem; margin: 0 auto; padding: 11.2rem 2.4rem; }
  .mk-section-head { margin-bottom: 5.6rem; }
  .mk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: start; }
  .is-live { --kind: var(--live); --kind-soft: var(--live-soft); --kind-ink: var(--live-ink); }

  .mk-kicker { margin: 0 0 1.6rem; color: var(--ink-2); font-size: 1.6rem; font-weight: 500; line-height: 1.4; }
  .mk-hero .mk-display { max-width: 14ch; font-size: clamp(4.2rem, 5.6vw, 7.4rem); }

  /* Hero: the headline beside an amber block, a trader's photo and the phone that runs luftflow's own menu */
  .mk-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4.8rem; align-items: center; max-width: 124rem; min-height: calc(100svh - 6.4rem); margin: 0 auto; padding: 3.2rem 2.4rem; }
  .mk-hero-stage { position: relative; height: 72rem; }
  .mk-hero-block { position: absolute; inset: 4.8rem 0 8rem 9.6rem; border-radius: 3.6rem; background: var(--mk-amber); transform: translateY(calc(var(--p, 0) * -3rem)); }
  .mk-hero-block::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgb(28 36 32 / .16) 1.2px, transparent 1.4px); background-size: 16px 16px; mask-image: linear-gradient(135deg, transparent 35%, #000); }
  .mk-hero-photo { position: absolute; right: 1.6rem; top: 0; width: 60%; margin: 0; overflow: hidden; border-radius: 2.8rem; box-shadow: 0 30px 60px -24px rgb(var(--shade) / .5); transform: translateY(calc(var(--p, 0) * 4rem)); }
  .mk-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  .mk-hero-phone { position: absolute; left: 0; bottom: 2.4rem; z-index: 3; width: 30rem; filter: drop-shadow(0 30px 40px rgb(var(--shade) / .35)); }
  .mk-hero-phone .device { width: 30rem; }
  .mk-hero-phone .device-screen, .mk-story-phone .device-screen { height: 58rem; }
  .mk-hero-phone .dial-key, .mk-hero-phone .ussd-button, .mk-hero-phone .phone-key { cursor: pointer; }
  .mk-hero-phone .dial-key:hover { background: var(--phone-dial-key-press); }
  .mk-hero-hint { position: absolute; left: 31.6rem; right: 3.2rem; bottom: 0; display: flex; align-items: center; gap: 1rem; margin: 0; font-size: 1.35rem; line-height: 1.4; color: var(--ink-2); }
  .mk-hint-key { flex: none; padding: .3rem .8rem; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: .7rem; background: var(--surface); font-family: var(--mono); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
  .mk-float-card { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 1.1rem; padding: .8rem 2rem .8rem .8rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--surface); box-shadow: 0 1px 2px rgb(var(--shade) / .08), 0 16px 30px -12px rgb(var(--shade) / .4); white-space: nowrap; }
  .mk-float-card .kind-icon { width: 3.6rem; height: 3.6rem; padding: .85rem; border-radius: .9rem; background: var(--kind-soft); color: var(--kind-ink); }
  .mk-float-text { display: grid; gap: .1rem; }
  .mk-float-id { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
  .mk-float-note { font-size: 1.15rem; line-height: 1.3; color: var(--ink-3); }
  /* The port a cord would leave from or arrive at, as on the editor's cards. */
  .mk-float-port { position: absolute; top: 50%; right: -.6rem; width: 1.2rem; height: 1.2rem; margin-top: -.6rem; border: 2px solid var(--surface); border-radius: 50%; background: var(--kind); box-shadow: 0 0 0 1px var(--kind); }
  .mk-float-card.is-end .mk-float-port { right: auto; left: -.6rem; }
  .mk-float-card.is-menu { z-index: 4; left: 13rem; top: 2rem; transform: rotate(-3deg) translateY(calc(var(--p, 0) * -2rem)); }
  .mk-float-card.is-input { right: -1.6rem; top: 4.4rem; transform: rotate(2.5deg) translateY(calc(var(--p, 0) * 2rem)); }
  .mk-float-card.is-router { left: 32rem; top: 57.5rem; transform: rotate(-2deg) translateY(calc(var(--p, 0) * -1.5rem)); }
  .mk-float-card.is-end { right: 0; top: 49rem; transform: rotate(3deg) translateY(calc(var(--p, 0) * 3rem)); }
  /* A tall, narrow window has no clear spot for the middle two. */
  @media (max-width: 1240px) and (min-height: 901px) { .mk-float-card:is(.is-input, .is-router) { display: none; } }
  .dial-key.is-pressed { background: var(--phone-dial-key-press); }
  .call-key.is-pressed { filter: brightness(.85); }
  .phone-key.is-pressed { background: var(--phone-key-press); }
  .mk-phone-input { display: block; line-height: 26px; text-align: left; letter-spacing: .12em; }
  .mk-phone-dismiss { display: none !important; }
  .ussd-buttons.is-ended { grid-template-columns: 1fr; }
  .ussd-buttons.is-ended > .ussd-button { display: none; }
  .ussd-buttons.is-ended > .mk-phone-dismiss { display: grid !important; place-items: center; border-left: 0; }
  .mk-hero-phone .ussd-button, .mk-story-phone .ussd-button { display: grid; place-items: center; }
  .mk-hero-phone .device-screen:has(.keypad[hidden]) .ussd-stage, .mk-story-phone .device-screen:has(.keypad[hidden]) .ussd-stage { bottom: 0; }
  .mk-phone-running { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; transform: translate(-50%, -50%); border-radius: 13px; background: var(--phone-alert); font-family: var(--phone-font); font-size: 13px; color: var(--phone-ink); white-space: nowrap; }
  .ussd-stage:has(.mk-phone-running:not([hidden])) .ussd-dialog { visibility: hidden; }
  /* The dialler behind a prompt blurs as it does on a real phone, so its keys don't read as part of the prompt. */
  .mk-hero-phone .ussd-stage, .mk-story-phone .ussd-stage { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

  /* Why USSD: an ink band with the handset and three figures in the kind colours */
  .mk-proof { --band: var(--mk-ink-band); }
  .mk-proof-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6.4rem; align-items: center; max-width: 124rem; margin: 0 auto; padding: 9.6rem 2.4rem; }
  .mk-proof-photo { margin: 0; overflow: hidden; border-radius: 2.4rem; }
  .mk-proof-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
  .mk-proof-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; margin: 4.8rem 0 0; }
  .mk-proof-facts div { display: grid; align-content: start; gap: .8rem; padding-top: 1.6rem; border-top: 3px solid var(--fact); }
  .mk-proof-facts .is-value { --fact: var(--menu); }
  .mk-proof-facts .is-accounts { --fact: var(--router); }
  .mk-proof-facts .is-smartphones { --fact: var(--live); }
  .mk-proof-facts dt { font-size: clamp(4.4rem, 5vw, 6.4rem); font-weight: 780; font-stretch: 76%; line-height: .9; letter-spacing: -.03em; color: var(--fact); font-variant-numeric: tabular-nums; }
  .mk-proof-facts dd { margin: 0; font-size: 1.5rem; line-height: 1.45; color: var(--ink-2); }
  .mk-proof-source { margin: 3.2rem 0 0; font-size: 1.25rem; color: var(--ink-3); }

  /* The story: one caller's balance check, a pinned phone and a chapter per moment */
  .mk-story { max-width: 124rem; margin: 0 auto; padding: 11.2rem 2.4rem 6.4rem; }
  .mk-story-head { margin-bottom: 2.4rem; }
  .mk-story-title { max-width: 14ch; font-size: clamp(4rem, 6vw, 8rem); font-stretch: 76%; line-height: .92; }
  .mk-story-body { display: grid; grid-template-columns: minmax(0, 1fr) 30rem; gap: 7.2rem; }
  .mk-story-sticky { position: sticky; top: calc(50svh - 30rem); display: grid; justify-items: center; gap: 1.6rem; padding-top: 3.2rem; }
  .mk-story-phone .device { width: 30rem; }
  .mk-story-progress { display: flex; gap: .6rem; margin: 0; padding: 0; list-style: none; }
  .mk-story-progress li { width: .8rem; height: .8rem; border-radius: 50%; background: var(--line-strong); transition: width .2s ease, background-color .2s ease; }
  .mk-story-progress li.is-current { width: 2.4rem; border-radius: 999px; background: var(--ink); }
  .mk-chapter { --tone: var(--ink-3); --tone-soft: var(--surface-2); display: grid; align-content: center; gap: 2.8rem; min-height: calc(100svh - 8.8rem); padding: 2.4rem 0; opacity: .38; transition: opacity .25s ease; }
  .mk-chapter.is-current { opacity: 1; }
  .mk-chapter:nth-child(1) { --tone: var(--menu); --tone-soft: var(--menu-soft); }
  .mk-chapter:nth-child(2) { --tone: var(--end); --tone-soft: var(--end-soft); }
  .mk-chapter:nth-child(3) { --tone: var(--input); --tone-soft: var(--input-soft); }
  .mk-chapter:nth-child(4) { --tone: var(--router); --tone-soft: var(--router-soft); }
  .mk-chapter:nth-child(5) { --tone: var(--live); --tone-soft: var(--live-soft); }
  .mk-chapter:nth-child(6) { --tone: var(--warning); --tone-soft: var(--warning-soft); }
  .mk-chapter-copy { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); column-gap: 1.6rem; }
  .mk-chapter-number { grid-row: span 2; display: grid; place-items: center; width: 4.8rem; height: 4.8rem; margin: .2rem 0 0; border-radius: 50%; background: var(--tone); color: var(--on-accent); font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .mk-chapter-title { margin: 0; font-size: clamp(3rem, 3.4vw, 4.4rem); font-weight: 740; font-stretch: 80%; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
  .mk-chapter-body { max-width: 56ch; margin: 1.4rem 0 0; font-size: 1.8rem; line-height: 1.55; color: var(--ink-2); }
  .mk-chapter-art { position: relative; margin: 0; padding: 3.2rem; overflow: hidden; border-radius: 2.8rem; background: var(--tone-soft); }
  .mk-chapter-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--tone) 32%, transparent) 1.1px, transparent 1.3px); background-size: 18px 18px; opacity: .7; pointer-events: none; }
  .mk-chapter-screen { position: relative; display: none; margin: 0 0 2rem; padding: .8rem 1.2rem; border-radius: var(--r-control); background: var(--surface); font-size: 1.35rem; color: var(--ink-2); }

  /* Illustrations are the editor's own components; --p is the scroll progress of their chapter */
  .ill { position: relative; --t: clamp(0, calc((var(--p, 1) - .06) * 1.8), 1); font-size: 1.35rem; }
  .ill-caption { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-3); }

  .ill-build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem 3.6rem; align-items: start; padding: 0 2.4rem 0 0; }
  .ill-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .ill-wire { --w: clamp(0, calc((var(--p, 1) - .38) * 2.6), 1); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--w)); }
  .ill-wire.is-menu { stroke: var(--menu); }
  .ill-wire.is-input { stroke: var(--input); }
  .ill-wire.is-router { stroke: var(--router); }
  .ill-wire.is-muted { stroke-dasharray: 1; opacity: .45; }
  .ill-build .node.ill-node { position: relative; grid-column: var(--col); grid-row: var(--row); width: auto; min-width: 0; max-width: none; box-shadow: var(--shadow-float); opacity: calc(.1 + .9 * var(--t)); transform: translate(calc(var(--dx) * (1 - var(--t))), calc(var(--dy) * (1 - var(--t)))) rotate(calc(var(--r) * (1 - var(--t)))); }
  .ill-build .node.is-router { align-self: center; background: var(--surface); }
  .ill-build .node[data-wire="enter_pin"] { margin-top: 5.6rem; }


  .ill-dialog { position: relative; max-width: 52rem; margin: 0 auto; padding: 2.4rem 2.6rem 2.6rem; border-radius: 2rem; background: var(--surface); box-shadow: 0 30px 60px -30px rgb(var(--shade) / .4); }
  .ill-dialog-context { margin: 0; font-size: 1.3rem; color: var(--ink-3); }
  .ill-dialog-title { margin: .2rem 0 1.8rem; font-size: 2.2rem; font-weight: 680; font-stretch: 90%; letter-spacing: -.01em; }
  .ill-gate-row { --on: clamp(0, calc((var(--p, 1) - .18 - var(--i) * .1) * 8), 1); }
  .ill-gate-row .gate-mark { background: color-mix(in srgb, var(--ok) calc(var(--on) * 100%), var(--line-strong)); color: var(--on-accent); }
  .ill-gate-row .gate-mark::before { content: "✓"; opacity: var(--on); }
  .ill-gate-row .gate-title { opacity: calc(.45 + .55 * var(--on)); }
  .ill-scenarios { display: grid; gap: .6rem; margin: 1.8rem 0 2rem; padding: 1.2rem; border-radius: 1.2rem; background: var(--surface-2); }
  .ill-scenario { --on: clamp(0, calc((var(--p, 1) - .5 - var(--i) * .08) * 8), 1); display: flex; align-items: center; gap: .8rem; margin: 0; font-size: 1.35rem; }
  .ill-scenario .icon { width: 1.6rem; height: 1.6rem; color: var(--ink-3); }
  .ill-scenario code { margin-left: auto; font-size: 1.2rem; color: var(--ink-3); }
  .ill-pass { padding: .1rem .8rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 1.15rem; font-weight: 650; opacity: var(--on); transform: scale(calc(.8 + .2 * var(--on))); }
  .ill-publish { --done: clamp(0, calc((var(--p, 1) - .78) * 8), 1); width: 100%; opacity: calc(.35 + .65 * var(--done)); }
  .ill-publish .icon { width: 1.8rem; height: 1.8rem; }

  .ill-pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.4rem; align-items: center; }
  .ill-pin-phone { display: grid; gap: 1rem; padding: 2rem; border-radius: 2rem; background: var(--phone-keypad); color: var(--phone-ink); box-shadow: 0 24px 50px -30px rgb(var(--shade) / .5); }
  .ill-pin-phone .ill-caption { color: var(--phone-muted); }
  .ill-pin-field { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
  .ill-pin-field span { --m: clamp(0, calc((var(--p, 1) - .28 - var(--i) * .07) * 7), 1); position: relative; display: grid; place-items: center; height: 5.2rem; border-radius: .9rem; background: var(--phone-key); font-family: var(--phone-font); font-size: 2.4rem; }
  .ill-pin-field b { font-weight: 400; opacity: calc(1 - var(--m)); }
  .ill-pin-field i { position: absolute; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--phone-ink); opacity: var(--m); transform: scale(var(--m)); }
  .ill-pin-note { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 0; font-size: 1.3rem; font-weight: 650; color: var(--error); opacity: clamp(0, calc((var(--p, 1) - .55) * 6), 1); }
  .ill-lock .icon { width: 1.6rem; height: 1.6rem; }
  .ill-terminal { overflow: hidden; border-radius: 1.6rem; background: #101613; color: #dfe7e2; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
  .ill-terminal-bar { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 1rem 1.4rem; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 1.2rem; }
  .ill-terminal-bar span { width: 1rem; height: 1rem; border-radius: 50%; background: #3a4640; }
  .ill-terminal-bar span:nth-child(1) { background: #ff5f57; }
  .ill-terminal-bar span:nth-child(2) { background: #febc2e; }
  .ill-terminal-bar span:nth-child(3) { background: #28c840; }
  .ill-terminal-bar em { margin-left: .8rem; font-family: var(--mono); font-style: normal; color: #8fa198; }
  .ill-json { margin: 0; padding: 1.6rem 1.8rem 2rem; overflow-x: auto; font-family: var(--mono); font-size: 1.3rem; line-height: 1.75; }
  .ill-json code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
  .j-k { color: #7fd8e8; }
  .j-s { color: #ffc861; }
  .j-n { color: #b8a4ff; }
  .j-p { color: #8fa198; }
  .ill-hl { --h: clamp(0, calc((var(--p, 1) - .5) * 6), 1); margin: 0 -.6rem; padding: .2rem .6rem; border-radius: .5rem; background: rgb(255 77 152 / calc(var(--h) * .22)); box-shadow: inset 2px 0 0 rgb(255 77 152 / var(--h)); }

  .ill-retry { display: grid; gap: 2rem; }
  .ill-waterfall { padding: 1.6rem 1.8rem; border-radius: 1.8rem; background: var(--surface); box-shadow: 0 30px 60px -32px rgb(var(--shade) / .4); }
  .ill-wf-head, .ill-wf-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 1.2rem; }
  .ill-wf-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 0 0 1rem 6.8rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
  .ill-wf-row { --on: clamp(0, calc((var(--p, 1) - .15 - var(--i) * .15) * 5), 1); padding: 1.1rem 0; border-bottom: 1px solid var(--line); opacity: calc(.25 + .75 * var(--on)); }
  .ill-wf-row:last-child { border-bottom: 0; }
  .ill-wf-row.is-child code { padding-left: 1.4rem; color: var(--ink-2); }
  .ill-wf-row code { padding: 0; border: 0; background: none; overflow: hidden; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
  .ill-method { justify-self: start; padding: .15rem .6rem; border-radius: .5rem; background: var(--input-soft); color: var(--input-ink); font-family: var(--mono); font-size: 1.1rem; font-weight: 700; }
  .ill-method.is-out { background: var(--router-soft); color: var(--router-ink); }
  .ill-method.is-retry { background: var(--live-soft); color: var(--live-ink); }
  .ill-method.is-log { background: var(--ok-soft); color: var(--ok-ink); }
  .ill-wf-bar { position: relative; height: 2.2rem; }
  .ill-wf-bar::before { content: ""; position: absolute; left: var(--start); top: .6rem; width: calc(var(--width) * var(--on)); min-width: .6rem; height: 1rem; border-radius: 999px; background: var(--bar); }
  .ill-wf-bar em { position: absolute; left: var(--start); top: -1.2rem; font-family: var(--mono); font-size: 1.1rem; font-style: normal; color: var(--ink-3); white-space: nowrap; opacity: var(--on); }
  .ill-wf-row.is-replayed .ill-wf-bar em { left: auto; right: 0; }
  .ill-wf-bar.is-input { --bar: var(--input); }
  .ill-wf-bar.is-bank { --bar: var(--router); }
  .ill-wf-bar.is-live { --bar: var(--live); }
  .ill-wf-bar.is-log { --bar: var(--ok); }
  .ill-tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .ill-tally p { display: flex; align-items: center; gap: 1.2rem; margin: 0; padding: 1.4rem 1.8rem; border-radius: 1.6rem; background: var(--surface); font-weight: 600; color: var(--ink-2); }
  .ill-tally-number { font-size: 4.8rem; font-weight: 780; font-stretch: 76%; line-height: .9; color: var(--live); }
  .ill-tally .is-good .ill-tally-number { color: var(--ok); }

  .ill-version { display: grid; gap: 2rem; }
  .ill-environments { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ill-environments .deploy-place { box-shadow: 0 20px 40px -28px rgb(var(--shade) / .45); }
  .ill-live-label { position: relative; display: inline-grid; }
  .ill-live-label span { grid-area: 1 / 1; transition: opacity .3s ease; }
  .ill-live-label .is-old { opacity: calc(1 - clamp(0, calc((var(--p, 1) - .55) * 10), 1)); }
  .ill-live-label .is-new { opacity: clamp(0, calc((var(--p, 1) - .55) * 10), 1); }
  .ill-approvers { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); }
  .ill-approvers span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-right: -1rem; border: 2px solid var(--surface); border-radius: 50%; background: var(--input-soft); color: var(--input-ink); font-size: 1rem; font-weight: 700; }
  .ill-approvers span:first-child { background: var(--menu-soft); color: var(--menu-ink); }
  .ill-approvers span:nth-child(2) { margin-right: .4rem; }
  .ill-lanes { position: relative; padding: 4.8rem 2rem 1.2rem; overflow: hidden; border-radius: 1.8rem; background: var(--surface); }
  .ill-lane { position: relative; height: 7.2rem; border-top: 1px solid var(--line); }
  .ill-lane-label { position: absolute; left: 0; top: .8rem; font-family: var(--mono); font-size: 1.2rem; color: var(--ink-3); }
  .ill-session { position: absolute; top: 3.2rem; left: var(--from); width: calc(var(--to) - var(--from)); height: 1.4rem; border-radius: 999px; background: var(--line-strong); }
  .ill-session.is-new { background: var(--router); }
  .ill-session.is-caller { background: var(--live-soft); box-shadow: inset 0 0 0 2px var(--live); }
  .ill-session em { position: absolute; left: 0; top: calc(100% + .4rem); color: var(--live-ink); font-size: 1.2rem; font-style: normal; font-weight: 650; white-space: nowrap; }
  .ill-deploy { --d: clamp(0, calc((var(--t) - .48) * 12), 1); position: absolute; left: 49%; top: 1.2rem; bottom: 0; z-index: 2; width: 2px; background: var(--danger); opacity: var(--d); }
  .ill-deploy em { position: absolute; left: 50%; top: 0; padding: .2rem .8rem; border-radius: 999px; background: var(--danger); color: var(--on-danger); font-size: 1.15rem; font-style: normal; font-weight: 700; transform: translateX(-50%); }
  .ill-sweep { position: absolute; top: 4.4rem; bottom: 0; left: calc(var(--t) * 100%); right: -3rem; z-index: 1; background: linear-gradient(90deg, transparent, var(--surface) 3rem); }

  .ill-watch { display: grid; gap: 1.6rem; }
  .ill-traffic { padding: 1.8rem 2rem; border-radius: 1.8rem; background: var(--surface); box-shadow: 0 30px 60px -32px rgb(var(--shade) / .4); }
  .ill-traffic .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ill-traffic .stat dd { font-size: 2rem; }
  .ill-rate { position: relative; display: inline-grid; }
  .ill-rate span { grid-area: 1 / 1; }
  .ill-rate .is-bad-value { color: var(--error); opacity: calc(1 - clamp(0, calc((var(--p, 1) - .78) * 10), 1)); }
  .ill-rate .is-good-value { color: var(--ok); opacity: clamp(0, calc((var(--p, 1) - .78) * 10), 1); }
  .ill-traffic .funnel-step { grid-template-columns: 11rem minmax(0, 1fr) 2rem; }
  .ill-traffic .funnel-bar span { width: calc(var(--w) * 1% * clamp(0, calc((var(--p, 1) - .1 - var(--i) * .06) * 2.2), 1)); }
  .ill-slack { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.2rem; padding: 1.6rem 1.8rem; border-radius: 1.8rem; background: var(--surface); }
  .ill-slack-avatar { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem; background: var(--inverse); }
  .ill-slack-avatar .mark { width: 2.6rem; height: 2.6rem; }
  .ill-slack-name { margin: 0; font-weight: 700; }
  .ill-slack-name span { margin-left: .4rem; padding: 0 .4rem; border-radius: .3rem; background: var(--surface-2); color: var(--ink-3); font-size: 1rem; font-weight: 700; }
  .ill-slack-text { margin: .6rem 0 0; padding-left: 1rem; border-left: 3px solid; line-height: 1.45; }
  .ill-slack-text.is-alert { border-color: var(--error); opacity: clamp(0, calc((var(--p, 1) - .4) * 8), 1); }
  .ill-slack-text.is-resolved { border-color: var(--ok); opacity: clamp(0, calc((var(--p, 1) - .78) * 8), 1); }

  /* Data residency: a forest band with the country drawn around what stays home */
  .mk-data { --band: var(--mk-forest); --bg: var(--mk-forest); --surface: #14503a; --surface-2: #1a5c43; --ok-soft: #1f6b4c; --ok-ink: #c3f0d6; padding-block: 11.2rem; }
  .ill-residency { display: grid; grid-template-columns: minmax(0, .9fr) 17rem minmax(0, 2.4fr); align-items: stretch; --t: clamp(0, calc((var(--p, 1) - .1) * 2), 1); }
  .res-zone { position: relative; display: grid; align-content: center; padding: 5.6rem 2.4rem 2.4rem; border-radius: 2.4rem; }
  .res-zone.is-outside { border: 1.5px dashed rgb(255 255 255 / .28); }
  .res-zone.is-inside { border: 2px solid #7fd3a4; background: rgb(127 211 164 / .1); }
  .res-zone-label { position: absolute; left: 2.4rem; top: 1.8rem; margin: 0; padding: .3rem 1rem; border-radius: 999px; font-size: 1.25rem; font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
  .res-zone.is-inside .res-zone-label { background: #7fd3a4; color: #0b2e20; box-shadow: none; }
  .res-node { display: grid; align-content: start; gap: .4rem; padding: 1.6rem 1.8rem 1.8rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 1.6rem; background: var(--surface); }
  .res-node p { margin: 0; }
  .res-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: .6rem; border-radius: 1rem; background: rgb(255 255 255 / .1); color: var(--ink); }
  .res-icon .icon { width: 2.3rem; height: 2.3rem; }
  .res-icon .mark { width: 2.4rem; height: 2.4rem; }
  .res-name { font-size: 1.8rem; font-weight: 700; font-stretch: 88%; line-height: 1.15; }
  .res-does { font-size: 1.35rem; line-height: 1.45; color: var(--ink-2); }
  .res-node.is-runtime { --ink: #0b2e20; --ink-2: #33574a; border: 0; background: var(--mk-on-band); color: var(--ink); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .55); }
  .res-node.is-runtime .res-icon { background: var(--mk-forest); }
  .res-chip { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; margin-top: .8rem !important; padding: .3rem .9rem; border-radius: 999px; background: #dff3e7; color: #0b2e20; font-size: 1.2rem; font-weight: 650; }
  .res-chip .icon { width: 1.4rem; height: 1.4rem; }
  .res-map { display: grid; grid-template-columns: minmax(0, 1fr) 16rem minmax(0, 1fr); grid-template-rows: auto 8.8rem auto; grid-template-areas: "runtime api-link api" "callbacks . ." "aggregator ussd callers"; }
  .res-node.is-runtime { grid-area: runtime; }
  .res-node.is-api { grid-area: api; }
  .res-node.is-aggregator { grid-area: aggregator; }
  .res-node.is-callers { grid-area: callers; }
  .res-link { position: relative; display: grid; place-items: center; margin: 0; }
  .res-link.is-api { grid-area: api-link; --line: #b9a6ff; }
  .res-link.is-callbacks { grid-area: callbacks; --line: #5ad7ea; }
  .res-link.is-ussd { grid-area: ussd; --line: #ffc861; }
  .res-line { position: absolute; background: var(--line); }
  .res-link.is-api .res-line, .res-link.is-ussd .res-line { left: .4rem; right: .4rem; top: 50%; height: 2px; transform: scaleX(var(--t)); }
  .res-link.is-callbacks .res-line { top: .4rem; bottom: .4rem; left: 50%; width: 2px; transform: scaleY(var(--t)); transform-origin: bottom; }
  .res-link.is-api .res-line { transform-origin: left; }
  .res-link.is-ussd .res-line { transform-origin: right; }
  .res-line::before, .res-line::after { content: ""; position: absolute; width: 0; height: 0; border: 6px solid transparent; }
  .res-link.is-api .res-line::before { left: -2px; top: -5px; border-right: 9px solid var(--line); border-left: 0; }
  .res-link.is-api .res-line::after { right: -2px; top: -5px; border-left: 9px solid var(--line); border-right: 0; }
  .res-link.is-ussd .res-line::before { left: -2px; top: -5px; border-right: 9px solid var(--line); border-left: 0; }
  .res-link.is-callbacks .res-line::before { top: -2px; left: -5px; border-bottom: 9px solid var(--line); border-top: 0; }
  .res-link-label { position: relative; z-index: 1; padding: .3rem .8rem; border-radius: 999px; background: var(--mk-forest); box-shadow: inset 0 0 0 1px var(--line); color: var(--line); font-size: 1.15rem; font-weight: 700; text-align: center; white-space: nowrap; opacity: var(--t); }
  .res-border { position: relative; display: grid; align-content: center; gap: 2.4rem; padding: 0 1rem; }
  .res-border-line { position: absolute; left: 50%; top: -1.6rem; bottom: -1.6rem; border-left: 2px dashed rgb(255 255 255 / .45); }
  .res-flow { --flow: #ffc861; position: relative; z-index: 1; display: grid; gap: .3rem; margin: 0; padding: 1.2rem 1.2rem 1.3rem; border-radius: 1.2rem; background: var(--mk-forest); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); text-align: center; }
  .res-flow.is-out { --flow: #ff8fbd; }
  .res-flow b { font-size: 1.35rem; color: var(--flow); }
  .res-flow > span:last-child { font-size: 1.15rem; line-height: 1.4; color: var(--ink-2); }
  .res-arrow { position: relative; height: 2px; margin: .2rem .6rem .6rem; background: var(--flow); transform: scaleX(var(--t)); }
  .res-flow.is-in .res-arrow { transform-origin: left; }
  .res-flow.is-out .res-arrow { transform-origin: right; }
  .res-arrow::after { content: ""; position: absolute; top: -5px; border: 6px solid transparent; }
  .res-flow.is-in .res-arrow::after { right: -2px; border-left: 9px solid var(--flow); border-right: 0; }
  .res-flow.is-out .res-arrow::after { left: -2px; border-right: 9px solid var(--flow); border-left: 0; }
  .res-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-top: 1.6rem; }
  .res-summary > div { padding: 2rem 2.4rem; border-radius: 2rem; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
  .res-summary-title { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 700; }
  .res-summary .is-stays .res-summary-title { color: #7fd3a4; }
  .res-summary .is-crosses .res-summary-title { color: #ffc861; }
  .res-summary ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
  .res-summary li { position: relative; padding-left: 2.4rem; color: var(--ink-2); }
  .res-summary .is-stays li::before { content: "✓"; position: absolute; left: 0; color: #7fd3a4; font-weight: 800; }
  .res-summary .is-crosses li::before { content: "⇄"; position: absolute; left: 0; color: #ffc861; font-weight: 800; }
  .mk-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 4rem; max-width: 100rem; margin-top: 5.6rem; }
  .mk-rules p { margin: 0; line-height: 1.55; color: var(--ink-2); }
  .mk-rules .hint { grid-column: 1 / -1; color: var(--ink-3); }

  /* Icons */
  .mk-icon { display: grid; flex: none; place-items: center; width: 4.8rem; height: 4.8rem; border-radius: 1.4rem; background: var(--kind-soft, var(--surface-2)); color: var(--kind-ink, var(--ink)); }
  .mk-icon .icon { width: 2.6rem; height: 2.6rem; }

  /* Connections */
  .mk-connections { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
  .mk-connection { display: flex; gap: 1.8rem; padding: 2rem 2.2rem; border-radius: 1.8rem; background: var(--surface); }
  .mk-connection p { margin: 0; color: var(--ink-2); }
  .mk-connection .mk-connection-name { margin-bottom: .6rem; font-size: 1.9rem; font-weight: 650; color: var(--ink); }
  .mk-connection-state { display: inline-block; margin-left: .6rem; padding: .1rem .8rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: 1.2rem; font-weight: 650; vertical-align: .2em; }
  .mk-connection.is-soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .mk-connection.is-soon .mk-connection-state { background: var(--kind-soft); color: var(--kind-ink); }

  /* Teams: photo cards, the first tall */
  .mk-teams-section { max-width: 132rem; }
  .mk-teams { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
  .mk-team { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 2.4rem; background: var(--kind-soft); }
  .mk-team.is-payments { grid-row: span 2; grid-template-rows: 1fr auto; }
  .mk-team-photo { margin: 0; overflow: hidden; }
  .mk-team-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 22%; transition: transform .6s ease; }
  .mk-team.is-payments .mk-team-photo img { aspect-ratio: auto; min-height: 44rem; }
  .mk-team:hover .mk-team-photo img { transform: scale(1.03); }
  .mk-team-copy { display: grid; align-content: start; gap: .6rem; padding: 2rem 2.2rem 2.4rem; }
  .mk-team-tag { justify-self: start; margin: 0; padding: .2rem .9rem; border-radius: 999px; background: var(--kind); color: var(--on-accent); font-size: 1.2rem; font-weight: 700; }
  .mk-team.is-menu .mk-team-tag { color: #1c2420; }
  .mk-team-try { display: inline-flex; align-items: center; gap: .6rem; margin-top: .6rem; color: var(--ink); font-size: 1.45rem; font-weight: 600; text-decoration: none; }
  .mk-team-try .icon { width: 1.5rem; height: 1.5rem; transition: transform .15s ease; }
  .mk-team-try:hover .icon { transform: translateX(.3rem); }
  .mk-team-name { margin: .4rem 0 0; font-size: 2.2rem; font-weight: 720; font-stretch: 86%; line-height: 1.1; letter-spacing: -.01em; }
  .mk-team p:not(.mk-team-tag) { margin: 0; color: var(--ink-2); }

  /* Pricing */
  .mk-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
  .mk-plan { display: grid; align-content: start; padding: 3.2rem 2.8rem 3.4rem; border-radius: 2.4rem; background: var(--surface); }
  .mk-plan.is-build { background: var(--mk-amber); color: #1c2420; --ink: #1c2420; --ink-2: #3a3320; --kind-soft: rgb(255 255 255 / .5); --kind-ink: #1c2420; }
  .mk-plan.is-live { background: var(--router-soft); --kind-soft: var(--surface); --kind-ink: var(--router-ink); }
  .mk-plan.is-self-hosted { background: var(--mk-ink-band); --kind-soft: rgb(255 255 255 / .1); --kind-ink: var(--mk-on-band); }
  .mk-plan > p { margin: 1.2rem 0 0; color: var(--ink-2); }
  .mk-plan-name { margin: 2.4rem 0 0; font-size: 1.6rem; font-weight: 650; color: var(--ink-2); }
  .mk-plan .mk-plan-price { margin-top: .4rem; font-size: 3.6rem; font-weight: 760; font-stretch: 80%; letter-spacing: -.02em; line-height: 1.02; color: var(--ink); }

  /* Early access on a violet band */
  .mk-join { --band: var(--mk-violet); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5.6rem; align-items: start; }
  .mk-join .mk-join-copy { --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); color: var(--ink); }
  .mk-join.is-page { --band: transparent; padding-top: 6.4rem; }
  .mk-join.is-page .mk-join-copy { --ink: initial; --ink-2: initial; --ink-3: initial; color: inherit; }
  .mk-join-copy { position: sticky; top: 10.4rem; }
  .mk-join-copy .hint { margin-top: 2.4rem; }
  /* The design-partner offer: what a team gets beside what we ask of it. */
  #pricing .mk-note { max-width: 76ch; }
  .mk-partner { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2.4rem; margin-top: 3.2rem; }
  .mk-partner-title { margin: 0; font-size: 1.3rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .mk-partner .mk-points { margin-top: 1.2rem; }
  .mk-form { display: grid; gap: 2.2rem; padding: 3.2rem; border-radius: 2.4rem; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .45); }
  /* FAQ */
  .mk-faq { border-top: 1px solid var(--line-strong); }
  .mk-question { border-bottom: 1px solid var(--line); }
  .mk-question summary { position: relative; padding: 2.2rem 4rem 2.2rem 0; font-size: 1.9rem; font-weight: 620; list-style: none; cursor: pointer; }
  .mk-question summary::-webkit-details-marker { display: none; }
  .mk-question summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 2.6rem; font-weight: 300; color: var(--ink-3); }
  .mk-question[open] summary::after { content: "−"; }
  .mk-question p { max-width: 64ch; margin: -.6rem 0 2.4rem; line-height: 1.6; color: var(--ink-2); }

  .mk-form .label { display: block; margin-bottom: .5rem; }
  .mk-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.6rem; }
  .mk-form-wide { grid-column: 1 / -1; }
  .mk-needs { margin: 0; padding: 0; border: 0; }
  .mk-more { padding: 1.2rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r-control); }
  .mk-more[open] { padding-bottom: 2rem; }
  .mk-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-weight: 650; cursor: pointer; }
  .mk-more > summary .hint { font-weight: 400; }
  .mk-more > :not(summary) { margin-top: 1.6rem; }
  .mk-wait { display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: 1.6rem; margin-top: 4rem; }
  .mk-wait-card { display: grid; align-content: start; justify-items: start; gap: 1rem; padding: 2.4rem; border: 1px solid var(--line); border-radius: var(--r-section); background: var(--surface); }
  .mk-wait-card p { margin: 0; color: var(--ink-2); line-height: 1.55; }
  .mk-needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .6rem; }
  .mk-check { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-control); cursor: pointer; }
  .mk-check:has(input:checked) { border-color: var(--ink-3); background: var(--surface-2); }
  .mk-check input { flex: none; width: 1.7rem; height: 1.7rem; margin: .25rem 0 0; accent-color: var(--primary); }
  .mk-check strong { display: block; font-weight: 600; }
  .mk-check .hint { display: block; margin: .1rem 0 0; }
  .mk-consent { border: 0; padding: 0; color: var(--ink-2); }
  .mk-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
  .mk-form-actions .hint { margin: 0; }
  .mk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Status page */
  .mk-status { max-width: 76rem; border-top: 0; padding-top: 7.2rem; }
  .mk-status-mark .mark { width: 5.6rem; height: 5.6rem; }
  .mk-status .mk-h1 { margin-top: 2rem; }
  .mk-status-back { margin: 4rem 0 0; }
  .mk-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 4rem 0 0; padding: 0; list-style: none; }
  .mk-timeline-step { display: grid; gap: .4rem; padding: 1.6rem 0 0; border-top: 3px solid var(--line); color: var(--ink-3); }
  .mk-timeline-step strong { color: var(--ink-2); }
  .mk-timeline-step.is-reached { border-top-color: var(--ink); }
  .mk-timeline-step.is-current strong { color: var(--ink); }
  .mk-share { margin-top: 4.8rem; padding: 2.4rem; border: 1px solid var(--line); border-radius: var(--r-section); background: var(--surface); }
  .mk-share > p { margin: .8rem 0 1.6rem; color: var(--ink-2); }
  .mk-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.4rem; margin: 4rem 0 2rem; }
  .mk-summary dt { font-size: 1.3rem; color: var(--ink-3); }
  .mk-summary dd { margin: .2rem 0 0; font-weight: 600; }

  /* Privacy */
  /* Security: plain facts set as a status card, a hosted-versus-self-hosted table and a list of controls. */
  .mk-security { display: grid; gap: 7.2rem; max-width: 104rem; padding-top: 7.2rem; }
  .mk-security section > .mk-section-lede { margin-bottom: 3.2rem; }
  .mk-status-card { display: grid; gap: 1rem; max-width: 76rem; padding: 2.4rem 2.8rem; border: 1px solid var(--line); border-left: 4px solid var(--mk-amber); border-radius: var(--r-section); background: var(--surface); }
  .mk-status-card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
  .mk-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-section); background: var(--surface); }
  .mk-table { width: 100%; min-width: 64rem; border-collapse: collapse; font-size: 1.5rem; line-height: 1.5; }
  .mk-table th, .mk-table td { padding: 1.4rem 1.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  .mk-table tbody tr:last-child > * { border-bottom: 0; }
  .mk-table thead th { color: var(--ink); font-size: 1.3rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); }
  .mk-table tbody th { width: 22%; color: var(--ink); font-weight: 650; }
  .mk-table td { color: var(--ink-2); }
  .mk-security .hint { margin-top: 1.4rem; }
  .mk-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); gap: 2.8rem 4rem; margin: 0; }
  .mk-controls div { display: grid; gap: .6rem; align-content: start; padding-top: 1.6rem; border-top: 1px solid var(--line); }
  .mk-controls dt { font-size: 1.7rem; font-weight: 680; }
  .mk-controls dd { margin: 0; color: var(--ink-2); line-height: 1.55; }

  .mk-prose { max-width: 76rem; border-top: 0; padding-top: 7.2rem; }
  .mk-prose .mk-h3 { margin-top: 4rem; }
  .mk-prose p { max-width: 66ch; line-height: 1.65; color: var(--ink-2); }

  /* Footer */
  .mk-footer { position: relative; overflow: hidden; background: var(--mk-ink-band); --ink: var(--mk-on-band); --ink-2: var(--mk-on-band-2); --ink-3: var(--mk-on-band-3); --line: var(--mk-on-band-line); color: var(--ink); }
  .mk-footer a { color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
  .mk-footer a:hover { color: var(--ink); }
  .mk-footer-inner { max-width: 124rem; margin: 0 auto; padding: 7.2rem 2.4rem 0; }
  .mk-footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.8rem; padding-bottom: 5.6rem; }
  .mk-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .mk-footer-line { max-width: 22ch; margin: 0; font-size: clamp(2.4rem, 2.6vw, 3rem); font-weight: 700; font-stretch: 84%; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
  .mk-footer-end { display: inline-flex; align-items: center; gap: 1rem; margin: 0; font-family: var(--mono); font-size: 1.35rem; color: var(--ink-2); }
  .mk-footer-end-code { padding: .2rem .7rem; border-radius: .5rem; background: var(--end-soft); color: var(--ok-ink); font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
  .mk-footer-cta.btn { margin-top: .8rem; border-color: var(--mk-amber); background: var(--mk-amber); color: #1c2420; }
  .mk-footer-cta.btn:hover { border-color: var(--mk-amber-deep); background: var(--mk-amber-deep); }
  .mk-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2rem; }
  .mk-footer-heading { margin: 0 0 1.4rem; font-size: 1.3rem; font-weight: 600; color: var(--ink-3); }
  .mk-footer-group ul { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; font-size: 1.55rem; }
  .mk-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2.4rem; padding: 2rem 0; border-top: 1px solid var(--line); }
  .mk-footer-note { margin: 0; font-size: 1.35rem; color: var(--ink-3); }
  .mk-footer-tools { display: flex; flex-wrap: wrap; gap: .8rem; }
  .mk-footer-tool { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.6rem; padding: 0 1.3rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 1.35rem; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
  .mk-footer a.mk-footer-tool:hover, .mk-footer-tool:hover { border-color: var(--mk-on-band-3); background: var(--mk-on-band-faint); color: var(--ink); }
  .mk-footer-tool:focus-visible, .mk-footer a:focus-visible { outline: 2px solid var(--mk-amber); outline-offset: 3px; }
  .mk-footer-tool .icon { width: 1.6rem; height: 1.6rem; }
  .mk-footer-word { display: flex; align-items: center; justify-content: center; gap: .06em; max-width: 124rem; margin: .8rem auto -.2em; padding: 0 2.4rem; color: var(--mk-on-band-faint); font-size: clamp(8rem, 18.5vw, 26rem); font-weight: 800; font-stretch: 76%; line-height: 1; letter-spacing: -.035em; white-space: nowrap; user-select: none; }
  .mk-footer-word .mark { flex: none; width: .72em; height: .72em; opacity: .3; }
  .mk-footer-word .mark circle { fill: var(--mk-on-band-2); }

  /* Staff list */
  .admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
  .admin-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(36rem, 1fr)); gap: 1.6rem; align-items: start; }
  .admin-filters { display: flex; flex-wrap: wrap; gap: .6rem; }
  .admin-filters .pill { text-decoration: none; }
  .admin-filters .pill.is-active { border-color: var(--ink); color: var(--ink); font-weight: 600; }
  .admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .admin-table { width: 100%; border-collapse: collapse; font-size: 1.4rem; }
  .admin-table th { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 1.25rem; font-weight: 600; text-align: left; white-space: nowrap; }
  .admin-table td { padding: 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .admin-table tr:last-child td { border-bottom: 0; }
  .admin-sub { display: block; margin-top: .2rem; color: var(--ink-3); font-size: 1.3rem; }
  .admin-priority { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .admin-ladder { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 26rem; margin: .8rem 0 0; padding: 0; list-style: none; }
  .admin-ladder li { padding: 0 .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-size: 1.15rem; line-height: 1.7; }
  .admin-ladder li.is-reached { border-color: transparent; background: var(--ok-soft); color: var(--ok-ink); }
  .admin-notes { max-width: 36ch; margin: .6rem 0 0; color: var(--ink-2); font-size: 1.3rem; }
  .admin-open { color: inherit; text-decoration: none; }
  .admin-open:hover { text-decoration: underline; }

  /* One request on its own page. */
  .admin-back { color: var(--ink-3); font-size: 1.3rem; }
  .admin-decide { display: flex; align-items: center; gap: 1.6rem; }
  .admin-score { margin: 0; text-align: center; }
  .admin-score .admin-sub { margin: 0; line-height: 1.2; }
  .admin-panel { padding: 2rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .admin-panel-title { margin: 0; font-size: 1.5rem; font-weight: 600; }
  .admin-panel-sub { margin: 2rem 0 .6rem; color: var(--ink-3); font-size: 1.25rem; font-weight: 600; }
  .admin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.6rem; margin: 1.6rem 0 0; }
  .admin-facts dt { color: var(--ink-3); font-size: 1.25rem; }
  .admin-facts dd { margin: .3rem 0 0; font-size: 1.4rem; }
  .admin-quote { max-width: 70ch; margin: 0; padding-left: 1.2rem; border-left: 2px solid var(--line-strong); color: var(--ink-2); font-size: 1.4rem; white-space: pre-line; }
  .admin-list { margin: 0; padding-left: 1.8rem; font-size: 1.4rem; }
  .admin-ladder.is-wide { max-width: none; }
  .pill.is-waiting { background: var(--warning-soft); border-color: var(--warning-line); color: var(--ink); }
  .pill.is-invited { background: var(--router-soft); border-color: var(--router-line); color: var(--router-ink); }
  .pill.is-joined { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }


  @media (prefers-reduced-motion: reduce) {
    .mk-chapter { opacity: 1; transition: none; }
    .mk-story-progress li { transition: none; }
    .mk-team-photo img { transition: none; }
  }

  /* Short laptop screens: shrink the hero's photo-and-phone stage so the hero still fits the first screen. */
  @media (min-width: 1081px) and (max-height: 900px) { .mk-hero-stage { zoom: .9; } .mk-hero-photo { width: 65%; } }
  @media (min-width: 1081px) and (max-height: 820px) { .mk-hero-stage { zoom: .82; } .mk-display { font-size: clamp(4.4rem, 6vw, 7.6rem); } }
  @media (min-width: 1081px) and (max-height: 740px) { .mk-hero-stage { zoom: .74; } }

  @media (max-width: 1080px) {
    .mk-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 4rem; padding-bottom: 7.2rem; }
    .mk-hero-stage { max-width: 64rem; }
    .mk-story-body { grid-template-columns: minmax(0, 1fr); }
    .mk-story-phone { display: none; }
    .mk-chapter { min-height: 0; padding: 4rem 0; opacity: 1; }
    .mk-chapter-screen { display: block; }
    .mk-proof-inner { grid-template-columns: minmax(0, 1fr); }
    .mk-proof-photo { max-width: 44rem; }
  }
  @media (max-width: 399px) { .mk-actions .mk-nav-link { display: none; } }
  @media (max-width: 879px) {
    .mk-nav { display: none; }
    .mk-bar { gap: 1.2rem; padding: 0 1.6rem; }
    .mk-actions .mk-nav-link { padding-inline: .8rem; }
    .mk-section, .mk-story { padding: 7.2rem 1.6rem; }
    .mk-proof-inner { padding: 7.2rem 1.6rem; gap: 3.2rem; }
    .mk-hero { padding: 3.2rem 1.6rem 5.6rem; }
    .mk-hero-stage { height: auto; display: grid; justify-items: center; gap: 1.6rem; padding-top: 2.4rem; }
    .mk-hero-block { inset: 0 0 18rem; border-radius: 2.4rem; transform: none; }
    .mk-hero-photo { position: relative; right: auto; width: 78%; transform: none; }
    .mk-hero-phone { position: relative; left: auto; bottom: auto; width: min(30rem, 100%); margin-top: -14rem; }
    .mk-hero-phone .device { width: min(30rem, 100%); }
    .mk-hero-hint { position: static; }
    .mk-hint-key { display: none; }
    .mk-float-card { display: none; }
    .mk-proof-facts { grid-template-columns: minmax(0, 1fr); }
    .mk-chapter-copy { grid-template-columns: minmax(0, 1fr); }
    .mk-chapter-number { grid-row: auto; margin-bottom: 1rem; }
    .mk-chapter-art { padding: 1.6rem; border-radius: 2rem; }
    .ill-build { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; padding: 0; }
    .ill-build .node.ill-node { grid-column: auto; grid-row: auto; margin: 0 !important; }
    .ill-build .node[data-wire="auth_failed"], .ill-wires { display: none; }
    .ill-pin { grid-template-columns: minmax(0, 1fr); }
    .ill-json { font-size: 1.15rem; }
    .ill-wf-head { display: none; }
    .ill-wf-row { grid-template-columns: 4.8rem minmax(0, 1fr); }
    .ill-wf-bar { grid-column: 1 / -1; }
    .ill-environments { grid-template-columns: minmax(0, 1fr); }
    .ill-traffic .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ill-traffic .funnel-step { grid-template-columns: 8rem minmax(0, 1fr) 2rem; }
    .ill-residency { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .res-zone { padding: 5.2rem 1.6rem 1.6rem; }
    .res-border { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .8rem; padding: 2.4rem 0; }
    .res-border-line { left: -1.6rem; right: -1.6rem; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed rgb(255 255 255 / .45); }
    .res-arrow { display: none; }
    .res-flow.is-in b::before { content: "↓ "; }
    .res-flow.is-out b::before { content: "↑ "; }
    .res-map { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "callers" "ussd" "aggregator" "callbacks" "runtime" "api-link" "api"; }
    .res-link { min-height: 6.4rem; }
    .res-link.is-api .res-line, .res-link.is-ussd .res-line { left: 50%; right: auto; top: .4rem; bottom: .4rem; width: 2px; height: auto; transform: scaleY(var(--t)); transform-origin: top; }
    .res-link.is-api .res-line::before { left: -5px; top: -2px; border: 6px solid transparent; border-bottom: 9px solid var(--line); border-top: 0; }
    .res-link.is-api .res-line::after { left: -5px; right: auto; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--line); border-bottom: 0; }
    .res-link.is-ussd .res-line::before { left: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--line); border-bottom: 0; }
    .res-summary { grid-template-columns: minmax(0, 1fr); }
    .res-link.is-callbacks .res-line { transform-origin: top; }
    .res-link.is-callbacks .res-line::before { top: auto; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--line); border-bottom: 0; }
    .mk-split, .mk-join { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .mk-teams, .mk-plans, .mk-rules, .mk-timeline, .mk-summary { grid-template-columns: minmax(0, 1fr); }
    .mk-team.is-payments { grid-row: auto; }
    .mk-team.is-payments .mk-team-photo img { min-height: 0; aspect-ratio: 4 / 5; }
    .mk-join-copy { position: static; }
    .mk-form { padding: 2rem 1.6rem; }
    .mk-form-grid, .mk-needs-grid { grid-template-columns: minmax(0, 1fr); }
    .mk-footer-top { grid-template-columns: minmax(0, 1fr); gap: 4rem; padding-bottom: 4rem; }
    .mk-footer-inner { padding-top: 5.6rem; }
    .mk-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem 2.4rem; }
    .mk-footer-word { padding: 0 1.6rem; }
  }
}
