:root {
  color-scheme: light dark;

  --background: #f7f8fa;
  --surface: #ffffff;
  --border: #d9dde5;
  --text: #1e232b;
  --text-muted: #5b6170;
  --brand: #005a9c;
  --brand-dim: #e5f3ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #14181e;
    --surface: #20262f;
    --border: #39414d;
    --text: #eceef2;
    --text-muted: #a2a9b4;
    --brand: #2e90d9;
    --brand-dim: #12324a;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  max-width: 960px;
  margin: 0 auto;
}

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

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

nav[aria-label='Primary navigation'] {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav[aria-label='Primary navigation'] a {
  color: var(--text-muted);
  text-decoration: none;
}

nav[aria-label='Primary navigation'] a:hover {
  color: var(--text);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 48px 0 64px;
}

.hero img.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0;
}

.hero p.tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--background);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.store-badge.disabled {
  background: var(--border);
  color: var(--text-muted);
  pointer-events: none;
}

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

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

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.legal-page {
  padding-top: 32px;
}

.legal-page h1 {
  margin-bottom: 4px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 0;
}

.legal-page h2 {
  font-size: 18px;
  margin-top: 32px;
}

.legal-page ul {
  padding-left: 20px;
}

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}
