:root {
  --bg: #fdfdfb;
  --surface: #ffffff;
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --accent: #0a6b5f;
  --rule: #e4e4e0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --surface: #1c1c1f;
    --fg: #ececf0;
    --muted: #9b9ba3;
    --accent: #5fd0be;
    --rule: #2e2e33;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.6rem;
}

.sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card p:last-child { margin-bottom: 0; }

.langs {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.langs a + a { margin-left: 1rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.87rem;
}

footer a { color: var(--muted); }

/* ---- marketing landing ---- */

.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.08;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.lede {
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 0 1.8rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover { opacity: 0.9; }

.features {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.5rem 0 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .hero { padding-top: 2.5rem; }
}

/* ---- screenshots ---- */

figure {
  margin: 1.8rem 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Phone shots are tall; cap them so they do not dominate the column. */
figure.phone img {
  max-width: 257px;
  margin: 0 auto;
  border-radius: 20px;
}

.shots {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 1.8rem 0;
  align-items: start;
}

.shots figure { margin: 0; }

.hero-shot {
  margin: 2rem auto 0;
  max-width: 257px;
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--rule);
}
