@font-face {
  font-family: Mundial;
  src: url("./assets/mundial-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Mundial;
  src: url("./assets/mundial-demibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: #302422;
  background: #f7d2ac;
  font-family: Mundial, system-ui, sans-serif;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}

.artwork {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: max(100%, 179.17svh);
  transform: translate(-50%, -50%);
}

.beach { display: block; width: 100%; height: auto; }

.phone-bezel {
  position: absolute;
  top: 16%;
  left: 37.5%;
  container-type: inline-size;
  width: 20%;
  height: 69%;
  transform: translateX(-50%);
  border: clamp(2px, 0.32vw, 6px) solid #c5c8cc;
  border-top-color: #eeeff0;
  border-bottom-color: #92969d;
  border-radius: 16% / 8.3%;
  box-shadow: 0 0 0 0.75px #747880, inset 0 0 0 clamp(2px, 0.34vw, 6px) #171719;
}

.phone-bezel::after {
  content: "";
  position: absolute;
  top: 2.5%;
  left: 50%;
  width: 25%;
  height: 3.8%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #101014;
}


.streak,
.focus-status,
.phone-prompt {
  position: absolute;
  white-space: nowrap;
  font-weight: 600;
}

.streak {
  top: 9%;
  left: 6%;
  padding: 0.65em 1em;
  border-radius: 999px;
  background: #ffffff40;
  color: #fff;
  font-size: 4.5cqw;
  text-shadow: 0 1px 3px #392d3c66;
}

.focus-status {
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 6cqw;
  text-shadow: 0 1px 4px #392d3c70;
}

.phone-prompt {
  bottom: 8%;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  padding: 0.82em 1em;
  border-radius: 999px;
  background: #fff0e6e8;
  color: #aa8c72;
  font-size: 4.1cqw;
}

.phone-prompt svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  color: #73645c;
}

.copy {
  position: absolute;
  top: max(43%, calc(50.5% - 6rem));
  left: max(61.5%, calc(50% + 20.6svh));
  right: 4%;
  max-width: 28rem;
  text-align: left;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, min(6.4vw, 12svh), 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 600;
}

p {
  margin: 1rem 0 1.25rem;
  font-size: clamp(1.0625rem, 1.52vw, 1.4rem);
  line-height: 1.5;
}

p span { display: block; }

.download {
  display: inline-flex;
  border-radius: 8px;
  text-decoration: none;
}

.download img { display: block; width: 144px; height: 48px; }
.download:focus-visible { outline: 2px solid #302422; outline-offset: 5px; }

@media (max-width: 850px), (max-aspect-ratio: 6/5) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(#a5b1c7 18rem, #f7d2ad 38rem);
  }

  .copy {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-width: none;
    padding: clamp(2.25rem, 7svh, 4.25rem) 1rem 0.75rem;
    text-align: center;
  }

  h1 { font-size: clamp(3.5rem, 12vw, 5.5rem); }
  p { margin: 0.85rem 0 1.05rem; font-size: clamp(1rem, 4.1vw, 1.3rem); }

  .artwork {
    position: relative;
    top: auto;
    left: 50%;
    width: clamp(870px, 235vw, 1160px);
    margin-top: -3.25rem;
    transform: translateX(-37.5%);
  }

  .artwork::before,
  .artwork::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 2.25rem;
    pointer-events: none;
  }

  .artwork::after {
    top: 0;
    background: linear-gradient(#a5b1c7, transparent);
  }

  .artwork::before {
    bottom: 0;
    background: linear-gradient(transparent, #f7d2ad);
  }
}

.waitlist-cta {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  background: #302422;
  color: #fff9f2;
  font-weight: 600;
  text-decoration: none;
}

.waitlist-cta:hover { background: #50362e; }
.waitlist-cta:focus-visible { outline: 3px solid #302422; outline-offset: 3px; }
