:root {
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-muted: #6b7280;
  --color-accent: #4f46e5;
  --color-accent-hover: #4338ca;
  --color-border: #e5e7eb;
  --color-surface: #f9fafb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

/* ─── Nav ─────────────────────────────────────── */

nav {
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}

nav .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none;
}

nav .logo span {
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav ul a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
}

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

/* ─── Main container ──────────────────────────── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ─── Hero ────────────────────────────────────── */

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

.hero .app-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, var(--color-accent), #818cf8);
  border-radius: 22px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ─── Store buttons ───────────────────────────── */

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s;
  text-decoration: none;
}

.store-btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn .label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn .sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

/* ─── QR codes ────────────────────────────────── */

.qr-section {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.qr-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  min-width: 160px;
}

.qr-card p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}

/* ─── Features ────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

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

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

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

/* ─── Footer ──────────────────────────────────── */

footer {
  border-top: 1px solid var(--color-border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}

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

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

footer .sep {
  margin: 0 8px;
}

/* ─── Prose pages (privacy, terms) ───────────── */

.prose h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 10px;
}

.prose p {
  color: #374151;
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 14px;
  color: #374151;
}

.prose ul li {
  margin-bottom: 6px;
}

/* ─── Blog ────────────────────────────────────── */

.blog-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.blog-header p {
  color: var(--color-muted);
  margin-bottom: 40px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-item {
  background: var(--color-bg);
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.post-item h2 a {
  color: var(--color-text);
}

.post-item h2 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.post-item p {
  font-size: 14px;
  color: var(--color-muted);
}

.post-date {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .qr-section {
    gap: 16px;
  }

  nav ul {
    gap: 16px;
  }
}
