:root {
  --bg: #f9f8f5;
  --surface: #ffffff;
  --text: #1e2229;
  --muted: #5b6068;
  --border: #e5e2da;
  --primary: #124540;
  --link: #1f6b63;
  --hero-start: #0a3f3b;
  --hero-end: #0b172a;
  --on-hero: #ffffff;
  --on-hero-muted: #cde2e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --surface: #1e2229;
    --text: #f9f8f5;
    --muted: #a7adb5;
    --border: #2b2f34;
    --primary: #93bdb9;
    --link: #93bdb9;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: "Outfit", "Geist", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Header and footer */
.top, .foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 20px/1 "Outfit", system-ui, sans-serif;
}
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

.foot {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }

/* Long-form pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 0;
}
.doc h1 { font-size: 36px; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
}
.note p { margin: 0; }

/* Home */
.hero {
  background: linear-gradient(160deg, var(--hero-start), var(--hero-end));
  color: var(--on-hero);
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); }
.hero p { color: var(--on-hero-muted); font-size: 18px; max-width: 34ch; }
.hero .soon {
  display: inline-block;
  margin: 8px 0 56px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 14px;
  color: var(--on-hero);
}
.hero img {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  display: block;
  /* The phone's own corner radius, so no background shows at the corners. */
  border-radius: 13.4% 13.4% 0 0 / 8% 8% 0 0;
}

.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero .soon { margin-bottom: 8px; }
  .hero img { max-width: 260px; }
  .features { grid-template-columns: 1fr; }
  .doc h1 { font-size: 30px; }
}
