/* Shared styles for the static pages (landing, support, privacy, terms, 404).
   The web demo under play/ has its own stylesheet in src/style.css. */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  line-height: 1.7;
  background: #f8f9fb;
}

a { color: #3b5bdb; }

a:focus-visible, button:focus-visible {
  outline: 3px solid #3b5bdb;
  outline-offset: 2px;
}

/* ─── Header / nav ─────────────────────────────── */
.site-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a2e;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  text-decoration: none;
}

.site-nav a:hover { background: #e8eaf6; color: #3b5bdb; }

.site-nav a[aria-current="page"] { color: #3b5bdb; font-weight: 600; }

/* ─── Content ───────────────────────────────────── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.5px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p, li { color: #444; }
p { margin: 0 0 16px; }
ul { padding-left: 22px; margin: 0 0 16px; }

.date { color: #666; font-size: 14px; margin-bottom: 32px; }

/* ─── Footer ────────────────────────────────────── */
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  border-top: 1px solid #e3e5ee;
  font-size: 14px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; gap: 0 4px; flex-wrap: wrap; }

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: #444;
  text-decoration: none;
}

.site-footer nav a:hover { color: #3b5bdb; text-decoration: underline; }

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

.hero .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.18);
}

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

.hero .tagline { font-size: 18px; color: #3b5bdb; font-weight: 600; margin: 0 0 16px; }

.hero .lede { font-size: 16px; max-width: 520px; margin: 0 auto 24px; }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.badge { display: inline-block; line-height: 0; border-radius: 8px; }
.badge img { height: 56px; width: auto; display: block; }

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.btn-link.primary { background: #3b5bdb; color: white; }
.btn-link.secondary { background: #e8eaf6; color: #3b5bdb; }

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .features { grid-template-columns: 1fr 1fr; }
  /* Odd card count: stretch the last card so the grid ends flush. */
  .features li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.features li {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1.5;
}

.features strong { display: block; margin-bottom: 4px; font-size: 16px; color: #1a1a2e; }
.features span { display: block; font-size: 14px; color: #444; }

.note {
  background: #e8eaf6;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #2b3a8f;
  line-height: 1.6;
}

.note a { color: #2b4bc6; }

/* ─── Support / cards ───────────────────────────── */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin: 8px 0 24px;
}

.card p:last-child { margin-bottom: 0; }

.faq h2 { font-size: 17px; margin-top: 24px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #e8eaf6;
  padding: 1px 5px;
  border-radius: 4px;
}

.subtle { font-size: 13px; color: #666; }
