:root {
  --bg: #000000;
  --text: #FFFFFF;
  --text-muted: #AAAAAA;
  --accent: #0091FF;
  --accent-text: #FFFFFF;
  --legal: #666666;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 88px 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.headline {
  margin: 0;
  max-width: 340px;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.125;
  letter-spacing: 0.002em;
  color: var(--text);
}

.ipad-part { display: none; }

.device {
  width: calc(100vw - 16px);
  max-width: 380px;
  height: auto;
  margin-top: 104px;
  display: block;
}

.appstore {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
}
.appstore img {
  width: 160px;
  height: 53px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.qrcode {
  display: none;
}

.app-icon {
  width: 96px;
  height: 96px;
  margin-top: 80px;
  display: block;
}

.app-name {
  margin: 16px 0 0;
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1.75rem;
  letter-spacing: 0;
  color: var(--text);
}

.availability {
  margin: 2px 0 0;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.375rem;
  letter-spacing: 0;
  color: var(--text-muted);
}

.actions {
  margin-top: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn {
  width: 256px;
  max-width: calc(100vw - 48px);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 2rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn:active { opacity: 0.85; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 400;
}

.legal {
  width: 100vw;
  margin-top: 76px;
  padding: 24px 32px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 300;
  color: var(--legal);
}

.support {
  display: block;
  margin-bottom: 10px;
  font-size: 1.0625rem;
  line-height: 1.375rem;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .page {
    justify-content: center;
    position: relative;
    padding-bottom: 144px;
  }

  .device,
  .app-icon,
  .app-name,
  .availability,
  .actions {
    display: none;
  }

  .headline {
    font-size: 1.75rem;
    line-height: 2.125rem;
    max-width: 420px;
  }

  .ipad-part { display: inline; }

  .qrcode {
    display: block;
    width: 184px;
    height: 184px;
    margin-top: 32px;
  }

  .appstore {
    margin-top: 20px;
  }

  .legal {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    margin-top: 0;
    padding: 24px 32px;
  }
}
