:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --border: #e3e3e0;
  --badge-bg: #000000;
  --badge-text: #ffffff;
  --accent: #2f6fdb;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1c1c1f;
    --text: #ececef;
    --muted: #9a9aa2;
    --border: #2c2c31;
    --badge-bg: #000000;
    --badge-text: #ffffff;
    --accent: #7aa7ff;
  }
}

* { box-sizing: border-box; }

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

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.site-header,
.apps,
.legal,
.site-footer {
  max-width: 960px;
  margin: 0 auto;
}

.site-header { padding: 48px 0 24px; }
.site-header h1 { margin: 0; font-size: 2rem; letter-spacing: -0.02em; }
.site-header p { margin: 4px 0 0; color: var(--muted); }

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.app-head { display: flex; align-items: center; gap: 14px; }
.app-head h2 { margin: 0; font-size: 1.35rem; }

.app-icon {
  flex: none;
  border-radius: 16px;
  background: var(--border); /* visible tile until the real icon exists */
  object-fit: cover;
}

.app-tagline { margin: 0; color: var(--muted); }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid #5f5f63;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.1;
  font-weight: 600;
}
.badge svg { width: 22px; height: 22px; flex: none; }
.badge small { display: block; font-size: 0.68rem; font-weight: 400; }
.badge--soon { opacity: 0.55; cursor: default; }

.app-legal {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal { max-width: 640px; margin-left: auto; margin-right: auto; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; overflow-wrap: anywhere; }

.site-footer {
  padding: 48px 0 32px;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a { color: inherit; }
