:root {
  --brand: #00a88b;
  --brand-dark: #008f76;
  --ink: #0d1b18;
  --muted: #5b6b67;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 50% 0%, #e8faf5 0%, #f4f6f5 45%, #eef1f0 100%);
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 168, 139, 0.12), 0 2px 8px rgba(13, 27, 24, 0.06);
}

.logo {
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 auto 28px;
  max-width: 320px;
  color: var(--muted);
  line-height: 1.5;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 27, 24, 0.18);
}

.store-btn:active {
  transform: translateY(0);
}

.store-btn[hidden] {
  display: none;
}

.store-glyph {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-btn-text small {
  font-size: 0.65rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-btn-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

/* On a detected mobile platform, show that store's button first and emphasise it. */
.store-buttons[data-primary="ios"] #app-store-link,
.store-buttons[data-primary="android"] #play-store-link {
  order: -1;
  background: var(--brand);
}

.store-buttons[data-primary="ios"] #app-store-link:hover,
.store-buttons[data-primary="android"] #play-store-link:hover {
  background: var(--brand-dark);
}

.foot {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f4;
    --muted: #9fb0ab;
    --card-bg: #14201d;
  }
  body {
    background: radial-gradient(circle at 50% 0%, #0c2722 0%, #0c1714 55%, #0a1210 100%);
  }
  .store-btn {
    background: #243b35;
  }
}
