:root {
  color-scheme: light;
  /* Brand colors (match app tokens) */
  --accent: #2563eb; /* AppColors.accentBlue600 */
  --accentStrong: #1e40af; /* AppColors.accentBlue800 */
  --accentSoft: #93c5fd; /* AppColors.accentBlue300 */
  --accentSoftest: #eff6ff; /* AppColors.accentBlue50 */

  --bg: #f8f9fa; /* AppColors.neutral50 */
  --panel: #f8f9fa; /* AppColors.card */
  --border: #e9ecef; /* AppColors.neutral200 */
  --text: #212529; /* AppColors.text */
  --muted: rgba(33, 37, 41, 0.72);
  --link: var(--accent);
  --linkHover: var(--accentStrong);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Inter",
    "Helvetica Neue",
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  color: var(--linkHover);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 249, 250, 0.86);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 14px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: 14px;
  width: auto;
  opacity: 0.94;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

main {
  padding: 42px 0 56px;
}

.hero {
  padding: 26px 0 12px;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.home {
  padding: 32px 0 10px;
  text-align: center;
}

.home-card {
  margin: 0 auto;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), var(--panel));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px 18px;
}

.app-icon {
  width: 156px;
  height: 156px;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  background: var(--panel);
}

.home h1 {
  margin: 18px 0 8px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 72ch;
}

.store-buttons {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-content: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.store-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 4px;
}

.store-link:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.06);
}

.store-badge {
  height: 48px;
  width: auto;
  display: block;
  filter: none;
}

.store-badge--google {
  height: 52px;
}

.home-links {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.home-links a {
  color: var(--muted);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.card {
  grid-column: span 12;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.70);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.button:hover {
  background: var(--accentStrong);
  text-decoration: none;
  color: var(--bg);
}

.button.secondary {
  border-color: var(--border);
  background: var(--panel);
  font-weight: 600;
  color: var(--text);
}

.button.secondary:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.06);
}

.prose {
  max-width: 80ch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.prose h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.prose .updated {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.prose p {
  margin: 0 0 12px;
  color: rgba(33, 37, 41, 0.92);
}

.prose ul {
  margin: 0 0 14px 18px;
  color: rgba(33, 37, 41, 0.92);
}

.prose li {
  margin: 6px 0;
}

.callout {
  margin: 18px 0;
  padding: 14px 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  color: var(--muted);
}

.callout strong {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

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

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

@media (min-width: 820px) {
  .card {
    grid-column: span 6;
  }

  .store-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .prose {
    padding: 28px 24px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    height: 12px;
  }
}
