/* Nacreous — one stylesheet for every page. Light and dark follow the Mac's
   appearance. No web fonts: the system's own (SF Pro on a Mac). */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #1d1d1f;
  --text-soft: #5f6368;
  --line: #e3e6ea;
  --accent: #1a8fd6;
  --accent-text: #ffffff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius: 14px;
  --width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --bg-soft: #1b1d20;
    --text: #f2f2f4;
    --text-soft: #a2a6ad;
    --line: #2c2f34;
    --accent: #4fb4f0;
    --accent-text: #0b1a24;
    --card: #1e2024;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* The bar along the top. */
.top {
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--text-soft); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* The first screen: icon, name, one line, the button. */
.hero {
  text-align: center;
  padding: 72px 0 64px;
}
.hero img.icon { width: 148px; height: 148px; }
.hero h1 {
  margin: 18px 0 8px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 21px;
  color: var(--text-soft);
}
.badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
}

.download { margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.06); }
.button svg { width: 18px; height: 18px; }
.download .meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

/* The window, under the button. */
.shot { padding-bottom: 64px; text-align: center; }
.shot img {
  width: 100%;
  max-width: 1040px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 18px 48px rgba(0, 0, 0, 0.16);
}

/* Sections below. */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
section h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
section .intro {
  margin: 0 0 32px;
  max-width: 680px;
  color: var(--text-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; font-size: 15px; color: var(--text-soft); }
code {
  font: 0.9em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 4px;
}
section.soft code { background: var(--card); }

/* Permissions: a list of terms and what they are for. */
.terms { margin: 0; display: grid; gap: 14px; max-width: 760px; }
.terms div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.terms div:last-child { border-bottom: 0; }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--text-soft); font-size: 16px; }

/* A page of plain text (privacy). */
.text { max-width: 720px; padding: 48px 0 64px; }
.text h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 6px; }
.text .updated { color: var(--text-soft); font-size: 14px; margin: 0 0 32px; }
.text h2 { font-size: 22px; margin: 32px 0 8px; }
.text p, .text li { color: var(--text); }
.text ul { padding-left: 22px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--text-soft);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-soft); }

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; }
  .hero { padding: 48px 0 44px; }
  .hero img.icon { width: 112px; height: 112px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 18px; }
  section { padding: 48px 0; }
  section h2 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .terms div { grid-template-columns: 1fr; gap: 2px; }
}
