:root {
  --ink: #18181a;
  --muted: #5d5d63;
  --line: #e4e2dc;
  --paper: #faf9f6;
  --card: #ffffff;
  --accent: #1f7a3a;
  --accent-ink: #ffffff;
  --g1: #a8e6b8; --g2: #3fbf60; --g3: #1f7a3a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f1ee;
    --muted: #a3a3a8;
    --line: #2c2c30;
    --paper: #121214;
    --card: #1b1b1e;
    --accent: #4fd27a;
    --accent-ink: #0b1f10;
    --g1: #1f5c33; --g2: #2f9a52; --g3: #4fd27a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); padding: 1px 6px; border-radius: 5px; }

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

/* Brand: the three squares, light, mid, solid, and the serif wordmark */
.brand { display: inline-flex; align-items: center; gap: 12px; font: 26px/1 Georgia, "Times New Roman", serif; text-decoration: none; letter-spacing: -0.2px; }
.brand.small { font-size: 20px; gap: 10px; }
.mark { display: inline-flex; gap: 4px; }
.mark i { width: 13px; height: 13px; background: var(--g1); }
.mark i:nth-child(2) { background: var(--g2); }
.mark i:nth-child(3) { background: var(--g3); }
.brand.small .mark i { width: 10px; height: 10px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav nav a:not(.button) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.button):hover { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 13px 24px;
  font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: scale(0.98); }
.button.small { padding: 9px 16px; font-size: 14px; }

.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
p { margin: 0; }
.lede { margin-top: 20px; max-width: 620px; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }

.hero { padding: 64px 0 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.version { font-size: 14px; color: var(--muted); }

/* The app on a desktop: a glass card over a soft wallpaper */
.wallpaper {
  border-radius: 28px;
  padding: clamp(20px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 15% 10%, #4b6b8f 0%, transparent 60%),
    radial-gradient(90% 80% at 90% 100%, #2a3d55 0%, transparent 60%),
    linear-gradient(160deg, #31455e, #1a2433);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.45);
}
.card {
  margin: 0;
  padding: clamp(10px, 2.2vw, 26px);
  border-radius: clamp(14px, 2.6vw, 32px);
  background: rgba(30, 34, 40, 0.42);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
.card.light { background: rgba(250, 250, 248, 0.78); border-color: rgba(0, 0, 0, 0.06); }

.features { padding: 96px 0 24px; }
.features > h2 { max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.grid p { color: var(--muted); font-size: 16px; }
.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px;
  padding: clamp(16px, 3vw, 32px); border-radius: 24px;
  background: linear-gradient(150deg, #8aa3b8, #4e6680);
}

.private { padding: 96px 0 24px; }
.private > div { max-width: 720px; }
.private p { margin-top: 16px; color: var(--muted); }

.frame { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 96px 0 24px; }
.frame-copy p { margin-top: 16px; color: var(--muted); }
.frame-copy .eyebrow { margin: 0 0 14px; }
.photo { margin: 0; }
.photo img { border-radius: 20px; }
.photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: right; }

.waitlist { margin-top: 28px; }
.waitlist label { display: block; font-weight: 650; margin-bottom: 10px; }
.waitlist .row { display: flex; gap: 10px; }
.waitlist input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.waitlist input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist .fine { margin-top: 10px; }

.install { padding: 96px 0 72px; }
.install ol { margin: 24px 0 18px; padding-left: 22px; display: grid; gap: 10px; font-size: 18px; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Privacy page */
.doc { max-width: 720px; padding: 40px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); }
.doc ul { padding-left: 22px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .frame { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .nav nav a:not(.button) { display: none; }
  .waitlist .row { flex-direction: column; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
