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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: min(68svh, calc(100svh - 220px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1a1a1a;
}

.slider,
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.slide.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.topbar,
.hero-copy {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding:
    max(18px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    0
    max(20px, env(safe-area-inset-left));
}

.mark {
  width: 42px;
  height: 42px;
  display: block;
}

.download {
  display: block;
  line-height: 0;
  border-radius: 999px;
}

.download img {
  height: 48px;
  width: auto;
  display: block;
}

.hero-copy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 8vh;
  pointer-events: none;
}

.hero-copy img {
  width: min(100%, 760px);
  height: auto;
  display: block;
}

.site-footer {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:
    36px
    max(20px, env(safe-area-inset-right))
    max(40px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.footer-mark {
  width: 54px;
  height: 54px;
  display: block;
  margin-bottom: 28px;
}

.footer-nav {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: clamp(36px, 9vw, 84px);
  row-gap: 16px;
  text-align: center;
}

.footer-nav a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 0.55;
}

.footer-nav a:focus-visible,
.download:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .mark {
    width: 34px;
    height: 34px;
  }

  .download img {
    height: 40px;
  }

  .hero-copy {
    padding: 12px 16px 6vh;
  }

  .site-footer {
    padding-top: 28px;
  }

  .footer-mark {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
  }

  .footer-nav {
    column-gap: 28px;
    row-gap: 6px;
  }

  .footer-nav a {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

@media (max-height: 740px) {
  .hero {
    min-height: min(62svh, calc(100svh - 200px));
  }

  .site-footer {
    padding-top: 22px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .footer-mark {
    margin-bottom: 12px;
  }
}

@media (max-height: 520px) {
  .hero-copy img {
    width: min(70vw, 480px);
  }
}

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

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.legal-mark {
  width: 42px;
  height: 42px;
  display: block;
  margin-bottom: 28px;
}

.legal h1 {
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.legal h2 {
  font-size: clamp(20px, 4vw, 24px);
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}

.legal h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.legal ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal li {
  margin: 0 0 10px;
}

.legal a {
  color: inherit;
}

.back {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}
