@font-face {
  font-family: "Oswald";
  src: url("/fonts/Oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}

/* The app's palette: the deep mint on paper, the bright one on near-black. */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #0f1a17;
  --muted: #5b6b66;
  --line: #e1e8e5;
  --accent: #0b8f6c;
  --accent-deep: #0a6e63;
  --on-accent: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f0e;
    --surface: #141a18;
    --ink: #eef3f1;
    --muted: #93a39e;
    --line: #232c29;
    --accent: #2cd6a0;
    --accent-deep: #176b72;
    --on-accent: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f0e;
  --surface: #141a18;
  --ink: #eef3f1;
  --muted: #93a39e;
  --line: #232c29;
  --accent: #2cd6a0;
  --accent-deep: #176b72;
  --on-accent: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent { color: var(--accent); }

h1, h2, h3, .brand {
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 7vw, 60px); margin: 0 0 18px; }
h2 { font-size: 30px; margin: 72px 0 20px; }
h3 { font-size: 20px; margin: 0 0 6px; }

/* - Bar - */
.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
nav a { color: var(--ink); }
.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
nav a.pill { color: var(--on-accent); }
.pill:hover { text-decoration: none; filter: brightness(1.08); }

/* - Hero - */
.hero { padding: 72px 0 8px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-text { max-width: 600px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero-icon {
  width: 240px;
  height: 240px;
  border-radius: 54px;
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent-deep) 55%, transparent);
  flex: none;
}
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button[aria-disabled="true"] {
  background: var(--line);
  color: var(--muted);
  pointer-events: none;
}

/* - Cards - */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); }

/* - Download - */
.download { display: grid; gap: 18px; max-width: 640px; }
.download-head { display: flex; align-items: center; gap: 14px; }
.download-head img { border-radius: 12px; }
.download .button { justify-self: start; }
code {
  display: block;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-top: 6px;
}
.howto summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.howto ol { margin: 10px 0 0; padding-left: 22px; color: var(--muted); }

.soon p { max-width: 640px; }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 80px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero-row { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .hero-icon { width: 120px; height: 120px; border-radius: 28px; }
  nav a:not(.pill) { display: none; }
  h2 { margin-top: 56px; }
}
