:root {
  color-scheme: dark;
  --background: #080a09;
  --surface: #121513;
  --surface-border: #2b302d;
  --text: #f6f8f6;
  --muted: #a8b0aa;
  --green: #00c853;
  --green-dark: #00893a;
  --blue: #42a5f5;
  --focus: #ffd54f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

body::before {
  position: fixed;
  z-index: -1;
  top: -220px;
  right: -160px;
  width: min(720px, 70vw);
  aspect-ratio: 1;
  background: url("/earth.png") center / contain no-repeat;
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.hero {
  width: min(100%, 920px);
  margin: 0 auto;
}

.hero-intro {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-icon {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
}

.frog-art {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.48));
}

.eyebrow,
.platform-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.redirect-status {
  margin: -16px 0 28px;
  color: var(--focus);
  font-weight: 700;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.store-option {
  min-width: 0;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
}

.store-option-ios {
  border-top: 3px solid var(--blue);
}

.store-option-android {
  border-top: 3px solid var(--green);
}

.store-copy {
  min-height: 104px;
}

.store-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.store-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.store-badge-link {
  width: fit-content;
  min-height: 64px;
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 5px;
  border-radius: 6px;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.store-badge-link:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.store-badge {
  display: block;
  object-fit: contain;
}

.store-badge-apple {
  width: 181px;
  height: 60px;
}

.store-badge-google {
  width: 194px;
  height: 75px;
  margin: -8px -6px;
}

.store-badge-link:focus-visible,
.qr-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.qr-link {
  width: fit-content;
  display: block;
  margin: 24px auto 0;
  border-radius: 6px;
}

.qr-code {
  display: block;
  width: min(184px, 100%);
  height: auto;
  padding: 10px;
  border-radius: 6px;
  background: #ffffff;
}

.scan-hint {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  .page-shell {
    align-items: start;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 16px;
  }

  .hero-intro {
    min-height: 0;
  }

  .frog-art {
    display: none;
  }

  .app-icon {
    width: 84px;
    height: 84px;
  }

  h1 {
    font-size: 38px;
    line-height: 1;
  }

  .eyebrow {
    font-size: 11px;
  }

  .lead {
    margin: 24px 0 28px;
    font-size: 17px;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .store-option {
    height: 230px;
    min-height: 230px;
    padding: 20px;
  }

  .store-copy {
    min-height: 0;
  }

  .qr-link,
  .scan-hint {
    display: none;
  }
}

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