/* Root design tokens */
:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b657a;
  --card: #f4f6fb;
  --border: #e6e9f2;
  --primary: #0ea5e9;
  --primary-700: #0284c7;
  --pill: #eef6ff;
  --btn-text: #ffffff;
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --bg: #0a0b0d;
  --text: #f2f2f2;
  --muted: #b8c0cc;
  --card: #15171a;
  --border: #222;
  --pill: #0f172a;
  --btn-text: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem 1rem; background: var(--card); }

/* Layout helpers */
.container { width: 92%; max-width: 1080px; margin: 0 auto; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.25rem; letter-spacing: .2px; }
.primary-nav a { margin-left: 16px; text-decoration: none; color: var(--muted); transition: color .2s; }
.primary-nav a:hover { color: var(--text); }

.theme-toggle {
  margin-left: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* Hero */
.hero { padding: 72px 0 96px; text-align: center; }
.hero .subtitle { color: var(--muted); max-width: 720px; margin: 10px auto 0; }
.hero .cta-row { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .hero-meta { color: var(--muted); margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--btn-text); }
.btn-primary:hover { background: var(--primary-700); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); }

/* Cards grid */
.features { padding: 72px 0; }
.features h2, .sources h2, .download h2, .contact h2 { text-align: center; margin: 0 0 24px; }
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

/* Sources section */
.sources { padding: 40px 0 64px; }
.section-lead { color: var(--muted); text-align: center; max-width: 760px; margin: 0 auto 18px; }
.pill-list { list-style: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0; }
.pill-list li { padding: 8px 12px; background: var(--pill); border: 1px solid var(--border); border-radius: 999px; }

/* Download section */
.download { padding: 64px 0; text-align: center; }
.store-buttons { display: flex; gap: 12px; justify-content: center; margin: 12px 0 18px; }
.store-btn {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.waitlist { display: flex; gap: 10px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.waitlist input[type="email"] {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); min-width: 260px; background: var(--bg); color: var(--text);
}

/* Contact */
.contact { padding: 64px 0; text-align: center; }
.contact-link { color: var(--primary); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer-nav a:hover { color: var(--text); }

/* Responsive tweaks */
@media (max-width: 640px) {
  .primary-nav { display: none; }
}
