:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --border: rgba(16, 32, 64, 0.1);
  --border-strong: rgba(16, 32, 64, 0.16);
  --text: #0c1627;
  --muted: #536176;
  --faint: #7f8ba0;
  --accent: #1565d8;
  --accent-text: #0f56bd;
  --teal: #0f8fa3;
  --green: #1f9d55;
  --orange: #c96a0c;
  --brand: linear-gradient(135deg, #13a3b5 0%, #1d63d8 100%);
  --brand-soft: linear-gradient(135deg, rgba(19, 163, 181, 0.14), rgba(29, 99, 216, 0.14));
  --shot-shadow: 0 1px 2px rgba(12, 22, 39, 0.06), 0 18px 40px -12px rgba(12, 22, 39, 0.28);
  --wall: radial-gradient(120% 90% at 10% 0%, #9fdde6 0%, transparent 55%),
          radial-gradient(90% 90% at 100% 100%, #a9bdf7 0%, transparent 60%),
          linear-gradient(160deg, #dcebf7 0%, #cfdcf6 100%);
  --menubar: rgba(255, 255, 255, 0.55);
  --menubar-ink: rgba(12, 22, 39, 0.78);
  --glow: rgba(29, 99, 216, 0.16);
  --sun: none;
  --moon: block;
  --radius: 18px;
}

/* Dark: the Mac's appearance, unless the visitor picked one with the switch (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b14;
    --bg-raised: #0b111e;
    --surface: #0e1524;
    --surface-2: #131c2f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e8eef8;
    --muted: #9aa8bd;
    --faint: #6d7a90;
    --accent: #4a8dff;
    --accent-text: #7aaeff;
    --teal: #36c3d4;
    --green: #3ccf7a;
    --orange: #f2994a;
    --brand-soft: linear-gradient(135deg, rgba(54, 195, 212, 0.16), rgba(74, 141, 255, 0.16));
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -16px rgba(0, 0, 0, 0.75);
    --wall: radial-gradient(120% 90% at 10% 0%, rgba(19, 163, 181, 0.55) 0%, transparent 55%),
            radial-gradient(90% 90% at 100% 100%, rgba(41, 77, 190, 0.7) 0%, transparent 60%),
            linear-gradient(160deg, #0b2033 0%, #0b1433 100%);
    --menubar: rgba(10, 14, 24, 0.42);
    --menubar-ink: rgba(255, 255, 255, 0.85);
    --glow: rgba(74, 141, 255, 0.18);
    --sun: block;
    --moon: none;
  }
}

:root[data-theme="dark"] {
  --bg: #070b14;
  --bg-raised: #0b111e;
  --surface: #0e1524;
  --surface-2: #131c2f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eef8;
  --muted: #9aa8bd;
  --faint: #6d7a90;
  --accent: #4a8dff;
  --accent-text: #7aaeff;
  --teal: #36c3d4;
  --green: #3ccf7a;
  --orange: #f2994a;
  --brand-soft: linear-gradient(135deg, rgba(54, 195, 212, 0.16), rgba(74, 141, 255, 0.16));
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -16px rgba(0, 0, 0, 0.75);
  --wall: radial-gradient(120% 90% at 10% 0%, rgba(19, 163, 181, 0.55) 0%, transparent 55%),
          radial-gradient(90% 90% at 100% 100%, rgba(41, 77, 190, 0.7) 0%, transparent 60%),
          linear-gradient(160deg, #0b2033 0%, #0b1433 100%);
  --menubar: rgba(10, 14, 24, 0.42);
  --menubar-ink: rgba(255, 255, 255, 0.85);
  --glow: rgba(74, 141, 255, 0.18);
  --sun: block;
  --moon: none;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
.sprites { position: absolute; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
em { font-style: normal; font-weight: 600; color: var(--text); }
code { font: 0.88em ui-monospace, "SF Mono", Menlo, monospace; }

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

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; margin: -3px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .button { padding: 7px 14px; font-size: 14px; }
.theme-switch {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch:hover { color: var(--text); background: var(--surface-2); }
.theme-switch svg { width: 19px; height: 19px; }
.theme-switch .sun { display: var(--sun); }
.theme-switch .moon { display: var(--moon); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; flex: none; }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(29, 99, 216, 0.6); }
.button.primary:hover { box-shadow: 0 12px 28px -8px rgba(29, 99, 216, 0.7); }
.button.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.button.secondary:hover { background: var(--surface-2); }

/* Hero */

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background: radial-gradient(50% 60% at 70% 40%, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 750; }
h1 .accent { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin: 16px 0 0; font-size: 14px; color: var(--faint); }

/* The panel hanging from a strip of menu bar over a wallpaper. */
.desktop {
  --w: 348px;
  position: relative;
  border-radius: 24px;
  background: var(--wall);
  box-shadow: inset 0 0 0 1px var(--border), 0 40px 80px -30px rgba(12, 22, 39, 0.45);
  overflow: hidden;
  padding-bottom: 36px;
}
.desktop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--w) * 30 / 348);
  background: var(--menubar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.desktop .bar-items { position: absolute; inset: 0 auto auto 18px; height: calc(var(--w) * 30 / 348); display: flex; align-items: center; gap: 14px; }
.desktop .bar-items span { display: block; height: 7px; border-radius: 4px; background: var(--menubar-ink); opacity: 0.3; }
.desktop .bar-items span:nth-child(1) { width: 38px; }
.desktop .bar-items span:nth-child(2) { width: 26px; }
.desktop .bar-items span:nth-child(3) { width: 30px; }
.desktop .hang { position: relative; width: var(--w); margin-left: auto; margin-right: 40px; }
.desktop .clock {
  position: absolute;
  top: 0;
  left: calc(var(--w) * 284 / 348);
  height: calc(var(--w) * 30 / 348);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--menubar-ink);
  font-size: calc(var(--w) * 13 / 348);
  font-weight: 500;
  white-space: nowrap;
}
.desktop .clock svg { width: calc(var(--w) * 16 / 348); height: auto; }

/* Sections */

section { padding: 96px 0; }
.band { background: var(--bg-raised); border-block: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 720; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 18px 0 0; }

.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.story + .story { margin-top: 128px; }
.story.flip { grid-template-columns: 1.15fr 1fr; }
.story.flip .copy { order: 2; }
.story .copy p { color: var(--muted); margin: 18px 0 0; }
.story .copy h2 { margin-top: 2px; }

.note {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 15.5px;
  color: var(--muted);
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--green); }

.shot { border-radius: 12px; box-shadow: var(--shot-shadow); }
.shot.panel { border-radius: 14px; }

.media { position: relative; }
.media.code { padding: 0 0 80px 0; }
.media.code .front { position: absolute; left: -28px; bottom: 0; width: min(380px, 62%); }
.media.signin { display: flex; justify-content: flex-end; padding-bottom: 60px; }
.media.signin .panel { width: min(300px, 52%); }
.media.signin .front { position: absolute; left: 0; bottom: 0; width: min(380px, 66%); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  font-size: 14.5px;
  color: var(--text);
}
.small { font-size: 15px; color: var(--faint) !important; }

/* Details grid */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--accent-text);
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }

/* Install */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin: 0 0 48px; padding: 0; list-style: none; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.install-cta { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* FAQ */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 44em; }

/* Footer */

footer { padding: 48px 0 56px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--faint); }
footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: start; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
footer .links a { color: var(--muted); }
footer .legal { grid-column: 1 / -1; margin: 12px 0 0; }

/* Narrow screens */

@media (max-width: 960px) {
  .hero .wrap, .story, .story.flip { grid-template-columns: 1fr; gap: 48px; }
  .story.flip .copy { order: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.button) { display: none; }
  .media.code .front { left: 0; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .story + .story { margin-top: 96px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .desktop { --w: min(348px, calc(100vw - 64px)); }
  .desktop .hang { margin-right: auto; }
  .desktop .clock { display: none; }
  .media.code { padding-bottom: 56px; }
  .media.code .front { width: 78%; }
  .media.signin .panel { width: 62%; }
  .media.signin .front { width: 84%; }
  footer .wrap { grid-template-columns: 1fr; }
  footer .links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* 404 */

.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; text-align: center; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); }
.lost p { margin: 0 0 12px; color: var(--muted); font-size: 1.12rem; }
