/* Colors mirror apps/android/src/ui/theme.ts so the site matches the app. */
:root {
  color-scheme: light dark;
  --primary: #00c66b;
  --primary-pressed: #00a857;
  --on-primary: #ffffff;
  --background: #ffffff;
  --surface-soft: #f5f7fc;
  --border: #e9edf7;
  --text: #071e86;
  --text-secondary: #536ec0;
  --text-muted: #8498d2;
  --link: #1f3ba6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #36d88d;
    --primary-pressed: #24bf77;
    --on-primary: #0d1422;
    --background: #0d1422;
    --surface-soft: #1d293d;
    --border: #2a3750;
    --text: #e6edff;
    --text-secondary: #b2c1e0;
    --text-muted: #95a6c5;
    --link: #8fa8ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

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

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

.lang {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.lang:hover {
  color: var(--text);
}

main {
  padding: 32px 0 48px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

h2 {
  margin: 36px 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

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

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.note {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 14px;
}

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

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Home page */
.hero {
  padding: 24px 0 8px;
  text-align: center;
}

.hero img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.hero h1 {
  margin-top: 20px;
  font-size: 36px;
}

.hero .lead {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-pressed);
}

.soon {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.features {
  display: grid;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
}

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

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
}

.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-secondary);
}
