/* Kakey website. One stylesheet, no framework. Tokens first; the page follows the system appearance. */

@font-face {
  font-family: "Kakey Mono";
  src: url("/assets/fonts/AtkinsonHyperlegibleMono-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Neutrals tinted toward the brand blue (hue 258). */
  --bg: oklch(99% 0.003 258);
  --surface: oklch(96.6% 0.006 258);
  --ink: oklch(23% 0.02 258);
  --ink-2: oklch(46% 0.018 258);
  --ink-3: oklch(60% 0.014 258);
  --line: oklch(90.5% 0.008 258);
  --accent: #2d7aea; /* the app's AccentColor */
  --accent-ink: #1f63c9;
  --on-accent: #fff;
  --wallpaper: linear-gradient(162deg, oklch(86% 0.045 75) 0%, oklch(78% 0.04 40) 38%, oklch(64% 0.05 250) 100%);
  --menubar: rgba(255, 255, 255, 0.52);
  --menubar-ink: rgba(20, 22, 28, 0.86);
  --android-top: #f6efee;
  --shadow-device: 0 1px 2px rgba(15, 23, 42, 0.08), 0 24px 48px -24px rgba(15, 23, 42, 0.35);

  --mono: "Kakey Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC",
    "Noto Sans SC", sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --pill: 999px;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 132px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16.5% 0.012 258);
    --surface: oklch(20.5% 0.014 258);
    --ink: oklch(95% 0.005 258);
    --ink-2: oklch(74% 0.014 258);
    --ink-3: oklch(60% 0.014 258);
    --line: oklch(28% 0.015 258);
    --accent: #569fff;
    --accent-ink: #79b3ff;
    --on-accent: #06142b;
    --wallpaper: linear-gradient(162deg, oklch(36% 0.04 255) 0%, oklch(28% 0.035 280) 55%, oklch(22% 0.03 250) 100%);
    --menubar: rgba(20, 22, 30, 0.5);
    --menubar-ink: rgba(255, 255, 255, 0.88);
    --android-top: #25211f;
    --shadow-device: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  }
}

:lang(zh-Hant) { --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", sans-serif; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

:lang(zh) body, body:lang(zh) { line-height: 1.75; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.022em; }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

kbd {
  display: inline-block;
  min-width: 1.55em;
  margin: 0 0.08em;
  padding: 0.04em 0.36em;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line);
  color: var(--ink);
  font: 600 0.82em/1.45 var(--mono);
  text-align: center;
  vertical-align: 0.06em;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: 12px; }

.eyebrow, .kicker {
  color: var(--ink-2);
  font: 600 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
:lang(zh) .eyebrow, :lang(zh) .kicker { letter-spacing: 0.08em; }
.eyebrow { margin-bottom: 14px; color: var(--accent-ink); }
/* The hero kicker lists product names, which keep their own capitalization. */
.kicker { text-transform: none; letter-spacing: 0.02em; }

.fine { color: var(--ink-3); font-size: 14px; line-height: 1.5; }

/* Buttons: one solid style. Press moves; hover only on pointer devices. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px 0 17px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
.button:hover { text-decoration: none; }
@media (hover: hover) { .button:hover { background: var(--accent-ink); } }
.button:active { transform: scale(0.96); }

.text-link { font-weight: 600; display: inline-block; transition: transform 140ms var(--ease-out); }
.text-link span { display: inline-block; transition: transform 160ms var(--ease-out); }
@media (hover: hover) { .text-link:hover span { transform: translateX(3px); } }
.text-link:active { transform: scale(0.97); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.lang-menu { position: relative; }
.lang-menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pill);
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  transition: transform 140ms var(--ease-out);
}
.lang-menu summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .lang-menu summary:hover { background: var(--surface); color: var(--ink); } }
.lang-menu summary:active { transform: scale(0.94); }
.lang-list {
  position: absolute;
  right: 0;
  top: 46px;
  display: grid;
  min-width: 156px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -12px rgba(15, 23, 42, 0.28);
  transform-origin: top right;
  animation: menu-in 170ms var(--ease-out);
}
.lang-list a { padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: 15px; }
.lang-list a:hover { background: var(--surface); text-decoration: none; }
.lang-list a[aria-current] { color: var(--accent-ink); font-weight: 600; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.96); } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-copy { display: grid; justify-items: start; gap: 22px; }
.hero-copy h1 { max-width: 13em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h1-main { display: block; }

/* The rotating word: one slot, the current word in brand blue. Words roll up through the slot; the slot's width follows the
   word (a width transition on this one element, every few seconds: the accepted exception to transform-only motion, so the
   rest of the line moves smoothly instead of jumping). CJK words share one width, so nothing moves there. */
.rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  color: var(--accent);
  white-space: nowrap;
  transition: width 520ms var(--ease-out);
}
.rotator-word { display: inline-block; }
.rotator-word.is-leaving { position: absolute; left: 0; top: 0; animation: word-out 420ms cubic-bezier(0.4, 0, 1, 1) forwards; }
.rotator-word.is-entering { animation: word-in 620ms var(--ease-out) both; }
@keyframes word-out { to { opacity: 0; transform: translateY(-0.55em); filter: blur(6px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.6em); filter: blur(6px); } }

/* Second line of the headline: the promise, quieter than the claim. */
.h1-sub {
  display: block;
  margin-top: 0.34em;
  color: var(--ink-2);
  font-size: 0.5em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}
:lang(zh) .h1-sub { letter-spacing: 0; }
.lede { max-width: 36em; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 20px); }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 6px; }

.live-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: 700 15px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: none;
}
.live-code .digits { font-variant-numeric: tabular-nums; display: inline-block; }
.live-code .digits.is-changing { animation: code-swap 260ms var(--ease-out); }
.live-code .ring {
  --p: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1turn), color-mix(in oklch, var(--accent) 18%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px);
  mask: radial-gradient(circle, transparent 4.5px, #000 5px);
}
@keyframes code-swap { from { opacity: 0; filter: blur(3px); transform: translateY(3px); } }

/* Light / dark split */
.split {
  --split: 50%;
  position: relative;
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 1180px;
  user-select: none;
}
.split img { width: 100%; }
.split-dark { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.split-handle {
  position: absolute;
  top: 6%;
  bottom: 9%;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.split-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.45);
  transition: transform 140ms var(--ease-out);
}
.split-handle span::before, .split-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -5px;
  border: 5px solid transparent;
}
.split-handle span::before { left: 5px; border-right-color: var(--on-accent); }
.split-handle span::after { right: 5px; border-left-color: var(--on-accent); }
.split.is-dragging .split-handle span { transform: scale(0.92); }
.split-tag {
  position: absolute;
  bottom: 0.5%;
  padding: 3px 10px;
  border-radius: var(--pill);
  font: 600 12px/1.6 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 320ms ease;
}
/* While the dark half sweeps in from the edge, the tags would sit outside the picture; they fade in once it settles. */
.split.is-sweeping .split-tag { opacity: 0; }
.tag-light { right: calc(100% - var(--split) + 14px); background: rgba(255, 255, 255, 0.9); color: #1d2433; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
.tag-dark { left: calc(var(--split) + 14px); background: rgba(18, 20, 26, 0.85); color: #f2f4f8; }
.split-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.split-range:focus-visible + * { outline: none; }
.split:has(.split-range:focus-visible) .split-handle span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sections */
.section { padding: var(--section) 0; }
.section-title { max-width: 18em; }
/* The sync list is short; half spacing on each side keeps it from floating between its neighbors. */
.sync-section { padding-bottom: calc(var(--section) / 2); }
.platforms-section { padding-top: calc(var(--section) / 2); }

/* Feature overview: a hairline grid on the page background, no cards, like the security list. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.features li { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px 0 30px; border-top: 1px solid var(--line); }
.features svg { width: 26px; height: 26px; margin-bottom: 4px; color: var(--accent-ink); }
.features h3 { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
:lang(zh) .features h3 { letter-spacing: 0; }
.features p { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.section-copy { display: grid; gap: 18px; justify-items: start; }
.section-copy > p { color: var(--ink-2); max-width: 32em; }
.section-copy .eyebrow { margin-bottom: -4px; }

/* Shortcut list: one shortcut per row, keys in a fixed column so the labels line up. */
.shortcuts { display: grid; margin: 8px 0 0; padding: 0; list-style: none; width: 100%; max-width: 32em; }
.shortcuts li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.shortcuts li:last-child { border-bottom: 1px solid var(--line); }
.shortcuts kbd { font-size: 0.86em; }

/* Generated desktop: wallpaper + menu bar + the real panel capture. No real screen content. */
.desktop {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  background: var(--wallpaper);
  overflow: hidden;
  box-shadow: var(--shadow-device);
}
.menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 30px;
  padding: 0 12px 0 16px;
  background: var(--menubar);
  color: var(--menubar-ink);
  font: 13px/1 var(--sans);
  white-space: nowrap;
}
.menubar-status { display: flex; align-items: center; gap: 14px; flex: none; }
.status-kakey { position: relative; display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: rgba(255, 255, 255, 0.4); }
@media (prefers-color-scheme: dark) {
  .status-kakey { background: rgba(255, 255, 255, 0.2); }
  .status-kakey > img { filter: invert(1); }
}
.menubar-clock { font-variant-numeric: tabular-nums; }
/* The panel hangs from the Kakey status item, centered on it like the real one. */
.panel { position: absolute; top: calc(100% + 1px); left: 50%; width: min(56cqi, 336px); transform: translateX(-50%); }
.panel img { width: 100%; filter: drop-shadow(0 18px 30px rgba(10, 14, 30, 0.28)); }
.keys { white-space: nowrap; }

/* Security: a spec sheet on the page's own surface tone (one step from the background), hairlines, no cards. */
.security-section {
  --sec-ink: var(--ink);
  --sec-ink-2: var(--ink-2);
  --sec-ink-3: var(--ink-3);
  --sec-line: var(--line);
  --sec-accent: var(--accent-ink);
  background: var(--surface);
}
.security-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: end; }
.security-head h2 { max-width: 14em; }
.security-intro { color: var(--sec-ink-2); max-width: 30em; }

.spec-list { margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--sec-line); }
.spec-list li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) minmax(0, 15em);
  gap: 8px clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--sec-line);
}
.spec-index { color: var(--sec-accent); font: 700 14px/1.6 var(--mono); }
.spec-body h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
:lang(zh) .spec-body h3 { letter-spacing: 0; }
.spec-body p { margin-top: 8px; color: var(--sec-ink-2); max-width: 40em; }
.spec-tag {
  justify-self: end;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--sec-line);
  color: var(--sec-ink-2);
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.02em;
  text-align: right;
}
.security-more { margin-top: 32px; }

/* Backup locations */
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.locations li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.locations li:nth-child(-n + 2) { border-top: 1px solid var(--line); }
.locations img, .locations svg { width: 28px; height: 28px; flex: none; color: var(--ink-2); }

/* Device frames (geometry only; the screens are real captures with sample data). Bezels are a share of the device width;
   everything on the screen is sized in container units of the screen width, so the frame scales as one piece. */
.device { position: relative; background: #0b0c0f; box-shadow: var(--shadow-device); }
.device { display: flow-root; }
/* The bezel is a margin on the screen: margin percentages resolve against the device width (padding would use the parent). */
.device .screen { position: relative; overflow: hidden; container-type: inline-size; }
.device img { width: 100%; }
.device-iphone { border-radius: 17% / 8%; }
.device-iphone .screen { margin: 2.6%; border-radius: 14.5% / 6.7%; }
/* Dynamic Island of a 402 pt wide iPhone: 125 x 37 pt, 11 pt from the top. */
.device-iphone .screen::after {
  content: "";
  position: absolute;
  top: 2.7cqi;
  left: 50%;
  width: 31cqi;
  height: 9.2cqi;
  transform: translateX(-50%);
  border-radius: var(--pill);
  background: #000;
}
.device-ipad { border-radius: 6% / 4.6%; }
.device-ipad .screen { margin: 2.4%; border-radius: 3.8% / 2.9%; }
.device-android { border-radius: 14% / 6.6%; }
.device-android .screen { margin: 2.6%; border-radius: 11% / 5%; }
.device-android picture, .device-android img { display: block; }
.android-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 1080 / 140;
  padding: 0 7%;
  background: var(--android-top);
  color: var(--ink);
  font: 600 4.6cqi/1 var(--sans);
  position: relative;
}
.android-status svg { width: 13cqi; height: auto; }
/* Punch-hole camera */
.android-status::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.6cqi;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
}

/* Phones side by side: same height, centered on each other. */
.phones { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 44px); }
.phones .device-iphone { width: min(44%, 250px); }
.phones .device-android { width: min(44%, 250px); }

/* Download page: every platform's download sits in the first screen. Interactive choices, so they get a surface
   (one step from the page) instead of being bare text; the visitor's own platform is outlined in the accent. */
.dl-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }
.dl-hero h1 { font-size: clamp(36px, 5.2vw, 62px); }
.dl-meta { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.dl-option {
  --dl-card: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--dl-card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dl-option.is-current { --dl-card: color-mix(in oklch, var(--accent) 7%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent); }
.dl-icon { width: 40px; height: 40px; color: var(--ink); }
.dl-option h2 { margin-top: 18px; font-size: 24px; letter-spacing: -0.012em; }
:lang(zh) .dl-option h2 { letter-spacing: 0; }
.dl-req { margin: 6px 0 22px; color: var(--ink-2); font-size: 15px; }
/* The button row sits right below the requirements so it lines up across the cards; the note, if any, sits at the bottom.
   A secondary link next to the main button (all Mac releases, the Android APK) is small text, the size of the notes. */
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dl-more { color: var(--accent-ink); font-size: 13px; font-weight: 500; }
.dl-alt { margin-top: auto; padding-top: 12px; color: var(--ink-3); font-size: 13px; }
.dl-here {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 2px 9px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 12px/1.6 var(--sans);
}
.dl-option.is-current .dl-here { display: inline-block; }
/* Once the visitor's platform is known, the other downloads step back to an outlined button. */
.dl-grid.has-current .dl-option:not(.is-current) .button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .dl-grid.has-current .dl-option:not(.is-current) .button:hover { background: var(--bg); } }
.dl-footnote { margin-top: 20px; }

.platform { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.platform-copy { display: grid; gap: 16px; justify-items: start; }
.platform-copy > p:not(.fine) { color: var(--ink-2); max-width: 30em; }
.platform-copy h2 { font-size: clamp(26px, 2.8vw, 34px); }
/* Platform names keep their own capitalization (iPhone, iPad). */
.platform-copy .eyebrow { text-transform: none; letter-spacing: 0.02em; }
.mac-visual img { width: 100%; }
/* iPad and iPhone next to each other, bottoms aligned, nothing covering the screens. */
.apple-mobile { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.6vw, 28px); }
.apple-mobile .device-ipad { width: min(68%, 430px); }
.apple-mobile .device-iphone { width: min(26%, 165px); }
.android-visual { display: flex; justify-content: center; }
.android-visual .device-android { width: min(50%, 250px); }

/* Prose (privacy) */
.prose { max-width: 720px; padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.prose h2 { font-size: 24px; letter-spacing: -0.012em; margin: 48px 0 14px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose p strong { color: var(--ink); }
.prose .lede { margin: 28px 0 8px; color: var(--ink); }
.notfound .live-code { margin-bottom: 26px; font-size: 22px; padding: 10px 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.footer-mark { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; }
.footer-mark img { border-radius: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .two-col, .platform-grid, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-visual { order: -1; }
  .platform-mac .platform-visual { order: 0; }
  .security-head { grid-template-columns: minmax(0, 1fr); }
  .spec-list li { grid-template-columns: 2.6em minmax(0, 1fr); }
  .spec-tag { grid-column: 2; justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav a:not(:last-child) { display: none; }
  .header-row { gap: 12px; }
  .site-nav { gap: 14px; }
  .split-tag { font-size: 10px; bottom: -2%; }
  .split-handle span { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .menubar { height: 24px; font-size: 11px; padding: 0 8px 0 10px; }
  .menubar-status { gap: 9px; }
  .menubar-status svg { transform: scale(0.85); }
  .status-kakey { width: 24px; height: 18px; }
  .locations { grid-template-columns: minmax(0, 1fr); }
  .locations li:nth-child(2) { border-top: 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .features li { padding: 20px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
