@property --u { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --p { syntax: '<percentage>'; inherits: true; initial-value: 40%; }

:root {
  --bg: #f6f6f7;
  --ink: #161618;
  --muted: #6c6c74;
  --line: #e3e3e8;
  --card: #ffffff;
  --accent: #0a84ff;
  --green: #30d158;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
  --pixel: "Geist Pixel", var(--mono);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(0, 0, 0, .055) 1px, transparent 1.3px);
  background-size: 18px 18px;
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }
code, pre { font-family: var(--mono); }

/* ───── Navigation ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(246, 246, 247, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.links a { text-decoration: none; color: #3a3a40; }
.links a:hover { color: var(--ink); }
.links .gh { display: inline-flex; align-items: center; gap: 6px; }
.links .gh svg { width: 16px; height: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.big { padding: 13px 22px; font-size: 15.5px; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .links a:not(.gh) { display: none; }
  .nav { gap: 14px; }
}

/* ───── Hero ───── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 20px 40px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 200px;
  width: min(1200px, 150vw);
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 132, 255, .10), rgba(160, 110, 255, .06) 55%, transparent);
  pointer-events: none;
  z-index: -1;
}
.badge {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: .02em;
  color: #45454c;
  text-decoration: none;
}
.badge:hover { border-color: #cfcfd6; }
h1 {
  margin: 22px 0 0;
  font: 400 clamp(40px, 7.4vw, 78px)/1.02 var(--pixel);
  letter-spacing: -.01em;
}
.lede { max-width: 540px; margin: 16px 0 0; font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); }
.or { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.or a { color: var(--ink); }

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin: 2px 0 26px;
  font: 500 12.5px/1 var(--mono);
  color: #4a4a52;
}
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; background: #66686d; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.legend .dot.duo { background: #46484d; }
.legend .same { position: relative; padding: 0 44px; color: #8a8a93; }
.legend .same::before, .legend .same::after { content: ''; position: absolute; top: 50%; width: 34px; border-top: 1.5px dashed #b9b9c1; }
.legend .same::before { left: 0; }
.legend .same::after { right: 0; }

/* ───── Give this to your agent ───── */
.agent {
  width: min(640px, 100%);
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: #121214;
  color: #f2f2f4;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
  text-align: left;
}
.agent-head { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-bottom: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.agent-head span { font: 400 12px/1.6 var(--mono); color: #8d8d96; }
.agent-cmd { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 12px; background: #1f1f23; }
.agent-cmd code { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; color: #e9e9ee; overflow-wrap: anywhere; }
.agent-cmd .dollar { color: #6f6f78; }
.copy {
  flex: none;
  min-width: 78px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #111;
  font: 500 13px/1 var(--mono);
  cursor: pointer;
  transition: transform .1s;
}
.copy:active { transform: scale(.96); }
.copy.done { background: var(--green); color: #fff; }
.agent.compact { margin: 34px auto 0; }

/* ───── The hero scene: a MacBook and an iPhone Duo, side by side ─────
   Each device is built around its hinge. The MacBook is drawn in millimetres (1em = 1 mm), the
   Duo in the app's own units (1em = 10 points); one stage width (--sw) scales both. */
.stage {
  --sw: min(1040px, 96vw);
  position: relative;
  width: 100%;
  height: calc(var(--sw) * .63);
  margin: calc(var(--sw) * .03) 0 0;
  perspective: calc(var(--sw) * 2.6);
  perspective-origin: 50% 0%;
  touch-action: pan-y;
}
.scene {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(-8deg);
  will-change: transform;
}
.device { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.half { position: absolute; left: calc(var(--W) / -2); width: var(--W); transform-style: preserve-3d; }
.lid { top: calc(var(--H) * -1); height: var(--H); transform-origin: 50% 100%; }
.base { top: 0; height: var(--D); transform-origin: 50% 0; transform: rotateX(90deg); }
.face { position: absolute; inset: 0; overflow: hidden; }
.back {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--T) * -1)) rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.edge { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ground {
  position: absolute;
  left: -14%;
  right: -14%;
  top: -4%;
  bottom: -22%;
  transform: translateZ(calc(var(--BT) * -1 - .2em));
  background: radial-gradient(closest-side, rgba(20, 20, 40, .30), rgba(20, 20, 40, .1) 62%, transparent);
  pointer-events: none;
}

/* MacBook (silver) */
.mb {
  --W: 300em; --H: 198em; --D: 212em; --T: 4em; --BT: 8em;
  font-size: calc(var(--sw) * .00178);
  transform: translate3d(calc(var(--sw) * -.15), 0, calc(var(--sw) * -.08));
}
.mb .lid .face { padding: 6em 6em 9em; border-radius: 10em 10em 0 0; background: #0b0b0c; }
.mb .lid .back { border-radius: 10em 10em 0 0; background: linear-gradient(160deg, #6c6e73, #46484c); }
.mb .bars { position: relative; display: flex; justify-content: center; width: 100%; height: 100%; overflow: hidden; border-radius: 4em 4em 0 0; background: #000; }
.mb .mirror { flex: none; width: 66.9em; height: 47.55em; font-size: 3.849em; }
.mb .mirror .mac { border-radius: 0; }
.mb .mirror .ios-status, .mb .mirror .fold-shade { display: none; }
.mb .notch { position: absolute; left: 50%; top: 6em; width: 30em; height: 5.4em; margin-left: -15em; border-radius: 0 0 1.8em 1.8em; background: #0b0b0c; z-index: 3; }
.mb .notch i { position: absolute; left: 50%; top: 1.6em; width: 2.2em; height: 2.2em; margin-left: -1.1em; border-radius: 50%; background: #16161c; }
.mb .base .face { border-radius: 0 0 11em 11em; background: linear-gradient(180deg, #606267, #505256); }
.mb .hinge-bar { position: absolute; left: 22em; right: 22em; top: 0; height: 5.5em; border-radius: 0 0 2.2em 2.2em; background: linear-gradient(#1b1c1f, #303135); }
.mb .keyboard { --u: 16.5em; left: 17.7em; right: 17.7em; top: 13em; background: rgba(0, 0, 0, .22); box-shadow: inset 0 .25em .6em rgba(0, 0, 0, .25); }
.mb .key { background: linear-gradient(180deg, #232326, #151517); box-shadow: inset 0 .25em 0 rgba(255, 255, 255, .06), 0 .3em .4em rgba(0, 0, 0, .25); }
.mb .trackpad { left: 76em; right: 76em; top: 127em; bottom: 9em; border-radius: 5.5em; background: linear-gradient(#5b5d62, #515358); box-shadow: inset 0 0 0 .35em rgba(255, 255, 255, .06), inset 0 .3em .9em rgba(0, 0, 0, .18); }
.key .tid { width: 62%; height: 62%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2a2a2e, #101012); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .22); }

/* iPhone Duo (space black titanium), a bit larger than life so it reads next to the Mac */
.duo {
  --W: 66.9em; --H: 47.55em; --D: 47.55em; --T: .95em; --BT: .95em;
  font-size: calc(var(--sw) * .00178 * 1.82 * 1.32);
  transform: translate3d(calc(var(--sw) * .265), 0, calc(var(--sw) * .1)) rotateY(-18deg);
}
.duo .lid .face { padding: .5em .5em 0; border-radius: 5.6em 5.6em 0 0; background: #151618; }
.duo .lid .back { border-radius: 5.6em 5.6em 0 0; background: radial-gradient(120% 90% at 30% 20%, #6e7075, #4a4c50 60%, #3c3e42); }
.duo .base .face { border: .5em solid #151618; border-top: 0; border-radius: 0 0 5.6em 5.6em; background: linear-gradient(180deg, #4a4c51, #3b3d41); }
.duo .keyboard, .fp-deck .keyboard { background: #1f2023; }
.duo .trackpad, .fp-deck .trackpad { background: #404246; box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .1), inset 0 .1em .6em rgba(0, 0, 0, .2); }
.duo .hinge-shade { position: absolute; left: 0; right: 0; top: 0; height: .9em; background: linear-gradient(rgba(0, 0, 0, .7), transparent); z-index: 1; }
.duo .keyboard { --u: 3.95em; left: 1.2em; right: 1.2em; top: 1.45em; }
.duo .trackpad { left: 9em; right: 9em; top: 28.4em; bottom: 1.6em; }
.side-btn { position: absolute; top: 0; left: 0; height: .5em; transform-origin: 0 0; border-radius: .25em; background: linear-gradient(#8e9095, #56585c); }

/* A Mac desktop: on both screens, the same */
.mac {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5.05em 5.05em 0 0;
  background: #000;
  font-family: -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
  color: #1d1d1f;
  text-align: left;
  isolation: isolate; /* keep the windows' z-index inside the screen's plane */
  transition: opacity .7s;
}
.mac.asleep { opacity: 0; }
.mac .wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 8% 95%, #ff8a4c 0%, rgba(255, 138, 76, 0) 70%),
    radial-gradient(60% 55% at 92% 8%, #63a4ff 0%, rgba(99, 164, 255, 0) 70%),
    radial-gradient(65% 60% at 40% 30%, #a259ff 0%, rgba(162, 89, 255, 0) 70%),
    radial-gradient(60% 60% at 75% 85%, #ff4f9a 0%, rgba(255, 79, 154, 0) 70%),
    linear-gradient(150deg, #2c46ff 0%, #6a2fe0 45%, #c03fb5 75%, #ff6a6a 100%);
}
.mac .wall svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mac .fold-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); z-index: 6; pointer-events: none; }
.menubar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.55em;
  display: flex;
  align-items: center;
  gap: 1.05em;
  padding: 0 1.4em 0 3.4em;
  background: rgba(30, 20, 70, .22);
  color: #fff;
  font-size: .72em;
  z-index: 4;
}
.menubar b { font-weight: 700; }
.menubar .logo { width: .95em; height: .95em; border-radius: 50%; background: #fff; opacity: .92; }
.ios-status { position: absolute; top: .3em; right: 3.1em; display: flex; align-items: center; gap: .45em; color: #fff; font: 600 1.05em/1 -apple-system, Inter, sans-serif; z-index: 7; text-shadow: 0 0 .4em rgba(0, 0, 0, .25); }
.ios-status i { position: relative; width: 1.9em; height: .9em; border-radius: .28em; border: .1em solid rgba(255, 255, 255, .8); }
.ios-status i::after { content: ''; position: absolute; inset: .1em; right: .45em; border-radius: .12em; background: #fff; }
.win {
  position: absolute;
  overflow: hidden;
  border-radius: .95em;
  background: #fbfbfd;
  box-shadow: 0 1.4em 3.2em rgba(10, 0, 40, .38), 0 0 0 .06em rgba(0, 0, 0, .22);
  z-index: 2;
}
.win.front { z-index: 3; }
.tbar { display: flex; align-items: center; gap: .5em; height: 2.3em; padding: 0 .95em; }
.tl { display: flex; gap: .45em; }
.tl i { width: .78em; height: .78em; border-radius: 50%; background: #ff5f57; }
.tl i:nth-child(2) { background: #febc2e; }
.tl i:nth-child(3) { background: #28c840; }
.win:not(.front) .tl i { background: #d0d0d4; }
.tbar span { flex: 1; margin-right: 2.6em; text-align: center; font-size: .78em; font-weight: 600; color: #4a4a50; }
.finder { left: 3.4em; top: 4.6em; width: 31em; height: 21em; }
.finder .body { display: flex; height: calc(100% - 2.3em); }
.finder .side { width: 8.2em; padding: .5em .7em; background: #eeeef2; font-size: .7em; line-height: 2.05; color: #6c6c74; }
.finder .side b { display: block; margin-top: .2em; font-size: .85em; font-weight: 600; color: #a0a0a8; }
.finder .side .on { margin: 0 -.5em; padding: 0 .5em; border-radius: .4em; background: rgba(0, 0, 0, .07); color: #222; }
.finder .files { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 1.1em .6em; padding: 1.2em 1em; }
.finder .file { display: flex; flex-direction: column; align-items: center; gap: .35em; font-size: .62em; color: #333; }
.finder .file i { position: relative; width: 4.6em; height: 3.6em; border-radius: .5em; background: linear-gradient(180deg, #7cc4ff, #3e9bf5); box-shadow: inset 0 .25em 0 rgba(255, 255, 255, .35); }
.finder .file i::before { content: ''; position: absolute; left: 0; top: -.45em; width: 45%; height: .8em; border-radius: .35em .35em 0 0; background: #66b3fb; }
.finder .file.doc i { width: 3.4em; height: 4.2em; border-radius: .35em; background: #fff; box-shadow: 0 0 0 .08em #d6d6dc; }
.finder .file.doc i::before { display: none; }
.finder .file.app i { width: 3.8em; height: 3.8em; border-radius: .9em; background: #111 url(/assets/icon.png) center / cover; }
.finder .file.app i::before { display: none; }
.term { left: 27.8em; top: 13.6em; width: 34.5em; height: 21.5em; background: #1c1c1e; }
.term .tbar { background: #2b2b2e; }
.term .tbar span { color: #b8b8bf; }
.term pre { margin: 0; padding: .9em 1.1em; font: 400 .86em/1.6 "SF Mono", var(--mono); color: #e8e8ec; white-space: pre-wrap; }
.term .p, .term .ok { color: #5fe08a; }
.term .d { color: #9a9aa3; }
.term .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: #e8e8ec; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dock {
  position: absolute;
  left: 50%;
  bottom: 1.1em;
  display: flex;
  align-items: flex-end;
  gap: .5em;
  padding: .5em .6em;
  transform: translateX(-50%);
  border-radius: 1.35em;
  background: rgba(255, 255, 255, .26);
  box-shadow: inset 0 0 0 .06em rgba(255, 255, 255, .42), 0 .6em 1.6em rgba(20, 0, 60, .2);
  z-index: 4;
}
.dock .app { position: relative; display: grid; place-items: center; width: 3em; height: 3em; border-radius: .72em; color: #fff; }
.dock .app svg { width: 58%; height: 58%; }
.dock .app.img { background: #111 url(/assets/icon.png) center / cover; }
.dock .app.run::after { content: ''; position: absolute; bottom: -.38em; left: 50%; width: .3em; height: .3em; margin-left: -.15em; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.dock .sep { width: .08em; height: 2.6em; margin: 0 .1em .2em; background: rgba(255, 255, 255, .45); }
.cursor { position: absolute; left: 0; top: 0; width: 1.7em; height: 1.7em; z-index: 8; pointer-events: none; }
.cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 .1em .15em rgba(0, 0, 0, .35)); transition: transform .08s; transform-origin: 0 0; }
.cursor.down svg { transform: scale(.86); }

/* Keyboards: the app's Space Black MacBook keyboard */
.keyboard {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * .1);
  padding: calc(var(--u) * .12);
  border-radius: calc(var(--u) * .24);
  background: #0f1012;
  box-shadow: inset 0 .1em .3em rgba(0, 0, 0, .45);
}
.row { display: flex; gap: calc(var(--u) * .1); height: var(--u); }
.row.fnrow { height: calc(var(--u) * .56); }
.key {
  position: relative;
  flex: var(--w, 1) 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--u) * .13);
  background: linear-gradient(180deg, #171719, #0b0b0c);
  box-shadow: inset 0 .08em 0 rgba(255, 255, 255, .07), 0 .1em .15em rgba(0, 0, 0, .55);
  color: #e9e9ec;
  font-size: calc(var(--u) * .38);
  line-height: 1;
  overflow: hidden;
  transition: transform .06s, background .06s, box-shadow .06s;
}
.key.pressed { transform: translateY(.08em) scale(.965); background: #000; box-shadow: inset 0 0 calc(var(--u) * .3) rgba(255, 255, 255, .3); }
.key.pressed, .key.pressed * { color: #fff; text-shadow: 0 0 .5em rgba(255, 255, 255, .9); }
.key .c { font-size: calc(var(--u) * .4); }
.key .dual { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * .04); font-size: calc(var(--u) * .27); }
.key .dual span:last-child { color: #a3a3a9; }
.key.word { font-size: calc(var(--u) * .21); }
.key.word .w { position: absolute; bottom: 13%; white-space: nowrap; }
.key.word .s { position: absolute; top: 12%; font-size: calc(var(--u) * .27); }
.key.word.l .w, .key.word.l .s { left: 12%; }
.key.word.r .w, .key.word.r .s { right: 12%; }
.key.fn svg { width: calc(var(--u) * .36); height: calc(var(--u) * .36); }
.key.power svg { width: calc(var(--u) * .34); height: calc(var(--u) * .34); color: #a3a3a9; }
.key.caps .led { position: absolute; left: 12%; top: 14%; width: calc(var(--u) * .09); height: calc(var(--u) * .09); border-radius: 50%; background: rgba(255, 255, 255, .12); }
.key.globe .g { position: absolute; left: 12%; bottom: 14%; width: calc(var(--u) * .28); height: calc(var(--u) * .28); color: #a3a3a9; }
.key.globe .fnl { position: absolute; right: 12%; top: 12%; font-size: calc(var(--u) * .21); }
.arrows { flex: 3 1 0; display: flex; gap: calc(var(--u) * .1); min-width: 0; height: 100%; align-items: flex-end; }
.arrows .mid { flex: 1 1 0; display: flex; flex-direction: column; gap: calc(var(--u) * .06); height: 100%; }
.arrows .mid .key { height: auto; flex: 1 1 0; }
.arrows > .key { flex: 1 1 0; height: 48%; }
.key.arrow { font-size: calc(var(--u) * .24); }
.trackpad {
  position: absolute;
  overflow: hidden;
  border-radius: 1.35em;
  background: #252629;
  box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .09), inset 0 .1em .6em rgba(0, 0, 0, .18);
  transition: box-shadow .15s;
}
.trackpad.dragging { box-shadow: inset 0 0 0 .2em rgba(90, 170, 255, .7), inset 0 0 1.8em rgba(90, 170, 255, .15); }
.finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.2em;
  height: 4.2em;
  margin: -2.1em 0 0 -2.1em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, .12) 60%, transparent 72%);
  opacity: 0;
  transition: opacity .25s;
}
.finger.on { opacity: 1; }
.finger.press { background: radial-gradient(circle, rgba(255, 255, 255, .65), rgba(255, 255, 255, .2) 60%, transparent 72%); }

/* ───── Sections ───── */
.section { max-width: 1120px; margin: 0 auto; padding: 96px 20px 0; }
.section.center { text-align: center; }
.eyebrow { margin: 0 0 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8a8a93; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; }
.sub { max-width: 620px; margin: 14px 0 0; font-size: 17.5px; color: var(--muted); }
.sub a { color: var(--ink); }

/* How it works: two devices, a lock, and the data flowing both ways */
.pipe { display: flex; align-items: center; justify-content: center; max-width: 820px; margin: 44px auto 0; }
.node { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; width: 128px; }
.node b { font-size: 15px; letter-spacing: -.01em; }
.glyph { display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35); }
.glyph svg { width: 54px; height: 54px; color: var(--ink); }
.glyph.lock { border-radius: 50%; background: var(--ink); }
.glyph.lock svg { width: 40px; height: 40px; color: #fff; }
.wire { position: relative; flex: 1; height: 40px; margin-bottom: 36px; }
.lane { position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #cfd0d6 0 6px, transparent 6px 12px); }
.lane.fwd { top: 12px; }
.lane.back { bottom: 12px; }
.lane b { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; animation: flow 2.4s linear infinite; }
.lane.fwd b { background: var(--accent); box-shadow: 0 0 8px rgba(10, 132, 255, .6); }
.lane.back b { background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, .6); animation-name: flow-back; }
.lane b:nth-child(2) { animation-delay: -.8s; }
.lane b:nth-child(3) { animation-delay: -1.6s; }
@keyframes flow { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes flow-back { from { left: calc(100% - 8px); } to { left: 0; } }
.key-legend { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font: 500 12.5px/1 var(--mono); color: #6c6c74; }
.key-legend span { display: inline-flex; align-items: center; gap: 7px; }
.key-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.key-legend .screen { background: var(--accent); }
.key-legend .input { background: var(--green); }

/* Bento of visual tiles */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.tile.wide { grid-column: span 2; }
.tile.full { grid-column: 1 / -1; }
.tile h3 { margin: 16px 8px 2px; font-size: 17px; letter-spacing: -.01em; }
.tile p { margin: 0 8px; font-size: 14.5px; color: var(--muted); }
.viz { position: relative; display: grid; place-items: center; height: 190px; overflow: hidden; border-radius: 14px; background: #f3f3f6; }
.viz.dark { background: linear-gradient(180deg, #4a4c51, #3b3d41); }
#security { scroll-margin-top: 90px; }

.mini-kb { --u: 34px; position: relative; inset: auto; width: max-content; }
.mini-kb .key { flex: none; width: var(--u); }
.mini-kb .key.sp { width: calc(var(--u) * 5.4); }
@media (max-width: 1000px) { .mini-kb { --u: 28px; } }
@media (max-width: 600px) { .mini-kb { --u: 25px; } }

.pad-viz { position: relative; width: 74%; height: 70%; overflow: hidden; border-radius: 16px; background: #404246; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pad-viz .f { position: absolute; top: 62%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 60%, transparent 72%); animation: scroll2 2.6s ease-in-out infinite; }
.pad-viz .f1 { left: 42%; }
.pad-viz .f2 { left: 58%; }
@keyframes scroll2 { 0%, 15% { transform: translateY(30px); opacity: 0; } 25% { opacity: 1; } 60% { transform: translateY(-40px); opacity: 1; } 75%, 100% { transform: translateY(-40px); opacity: 0; } }

.lock-viz { display: flex; align-items: center; gap: 6px; width: 86%; color: var(--ink); }
.lock-viz .g { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.lock-viz .g svg { width: 34px; height: 34px; }
.lock-viz .g.l { border-radius: 50%; background: var(--ink); color: #fff; }
.lock-viz .g.l svg { width: 26px; height: 26px; }
.lock-viz .path { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #cfd0d6 0 5px, transparent 5px 10px); }
.lock-viz .path b { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: flow 1.8s linear infinite; }
.lock-viz .path b:nth-child(2) { animation-delay: -.9s; }

.pass-viz { position: relative; display: grid; place-items: center; width: 104px; height: 104px; overflow: visible; border: 1px solid var(--line); border-radius: 28px; background: #fff; color: var(--ink); }
.pass-viz svg { width: 58px; height: 58px; }
.pass-viz .scan { position: absolute; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 2.8s ease-in-out infinite; }
.pass-viz .ok { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid #f3f3f6; border-radius: 50%; background: var(--green); color: #fff; font-size: 19px; animation: pop 2.8s ease-in-out infinite; }
@keyframes scan { 0% { top: 12%; opacity: 0; } 10% { opacity: 1; } 50% { top: 85%; opacity: 1; } 60%, 100% { top: 85%; opacity: 0; } }
@keyframes pop { 0%, 55% { transform: scale(0); } 65% { transform: scale(1.15); } 72%, 92% { transform: scale(1); } 100% { transform: scale(0); } }

.set-viz { display: flex; flex-direction: column; gap: 16px; width: 82%; }
.set-viz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.set-viz .opts i { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 600 12.5px/1 var(--sans); font-style: normal; color: #4a4a52; animation: pick 3.2s steps(1) infinite; }
.set-viz .opts i.o2 { animation-delay: -1.6s; }
.set-viz .opts em { display: block; width: 46px; height: 30px; border-radius: 7px; background: linear-gradient(#2b2c2f, #1b1c1e); }
.set-viz .opts .o2 em { background: linear-gradient(#e4e5e8, #c9cacd); }
@keyframes pick { 0% { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 132, 255, .15); } 50% { border-color: var(--line); color: #8a8a93; box-shadow: none; } }
.set-viz .slider { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p), #dcdce2 var(--p)); animation: fill 3.2s ease-in-out infinite; }
.set-viz .slider b { position: absolute; top: 50%; left: var(--p); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
@keyframes fill { 0%, 100% { --p: 30%; } 50% { --p: 78%; } }

.viz.go { height: 120px; background: linear-gradient(90deg, #f3f3f6, #eef0ff 50%, #f3f3f6); }
.marquee { display: flex; gap: 12px; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; white-space: nowrap; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }

.any { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.phones { display: flex; justify-content: center; }
.flat-phone {
  --pw: 250px;
  width: var(--pw);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 44px;
  background: #151618;
  box-shadow: 0 0 0 2px #7a7c81, 0 0 0 3.5px #45474b, 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.fp-screen { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 36px; background: #000; font-size: calc((var(--pw) - 18px) / 66.9); }
.fp-screen .mac { flex: 0 0 50%; border-radius: 0; }
.fp-deck { position: relative; flex: 1; background: linear-gradient(180deg, #4a4c51, #3b3d41); }
.fp-deck .keyboard { --u: 3.95em; top: 1.6em; left: 1.4em; right: 1.4em; }
.fp-deck .trackpad { top: 30em; left: 8em; right: 8em; bottom: 5em; }
.mac.mini .menubar { height: 5em; padding-top: 3.2em; padding-left: 2em; }
.mac.mini .ios-status { top: 2.4em; right: 4em; font-size: 1.6em; }
.mac.mini .finder { left: 2em; top: 7.2em; }
.mac.mini .term { left: 22em; top: 17em; width: 42em; }

.video { margin-top: 30px; overflow: hidden; border-radius: 22px; background: #0d0d0f; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5); }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0d0d0f; }

.steps { list-style: none; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin: 34px 0 0; padding: 0; counter-reset: st; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px/1 var(--mono); }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
.steps pre { margin: 4px 0 0; padding: 12px 14px; overflow-x: auto; border-radius: 12px; background: #121214; color: #ececf0; font-size: 12.5px; line-height: 1.6; }
#install, #how { scroll-margin-top: 70px; }

.oss { padding-bottom: 20px; text-align: center; }
.oss .sub { margin: 14px auto 26px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1120px;
  margin: 90px auto 0;
  padding: 26px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #8a8a93;
}
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot img { border-radius: 4px; }

@media (max-width: 860px) {
  .bento, .steps { grid-template-columns: minmax(0, 1fr); }
  .tile.wide, .tile.full { grid-column: auto; }
  .any { grid-template-columns: 1fr; }
  .section { padding-top: 76px; }
  .pipe { transform: scale(.82); margin-top: 24px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 40px; }
  .stage { height: calc(var(--sw) * .66); }
  .pipe { transform: scale(.62); margin: 0 -60px; }
  .legend .same { padding: 0 30px; }
  .legend .same::before, .legend .same::after { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lane b, .lock-viz .path b, .pad-viz .f, .pass-viz .scan, .pass-viz .ok, .set-viz .opts i, .set-viz .slider, .marquee { animation: none; }
}

/* Still frames for README images and the social card (#shot / #og, see app.js) */
.shot body { background-image: none; }
.shot .nav, .shot .badge, .shot .agent, .shot .or, .shot main > section:not(.hero), .shot .foot { display: none; }
.shot.plain h1, .shot.plain .lede, .shot.plain .legend { display: none; }
.shot .hero { padding: 0; }
.shot .hero::before { top: 0; }
.shot.plain .stage { margin: 0; }
.shot.og .hero { display: grid; grid-template-columns: 420px 1fr; grid-template-rows: 1fr 1fr; height: 630px; padding: 0 0 0 64px; text-align: left; }
.shot.og h1 { grid-column: 1; grid-row: 1; align-self: end; margin: 0; font-size: 62px; }
.shot.og .lede { grid-column: 1; grid-row: 2; align-self: start; margin-top: 18px; font-size: 21px; }
.shot.og .legend { display: none; }
.shot.og .stage { --sw: 660px; grid-column: 2; grid-row: 1 / span 2; height: 630px; margin: 0; }
.shot.og .scene { top: 63%; }
