:root {
  --desktop-top: #16133d;
  --desktop-bottom: #4a3fa8;
  --bar-fill: rgba(255, 255, 255, 0.16);
  --bar-ink: #ffffff;
  --paper: #f6f7f9;
  --ink: #17202b;
  --muted: #5c6773;
  --rule: #d9dde3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 680px;
  --bar-height: 38px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #7fb3ff; outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

/* The desktop: the real macOS wallpaper, the hero, and the menu bar that lives on it */
.desktop {
  position: relative;
  min-height: 100svh;
  background: var(--desktop-top);
  color: var(--bar-ink);
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(var(--bar-height) + 10px) 24px 64px;
  overflow: hidden;
}
.wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}
/* A soft scrim so white text stays readable over the lake below the sky */
.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 10, 50, 0) 40%, rgba(14, 10, 50, 0.35) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero { position: relative; z-index: 1; }

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--bar-fill);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 13.5px;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.menubar.hidden { transform: translateY(-100%); }
.menubar .left, .menubar .right { display: flex; align-items: center; gap: 22px; }
.menubar .right { gap: 20px; }
.menubar .app { font-weight: 700; }
.menubar svg { fill: currentColor; display: block; }
.menubar .logo svg { width: 15px; height: 18px; }
.menubar .glyph svg { width: 18px; height: 18px; }
.menubar .battery svg { width: 30px; height: 14px; }
.menubar .time { font-variant-numeric: tabular-nums; font-size: 14px; }
.menubar .app-item {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  margin: 0 -2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.menubar .app-item.open { background: rgba(255, 255, 255, 0.28); } /* the "menu is open" highlight */
.menubar .app-icon { width: 22px; height: 16px; display: block; }
@media (max-width: 720px) { .menubar .right { gap: 14px; } .menubar .search, .menubar .cc { display: none; } }

/* The app's menu, as macOS 26 draws it */
.menu {
  position: absolute;
  top: calc(var(--bar-height) + 6px);
  right: 118px;
  width: 300px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(246, 246, 248, 0.94);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  color: #1d1d1f;
  font-size: 13.5px;
  line-height: 1;
  text-align: left;
}
.menu .mi {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px 12px 6px 26px;
  border: 0;
  border-radius: 6px;
  position: relative;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}
.menu .mi:hover, .menu .mi:focus-visible { background: #4a3fa8; color: #fff; outline: none; }
.menu .mi:hover .key, .menu .mi:focus-visible .key { color: rgba(255, 255, 255, 0.8); }
.menu .mi.leaving { opacity: 0.5; }
.menubar .app-item.gone { opacity: 0; transition: opacity 320ms ease; }
.menubar .app-item { transition: opacity 320ms ease; }

/* The Settings window over the desktop: a real capture, framed, with a caption that says so */
.settings-window {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(526px, 92vw);
  transform: translate(-50%, -50%);
}
.settings-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.3);
  background: #f6f7f9;
}
.settings-frame img { display: block; width: 100%; height: auto; }
.settings-close {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.settings-close:focus-visible { outline: 2px solid #4a3fa8; outline-offset: 2px; }
.settings-note {
  margin: 14px auto 0;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 8, 40, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.settings-dismiss {
  margin-left: 6px;
  padding: 2px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2a2260;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.settings-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu .mi.checked::before {
  content: "✓";
  position: absolute;
  left: 9px;
  font-weight: 700;
  font-size: 12px;
}
.menu .key { color: #86868b; font-variant-numeric: tabular-nums; }
.menu .sep { height: 1px; background: rgba(0, 0, 0, 0.1); margin: 5px 10px; }
@media (max-width: 720px) {
  .menu { right: 12px; width: 260px; font-size: 13px; }
}
@media (max-width: 720px) {
  .menubar .left span:not(.logo):not(.app), .menubar .right .wifi { display: none; }
}

/* The strip at the top edge that reveals the hidden bar on hover, like macOS */
.reveal-zone {
  position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 3;
}

.hero {
  max-width: 760px;
  text-align: center;
}

/* The annotations: hand-drawn arrows with the words pinned to each arrow's tail */
.callout {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.callout .arrow {
  position: absolute;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.callout .arrow path { stroke-dasharray: 200; stroke-dashoffset: 0; }
.callout.draw .arrow-line { animation: draw 700ms cubic-bezier(.4,0,.2,1) 500ms both; }
.callout.draw .arrow-head { animation: draw 300ms ease-out 1150ms both; }
@keyframes draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.callout-text, .callout-sub {
  font-family: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

/* "Right-click the bar to hide it": arrow bottom-left, words starting at its tail */
.callout-hide {
  width: 460px;
  max-width: 100%;
  height: 112px;           /* fixed, so the headline never moves when the message changes */
  margin: 0 auto clamp(48px, 9vh, 96px);   /* the arrows own the top; the brand sits clearly below */
}
.callout-hide .arrow { left: 0; top: 0; width: 110px; height: 100px; }   /* tip just under the bar */
.callout-hide .callout-copy { position: absolute; left: 100px; bottom: 10px; }
.callout-hide .callout-text {
  font-size: clamp(28px, 4vw, 38px);
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.callout-hide .callout-sub { font-size: 24px; margin-top: 8px; color: rgba(255, 255, 255, 0.85); min-height: 24px; }
@media (max-width: 720px) {
  .callout-hide { width: 100%; }
  .callout-hide .arrow { width: 80px; height: 72px; }
  .callout-hide .callout-copy { left: 72px; }
  .callout-hide .callout-text, .callout-hide .callout-sub { white-space: normal; max-width: 240px; }
}

/* "That's the whole app. Click it.": arrow top-left pointing up at the icon, words beside its tail */
.callout-menu {
  position: absolute;
  z-index: 1;
  width: 260px;
  height: 72px;
  pointer-events: none;
}
.callout-menu .arrow { left: 0; top: 0; width: 60px; height: 64px; }
.callout-menu .callout-text { position: absolute; left: 58px; top: 14px; font-size: 26px; line-height: 1.05; transform: rotate(-2deg); }
@media (max-width: 720px) { .callout-menu { display: none !important; } }
.hero h1.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero h1.brand img { width: 92px; height: 92px; display: block; flex: 0 0 auto; }
.hero .tagline {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 auto 14px;
  max-width: none;
  color: #fff;
}
@media (max-width: 600px) {
  .hero h1.brand { flex-direction: column; gap: 10px; }
}
.hero > p {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.45;
  margin: 0 auto 36px;
  max-width: 600px;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.cta { position: relative; display: inline-block; margin-top: 6px; }
.badge { display: block; line-height: 0; border-radius: 8px; }
.badge img { display: block; width: 200px; height: auto; }

/* Scroll cue at the bottom of the desktop */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}
.scroll-cue svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4)); animation: bob 1.8s ease-in-out infinite; }
.scroll-cue:hover { opacity: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } html { scroll-behavior: auto; } }

/* Paper sections */
.section {
  padding: 72px 24px;
}
.section + .section { border-top: 1px solid var(--rule); }
.section > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 28px;
}
.section p { margin: 0 0 1em; }
.section p:last-child { margin-bottom: 0; }

/* Features: the words scroll past on the left while one sticky stage on the right shows the matching
   scene; the copy you're reading is bright, the rest is dimmed. On narrow screens it's plain rows. */
.features { max-width: 1040px; }
.feature { display: grid; gap: 20px; margin-bottom: 48px; }
.feature h3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 10px; }
.feature p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; }
.feature p + p { margin-top: 10px; }
.feature .demo { max-width: 560px; justify-self: center; }
.stage { display: none; }

@media (min-width: 900px) {
  .features {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    align-items: start;
  }
  .features > .feature { grid-column: 1; }
  .feature {
    min-height: 40vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.32;
    transition: opacity 320ms ease;
  }
  .feature.active { opacity: 1; }
  .feature:first-of-type { min-height: 34vh; justify-content: flex-start; padding-top: 4vh; }
  .feature:last-of-type { min-height: 34vh; justify-content: flex-start; padding-top: 4vh; }
  .stage {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: calc(50vh - 175px);
    align-self: start;
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
  .stage .demo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 420ms ease, transform 420ms ease;
    pointer-events: none;
  }
  .stage .demo.active { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .demo { transform: none; transition: opacity 200ms ease; }
  .feature { transition: none; }
}

.feature kbd {
  font-family: var(--font);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--ink);
  white-space: nowrap;
}

.fine {
  font-size: 15px;
  color: var(--muted);
}
.fine p { margin-bottom: 0.8em; }

footer {
  padding: 40px 24px 56px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
footer > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
footer nav a { margin-right: 20px; }

/* Text pages (privacy, support) */
.page { padding: 64px 24px 80px; }
.page > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.page h1 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 auto 8px; }
.page .date { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.page h2 { font-size: 20px; margin: 36px auto 10px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page .back { display: block; margin: 0 auto 32px; font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .menubar { transition: none; }
  .callout.draw .arrow-line, .callout.draw .arrow-head { animation: none; }
}
