/* Colours follow the app: black ground, Ocean Blue seed, the icon's orange. */
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --card: #14181d;
  --line: #262d36;
  --text: #e8eaed;
  --muted: #9aa4af;
  --blue: #1f75cc;
  --blue-light: #6db3f2;
  --orange: #e8842a;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--blue-light);
}

.hero,
main,
footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  padding-top: 48px;
  text-align: center;
}

.icon {
  border-radius: 28px;
}

h1 {
  margin: 16px 0 0;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.tagline {
  max-width: 30em;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 19px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

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

.button:hover,
.button:focus-visible {
  border-color: var(--orange);
}

.intro {
  max-width: 640px;
  margin: 40px auto 0;
  font-size: 18px;
  text-align: center;
}

/* The app's welcome dialog check grid: same six lines, same two columns. */
.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 24px auto 0;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.promise ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise li {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  white-space: nowrap;
}

.promise li::before {
  content: "✓";
  color: var(--blue-light);
  font-weight: 700;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.features article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.plain {
  max-width: 640px;
  margin: 40px auto 0;
}

.plain h2 {
  margin-top: 24px;
}

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

/* Legal pages, generated by scripts/build_legal.py. */
.topbar {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.topbar img {
  border-radius: 8px;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
}

.doc h1 {
  margin-top: 32px;
  font-size: 32px;
  letter-spacing: 0;
}

.doc h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}

.doc .meta {
  color: var(--muted);
}

.doc li {
  margin-bottom: 4px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--card);
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer p {
  margin: 0 0 8px;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }

  /* Screenshots become a swipeable strip rather than four thumbnails. */
  .shots {
    grid-template-columns: repeat(4, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .shots img {
    scroll-snap-align: center;
  }

  h1 {
    font-size: 36px;
  }

  .promise {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 350px) {
  .promise li {
    white-space: normal;
  }
}
