:root {
  --green: #178266;
  --orange: #f08a24;
  --bg: #ffffff;
  --surface: #f4f7f6;
  --text: #1c2421;
  --muted: #5b6662;
  --border: #dde4e1;
  --on-green: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #3cbf98;
    --bg: #111614;
    --surface: #1a211e;
    --text: #e8eeeb;
    --muted: #9aa8a2;
    --border: #2a3430;
    --on-green: #0d1a15;
  }
}

* { box-sizing: border-box; }

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

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

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

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

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

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

nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

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

h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 24px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero h1 { margin-top: 24px; }

.hero .lede {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.note p { margin: 0; }
.note p + p { margin-top: 8px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.features strong {
  display: block;
  margin-bottom: 4px;
}

.features span {
  color: var(--muted);
  font-size: 15px;
}

/* App cards on the home page */
.apps {
  display: grid;
  gap: 16px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
}

a.app:hover { border-color: var(--green); }

.app img,
.app .placeholder-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.placeholder-icon {
  border: 2px dashed var(--border);
}

.app h2 {
  font-size: 19px;
  margin: 0 0 2px;
}

.app p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.app.soon { opacity: 0.7; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Price box on the app page */
.price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.price .amount {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.price p {
  margin: 8px 0 0;
  color: var(--muted);
}

.button {
  display: inline-block;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details > :not(summary) { margin: 10px 0 0; }

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

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 28px;
}

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

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  main { padding-top: 28px; }
  .app { align-items: flex-start; }
  .app img, .app .placeholder-icon { width: 56px; height: 56px; border-radius: 13px; }
}
