:root {
  --cream: #fbf9f5;
  --olive: #a7a756;
  --olive-border: #bcbc7e;
  --olive-soft: rgba(167, 167, 86, 0.28);
  --ink: #55453e;
  --legal: #a7a756;
  --focus: #7d7d3a;
  --page-max: 462px;
  --logo-w: 370px;
  --badge-w: 256px;
  --max-w: 257px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
}

body {
  min-height: 100dvh;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.3;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 10px;
  background: #3d322e;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 42% at 50% 18%, rgba(167, 167, 86, 0.16), transparent 62%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(167, 167, 86, 0.08), transparent 60%),
    var(--cream);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.33  0 0 0 0 0.33  0 0 0 0 0.18  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-max));
  margin: 0 auto;
  min-height: 100dvh;
  padding: 53px 12px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: block;
  width: min(var(--logo-w), 88vw);
  line-height: 0;
}

.brand img {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 39px;
  letter-spacing: -0.3px;
  text-align: center;
  white-space: nowrap;
}

.lead-download {
  margin-top: 42px;
}

.lead-channel {
  margin-top: 28px;
}

.stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -10px;
  width: 100%;
}

.badge {
  display: block;
  width: min(var(--badge-w), 72vw);
  line-height: 0;
  border-radius: 18px;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1), filter 0.28s ease;
}

.badge + .badge {
  margin-top: -12px;
}

.badge img,
.max img {
  width: 100%;
}

.max {
  display: block;
  width: min(var(--max-w), 72vw);
  margin-top: -10px;
  margin-left: auto;
  margin-right: auto;
  line-height: 0;
  border-radius: 18px;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1), filter 0.28s ease;
  align-self: center;
}

.badge:hover,
.max:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.badge:active,
.max:active {
  transform: translateY(0) scale(0.985);
  filter: none;
}

.badge:focus-visible,
.max:focus-visible,
.legal a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

footer {
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
}

.legal {
  margin: 0;
  max-width: 418px;
  margin-inline: auto;
  color: var(--legal);
  font-size: 9.375px;
  line-height: 1.35;
  letter-spacing: -0.1875px;
  text-align: center;
}

.legal a {
  color: inherit;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal-rest {
  white-space: pre-wrap;
}

.page-footer-rule {
  display: none;
}

@media (max-width: 360px) {
  .lead {
    white-space: normal;
    line-height: 1.35;
    padding: 0 8px;
  }

  .legal {
    font-size: 10px;
    line-height: 1.35;
    padding: 0 8px;
  }
}

@media (min-width: 720px) {
  :root {
    --page-max: 1080px;
    --logo-w: 430px;
    --badge-w: 248px;
    --max-w: 248px;
  }

  .atmosphere {
    background:
      radial-gradient(ellipse 56% 46% at 50% 32%, rgba(167, 167, 86, 0.2), transparent 64%),
      radial-gradient(ellipse 50% 30% at 50% 100%, rgba(167, 167, 86, 0.1), transparent 70%),
      var(--cream);
  }

  .page {
    padding: 72px 48px 40px;
    justify-content: center;
  }

  .lead-download {
    margin-top: 28px;
  }

  .lead {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.36px;
  }

  .stores {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 2px;
    margin-top: 8px;
    max-width: 820px;
    align-self: center;
  }

  .badge + .badge {
    margin-top: 0;
  }

  .lead-channel {
    margin-top: 36px;
  }

  .max {
    margin-top: 4px;
  }

  .page-footer-rule {
    display: block;
    width: min(220px, 40vw);
    height: 1px;
    margin: 56px 0 20px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--olive-border), transparent);
  }

  .legal {
    margin-top: 0;
    max-width: 640px;
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: -0.15px;
  }
}

@media (min-width: 1100px) {
  :root {
    --logo-w: 460px;
    --badge-w: 256px;
    --max-w: 256px;
  }

  .page {
    padding-top: 80px;
  }
}

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

  .badge:hover,
  .max:hover,
  .badge:active,
  .max:active {
    transform: none;
    filter: none;
  }
}

.fallback-card {
  width: min(100%, 420px);
  margin-top: 8px;
  text-align: center;
}

.fallback-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.fallback-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  margin: 8px 0 12px;
  border-radius: 999px;
  background: var(--olive);
  color: #fffefc;
  text-decoration: none;
  box-shadow: 0 4px 13px var(--olive-soft);
  border: 2px solid var(--olive-border);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.btn-open:hover {
  transform: translateY(-2px);
}

.error-code {
  margin: 8px 0 0;
  color: var(--olive);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
