:root {
  --bg: #101a2c;          /* night navy, from the icon gradient */
  --bg-2: #18253d;
  --panel: #1e1e20;       /* macOS dark popover */
  --text: #e8edf5;
  --muted: #98a4b8;
  --line: #2a3853;
  --accent: #0a84ff;
  --fur: #d69e66;         /* the dog, from the icon */
  --menubar: rgba(22, 32, 52, .72);
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -12px rgba(0,0,0,.6), 0 0 0 .5px rgba(0,0,0,.6);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef2f8;
    --bg-2: #e2e8f2;
    --panel: #f6f6f6;
    --text: #13203a;
    --muted: #55617a;
    --line: #cdd5e3;
    --accent: #0066d6;
    --fur: #9a5f26;
    --menubar: rgba(246, 248, 252, .8);
    --shadow: 0 24px 60px -16px rgba(19,32,58,.35), 0 0 0 .5px rgba(0,0,0,.15);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
code { font: .88em/1.4 var(--mono); }

/* Fake macOS menu bar: the page opens where the app lives. */
.menubar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  height: 30px; padding: 0 max(16px, calc((100vw - 1080px) / 2 + 32px));
  background: var(--menubar);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  font-size: 13px;
  border-bottom: .5px solid var(--line);
}
.mb-left, .mb-right { display: flex; gap: 18px; align-items: center; }
.mb-left span:not(.mb-apple) { opacity: .85; }
.mb-apple { width: 12px; height: 14px; border-radius: 50% 50% 45% 45%; background: currentColor; opacity: .9; }
.mb-dog {
  display: grid; place-items: center;
  width: 30px; height: 22px; border-radius: 5px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
}
.mb-dog img { display: block; }
@media (prefers-color-scheme: dark) { .mb-dog img { filter: invert(1); } }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 96px;
}
.hero-copy { padding-top: 88px; }
.brand {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 36px;
  font-size: 22px; font-weight: 650; letter-spacing: -.01em;
}
.brand img { border-radius: 13px; }
h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.sub { margin: 24px 0 0; max-width: 34ch; font-size: 21px; line-height: 1.4; color: var(--text); }
.for { margin: 12px 0 0; max-width: 46ch; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 23px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600; text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.meta { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* The popover hangs from the menu bar, right under the dog icon. */
.pop-wrap { margin: 6px 0 0; position: relative; }
.shot {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.pop-wrap::before {   /* the arrow toward the menu bar item */
  content: ""; position: absolute; top: -6px; right: 78px;
  width: 14px; height: 14px; transform: rotate(45deg);
  background: #161618; border-radius: 2px;
}

/* Features: plain rows, text beside the real screenshot */
main { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.feature .text { max-width: 52ch; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.feature p, .privacy p, .build p { margin: 0 0 12px; color: var(--muted); }
.shot { display: block; width: 320px; background: #161618; }

/* Privacy: the one file is the whole story */
.privacy {
  margin: 24px -32px 0;
  padding: 80px 32px;
  background: var(--bg-2);
  border-radius: 20px;
}
.path code {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--fur);
  font-size: clamp(13px, 2.2vw, 19px);
  overflow-wrap: anywhere;
}
.privacy ul { margin: 20px 0 0; padding-left: 1.1em; }
.privacy li { margin: 6px 0; }

/* Good to know */
.limits { padding: 96px 0 48px; }
dl { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin: 24px 0 0; }
dt, dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
dt { font-weight: 650; }
dd { color: var(--muted); }

/* Build */
.build { padding: 48px 0 96px; max-width: 720px; }
.build ol { margin: 20px 0 32px; padding-left: 1.3em; }
.build li { margin: 0 0 18px; padding-left: 6px; }
.build li::marker { color: var(--accent); font-weight: 700; }
pre {
  margin: 10px 0 0; padding: 12px 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow-x: auto;
}
pre code { font-size: 14px; }

footer {
  max-width: 1080px; margin: 0 auto;
  padding: 32px 32px 48px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
footer p { margin: 0; }
footer nav { display: flex; gap: 20px; }

/* Single entrance: the popover drops from the menu bar. */
@media (prefers-reduced-motion: no-preference) {
  .pop-wrap { animation: drop .45s cubic-bezier(.2, .9, .3, 1.2) .25s both; transform-origin: 80% 0; }
  @keyframes drop { from { transform: translateY(-12px) scale(.97); } }
}

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 0 16px 64px; }
  .hero-copy { padding-top: 48px; }
  .pop-wrap { justify-self: center; }
  .pop-wrap::before { display: none; }
  main { padding: 0 16px; }
  .feature { padding: 56px 0; }
  .shot { justify-self: center; }
  .privacy { margin: 24px -16px 0; padding: 56px 16px; border-radius: 0; }
  dl { grid-template-columns: 1fr; }
  dd { border-top: 0; padding-top: 0; }
  footer { padding: 32px 16px 40px; }
  .mb-left span:nth-child(n+3) { display: none; }
}
@media (max-width: 360px) {
  .shot { width: 100%; }
  .mb-left span:nth-child(n+2) { display: none; }
}
