/*
 * ZKey — the product site of a Vietnamese input method for macOS.
 *
 * The site looks like the thing it is about: a Mac.
 *
 *   - Light and airy, like the app icon: white keycaps on a pale blue, with ONE
 *     blue (#1A63E8, the icon's "ê" badge) for every button, link and the
 *     marked-text underline.
 *   - Keycaps are the recurring drawing: typing examples, the key table, even
 *     the 404 page.
 *   - The composing word is underlined the way macOS draws marked text — which
 *     is exactly how ZKey types.
 *   - Real screenshots of System Settings stay as they are (light) in dark mode,
 *     in a frame that does not glare.
 *
 * No web font is loaded, on purpose: a site that promises your keystrokes never
 * leave your Mac should not open with a request to a font CDN. The stack is
 * the visitor's own system face — SF Pro on a Mac.
 */

/* -------------------------------------------------------------------------
 * Colour modes — three blocks, and the order is the mechanism.
 *
 *   1. `:root`                      — LIGHT, the base.
 *   2. `prefers-color-scheme: dark` — the OS, while the visitor has not
 *                                     explicitly chosen light.
 *   3. `[data-theme="dark"]`        — an explicit choice, which beats the OS.
 *
 * The dark tokens are written twice, in 2 and 3. Keep the two lists identical —
 * build.mjs refuses to build when they drift.
 * ---------------------------------------------------------------------- */

:root {
  --zk-accent: #1a63e8;
  --zk-on-accent: #ffffff;

  --zk-radius: 16px;
  --zk-radius-sm: 11px;
  --zk-radius-lg: 24px;
  --zk-pill: 999px;

  --zk-header-h: 62px;
  --zk-band: clamp(56px, 6vw, 100px);
  --zk-head-gap: clamp(26px, 3vw, 44px);

  --zk-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --zk-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --zk-bg: #f5f8ff;
  --zk-surface: #ffffff;
  --zk-panel: #ffffff;
  --zk-panel-2: #eef3fd;
  --zk-tint: #edf3ff;
  --zk-line: #dfe6f3;
  --zk-ink: #0f172a;
  --zk-muted: #56627a;
  --zk-accent-text: #1553c7;
  --zk-accent-soft: #e6eefe;
  --zk-green: #15803d;
  --zk-green-soft: #e3f7ea;
  --zk-amber: #a16207;
  --zk-amber-soft: #fdf3dc;
  --zk-danger: #c62828;
  --zk-danger-soft: #fdecec;
  --zk-key: #ffffff;
  --zk-key-edge: #cdd6e6;
  --zk-key-ink: #1e293b;
  --zk-window: #f7f8fa;
  --zk-window-line: #d9dde5;
  --zk-titlebar: #eceef2;
  --zk-menubar: rgba(255, 255, 255, 0.72);
  --zk-desk-1: #dbe6ff;
  --zk-desk-2: #c3d4fb;
  --zk-glow: rgba(26, 99, 232, 0.16);
  --zk-shadow: 0 30px 60px -24px rgba(15, 35, 80, 0.3);
  --zk-shadow-sm: 0 8px 22px -10px rgba(15, 35, 80, 0.28);
  --zk-card-shadow: 0 1px 0 rgba(15, 35, 80, 0.03), 0 12px 28px -20px rgba(15, 35, 80, 0.35);
  --zk-band-1: #1a63e8;
  --zk-band-2: #0f3f9e;
}

/* ---- DARK, from the OS, while no explicit light choice is in force ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zk-bg: #0b1020;
    --zk-surface: #0f1528;
    --zk-panel: #141c33;
    --zk-panel-2: #1a2440;
    --zk-tint: #0e152a;
    --zk-line: #26314f;
    --zk-ink: #e8edf8;
    --zk-muted: #9aa7bf;
    --zk-accent-text: #8db4ff;
    --zk-accent-soft: rgba(70, 135, 255, 0.16);
    --zk-green: #4ade80;
    --zk-green-soft: rgba(74, 222, 128, 0.14);
    --zk-amber: #fbbf24;
    --zk-amber-soft: rgba(251, 191, 36, 0.13);
    --zk-danger: #ff8a80;
    --zk-danger-soft: rgba(255, 107, 97, 0.12);
    --zk-key: #222b42;
    --zk-key-edge: #0a0f1d;
    --zk-key-ink: #eef2fb;
    --zk-window: #1d2234;
    --zk-window-line: #323a52;
    --zk-titlebar: #262c40;
    --zk-menubar: rgba(20, 26, 44, 0.78);
    --zk-desk-1: #13204a;
    --zk-desk-2: #0c1636;
    --zk-glow: rgba(70, 135, 255, 0.22);
    --zk-shadow: 0 30px 64px -20px rgba(0, 0, 0, 0.75);
    --zk-shadow-sm: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
    --zk-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px -18px rgba(0, 0, 0, 0.8);
    --zk-band-1: #17408f;
    --zk-band-2: #0b1f4f;
  }
}

/* ---- DARK, chosen by the visitor. Same list as above. ---- */
:root[data-theme="dark"] {
  --zk-bg: #0b1020;
  --zk-surface: #0f1528;
  --zk-panel: #141c33;
  --zk-panel-2: #1a2440;
  --zk-tint: #0e152a;
  --zk-line: #26314f;
  --zk-ink: #e8edf8;
  --zk-muted: #9aa7bf;
  --zk-accent-text: #8db4ff;
  --zk-accent-soft: rgba(70, 135, 255, 0.16);
  --zk-green: #4ade80;
  --zk-green-soft: rgba(74, 222, 128, 0.14);
  --zk-amber: #fbbf24;
  --zk-amber-soft: rgba(251, 191, 36, 0.13);
  --zk-danger: #ff8a80;
  --zk-danger-soft: rgba(255, 107, 97, 0.12);
  --zk-key: #222b42;
  --zk-key-edge: #0a0f1d;
  --zk-key-ink: #eef2fb;
  --zk-window: #1d2234;
  --zk-window-line: #323a52;
  --zk-titlebar: #262c40;
  --zk-menubar: rgba(20, 26, 44, 0.78);
  --zk-desk-1: #13204a;
  --zk-desk-2: #0c1636;
  --zk-glow: rgba(70, 135, 255, 0.22);
  --zk-shadow: 0 30px 64px -20px rgba(0, 0, 0, 0.75);
  --zk-shadow-sm: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
  --zk-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px -18px rgba(0, 0, 0, 0.8);
  --zk-band-1: #17408f;
  --zk-band-2: #0b1f4f;
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

body {
  background: var(--zk-bg);
}

.zk {
  background: var(--zk-bg);
  color: var(--zk-ink);
  font-family: var(--zk-font);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

/* Zero-weight resets, so one-class component rules win. */
:where(.zk) h1,
:where(.zk) h2,
:where(.zk) h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

:where(.zk) p,
:where(.zk) figure,
:where(.zk) dl,
:where(.zk) dd {
  margin: 0;
}

.zk h1 {
  font-size: clamp(30px, 3.6vw + 18px, 58px);
}

.zk h2 {
  font-size: clamp(24px, 1.8vw + 17px, 38px);
}

.zk h3 {
  font-size: 18.5px;
  font-weight: 700;
}

.zk a {
  color: inherit;
}

.zk img {
  max-width: 100%;
  height: auto;
}

.zk code {
  font-family: var(--zk-mono);
  font-size: 0.9em;
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--zk-panel-2);
}

.zk :focus-visible {
  outline: 3px solid var(--zk-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.zk__container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.zk__measure {
  max-width: 820px;
}

.zk__section {
  padding-block: var(--zk-band);
}

.zk__section--tint {
  background: var(--zk-tint);
}

/*
 * Two bands on the same background read as one stretch of page, so the gap
 * between them is ONE band, not two stacked paddings. Blocks arrive wrapped in
 * the runner's <div data-zcms-block>, hence the :has() forms beside the bare ones.
 */
:is(.zk__hero, .zk__section:not(.zk__section--tint), [data-zcms-block]:has(> .zk__hero, > .zk__section:not(.zk__section--tint)))
  + :is(.zk__section:not(.zk__section--tint), [data-zcms-block] > .zk__section:not(.zk__section--tint)),
:is(.zk__section--tint, [data-zcms-block]:has(> .zk__section--tint))
  + :is(.zk__section--tint, [data-zcms-block] > .zk__section--tint) {
  padding-top: 0;
}

.zk [id] {
  scroll-margin-top: calc(var(--zk-header-h) + 16px);
}

.zk__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.zk__skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 12px 18px;
  background: var(--zk-accent);
  color: var(--zk-on-accent);
  border-radius: 0 0 var(--zk-radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}

.zk__skip:focus {
  left: 0;
}

.zk__muted {
  color: var(--zk-muted);
}

.zk__icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -------------------------------------------------------------------------
 * Type and controls
 * ---------------------------------------------------------------------- */

.zk__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--zk-accent-text);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zk__eyebrow--badge {
  padding: 5px 14px 5px 6px;
  border-radius: var(--zk-pill);
  background: var(--zk-accent-soft);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
}

.zk__lead {
  margin-top: 16px;
  color: var(--zk-muted);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
}

.zk__accent {
  color: var(--zk-accent);
}

.zk__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--zk-radius-sm);
  background: var(--zk-accent);
  color: var(--zk-on-accent);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border: 0;
  box-shadow: var(--zk-shadow-sm);
}

.zk a.zk__button {
  color: var(--zk-on-accent);
}

.zk__button:hover {
  filter: brightness(1.07);
}

.zk__button .zk__icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.zk__button--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

/* `a.` too: `.zk a.zk__button` would otherwise paint a ghost link white-on-light. */
.zk .zk__button--ghost,
.zk a.zk__button--ghost {
  background: transparent;
  color: var(--zk-accent-text);
  border: 1.5px solid currentColor;
  box-shadow: none;
}

.zk__text-link {
  color: var(--zk-accent-text);
  font-weight: 700;
  text-decoration: none;
}

.zk__text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.zk__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}

.zk__actions--center {
  justify-content: center;
}

.zk__more {
  margin-top: 28px;
}

.zk__more--center {
  text-align: center;
}

.zk__note {
  margin-top: 22px;
  color: var(--zk-muted);
  font-size: 15px;
}

.zk__note--center {
  text-align: center;
}

.zk__section-head {
  max-width: 760px;
  margin-bottom: var(--zk-head-gap);
}

.zk__section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* The download button: a Mac-store-shaped pill with the Apple glyph. */
.zk__download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 16px;
  border-radius: 14px;
  background: var(--zk-accent);
  color: var(--zk-on-accent);
  text-decoration: none;
  box-shadow: 0 14px 30px -14px var(--zk-accent);
}

.zk a.zk__download {
  color: var(--zk-on-accent);
}

.zk__download:hover {
  filter: brightness(1.07);
}

.zk__download span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.zk__download strong {
  font-size: 16.5px;
}

.zk__download small {
  font-size: 12.5px;
  opacity: 0.85;
}

.zk__download-glyph {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}

.zk__download--large {
  min-height: 62px;
}

.zk__download--large strong {
  font-size: 17.5px;
}

.zk__download--soon {
  background: var(--zk-panel-2);
  color: var(--zk-muted);
  border: 1.5px dashed var(--zk-line);
  box-shadow: none;
}

/* The menu-bar input badge. */
.zk__vi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 19px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--zk-ink);
  color: var(--zk-bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.zk__eyebrow--badge .zk__vi {
  background: var(--zk-accent);
  color: #fff;
}

/* -------------------------------------------------------------------------
 * Keycaps
 * ---------------------------------------------------------------------- */

.zk__keys,
.zk__tokens {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.zk__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--zk-key);
  color: var(--zk-key-ink);
  font-family: var(--zk-font);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--zk-line);
  box-shadow:
    0 2px 0 var(--zk-key-edge),
    0 3px 8px -4px rgba(15, 35, 80, 0.3);
}

.zk__key--static {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 14.5px;
  border-radius: 7px;
}

.zk__key--big {
  min-width: clamp(64px, 12vw, 92px);
  height: clamp(70px, 13vw, 100px);
  border-radius: 16px;
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 800;
  box-shadow:
    0 5px 0 var(--zk-key-edge),
    0 14px 30px -12px rgba(15, 35, 80, 0.35);
}

/* -------------------------------------------------------------------------
 * Header
 *
 * No backdrop-filter on mobile: it would make the header the containing block
 * of the fixed drawer, and the menu would open as a sliver.
 * ---------------------------------------------------------------------- */

.zk__header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--zk-surface);
  border-bottom: 1px solid var(--zk-line);
}

.zk__header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--zk-header-h);
  flex-wrap: nowrap;
}

.zk__menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--zk-radius-sm);
  border: 1px solid var(--zk-line);
  color: inherit;
  text-decoration: none;
}

.zk__menu-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.zk__menu-bars::before,
.zk__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.zk__menu-bars::before {
  top: -6px;
}

.zk__menu-bars::after {
  top: 6px;
}

.zk__menu-bars--x {
  background: transparent;
}

.zk__menu-bars--x::before {
  top: 0;
  transform: rotate(45deg);
}

.zk__menu-bars--x::after {
  top: 0;
  transform: rotate(-45deg);
}

.zk__menu-button--close {
  display: none;
}

.zk__header-inner:has(#zk-menu:target) .zk__menu-button--open {
  display: none;
}

.zk__header-inner:has(#zk-menu:target) .zk__menu-button--close {
  display: inline-flex;
  border-color: var(--zk-accent);
  background: var(--zk-accent-soft);
  color: var(--zk-accent-text);
}

.zk__header-panel {
  display: none;
  position: fixed;
  top: var(--zk-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--zk-surface);
  border-top: 1px solid var(--zk-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.zk__header-panel:target {
  display: flex;
}

.zk__nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk__nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--zk-line);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.zk__nav a:hover {
  color: var(--zk-accent-text);
}

.zk__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.zk__brand img,
.zk__brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}

.zk__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--zk-accent);
  color: #fff;
}

.zk__brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.zk__brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zk__brand-text small {
  color: var(--zk-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zk__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.zk__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--zk-radius-sm);
  border: 1px solid var(--zk-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.zk__icon-btn svg {
  width: 20px;
  height: 20px;
}

.zk__lang {
  position: relative;
}

.zk__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--zk-radius-sm);
  border: 1px solid var(--zk-line);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.zk__lang summary::-webkit-details-marker {
  display: none;
}

.zk__lang summary i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.zk__flag {
  width: 21px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
}

.zk__lang ul {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 178px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius-sm);
  box-shadow: var(--zk-shadow);
}

.zk__lang a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
}

.zk__lang a:hover,
.zk__lang a[aria-current="page"] {
  background: var(--zk-panel-2);
}

/* -------------------------------------------------------------------------
 * Hero and the drawn Mac
 * ---------------------------------------------------------------------- */

.zk__hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 92px) var(--zk-band);
  background:
    radial-gradient(60% 60% at 85% 20%, var(--zk-glow), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, var(--zk-glow), transparent 70%);
}

.zk__hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.zk__hero-copy h1 {
  margin-top: 4px;
}

.zk__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--zk-muted);
  font-size: 14.5px;
}

.zk__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.zk__hero-notes .zk__icon {
  width: 17px;
  height: 17px;
  color: var(--zk-green);
  stroke-width: 2.6;
}

.zk__scene {
  position: relative;
  padding: 0 0 70px;
  border-radius: var(--zk-radius-lg);
  background: linear-gradient(160deg, var(--zk-desk-1), var(--zk-desk-2));
  box-shadow: var(--zk-shadow);
  overflow: hidden;
}

.zk__menubar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 30px;
  padding: 0 14px;
  background: var(--zk-menubar);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--zk-ink);
}

.zk__menubar b {
  font-weight: 700;
}

.zk__menubar-apple {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.zk__menubar-spacer {
  flex: 1;
}

.zk__menubar-time {
  font-variant-numeric: tabular-nums;
}

.zk__window {
  border-radius: 12px;
  background: var(--zk-window);
  border: 1px solid var(--zk-window-line);
  box-shadow: var(--zk-shadow);
  overflow: hidden;
  color: var(--zk-ink);
}

.zk__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  background: var(--zk-titlebar);
  border-bottom: 1px solid var(--zk-window-line);
  font-size: 13px;
  font-weight: 600;
}

.zk__titlebar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.zk__titlebar i:nth-child(2) {
  background: #febc2e;
}

.zk__titlebar i:nth-child(3) {
  background: #28c840;
}

.zk__titlebar span {
  flex: 1;
  margin-right: 52px;
  text-align: center;
  color: var(--zk-muted);
}

.zk__window--note {
  margin: 28px clamp(18px, 4vw, 40px) 0;
}

.zk__note-text {
  min-height: 170px;
  padding: 22px 24px;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.5;
}

.zk__note-dim {
  margin-top: 14px;
  color: var(--zk-muted);
  font-family: var(--zk-mono);
  font-size: 14px;
}

/* macOS marked text: the word being composed, underlined. */
.zk__marked {
  text-decoration: underline;
  text-decoration-color: var(--zk-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  background: var(--zk-accent-soft);
  border-radius: 3px;
}

.zk__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--zk-accent);
  animation: zk-blink 1.1s steps(1) infinite;
}

@keyframes zk-blink {
  50% {
    opacity: 0;
  }
}

.zk__scene-keys {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--zk-surface);
  box-shadow: var(--zk-shadow-sm);
  transform: translateX(-50%);
  white-space: nowrap;
}

.zk__scene-keys .zk__keys {
  flex-wrap: nowrap;
  gap: 4px;
}

.zk__scene-keys .zk__key {
  min-width: 30px;
  height: 32px;
  padding: 0 7px;
  font-size: 15px;
  animation: zk-tap 4.2s ease-in-out infinite both;
  animation-delay: calc(var(--i) * 0.22s);
}

@keyframes zk-tap {
  0%,
  100% {
    transform: none;
  }
  4% {
    transform: translateY(2px);
    background: var(--zk-accent-soft);
    box-shadow: 0 0 0 var(--zk-key-edge);
  }
  9% {
    transform: none;
  }
}

.zk__scene-arrow {
  width: 20px;
  height: 20px;
  color: var(--zk-muted);
}

.zk__scene-out {
  font-size: 22px;
  font-weight: 800;
  color: var(--zk-accent-text);
}

/* -------------------------------------------------------------------------
 * Three promises / features
 * ---------------------------------------------------------------------- */

.zk__usps {
  display: grid;
  gap: 18px;
}

.zk__usp,
.zk__feature {
  padding: 28px;
  border-radius: var(--zk-radius);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  box-shadow: var(--zk-card-shadow);
}

.zk__usp h3,
.zk__feature h3 {
  margin-top: 18px;
}

.zk__usp p,
.zk__feature p {
  margin-top: 8px;
  color: var(--zk-muted);
  font-size: 15.5px;
}

.zk__usp-mark,
.zk__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  background: var(--zk-accent-soft);
  color: var(--zk-accent-text);
}

.zk__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.zk__features {
  display: grid;
  gap: 16px;
}

.zk__feature {
  padding: 24px;
}

/* -------------------------------------------------------------------------
 * Typing examples
 * ---------------------------------------------------------------------- */

.zk__typing {
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--zk-radius-lg);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  box-shadow: var(--zk-card-shadow);
  overflow: hidden;
}

.zk__typing-head {
  display: none;
  grid-template-columns: 1fr 40px 1fr;
  padding: 12px 24px;
  background: var(--zk-panel-2);
  color: var(--zk-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zk__typing-head span:last-child {
  grid-column: 3;
}

.zk__typing ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk__typing-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px 14px;
  padding: 18px 24px;
  border-top: 1px solid var(--zk-line);
}

.zk__typing-row:first-child {
  border-top: 0;
}

.zk__typing-row .zk__keys {
  grid-column: 1 / -1;
}

.zk__typing-row .zk__key {
  animation: zk-press 0.45s ease-out both;
  animation-delay: calc(var(--row) * 0.5s + var(--i) * 0.06s + 0.15s);
}

@keyframes zk-press {
  from {
    opacity: 0.2;
    transform: translateY(-3px);
  }
  55% {
    opacity: 1;
    transform: translateY(2px);
    background: var(--zk-accent-soft);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zk__typing-arrow {
  width: 22px;
  height: 22px;
  color: var(--zk-muted);
}

.zk__typing-out {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  animation: zk-land 0.5s ease-out both;
  animation-delay: calc(var(--row) * 0.5s + var(--n) * 0.06s + 0.25s);
}

@keyframes zk-land {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zk__typing-out b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.zk__typing-row--vi .zk__typing-out b {
  color: var(--zk-accent-text);
}

.zk__typing-row--code .zk__typing-out b {
  font-family: var(--zk-mono);
  font-size: 21px;
}

.zk__typing-kind {
  padding: 2px 10px;
  border-radius: var(--zk-pill);
  background: var(--zk-accent-soft);
  color: var(--zk-accent-text);
  font-size: 12.5px;
  font-weight: 700;
}

.zk__typing-row--en .zk__typing-kind,
.zk__typing-row--code .zk__typing-kind {
  background: var(--zk-green-soft);
  color: var(--zk-green);
}

.zk__typing-note {
  grid-column: 1 / -1;
  color: var(--zk-muted);
  font-size: 14.5px;
}

/* -------------------------------------------------------------------------
 * Key table
 * ---------------------------------------------------------------------- */

.zk__table-wrap {
  overflow-x: auto;
  border-radius: var(--zk-radius);
  border: 1px solid var(--zk-line);
  background: var(--zk-panel);
  box-shadow: var(--zk-card-shadow);
}

.zk__keys-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.zk__keys-table th,
.zk__keys-table td {
  padding: 13px 18px;
  text-align: left;
  border-top: 1px solid var(--zk-line);
  vertical-align: middle;
}

.zk__keys-table thead th {
  border-top: 0;
  background: var(--zk-panel-2);
  color: var(--zk-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zk__keys-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.zk__keys-example {
  color: var(--zk-muted);
  font-size: 14.5px;
}

/* -------------------------------------------------------------------------
 * Showcase and the drawn Settings window
 * ---------------------------------------------------------------------- */

.zk__showcase {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.zk__showcase-copy .zk__section-head {
  margin-bottom: 26px;
}

.zk__showcase-visual {
  display: flex;
  justify-content: center;
}

.zk__points {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk__points li {
  display: flex;
  gap: 14px;
}

.zk__points li > span:last-child {
  display: flex;
  flex-direction: column;
}

.zk__points b {
  font-size: 16.5px;
}

.zk__points li > span:last-child > span {
  color: var(--zk-muted);
  font-size: 15px;
}

.zk__window--settings {
  width: min(100%, 520px);
  font-size: 13.5px;
}

.zk__settings {
  padding: 18px 20px 22px;
}

.zk__settings-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.zk__settings-head b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.zk__settings-head span {
  color: var(--zk-accent);
  font-weight: 600;
}

.zk__tabs {
  display: flex;
  justify-content: center;
  margin: 14px auto 0;
  width: max-content;
  max-width: 100%;
  padding: 2px;
  border-radius: 8px;
  background: var(--zk-titlebar);
}

.zk__tab {
  padding: 3px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.zk__tab--on {
  background: var(--zk-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.zk__settings-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding: 6px 14px 12px;
  border-radius: 10px;
  background: var(--zk-surface);
  border: 1px solid var(--zk-window-line);
}

.zk__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid var(--zk-window-line);
}

.zk__seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 7px;
  background: var(--zk-titlebar);
}

.zk__seg > * {
  padding: 2px 16px;
  border-radius: 5px;
}

.zk__seg b {
  background: var(--zk-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.zk__popup {
  padding: 2px 26px 2px 10px;
  border-radius: 6px;
  background: var(--zk-surface);
  border: 1px solid var(--zk-window-line);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  position: relative;
  white-space: nowrap;
}

.zk__popup::after {
  content: "⌄";
  position: absolute;
  right: 9px;
  top: -2px;
  color: var(--zk-muted);
}

.zk__toggle {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--zk-window-line);
}

.zk__toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.zk__toggle--on {
  background: var(--zk-accent);
}

.zk__toggle--on::after {
  left: 16px;
}

.zk__settings-note {
  margin-top: 10px;
  color: var(--zk-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.zk__settings-label {
  margin-top: 12px;
  font-size: 14px;
}

.zk__editor {
  display: flex;
  flex-direction: column;
  min-height: 100px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--zk-window-line);
  border-radius: 4px;
  background: var(--zk-window);
}

.zk__editor--mono {
  min-height: 60px;
  font-family: var(--zk-mono);
  font-size: 12.5px;
}

.zk__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 2px;
}

.zk__chips span {
  padding: 2px 9px;
  border-radius: var(--zk-pill);
  background: var(--zk-green-soft);
  color: var(--zk-green);
  font-size: 12.5px;
  font-weight: 600;
}

.zk__mac-button {
  align-self: flex-start;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--zk-surface);
  border: 1px solid var(--zk-window-line);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------------------------
 * Screenshots and the install guide
 * ---------------------------------------------------------------------- */

.zk__shot {
  max-width: 100%;
  margin: 0;
}

.zk__shot a {
  display: block;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--zk-desk-1), var(--zk-desk-2));
  box-shadow: var(--zk-card-shadow);
}

.zk__shot img {
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}

.zk__shot--narrow {
  max-width: 300px;
  margin-inline: auto;
}

.zk__shot figcaption {
  margin-top: 10px;
  color: var(--zk-muted);
  font-size: 14px;
  text-align: center;
}

.zk__install {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.zk__install-step {
  display: grid;
  gap: 22px;
  align-items: center;
}

.zk__install-step--text {
  max-width: 760px;
  padding: 26px 28px;
  border-radius: var(--zk-radius);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  box-shadow: var(--zk-card-shadow);
}

.zk__install-n {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--zk-pill);
  background: var(--zk-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.zk__install-text h3 {
  margin-top: 12px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
}

.zk__install-text > p {
  margin-top: 10px;
  color: var(--zk-muted);
}

.zk__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
}

.zk__path b {
  padding: 3px 10px;
  border-radius: 7px;
  background: var(--zk-panel-2);
  border: 1px solid var(--zk-line);
  font-weight: 600;
}

.zk__path span {
  color: var(--zk-muted);
}

.zk .zk__install-tip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--zk-accent-soft);
  color: var(--zk-ink);
  font-size: 14.5px;
}

.zk__install-tip .zk__icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--zk-accent-text);
}

/* -------------------------------------------------------------------------
 * Download card
 * ---------------------------------------------------------------------- */

.zk__download-card {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--zk-radius-lg);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  box-shadow: var(--zk-shadow);
}

.zk__download-main {
  display: grid;
  gap: 22px;
}

.zk__download-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.zk__download-main .zk__lead {
  margin-bottom: 24px;
}

.zk__signed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--zk-green);
  font-size: 14.5px;
  font-weight: 600;
}

.zk__signed .zk__icon {
  width: 19px;
  height: 19px;
}

.zk__facts {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--zk-line);
  border: 1px solid var(--zk-line);
}

.zk__facts > div {
  padding: 12px 16px;
  background: var(--zk-surface);
}

.zk__facts dt {
  color: var(--zk-muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zk__facts dd {
  margin-top: 2px;
  font-weight: 600;
}

.zk__facts code {
  display: block;
  padding: 0;
  background: none;
  font-size: 12.5px;
  word-break: break-all;
}

.zk__download-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--zk-muted);
  font-size: 14.5px;
}

.zk__download-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.zk__download-notes .zk__icon {
  width: 17px;
  height: 17px;
  color: var(--zk-green);
  stroke-width: 2.6;
}

/* -------------------------------------------------------------------------
 * Privacy band, specs, notice
 * ---------------------------------------------------------------------- */

.zk__privacy-band {
  padding-block: var(--zk-band);
  background: linear-gradient(150deg, var(--zk-band-1), var(--zk-band-2));
  color: #fff;
}

.zk__privacy-band .zk__eyebrow {
  color: #bcd3ff;
}

.zk__privacy-band .zk__lead {
  color: #d6e2ff;
}

.zk__privacy-band .zk__text-link {
  color: #fff;
}

.zk__privacy {
  display: grid;
  gap: 16px;
}

.zk__privacy article {
  padding: 26px;
  border-radius: var(--zk-radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.zk__privacy h3 {
  margin-top: 16px;
}

.zk__privacy p {
  margin-top: 8px;
  color: #d6e2ff;
  font-size: 15.5px;
}

.zk__privacy-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
}

.zk__specs {
  border-top: 1px solid var(--zk-line);
}

.zk__specs > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--zk-line);
}

.zk__specs dt {
  font-weight: 700;
}

.zk__specs dd {
  color: var(--zk-muted);
}

.zk__notice {
  padding-block: clamp(20px, 3vw, 36px);
}

.zk__notice-inner {
  display: flex;
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
  padding: 24px 26px;
  border-radius: var(--zk-radius);
  background: var(--zk-accent-soft);
  border: 1px solid var(--zk-line);
}

.zk__notice--warn .zk__notice-inner {
  background: var(--zk-amber-soft);
}

.zk__notice--critical .zk__notice-inner {
  background: var(--zk-danger-soft);
}

.zk__notice-mark {
  display: inline-flex;
  flex: none;
  color: var(--zk-accent-text);
}

.zk__notice--warn .zk__notice-mark {
  color: var(--zk-amber);
}

.zk__notice--critical .zk__notice-mark {
  color: var(--zk-danger);
}

.zk__notice h2 {
  font-size: 20px;
}

.zk__notice p {
  margin-top: 6px;
  color: var(--zk-muted);
}

.zk__notice-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.zk__notice-list li {
  display: flex;
  flex-direction: column;
}

.zk__notice-list span {
  color: var(--zk-muted);
  font-size: 15px;
}

/* -------------------------------------------------------------------------
 * Release timeline — a vertical line, one dot per version, newest first.
 * ---------------------------------------------------------------------- */

.zk__timeline {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The line runs through the centres of the dots (36px wide → 17px). */
.zk__timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--zk-accent), var(--zk-line) 40%);
}

.zk__tl {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.zk__tl-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--zk-panel);
  border: 2px solid var(--zk-line);
  color: var(--zk-muted);
}

.zk__tl-dot .zk__icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.zk__tl-dot--release,
.zk__tl--latest .zk__tl-dot {
  background: var(--zk-accent);
  border-color: var(--zk-accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--zk-accent-soft);
}

.zk__tl-dot--feature {
  border-color: var(--zk-accent);
  color: var(--zk-accent-text);
}

.zk__tl-dot--fix {
  border-color: var(--zk-green);
  color: var(--zk-green);
}

.zk__tl-card {
  padding: 18px 22px 20px;
  border-radius: var(--zk-radius);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  box-shadow: var(--zk-card-shadow);
}

.zk__tl--latest .zk__tl-card {
  border-color: color-mix(in srgb, var(--zk-accent) 45%, var(--zk-line));
}

.zk__tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.zk .zk__tl-version {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.zk__tl-build {
  color: var(--zk-muted);
  font-family: var(--zk-mono);
  font-size: 13px;
}

.zk__tl-kind {
  padding: 2px 10px;
  border-radius: var(--zk-pill);
  background: var(--zk-panel-2);
  color: var(--zk-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.zk__tl-kind--release,
.zk__tl-kind--feature {
  background: var(--zk-accent-soft);
  color: var(--zk-accent-text);
}

.zk__tl-kind--fix {
  background: var(--zk-green-soft);
  color: var(--zk-green);
}

.zk__tl-kind--latest {
  background: var(--zk-accent);
  color: #fff;
}

.zk__tl-date {
  margin-left: auto;
  color: var(--zk-muted);
  font-size: 14px;
}

.zk__tl-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
}

.zk__tl-changes {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--zk-muted);
  font-size: 15.5px;
}

.zk__tl-changes li {
  position: relative;
  padding-left: 18px;
}

.zk__tl-changes li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zk-accent);
  opacity: 0.6;
}

@media (min-width: 640px) {
  .zk__timeline {
    gap: 26px;
  }

  .zk__tl {
    gap: 22px;
  }
}

/* -------------------------------------------------------------------------
 * FAQ, CTA, prose
 * ---------------------------------------------------------------------- */

.zk__faq {
  border-top: 1px solid var(--zk-line);
}

.zk__faq-item {
  border-bottom: 1px solid var(--zk-line);
}

.zk__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.zk__faq-item summary i {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--zk-accent-soft);
}

.zk__faq-item summary i::before,
.zk__faq-item summary i::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 8px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--zk-accent-text);
}

.zk__faq-item summary i::after {
  transform: rotate(90deg);
}

.zk__faq-item[open] summary i::after {
  transform: none;
}

.zk__faq-item p {
  padding: 0 44px 22px 0;
  color: var(--zk-muted);
}

.zk__cta {
  padding-block: var(--zk-band);
  background:
    radial-gradient(50% 70% at 50% 0%, var(--zk-glow), transparent 70%),
    var(--zk-tint);
  text-align: center;
}

.zk__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zk__cta-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: var(--zk-shadow-sm);
}

.zk__cta .zk__lead {
  max-width: 640px;
}

.zk__prose-band {
  padding-block: clamp(28px, 4vw, 56px);
}

.zk__prose {
  font-size: 17px;
  line-height: 1.75;
}

.zk__prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(22px, 2.4vw, 28px);
}

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

.zk__prose h3 {
  margin: 1.5em 0 0.5em;
}

.zk__prose p,
.zk__prose ul,
.zk__prose ol {
  margin: 0 0 1em;
}

.zk__prose li {
  margin-bottom: 0.4em;
}

.zk__prose a {
  color: var(--zk-accent-text);
  font-weight: 600;
}

.zk__prose table {
  width: 100%;
  border-collapse: collapse;
}

.zk__prose th,
.zk__prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--zk-line);
  text-align: left;
  vertical-align: top;
}

.zk__figure img {
  border-radius: var(--zk-radius);
}

.zk__figure figcaption {
  margin-top: 10px;
  color: var(--zk-muted);
  font-size: 14px;
  text-align: center;
}

/* -------------------------------------------------------------------------
 * Pages, documents, posts, states
 * ---------------------------------------------------------------------- */

.zk__page-head {
  padding-block: clamp(40px, 5vw, 76px) clamp(20px, 3vw, 36px);
  background:
    radial-gradient(60% 90% at 90% 0%, var(--zk-glow), transparent 70%),
    var(--zk-tint);
  border-bottom: 1px solid var(--zk-line);
}

.zk__page-head .zk__lead {
  max-width: 760px;
}

.zk__doc-updated {
  margin-top: 10px;
  color: var(--zk-muted);
  font-size: 14px;
}

.zk__toc {
  max-width: 760px;
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--zk-radius);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
}

.zk__toc ul {
  display: grid;
  gap: 4px 24px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.zk__toc a {
  color: var(--zk-accent-text);
  text-decoration: none;
  font-size: 15px;
}

.zk__toc a:hover {
  text-decoration: underline;
}

.zk__doc .zk__prose-band:first-of-type {
  padding-top: clamp(36px, 4vw, 60px);
}

.zk__post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--zk-muted);
  font-size: 14.5px;
}

.zk__post-grid {
  display: grid;
  gap: 18px;
}

.zk__post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--zk-radius);
  background: var(--zk-panel);
  border: 1px solid var(--zk-line);
  box-shadow: var(--zk-card-shadow);
}

.zk__post-card h3 a {
  text-decoration: none;
}

.zk__post-card p {
  margin-top: 8px;
  color: var(--zk-muted);
  font-size: 15px;
}

.zk__post-card-date {
  color: var(--zk-muted);
  font-size: 13px;
}

.zk__empty {
  color: var(--zk-muted);
  text-align: center;
}

.zk__pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.zk__pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--zk-line);
  text-decoration: none;
  font-weight: 700;
}

.zk__pager a[aria-current="page"] {
  background: var(--zk-accent);
  border-color: var(--zk-accent);
  color: #fff;
}

.zk__state {
  padding-block: clamp(60px, 9vw, 130px);
  text-align: center;
}

.zk__state-keys {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.zk__state p {
  margin-top: 14px;
  color: var(--zk-muted);
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.zk__footer {
  padding-block: 56px 28px;
  background: var(--zk-surface);
  border-top: 1px solid var(--zk-line);
  font-size: 15px;
}

.zk__footer-grid {
  display: grid;
  gap: 34px;
}

.zk__footer-about p {
  max-width: 420px;
  margin-top: 14px;
  color: var(--zk-muted);
}

.zk__footer-promise {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.zk__footer-promise li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zk__footer-promise .zk__icon {
  width: 16px;
  height: 16px;
  color: var(--zk-green);
  stroke-width: 2.6;
}

.zk .zk__footer-build {
  margin-top: 14px;
  font-size: 13px;
}

.zk__footer-col h2 {
  margin-bottom: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zk-muted);
}

.zk__footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk__footer-col a {
  text-decoration: none;
}

.zk__footer-col a:hover {
  color: var(--zk-accent-text);
}

.zk__footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.zk__footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--zk-line);
  color: var(--zk-muted);
  font-size: 13.5px;
}

.zk__footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.zk__footer-bottom a {
  text-decoration: none;
}

.zk__builtwith {
  margin-left: 12px;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

/* Phones: tighter cards, nothing wider than the screen, thumb-sized buttons. */
@media (max-width: 639px) {
  .zk {
    font-size: 16px;
  }

  .zk__usp,
  .zk__feature,
  .zk__privacy article,
  .zk__post-card {
    padding: 22px 20px;
  }

  .zk__install-step--text {
    padding: 22px 20px;
  }

  .zk__notice-inner {
    gap: 12px;
    padding: 18px;
  }

  .zk__typing-row {
    padding: 16px 18px;
  }

  .zk__typing-out b {
    font-size: 21px;
  }

  .zk__typing-row--code .zk__typing-out b {
    font-size: 18px;
  }

  .zk__keys-table th,
  .zk__keys-table td {
    padding: 11px 14px;
  }

  .zk__tl-card {
    padding: 16px 18px 18px;
  }

  .zk__faq-item summary {
    padding: 18px 0;
    font-size: 16.5px;
  }

  .zk__faq-item p {
    padding: 0 0 20px;
  }

  /* The drawn Mac: smaller keys so the strip never outgrows a 320px screen. */
  .zk__window--note {
    margin: 20px 14px 0;
  }

  .zk__note-text {
    min-height: 140px;
    padding: 16px 18px;
  }

  .zk__scene {
    padding-bottom: 64px;
  }

  .zk__scene-keys {
    gap: 8px;
    padding: 8px 10px;
  }

  .zk__scene-keys .zk__key {
    min-width: 26px;
    height: 28px;
    padding: 0 6px;
    font-size: 14px;
  }

  .zk__scene-out {
    font-size: 19px;
  }

  .zk__menubar {
    gap: 12px;
    font-size: 12px;
  }

  .zk__settings {
    padding: 14px 14px 18px;
  }

  .zk__row {
    flex-wrap: wrap;
    padding-block: 6px;
  }

  .zk__seg > * {
    padding: 2px 12px;
  }

  .zk__download-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .zk__cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .zk__footer {
    padding-block: 44px 24px;
  }

  .zk__footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .zk__footer-about,
  .zk__footer-contact {
    grid-column: 1 / -1;
  }

  .zk__footer-bottom {
    margin-top: 34px;
  }
}

/* Narrow phones: the main actions stack and fill the width. */
@media (max-width: 479px) {
  .zk__actions {
    gap: 12px;
  }

  .zk__actions > .zk__button,
  .zk__actions > .zk__download {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (min-width: 640px) {
  .zk__usps,
  .zk__privacy {
    grid-template-columns: repeat(3, 1fr);
  }

  .zk__features,
  .zk__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zk__typing-head {
    display: grid;
  }

  .zk__typing-row {
    grid-template-columns: 1fr 40px 1fr;
  }

  .zk__typing-row .zk__keys {
    grid-column: auto;
  }

  .zk__typing-note {
    grid-column: 3;
  }

  .zk__facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .zk__facts-wide {
    grid-column: 1 / -1;
  }

  .zk__download-main {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .zk__toc ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .zk__specs > div {
    grid-template-columns: 220px 1fr;
  }

  .zk__footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  :root {
    --zk-header-h: 72px;
  }

  .zk__header {
    background: color-mix(in srgb, var(--zk-surface) 88%, transparent);
    backdrop-filter: blur(14px);
  }

  .zk__menu-button,
  .zk__header-inner:has(#zk-menu:target) .zk__menu-button--close {
    display: none;
  }

  .zk__header-panel,
  .zk__header-panel:target {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border-top: 0;
    overflow: visible;
  }

  .zk__nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px 20px;
  }

  .zk__nav a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
  }

  .zk__header-actions {
    margin-top: 0;
    flex-wrap: nowrap;
  }

  .zk__header-actions .zk__button {
    white-space: nowrap;
  }

  .zk__lang ul {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
  }

  .zk__hero-grid {
    grid-template-columns: 1.02fr 1fr;
  }

  .zk__showcase {
    grid-template-columns: 1fr 1fr;
  }

  .zk__showcase--flip .zk__showcase-copy {
    order: 2;
  }

  .zk__features {
    grid-template-columns: repeat(3, 1fr);
  }

  .zk__post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .zk__install-step {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
  }

  .zk__install-step:nth-child(even):not(.zk__install-step--text) .zk__install-text {
    order: 2;
  }

  .zk__install-step--text {
    grid-template-columns: 1fr;
    margin-inline: auto;
    width: 100%;
  }

  .zk__footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

@media (min-width: 960px) and (max-width: 1119px) {
  .zk__brand-text small {
    display: none;
  }

  .zk__nav ul {
    gap: 4px 14px;
  }
}

@media (hover: hover) {
  .zk__feature,
  .zk__usp,
  .zk__post-card {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .zk__feature:hover,
  .zk__usp:hover,
  .zk__post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--zk-shadow-sm);
  }

  .zk__shot a {
    transition: transform 0.2s ease;
  }

  .zk__shot a:hover {
    transform: translateY(-2px);
  }
}

/* Reduced motion: every element rests in its finished state. */
@media (prefers-reduced-motion: reduce) {
  .zk * {
    animation: none !important;
    transition: none !important;
  }
}
