:root {
  --ink: #0f2a4a;
  --ink-soft: #4a6382;
  --brand: #5278fa;
  --background: #f5faff;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--background);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

.card {
  width: 100%;
  max-width: 340px;
}

.icon {
  border-radius: 18px;
}

h1 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin-top: 8px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: block;
  padding: 14px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.website {
  display: inline-block;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* script.js shows only the store for the visitor's phone. */
.android #app-store,
.ios #play-store {
  display: none;
}

/* Referral link: the code to copy before going to the store. */
.referral .buttons,
.referral #website {
  display: none;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 10px 10px 18px;
  border: 1px dashed rgba(82, 120, 250, 0.5);
  border-radius: 14px;
  background: #fff;
}

.code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.copy {
  flex-shrink: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(82, 120, 250, 0.12);
  color: var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.hint {
  font-size: 14px;
}

.wide {
  width: 100%;
  margin-top: 20px;
  border: 0;
  font: inherit;
  font-weight: 600;
}
