:root {
  color-scheme: dark;
  --bg: #000;
  --raised: #1c1c1e;
  --raised-2: #2c2c2e;
  --line: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #8e8e93;
  --blue: #4d8bff;
  --blue-hover: #6a9eff;
  --fill: #1f5eff;
  --fill-hover: #164fe0;
  --green: #30d158;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: min(1200px, 100% - 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-color: #3a3a3c var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}

::selection { background: rgba(77, 139, 255, 0.45); color: #fff; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

img, svg { display: block; max-width: 100%; }
kbd { font: inherit; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--raised); color: var(--text); padding: 8px 14px; }

/* Navigation */
.nav {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  font-size: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav a:not(.brand) { color: var(--muted); text-decoration: none; }
.nav a:not(.brand):hover, .nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn-blue { background: var(--fill); color: #fff; }
.btn-blue:hover { background: var(--fill-hover); color: #fff; }
.btn-light { background: var(--text); color: #000; }
.btn-light:hover { background: #fff; color: #000; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta small { color: var(--faint); font-size: 14px; white-space: nowrap; }

/* Hero */
.hero { width: var(--page); margin: 0 auto; padding-top: clamp(28px, 6vw, 72px); }
.hero-copy { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px 64px; align-items: end; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.lede { text-wrap: pretty; margin: 0; max-width: 26em; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.42; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.stage { position: relative; margin: clamp(24px, 4vw, 48px) auto 0; }
.stage svg { width: 100%; height: auto; overflow: visible; }
.stage .tall { display: none; }
.stage svg:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; border-radius: 24px; }
.pad { cursor: crosshair; touch-action: none; }
.touch { fill: rgba(255, 255, 255, 0.2); stroke: rgba(255, 255, 255, 0.75); stroke-width: 2; }
.ripple { opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.ripple.go { animation: ripple 0.55s var(--ease); }
.reach, .pointer-wrap { pointer-events: none; }
.hint { margin: 8px 0 0; text-align: center; color: var(--faint); font-size: 14px; text-wrap: balance; }

/* The one authored moment: on load, the arm reaches from the phone to the Mac. */
.arm { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pointer-wrap { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .arm { animation: reach 1.4s var(--ease) 0.3s both; }
  .pointer-wrap { animation: land 0.6s var(--ease) 1.2s both; }
  .live .arm, .live .pointer-wrap { animation: none; }
}
@keyframes reach { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes ripple { from { opacity: 0.9; transform: scale(0.4); } to { opacity: 0; transform: scale(2.2); } }

/* Sections */
.section { width: var(--page); margin: 0 auto; padding: clamp(96px, 12vw, 168px) 0 0; }
.head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px 64px; align-items: end; }
.section h2 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro { margin: 0; max-width: 28em; color: var(--muted); font-size: 1.1875rem; line-height: 1.45; text-wrap: pretty; }
h3 { margin: 0 0 8px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }

/* Setup: each step shows the real screen it happens on. */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3 { display: flex; align-items: center; gap: 12px; }
.steps h3::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised-2);
  box-shadow: 0 0 0 1px #48484a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.steps p { margin: 0; color: var(--muted); }
.vignette {
  position: relative;
  height: 300px;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
}

.menubar {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 26px;
  padding: 0 14px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}
.menubar span { width: 16px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); }
.menubar img { width: 22px; height: 20px; padding: 1px 2px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); filter: invert(1); }
.panel {
  align-self: flex-end;
  width: min(280px, 100%);
  margin-bottom: 18px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #2a2a2c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 10px 8px; }
.panel-top b { display: block; font-size: 13px; }
.panel-top small { display: block; color: var(--muted); font-size: 12px; }
.panel-label { margin: 2px 0 0; padding: 4px 10px; color: var(--faint); font-size: 11px; font-weight: 600; }
.panel-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px; }
.panel-row kbd, .online { margin-left: auto; color: var(--faint); }
.online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.panel hr { margin: 6px 10px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.device-glyph { flex: none; width: 20px; height: 20px; padding: 1px; border-radius: 50%; background: #48484a; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: #48484a; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.switch.on { background: var(--fill); }
.switch.on::after { left: 16px; }
.switch.sm { margin-left: auto; transform: scale(0.85); }

.phone-top {
  width: 250px;
  height: 284px;
  padding: 14px 20px 0;
  border: 8px solid var(--raised);
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
  background: #000;
  box-shadow: 0 0 0 1px #3a3a3c;
  text-align: center;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.status { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 600; }
.bars { width: 22px; height: 10px; border: 1.5px solid rgba(255, 255, 255, 0.8); border-radius: 3px; background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box; padding: 1px; }
.phone-top img { width: 60px; height: 60px; margin: 26px auto 10px; border-radius: 14px; }
.phone-top b { display: block; font-size: 20px; letter-spacing: -0.01em; }
.phone-top small { display: block; color: var(--muted); font-size: 12px; }
.apple-btn { display: block; margin: 20px 0 10px; padding: 10px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 600; }

.alert {
  width: 260px;
  margin-bottom: 22px;
  padding: 20px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #2c2c2e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.alert img { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 12px; }
.alert b { display: block; font-size: 13px; }
.alert small { display: block; margin: 6px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.alert-btn { display: block; margin-top: 6px; padding: 5px; border-radius: 7px; background: #48484a; font-size: 13px; }
.alert-btn.primary { background: var(--fill); color: #fff; }

/* In use: the session screen, annotated. */
.session { margin: 56px 0 0; }
.device-land {
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 2.165;
  padding: 1.3%;
  border: 2px solid #3a3a3c;
  border-radius: clamp(28px, 5.5vw, 64px);
  background: var(--raised);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.land-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(20px, 4.4vw, 52px);
  background: #000;
}
.land-desk { position: absolute; top: 0; left: 50%; height: 85%; width: auto; aspect-ratio: 5 / 3; transform: translateX(-50%); }
.rail {
  position: absolute;
  right: 2.2%;
  top: 42%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(44, 44, 46, 0.94);
}
.rail svg { width: clamp(22px, 3.4vw, 40px); height: auto; padding: 22%; border-radius: 50%; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail svg.on { background: var(--fill); }
.rail svg.stop { stroke: #ff453a; }
.keys { position: absolute; left: 50%; bottom: 2.6%; transform: translateX(-50%); display: flex; gap: clamp(4px, 0.8vw, 10px); }
.keys kbd {
  min-width: 2.6em;
  padding: 0.35em 0.8em;
  border-radius: 0.6em;
  background: var(--raised-2);
  font-size: clamp(9px, 1.3vw, 15px);
  font-weight: 500;
  text-align: center;
}
.keys kbd.on { background: var(--fill); color: #fff; }
.mark, .legend li::before {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
}
.mark { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px #48484a, 0 4px 12px rgba(0, 0, 0, 0.5); }
.m1 { left: 71.5%; top: 42%; }
.m2 { left: 36%; top: 50%; }
.m3 { left: 52%; top: 70%; }
.m4 { left: 30%; top: 92%; }
.m5 { left: 92%; top: 13%; }
.legend { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 48px; counter-reset: mark; }
.legend li { counter-increment: mark; position: relative; padding-left: 42px; color: var(--muted); }
.legend li::before { content: counter(mark); position: absolute; left: 0; top: 0; }
.legend b { color: var(--text); font-weight: 600; }

/* Security: who sees what. */
.flow { margin: 56px 0 0; }
.flow svg { width: 100%; height: auto; }
.flow .tall { display: none; }
.flow-direct { stroke: var(--blue); stroke-width: 6; stroke-linecap: round; fill: none; }
.flow-intro path { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }
.flow-relay { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 8 7; fill: none; opacity: 0.6; }
.node-sm { fill: var(--raised); stroke: #3a3a3c; stroke-width: 1.5; }
.node-sm.dim { fill: #000; stroke-dasharray: 4 4; }
.dev { fill: var(--raised-2); stroke: #48484a; stroke-width: 1.5; }
.t-node { fill: var(--text); font: 600 15px var(--font); }
.t-node.dim { fill: var(--muted); }
.t-label { fill: var(--text); font: 600 16px var(--font); }
.t-note { fill: var(--muted); font: 400 13px var(--font); }
.facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 56px; }
.facts p { margin: 0; color: var(--muted); }

/* Closing */
.closing { text-align: center; }
.closing-icon { width: 128px; height: 128px; margin: 0 auto 32px; border-radius: 28px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.closing h2 { margin: 0 auto; }
.closing .intro { margin: 16px auto 0; }
.closing-actions { margin-top: 36px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }

/* Text pages */
.doc { width: min(600px, 100% - 48px); margin: 0 auto; padding: clamp(40px, 7vw, 88px) 0 0; }
.doc h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
.doc .updated { margin: 12px 0 0; color: var(--faint); font-size: 15px; }
.doc h2 { margin: 48px 0 12px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.doc h3 { margin: 28px 0 8px; font-size: 1.125rem; }
.doc p, .doc li { color: #d1d1d6; text-wrap: pretty; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.doc summary { position: relative; padding-left: 26px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 7px; height: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg); transition: transform 0.2s ease; }
.doc details[open] > summary::before { transform: rotate(45deg); }
.doc details p { padding-left: 26px; }
.doc details p { margin: 10px 0 0; }
.doc address { font-style: normal; color: #d1d1d6; }
.contact { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.contact p { margin: 0; }
.contact p + p { margin-top: 6px; }

/* Footer */
.footer {
  width: var(--page);
  margin: clamp(96px, 12vw, 160px) auto 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--faint);
}
.footer span { margin-right: auto; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero-copy, .head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .legend { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 760px) {
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
  .stage { max-width: 440px; }
  .stage .wide, .flow .wide { display: none; }
  .stage .tall, .flow .tall { display: block; }
  .flow .tall { max-width: 420px; margin: 0 auto; }
  .legend { grid-template-columns: 1fr; }
  .mark { width: 20px; height: 20px; font-size: 11px; }
  .rail { padding: 3px; }
  .closing-actions { flex-direction: column; align-items: center; gap: 24px; }
}

@media (max-width: 560px) {
  .footer span { flex-basis: 100%; }
}
