:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --text: #1C1C1A;
  --muted: #5E5E58;
  --line: #E7E4DC;
  --brand: #0F6E56;
  --brand-soft: #E3F0EB;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131311;
    --surface: #1C1C19;
    --text: #F2F1EC;
    --muted: #A3A29A;
    --line: #2C2C28;
    --brand: #4FB892;
    --brand-soft: #1A2C25;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
}

nav a:hover { color: var(--text); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.hero {
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
}

section { padding: 48px 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.app-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.app-card img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.app-card h3 {
  font-size: 26px;
  margin: 0 0 6px;
}

.app-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

.contact p { color: var(--muted); margin: 0; }

.doc {
  padding: 64px 0 48px;
  max-width: 68ch;
}

.doc h1 { font-size: clamp(34px, 6vw, 46px); margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

footer.site a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--text); }

@media (max-width: 560px) {
  .hero { padding: 64px 0 48px; }
  .app-card { flex-direction: column; align-items: flex-start; }
  nav a { margin-left: 16px; }
}
