:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #14171f;
  --muted: #5b6475;
  --border: #e2e6ee;
  --accent: #6a1b9a;
  --accent-soft: #f1e6f7;
  --radius: 14px;
  --gutter: 20px;
  --width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --card: #181b21;
    --text: #f1f3f7;
    --muted: #a3acbd;
    --border: #2a2f39;
    --accent: #c58ae6;
    --accent-soft: #2a1d33;
  }
}

* { box-sizing: border-box; }

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

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

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

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The bar at the top: the program's name and the way round the site. */
.top {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.top nav { display: flex; gap: 18px; flex-wrap: wrap; }

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.top nav a:hover { color: var(--accent); }

/* The first screen: what the program is, and where to get it. */
.hero { padding: 56px 0 32px; }

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 44em;
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .button.primary { color: #14171f; }
}

.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.shot {
  margin: 36px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.shot img { display: block; width: 100%; height: auto; }

section { padding: 36px 0; }

h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { margin: 0 0 10px; font-size: 18px; }

.card ul { margin: 0; padding-left: 18px; color: var(--muted); }

.card li { margin: 4px 0; }

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Long texts: the privacy policy and the licence. */
.doc { max-width: 760px; padding: 40px 0 56px; }

.doc h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 8px; }

.doc h2 { font-size: 20px; margin: 30px 0 10px; }

.doc p, .doc li { color: var(--text); }

.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.doc hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }

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

footer .copy { margin-right: auto; }
