/* Brand colours from HabitzoColors. */
:root {
  color-scheme: light;
  font-family: "Myriad Pro", "Helvetica Neue", Arial, sans-serif;
  color: #202945;
  background: #faf8f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.brand {
  width: min(100%, 340px);
  margin: 0 auto 36px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Use the original badge borders and proportions at the same visible height.
   Apple: https://toolbox.marketingtools.apple.com/api/v2/badges/download-on-the-app-store/black/pt-pt
   Google: https://play.google.com/intl/en_us/badges/static/images/badges/pt_badge_web_generic.png */
.store-badge {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apple-badge {
  display: block;
  width: auto;
  height: 56px;
  flex-shrink: 0;
}

.store-badge[data-store="android"] {
  width: 188.4167px;
  overflow: hidden;
}

.google-badge {
  display: block;
  /* The original PNG contains 29 transparent pixels above and below its
     192-pixel-high artwork. Trim only that empty space, keeping the badge whole. */
  width: 188.4167px;
  height: 72.9167px;
  flex-shrink: 0;
}

.store-badge:focus-visible {
  outline: 3px solid #202945;
  outline-offset: 5px;
}

.store-badge[aria-disabled="true"] {
  cursor: default;
}

.store-availability {
  margin: 20px 0 0;
  color: #59606f;
  font-size: .75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.legal-links {
  margin-top: 32px;
  font-size: .75rem;
  line-height: 1.5;
  color: #59606f;
}

.legal-links a {
  color: inherit;
  text-underline-offset: 3px;
}

.legal-links a:focus-visible {
  outline: 3px solid #202945;
  outline-offset: 5px;
}
