:root {
  color-scheme: light;
  --text-primary: #191718;
  --white: #ffffff;
  --button-shadow: 0 12px 28px rgba(25, 23, 24, 0.16);
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --safe-left: max(18px, env(safe-area-inset-left));
  --safe-right: max(18px, env(safe-area-inset-right));
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--text-primary);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.landing-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--white);
}

.video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 36%);
}

.logo-link {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: block;
  padding: 0;
  line-height: 0;
}

.logo {
  display: block;
  width: 100vw;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 40px;
  border: 0;
  color: var(--white);
  background: var(--text-primary);
  box-shadow: var(--button-shadow);
  font: inherit;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #272324;
  box-shadow: 0 15px 34px rgba(25, 23, 24, 0.2);
}

.button:active {
  transform: scale(0.97);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.app-button {
  position: fixed;
  right: var(--safe-right);
  bottom: var(--safe-bottom);
  z-index: 2;
  gap: 8px;
  padding: 12px 16px 12px 18px;
}

.button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.download-actions {
  position: fixed;
  left: var(--safe-left);
  bottom: var(--safe-bottom);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.qr-link {
  display: block;
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 1),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(25, 23, 24, 0.12);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.qr-link:hover {
  transform: translateY(-1px);
  background: var(--white);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 1),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 15px 34px rgba(25, 23, 24, 0.16);
}

.qr-link:active {
  transform: scale(0.97);
}

.qr-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.qr-code {
  display: block;
  width: 100%;
  height: 100%;
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.secondary-button {
  gap: 7px;
  min-width: 88px;
  padding: 12px 15px;
}

.store-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .download-actions {
    max-width: calc(100vw - 162px - var(--safe-left) - var(--safe-right));
  }

  .qr-link {
    display: none;
  }

  .store-links {
    flex-direction: row;
    gap: 7px;
  }

  .secondary-button {
    min-width: 0;
    min-height: 40px;
    padding: 11px 13px;
    font-size: 15px;
  }

  .app-button {
    min-height: 40px;
    gap: 6px;
    padding: 11px 13px 11px 15px;
    font-size: 15px;
  }

  .button-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 380px) {
  .secondary-button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }

  .app-button {
    padding-right: 11px;
    padding-left: 13px;
    font-size: 14px;
  }
}

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

.download-page {
  overflow: auto;
  background: #f7f5f1;
}

.download-fallback {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  gap: 24px;
  padding: 24px;
}

.download-logo {
  display: block;
  width: min(100%, 720px);
  height: auto;
}

.download-logo-link {
  display: block;
  width: min(100%, 720px);
  line-height: 0;
}

.download-logo-link:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(25, 23, 24, 0.22);
  outline-offset: 6px;
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download-store-button {
  gap: 8px;
  min-width: 112px;
  padding: 12px 18px;
}
