/* The landing page of wallet.beppay.com (ADR 0009): no script, no inline style. The colours are the app's
   tokens (apps/wallet/src/ui/tokens.ts, docs/reference/design.md), the glass and the backdrop the app's
   own. Fonts: Inter for text, Onest for titles, both under the SIL Open Font License 1.1
   (fonts/Inter-OFL.txt, fonts/Onest-OFL.txt), copied from the app by scripts/landing.ts. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter_400Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Onest_700Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --background: #f4efe9;
  --glow-warm: rgba(255, 138, 76, 0.42);
  --glow-warm-0: rgba(255, 138, 76, 0);
  --glow-cool: rgba(156, 140, 255, 0.38);
  --glow-cool-0: rgba(156, 140, 255, 0);
  --glow-soft: rgba(255, 201, 120, 0.45);
  --glow-soft-0: rgba(255, 201, 120, 0);
  --card: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --foreground: #2a221c;
  --muted: #564c44;
  --primary: #c23d00;
  --primary-foreground: #fffdfa;
  --ring: #c23d00;
  --shadow: rgba(110, 80, 50, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0e0f14;
    --glow-warm: rgba(255, 91, 20, 0.36);
    --glow-warm-0: rgba(255, 91, 20, 0);
    --glow-cool: rgba(107, 77, 255, 0.4);
    --glow-cool-0: rgba(107, 77, 255, 0);
    --glow-soft: rgba(255, 182, 71, 0.22);
    --glow-soft-0: rgba(255, 182, 71, 0);
    --card: rgba(28, 31, 39, 0.72);
    --glass-edge: rgba(255, 255, 255, 0.13);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --foreground: #f2f4f8;
    --muted: #b4bcc8;
    --primary: #ff5b14;
    --primary-foreground: #0c0c0d;
    --ring: #ff8b52;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

/* The backdrop of the app: three glows over the background, fixed to the screen while the page scrolls (a
   layer of its own: `background-attachment: fixed` is ignored or cut at one screen by some phone browsers). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0% 0%, var(--glow-warm) 0%, var(--glow-warm-0) 60%),
    radial-gradient(circle at 100% 45%, var(--glow-cool) 0%, var(--glow-cool-0) 55%),
    radial-gradient(circle at 0% 100%, var(--glow-soft) 0%, var(--glow-soft-0) 50%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 12px;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Onest", "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.lang {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 64px 0 40px;
}

h1,
h2 {
  font-family: "Onest", "Inter", sans-serif;
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The payment link's page: a longer title, a step smaller. */
.hero-link h1 {
  font-size: clamp(28px, 5.5vw, 46px);
}

.lead {
  max-width: 34em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  text-wrap: pretty;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  padding: 12px 24px;
  border-radius: 18px;
  text-decoration: none;
  line-height: 1.2;
}

.store-small {
  font-size: 13px;
  opacity: 0.85;
}

.store-name {
  font-family: "Onest", "Inter", sans-serif;
  font-weight: 700;
  font-size: 21px;
}

.store-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 28px var(--shadow);
}

.store-soon,
.glass {
  border: 1px solid var(--glass-edge);
  background: var(--card);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 28px var(--shadow);
}

.store-soon {
  color: var(--muted);
}

.coins {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.coins li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-family: "Onest", "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.coins img {
  width: 28px;
  height: 28px;
  display: block;
}

.networks {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 24px;
  border-radius: 24px;
}

.card h2 {
  font-size: 21px;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.notice {
  max-width: 40em;
  margin: 32px auto 0;
  padding: 20px 24px;
  border-radius: 20px;
  text-align: left;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 8px;
  color: var(--muted);
}

.back {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
}

.foot {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.foot p {
  max-width: 44em;
  margin: 0 auto;
}
