@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/onest-400.woff2") format("woff2");
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/onest-500.woff2") format("woff2");
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/unbounded-500.woff2") format("woff2");
}

:root {
  --red: #e30614;
  --red-dark: #840008;
  --white: #ffffff;
  --font: Onest, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: Unbounded, Onest, "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 2.75rem;
}

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

html {
  background: var(--red);
  color: var(--white);
}

html.lang-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--red-dark);
  color: var(--white);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--red);
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #840008 0%, rgba(132, 0, 8, 0.78) 34%, rgba(132, 0, 8, 0) 68%);
  will-change: transform;
}

.blob-1 {
  width: 46vmax;
  height: 46vmax;
  right: -8vmax;
  top: -4vmax;
  animation: drift-1 36s ease-in-out infinite;
}

.blob-2 {
  width: 40vmax;
  height: 40vmax;
  left: -14vmax;
  bottom: -12vmax;
  animation: drift-2 44s ease-in-out infinite;
}

.blob-3 {
  width: 32vmax;
  height: 32vmax;
  right: 8vw;
  bottom: 6vh;
  animation: drift-3 32s ease-in-out infinite;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("../img/noise.png");
  background-size: 140px 140px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}

@keyframes drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18vw, 14vh, 0) scale(1.16); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16vw, -18vh, 0) scale(1.14); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift-3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-12vw, -16vh, 0) scale(0.86); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

html.motion-off .blob {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) .blob {
    animation-play-state: paused;
  }

  .cta,
  .cta-arrow,
  .lang a {
    transition: none;
  }

  .cta:hover,
  .cta:active,
  .lang a:active {
    transform: none;
  }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.logo {
  display: block;
  height: 32px;
  width: auto;
}

.lang {
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.15rem;
  color: var(--white);
  font-weight: 400;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.lang a[aria-current="page"] {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.38em;
}

.lang a:hover {
  text-decoration: underline;
  text-underline-offset: 0.38em;
}

.lang a:active {
  transform: translateY(1px);
}

.lang-sep {
  user-select: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 1.25rem 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  max-width: 26em;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

h1 {
  margin: 0;
  max-width: 12em;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 0.85rem 0 0;
  max-width: 34em;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}

.note {
  margin: 0.55rem 0 0;
  max-width: 34em;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  margin-top: 1.35rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--red-dark);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: #fff5f5;
  transform: translateY(-1px);
}

.cta:active {
  background: #ffe8e8;
  transform: translateY(0);
}

.cta-arrow {
  flex: none;
  transition: transform 0.2s ease;
}

.cta:hover .cta-arrow {
  transform: translateX(3px);
}

.footer {
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.footer p {
  margin: 0;
}

.support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.2rem 0.4rem;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.support:hover {
  text-decoration-thickness: 2px;
}

.motion-toggle {
  position: fixed;
  z-index: 2;
  right: max(0.35rem, env(safe-area-inset-right));
  bottom: max(0.35rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  opacity: 0.55;
  cursor: pointer;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  opacity: 1;
  background: rgba(132, 0, 8, 0.35);
}

.motion-toggle .icon-play {
  display: none;
}

html.motion-off .motion-toggle .icon-pause {
  display: none;
}

html.motion-off .motion-toggle .icon-play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) .motion-toggle .icon-pause {
    display: none;
  }

  html:not(.motion-on) .motion-toggle .icon-play {
    display: block;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.cta:focus-visible {
  outline-offset: 4px;
}

@media (min-width: 380px) {
  h1 {
    font-size: 2rem;
  }
}

@media (min-width: 720px) {
  :root {
    --header-h: 3.25rem;
  }

  .page {
    padding:
      1.35rem
      max(3.5rem, env(safe-area-inset-right))
      1rem
      max(3.5rem, env(safe-area-inset-left));
  }

  .logo {
    height: 42px;
  }

  .lang {
    font-size: 0.875rem;
  }

  main {
    align-items: flex-start;
    text-align: left;
    max-width: 42rem;
    padding: 1rem 0 1.25rem;
  }

  html[lang="en"] main {
    max-width: 44rem;
  }

  .eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.875rem;
  }

  h1 {
    max-width: 11.4em;
    font-size: 3.5rem;
  }

  html[lang="en"] h1 {
    max-width: 12.2em;
  }

  .lead {
    margin-top: 1.15rem;
    font-size: 1.1875rem;
    line-height: 1.5;
  }

  .note {
    margin-top: 0.7rem;
    font-size: 1.0625rem;
  }

  .cta {
    margin-top: 1.6rem;
    padding: 0.9rem 1.4rem;
  }

  .footer {
    font-size: 0.875rem;
  }

  .support {
    min-height: 0;
    padding-top: 0.35rem;
  }
}

@media (min-width: 1200px) {
  .page {
    padding-left: max(4.5rem, 7vw);
    padding-right: max(4.5rem, 7vw);
  }
}

@media (min-width: 1280px) and (min-height: 860px) {
  h1 {
    font-size: 4rem;
  }

  main,
  html[lang="en"] main {
    max-width: 46rem;
  }
}

@media (min-width: 720px) and (max-height: 820px) {
  .page {
    padding-top: 1rem;
    padding-bottom: 0.65rem;
  }

  main {
    padding: 0.35rem 0 0.5rem;
  }

  .eyebrow {
    margin-bottom: 0.5rem;
  }

  .lead {
    margin-top: 0.75rem;
  }

  .note {
    margin-top: 0.45rem;
  }

  .cta {
    margin-top: 1.05rem;
  }
}

@media (max-width: 359px) {
  .page {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .logo {
    height: 28px;
  }

  h1 {
    font-size: 1.75rem;
  }
}
