:root {
  --bg: #f7f4ef;
  --ink: #141414;
  --muted: rgba(20, 20, 20, .5);
  --btn-bg: #141414;
  --btn-ink: #f7f4ef;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --ink: #f4f1ec;
    --muted: rgba(244, 241, 236, .5);
    --btn-bg: #f4f1ec;
    --btn-ink: #141414;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Noto Sans JP", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

main {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 28px calc(env(safe-area-inset-bottom) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

img { display: block; height: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }

.slogan {
  margin: 0 0 84px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--muted);
  text-align: center;
}

.brand { width: 100%; display: flex; flex-direction: column; align-items: center; }
.brand picture { display: block; }
.brand picture:first-child { width: 58%; }
.brand picture:last-child { width: 35%; margin-top: 38px; }
.mark, .wordmark { width: 100%; }

.stores {
  width: 74%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 104px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); opacity: .9; }
.btn svg { width: 18px; height: 18px; flex: none; }
body.os-ios .android { order: 2; }
body.os-android .ios { order: 2; }

.contact { margin-top: 34px; font-size: 16px; }
.contact a { color: var(--muted); text-decoration: none; letter-spacing: .01em; }
.contact a:active { color: var(--ink); }

@media (max-height: 640px) {
  .slogan { margin-bottom: 48px; }
  .stores { margin-top: 56px; }
  .contact { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
