@font-face {
  font-family: Fredoka;
  src: url("assets/fonts/Fredoka.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("assets/fonts/Nunito.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1b063b;
  --purple: #7024f5;
  --muted: #6d617f;
  --display: Fredoka, "Arial Rounded MT Bold", sans-serif;
  font-family: Nunito, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
figure, h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 6px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page {
  width: min(1140px, calc(100% - 112px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
}

.wordmark {
  display: inline-block;
  color: var(--purple);
  font: 700 43px/1.2 var(--display);
  letter-spacing: -1.5px;
  text-decoration: none;
}

nav { display: flex; gap: 36px; }
nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
nav a:hover { color: var(--purple); }
nav a:hover::after { transform: scaleX(1); }

.hero {
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  min-height: 581px;
  padding-block: 50px 28px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  animation: arrive 650ms ease-out both;
}

h1 {
  font: 650 clamp(54px, 7.03vw, 90px)/1.02 var(--display);
  letter-spacing: -2.4px;
}
.headline-line { display: block; white-space: nowrap; }
.accent {
  color: var(--purple);
  background: linear-gradient(110deg, #7725fa, #8738ef);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 610px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 400;
  line-height: 1.22;
  scroll-margin-top: 32px;
}
.description-line { display: block; }

.coming-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 270px;
  min-height: 76px;
  margin-top: 28px;
  padding: 10px 32px;
  color: #fff;
  background: #7024f5;
  border-radius: 999px;
}
.coming-soon-title { font-size: 24px; font-weight: 900; line-height: 1.2; }
.coming-soon-platforms { font-size: 16px; font-weight: 600; line-height: 1.4; }

.mimi {
  position: relative;
  width: 122%;
  margin-left: -16%;
  aspect-ratio: 1354 / 1162;
  animation: arrive 850ms 100ms ease-out both;
}
.mimi-still, .mimi-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mimi-video { position: absolute; inset: 0; opacity: 0; }
.mimi-still, .mimi-video {
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 96%, transparent);
  mask-composite: intersect;
}
.mimi.is-playing .mimi-video, .mimi.is-paused .mimi-video { opacity: 1; }
.mimi.is-playing .mimi-still, .mimi.is-paused .mimi-still { visibility: hidden; }

.motion-toggle {
  position: absolute;
  right: 12%;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e9e0f7;
  border-radius: 50%;
  color: #786689;
  background: #fff;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--purple); background: #f8f4ff; }
.motion-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.play-icon { display: none; }
.motion-toggle[aria-label="Play kitten animation"] .play-icon { display: block; }
.motion-toggle[aria-label="Play kitten animation"] .pause-icon { display: none; }

.how-it-works {
  padding-top: 25px;
  border-top: 1px solid #e1d9eb;
  scroll-margin-top: 24px;
}
h2 { font: 650 36px/1.2 var(--display); letter-spacing: -.6px; }
.steps {
  display: grid;
  grid-template-columns: 1.04fr 1fr 1fr;
  gap: 48px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.step-number { display: block; margin-bottom: 4px; color: var(--purple); font-size: 18px; line-height: 1.2; font-weight: 900; }
h3 { margin-bottom: 4px; font: 650 28px/1.2 var(--display); letter-spacing: -.5px; }
.steps p { color: var(--muted); font-size: 19px; line-height: 1.3; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px 20px;
}
.site-footer .wordmark { font-size: 28px; letter-spacing: -1px; }
.site-footer p { color: var(--muted); font-size: 14px; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1440px) {
  .page { width: min(1280px, calc(100% - 144px)); }
  .hero { min-height: 640px; }
  h1 { font-size: 99px; }
  .hero-description { max-width: 630px; font-size: 29px; }
}

@media (max-width: 1050px) {
  .page { width: calc(100% - 72px); }
  .hero { min-height: 510px; padding-block: 40px; }
  h1 { font-size: 6.8vw; letter-spacing: -2px; }
  .description-line { display: inline; }
  .hero-description { max-width: 95%; font-size: 22px; }
  .steps { gap: 30px; }
  h3 { font-size: 23px; }
  .steps p { font-size: 18px; }
}

@media (max-width: 760px) {
  .page { width: calc(100% - 44px); max-width: 560px; }
  .site-header { padding-top: 20px; gap: 16px; }
  .wordmark { font-size: 34px; letter-spacing: -1.2px; }
  nav { gap: 18px; }
  nav a { font-size: 13px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 42px 20px; }
  .hero-copy { padding-top: 0; }
  h1 { font-size: clamp(38px, 11vw, 65px); letter-spacing: -1.3px; }
  .hero-description { max-width: 100%; margin-top: 20px; font-size: 21px; line-height: 1.35; }
  .coming-soon { min-width: 245px; min-height: 72px; margin-top: 22px; }
  .coming-soon-title { font-size: 23px; }
  .coming-soon-platforms { font-size: 15px; }
  .mimi { width: 100%; max-width: 430px; margin: 22px auto 0; }
  .motion-toggle { right: 3%; }
  .how-it-works { padding-top: 26px; }
  h2 { max-width: 430px; font-size: 32px; }
  .steps { grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
  .step-number { font-size: 16px; }
  h3 { font-size: 25px; }
  .steps p { font-size: 19px; }
  .desktop-break { display: none; }
  .site-footer { padding-block: 36px 24px; gap: 12px; }
  .site-footer .wordmark { font-size: 25px; }
  .site-footer p { font-size: 12px; }
}

@media (max-width: 380px) {
  .page { width: calc(100% - 36px); }
  .wordmark { font-size: 29px; }
  nav { gap: 12px; }
  nav a { font-size: 12px; }
  h1 { font-size: 11vw; letter-spacing: -.8px; }
  .hero { padding-top: 32px; }
  .hero-description { font-size: 19px; }
  .coming-soon { min-width: 230px; }
  h2 { font-size: 29px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
