:root {
  color-scheme: light dark;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f2fa;
  color: #1d1b20;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-card {
  width: min(100%, 520px);
  padding: 48px 40px;
  border: 1px solid #ded8e8;
  border-radius: 28px;
  background: #fffbff;
  box-shadow: 0 20px 60px rgb(49 38 65 / 12%);
  text-align: center;
}

.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6750a4;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.3;
  word-break: keep-all;
}

.description {
  margin: 18px auto 30px;
  color: #625b71;
  line-height: 1.65;
  word-break: keep-all;
}

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

.store-link {
  display: grid;
  place-items: center;
  width: 148px;
  height: 60px;
  border-radius: 10px;
}

.store-link:focus-visible,
.home-button:focus-visible {
  outline: 3px solid #6750a4;
  outline-offset: 3px;
}

.store-badge {
  display: block;
  max-width: 100%;
  height: auto;
}

.app-store-badge {
  width: 130px;
}

.google-play-badge {
  width: 136px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 24px;
  background: #6750a4;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footnote {
  margin: 26px 0 0;
  color: #79747e;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .page-shell {
    align-items: stretch;
    padding: 0;
  }

  .site-card {
    min-height: 100vh;
    padding: 56px 24px 32px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .store-actions {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #141218;
    color: #e6e0e9;
  }

  .site-card {
    border-color: #49454f;
    background: #211f26;
  }

  .description,
  .footnote {
    color: #cac4d0;
  }
}
