:root {
  color-scheme: light;
  --background: #f3efed;
  --ink: #171514;
  --pink: #f5a6bd;
  --pink-edge: #b05773;
  --font: BlinkMacSystemFont, -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header,
.hero,
.site-footer {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  height: 88px;
  align-items: center;
  padding-inline: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.hero {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(380px, 0.92fr) minmax(330px, 0.72fr);
  align-items: center;
  justify-content: space-between;
  gap: clamp(64px, 10vw, 150px);
  padding: 28px 20px 80px;
}

.hero-copy {
  align-self: center;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 5.6vw, 76px);
  font-weight: 300;
  letter-spacing: -0.052em;
  line-height: 0.95;
}

h1 span {
  font-weight: 300;
}

h1 strong {
  font-weight: 700;
}

.life-mark {
  position: relative;
  display: inline-block;
}

.life-underline {
  position: absolute;
  bottom: -9px;
  left: -5px;
  display: block;
  width: calc(100% + 10px);
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.life-underline path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero-copy > p {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 300;
  letter-spacing: -0.026em;
  line-height: 1.35;
}

.hero-copy > p strong {
  font-weight: 700;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  scroll-margin-top: 24px;
}

.store-button {
  display: grid;
  height: 54px;
  align-items: center;
  justify-items: center;
  padding: 0;
  text-decoration: none;
}

.store-button-apple {
  width: 162px;
  transition: transform 140ms ease;
}

.store-button-apple:hover {
  transform: translateY(-2px);
}

.store-button-apple:active {
  transform: scale(0.985);
}

.store-button-apple img {
  display: block;
  width: 162px;
  height: auto;
}

.android-coming-button {
  display: flex;
  width: 162px;
  height: 54px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
  background: #0b0a0a;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.android-coming-button:hover {
  transform: translateY(-2px);
  background: #181616;
}

.android-coming-button:active {
  transform: scale(0.985);
}

.google-play-mark {
  flex: 0 0 27px;
  width: 27px;
  height: 32px;
  background-image: url("/store-badges/google-play.png");
  background-position: -14px -9px;
  background-repeat: no-repeat;
  background-size: 168px 51px;
}

.google-play-copy {
  display: grid;
  gap: 1px;
  color: #fff;
  line-height: 1;
}

.google-play-copy > span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.google-play-copy strong {
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.store-button:focus-visible,
.android-coming-button:focus-visible,
.waitlist-close:focus-visible,
.waitlist-field button:focus-visible {
  outline: 3px solid rgba(245, 166, 189, 0.5);
  outline-offset: 3px;
}

.waitlist-dialog {
  width: min(calc(100% - 32px), 380px);
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: #f6f1ef;
  box-shadow: 0 30px 90px rgba(23, 21, 20, 0.2);
  color: var(--ink);
}

.waitlist-dialog:focus,
.waitlist-dialog:focus-visible {
  outline: none;
}

.waitlist-dialog[open] {
  animation: waitlist-enter 180ms ease-out both;
}

.waitlist-dialog::backdrop {
  background: rgba(23, 21, 20, 0.28);
  backdrop-filter: blur(12px);
}

.waitlist-card {
  position: relative;
  padding: 32px 28px 25px;
  text-align: center;
}

.waitlist-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #817975;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.waitlist-close:hover {
  background: rgba(23, 21, 20, 0.055);
  color: var(--ink);
}

.waitlist-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.waitlist-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 19px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(176, 87, 115, 0.12);
}

.waitlist-card h2 {
  margin: 0;
  font-size: clamp(31px, 8.5vw, 36px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
}

.waitlist-card h2 strong {
  font-weight: 700;
}

.waitlist-copy {
  margin: 11px 0 0;
  color: #625b57;
  font-size: 14px;
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.waitlist-form {
  margin-top: 23px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.waitlist-form.is-leaving {
  transform: translateY(5px);
  opacity: 0;
}

.waitlist-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(23, 21, 20, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 5px 18px rgba(23, 21, 20, 0.045);
  transition: transform 180ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.waitlist-field:focus-within {
  border-color: rgba(245, 166, 189, 0.9);
  box-shadow: 0 0 0 2px rgba(245, 166, 189, 0.13);
}

.waitlist-form.is-leaving .waitlist-field {
  transform: scale(0.985);
  border-color: rgba(245, 166, 189, 0.75);
}

.waitlist-field input,
.waitlist-field button {
  height: 47px;
  font: inherit;
}

.waitlist-field input {
  min-width: 0;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.waitlist-field input::placeholder {
  color: #8a817d;
}

.waitlist-field button {
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.waitlist-field button:hover {
  background: #2a2725;
}

.waitlist-field button:active {
  transform: scale(0.98);
}

.waitlist-note {
  max-width: 300px;
  margin: 12px auto 0;
  color: #756e6a;
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.42;
}

.waitlist-success {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
}

.waitlist-success.is-visible {
  animation: waitlist-success-in 360ms cubic-bezier(0.2, 0.86, 0.28, 1.08) both;
}

.waitlist-success-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.waitlist-success.is-visible .waitlist-success-mark {
  animation: waitlist-check-in 380ms 90ms cubic-bezier(0.2, 0.86, 0.28, 1.2) both;
}

.waitlist-success strong {
  font-size: 14px;
}

.waitlist-success span {
  color: #6b625e;
  font-size: 12px;
}

.waitlist-success p {
  display: grid;
  gap: 2px;
  margin: 0;
  text-align: left;
}

[hidden] {
  display: none !important;
}

body:has(.waitlist-dialog[open]) {
  overflow: hidden;
}

@keyframes waitlist-enter {
  from {
    transform: translateY(8px) scale(0.985);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes waitlist-success-in {
  from {
    transform: translateY(7px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes waitlist-check-in {
  from {
    transform: scale(0.55) rotate(-12deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.stamp-scene {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 0.95;
  margin: 0;
  justify-self: center;
}

.stamp-definitions {
  position: absolute;
  pointer-events: none;
}

.photo-stamp {
  --rotation: 0deg;
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: absolute;
  display: block;
  width: 31%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 17px rgba(0, 0, 0, 0.16));
}

@media (hover: hover) and (pointer: fine) {
  .stamp-scene.is-animated .photo-stamp {
    translate: var(--pointer-x) var(--pointer-y);
    transition: translate 220ms cubic-bezier(0.2, 0.82, 0.28, 1);
  }

  .stamp-scene.is-pointer-active .photo-stamp {
    transition-duration: 110ms;
  }
}

.stamp-main {
  --rotation: -1.5deg;
  top: 16%;
  left: 27%;
  z-index: 1;
  width: 46%;
  transform: rotate(var(--rotation));
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.19));
}

.stamp-arrival {
  opacity: 0;
  will-change: transform, opacity;
}

.stamp-scene.is-animated .stamp-arrival {
  animation: stamp-land 720ms cubic-bezier(0.2, 0.86, 0.28, 1.08) both;
  animation-delay: var(--delay);
}

.stamp-one {
  --rotation: 4deg;
  --entry-rotation: -22deg;
  --entry-x: -28px;
  --delay: 440ms;
  top: 8%;
  left: 5%;
  z-index: 2;
  width: 31%;
}

.stamp-two {
  --rotation: -6deg;
  --entry-rotation: 20deg;
  --entry-x: 22px;
  --delay: 610ms;
  top: 2%;
  right: 11%;
  z-index: 3;
  width: 33%;
}

.stamp-three {
  --rotation: -4deg;
  --entry-rotation: 26deg;
  --entry-x: 14px;
  --delay: 780ms;
  bottom: -5%;
  left: 18%;
  z-index: 4;
  width: 32%;
}

.stamp-four {
  --rotation: 5deg;
  --entry-rotation: -24deg;
  --entry-x: -12px;
  --delay: 950ms;
  right: 10%;
  bottom: -1%;
  z-index: 5;
  width: 31%;
}

@keyframes stamp-land {
  0% {
    transform: translate3d(var(--entry-x), -105vh, 0) scale(1.45)
      rotate(var(--entry-rotation));
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  76% {
    transform: translate3d(0, 9px, 0) scale(0.98) rotate(var(--rotation));
    opacity: 1;
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(var(--rotation));
    opacity: 1;
  }
}

.site-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
  color: #6a625f;
  font-size: 11px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.legal-main {
  width: min(100% - 48px, 1120px);
  min-height: 0;
  margin-inline: auto;
  padding: clamp(80px, 15vh, 150px) 20px 100px;
}

.legal-main h1 {
  font-size: clamp(48px, 6vw, 72px);
}

.error-main {
  display: grid;
  width: min(100% - 48px, 1120px);
  min-height: 0;
  align-content: center;
  justify-items: start;
  margin-inline: auto;
  padding: 32px 20px 96px;
}

.error-code {
  margin: 0 0 14px;
  color: var(--pink-edge);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.error-main h1 {
  margin: 0;
  font-size: clamp(50px, 6vw, 74px);
  font-weight: 300;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.error-main h1 strong {
  font-weight: 650;
}

.error-main > p:not(.error-code) {
  max-width: 420px;
  margin: 22px 0 0;
  color: #625b57;
  font-size: 18px;
  font-weight: 350;
  letter-spacing: -0.018em;
  line-height: 1.45;
}

.error-home {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 30px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}

.error-home:hover {
  transform: translateY(-2px);
  background: #2a2725;
}

.error-home:active {
  transform: scale(0.985);
}

.error-home:focus-visible {
  outline: 3px solid rgba(245, 166, 189, 0.5);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .site-footer,
  .legal-main,
  .error-main {
    width: min(100% - 32px, 560px);
  }

  .site-header {
    height: 76px;
    justify-content: center;
    padding-inline: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: clamp(38px, 10vw, 48px);
    padding: clamp(30px, 7vw, 42px) 0 34px;
    text-align: center;
  }

  h1 {
    font-size: clamp(48px, 15vw, 62px);
  }

  .hero-copy > p {
    font-size: 19px;
  }

  .error-main {
    justify-items: center;
    padding: 44px 0 80px;
    text-align: center;
  }

  .error-main h1 {
    font-size: clamp(48px, 15vw, 62px);
  }

  .store-buttons {
    justify-content: center;
  }

  .stamp-scene {
    width: min(84vw, 360px);
  }

  .life-underline path {
    stroke-width: 3;
  }

  .site-footer {
    justify-content: space-between;
    padding-inline: 0;
  }

  .footer-links {
    gap: 14px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 48px;
  }

  .store-buttons {
    width: 100%;
    flex-direction: column;
  }

  .store-button,
  .android-coming-button {
    margin-inline: auto;
  }

  .waitlist-card {
    padding: 30px 24px 24px;
  }
}

@media (max-width: 350px) {
  .site-header,
  .hero,
  .site-footer,
  .legal-main,
  .error-main {
    width: calc(100% - 24px);
  }

  .footer-links {
    gap: 10px;
  }

  .waitlist-field {
    grid-template-columns: 1fr;
  }

  .waitlist-field button {
    width: 100%;
  }
}

@media (min-width: 761px) and (max-height: 520px) {
  .site-header {
    height: 64px;
  }

  .hero {
    gap: clamp(40px, 7vw, 80px);
    padding: 6px 20px 10px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-copy > p {
    margin-top: 16px;
    font-size: 18px;
  }

  .store-buttons {
    margin-top: 22px;
  }

  .store-button {
    height: 52px;
  }

  .stamp-scene {
    width: min(100%, 270px);
  }

  .site-footer {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .stamp-scene .stamp-arrival,
  .stamp-scene.is-animated .stamp-arrival {
    transform: rotate(var(--rotation));
    opacity: 1;
    animation: none;
  }

  .waitlist-dialog[open] {
    animation: none;
  }

  .waitlist-success.is-visible,
  .waitlist-success.is-visible .waitlist-success-mark {
    animation: none;
  }

}
