:root {
  color-scheme: light;
  --page: #F8F9FA;
  --ink: #202A2B;
  --muted: #697577;
  --brand: #0C635A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home-main {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 100%;
}

.app-logo { margin: 0; line-height: 0; }

.app-icon {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 35px;
  box-shadow: 0 10px 28px rgb(12 99 90 / 10%);
}

.store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.store-link {
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  width: 188px;
  min-height: 64px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.store-link:hover { background: var(--brand); border-color: var(--brand); }
.store-icon { display: block; flex: 0 0 28px; filter: brightness(0) invert(1); }
.store-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.store-caption { font-size: 12px; line-height: 1.3; }
.store-name { font-size: 18px; font-weight: 600; line-height: 1.3; white-space: nowrap; letter-spacing: -.2px; }

.site-footer {
  padding: 8px 20px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.site-footer a { padding-block: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.separator { color: #BBC7C5; }

a:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }

@media (max-width: 480px) {
  .store-links { flex-direction: column; }
  .store-link { width: 216px; max-width: 100%; }
  .app-icon { width: 144px; height: 144px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-link { transition: none; }
}
