@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Andika";
  src: url("assets/fonts/andika-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1D1A2C;
  --parch: #FFF6E2;
  --parch-lip: #EBD5A6;
  --card-2: #FFFBF1;
  --page: #F7E9C8;
  --deep: #0E3D46;
  --night: #1B1738;
  --body: #3A3548;
  --muted: #6E6780;
  --on-deep: #A9D6D4;
  --on-night: #E6DEF5;
  --footer-meta: #B9B2C8;
  --red: #DB2A2E;
  --red-d: #A3141D;
  --red-h: #FF6A55;
  --gold: #F6BB3E;
  --gold-d: #C7861A;
  --gold-h: #FFE39A;
  --teal: #1E8C8C;
  --art-panel: #CFE8EE;
  --sky: #3FA3D6;
  --grass: #4E9A3A;
  --hero-ground: linear-gradient(var(--sky) 0 466px, var(--grass) 466px);

  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --ui: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --word: "Andika", "Trebuchet MS", sans-serif;

  --content: 1240px;
  --gutter: 100px;
  --nav-gutter: 64px;
  --bevel-radius: 30px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

p {
  margin: 0;
}

.outlined {
  color: var(--parch);
  -webkit-text-stroke: var(--stroke, 11px) var(--ink);
  paint-order: stroke fill;
}

.bevel {
  --drop: 6px;
  background: var(--parch);
  border: 3px solid var(--ink);
  border-radius: var(--bevel-radius);
  box-shadow:
    inset 0 calc(-1 * (var(--drop) + 2px)) 0 var(--parch-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.85),
    0 var(--drop) 0 var(--ink);
}

.bevel--large {
  border-width: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wordmark,
.ribbon {
  overflow: visible;
}

.wordmark {
  width: auto;
}

.wordmark text,
.ribbon text {
  font-family: var(--display);
}

.wordmark__ink {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linejoin: round;
  paint-order: stroke;
}

.wordmark__shine {
  fill: none;
  stroke: var(--red-h);
  stroke-width: 1.1;
  opacity: 0.55;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
}

.app-store-badge img {
  width: auto;
  height: var(--badge-height, 50px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--nav-gutter) 0;
}

.site-nav--overlay {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-nav__home {
  display: inline-block;
  border-radius: 12px;
}

.site-nav__links,
.site-footer__links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links {
  gap: 30px;
}

.site-nav__links a:not(.app-store-badge),
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.site-nav__links a:not(.app-store-badge) {
  font-size: 18px;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav__links a:not(.app-store-badge):hover {
  text-decoration: underline;
}

.site-nav__get {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--parch);
  text-decoration: none;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow:
    inset 0 -5px 0 #000,
    inset 0 3px 0 rgba(255, 255, 255, 0.85),
    0 3px 0 var(--ink);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 24px var(--gutter);
  background: var(--ink);
  color: var(--parch);
}

.site-footer__links {
  flex-wrap: wrap;
  gap: 8px 26px;
}

.site-footer__links a {
  font-size: 17px;
}

.site-footer__meta {
  font-size: 15px;
  color: var(--footer-meta);
}

.hero {
  position: relative;
  border-bottom: 5px solid var(--ink);
}

.hero__stage {
  position: relative;
  height: 880px;
  overflow: hidden;
  background: var(--hero-ground);
}

.hero__world {
  --world-scale: 1.04;
  --pan: 0px;
  position: absolute;
  inset: 0;
}

.world {
  --depth: 0;
  position: absolute;
  top: 0;
  left: calc(var(--pan) * var(--depth) * -1);
  width: calc(2340px * var(--world-scale));
  max-width: none;
  height: calc(844px * var(--world-scale));
}

.world--far {
  --depth: 1;
}

.world--mid {
  --depth: 2;
}

.world--near {
  --depth: 3.333;
}

.hero__pip {
  position: absolute;
  left: 440px;
  top: 302px;
  width: 240px;
  height: 170px;
}

.hero__copy {
  position: absolute;
  left: var(--nav-gutter);
  top: 124px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: min(720px, calc(100% - 2 * var(--nav-gutter)));
}

.ribbon {
  height: auto;
}

.hero h1 {
  font-size: clamp(56px, 5vw, 72px);
}

.hero__phones {
  --heard: min(320px, 22.22vw);
  --dragon: min(290px, 20.14vw);
  position: absolute;
  top: 0;
  right: 86px;
  width: calc(var(--heard) * 1.606);
  height: 100%;
}

.phone {
  --border: max(6px, calc(var(--w) / 42));
  position: relative;
  width: var(--w);
  overflow: hidden;
  background: var(--ink);
  border: var(--border) solid var(--ink);
  border-radius: calc(var(--w) * 0.14);
  box-shadow:
    0 calc(var(--border) + 4px) 0 var(--ink),
    0 40px 60px rgba(12, 10, 30, 0.35);
  box-sizing: content-box;
  transform: rotate(var(--turn, 0deg));
}

.phone img {
  width: 100%;
}

.hero__phones .phone {
  position: absolute;
}

.phone--heard {
  --w: var(--heard);
  --turn: -4deg;
  z-index: 2;
  left: 0;
  top: 120px;
}

.phone--dragon {
  --w: var(--dragon);
  --turn: 7deg;
  z-index: 1;
  left: 41.25%;
  top: 150px;
}

.hero__card {
  position: absolute;
  left: var(--nav-gutter);
  top: 548px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 560px;
  padding: 26px 30px 30px;
}

.hero__lead {
  font-size: 20px;
}

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

.hero__cta .app-store-badge {
  --badge-height: 64px;
  flex-shrink: 0;
}

.hero__platforms,
.legal__updated {
  font-size: 15px;
  color: var(--muted);
}

.hero__platforms span {
  display: block;
}

.legal {
  padding: 48px var(--gutter) 96px;
}

.legal__card {
  max-width: 760px;
  margin-inline: auto;
  padding: 44px 48px 52px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
}

.legal__card :is(h1, h2, strong, a) {
  color: var(--ink);
}

.legal__card :is(strong, a) {
  font-weight: 600;
}

.legal__card h1 {
  font-size: 52px;
}

.legal__card h2 {
  margin-top: 36px;
  font-size: 28px;
}

.legal__card p,
.legal__card ul {
  margin: 14px 0 0;
}

.legal__card ul {
  padding-left: 1.2em;
}

.legal__card li + li {
  margin-top: 10px;
}

.legal__card a {
  text-underline-offset: 3px;
}

.mobile-only {
  display: none;
}

.section-title {
  font-size: 56px;
  text-align: center;
}

.section-sub {
  margin-top: 14px;
  font-size: 20px;
  text-align: center;
  color: var(--muted);
}

.how {
  padding: 84px 0 128px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px 30px;
}

.step p {
  color: var(--body);
}

.step__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 120px;
  overflow: hidden;
  background: var(--art-panel);
  border: 3px solid var(--ink);
  border-radius: 20px;
}

.step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
}

.step__num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
}

.mic-pill {
  --drop: 4px;
  --bevel-radius: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin-bottom: 30px;
  padding: 0 22px 0 9px;
  font-weight: 600;
}

.mic-pill__disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--teal);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.mic-pill__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.mic-pill__bars span {
  width: 5px;
  background: var(--teal);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}

.mic-pill__bars span:nth-child(1) { height: 8px; }
.mic-pill__bars span:nth-child(2) { height: 16px; }
.mic-pill__bars span:nth-child(3) { height: 11px; }
.mic-pill__bars span:nth-child(4) { height: 19px; }
.mic-pill__bars span:nth-child(5) { height: 7px; }

.step__art--hop {
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}

.word-pill {
  padding: 2px 9px 3px;
  font-family: var(--word);
  font-weight: 700;
  font-size: 22px;
  color: #7A4A0C;
  background: var(--gold-h);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
}

.step__ball {
  margin-top: -46px;
}

.step__word {
  font-family: var(--word);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.step__fox {
  width: 190px;
  margin-bottom: -6px;
}

.stories {
  padding: 80px 0 72px;
  color: var(--parch);
  background: var(--deep);
}

.stories .section-sub {
  color: var(--on-deep);
}

.stories__list {
  display: flex;
  justify-content: space-between;
  max-width: 1060px;
  margin: 50px auto 0;
  padding: 0;
  list-style: none;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story .phone {
  --w: min(270px, calc((100vw - 2 * var(--gutter) - 80px) / 3));
  margin-bottom: calc(26px + var(--border) + 4px);
}

.story--meadow .phone {
  --turn: -3deg;
}

.story--dragon .phone {
  --turn: 3deg;
}

.story__title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.story__meta {
  font-size: 16px;
  color: var(--on-deep);
}

.stories__caption {
  display: none;
  font-size: 16px;
  text-align: center;
  color: var(--on-deep);
}

@media (max-width: 1099px) {
  :root {
    --gutter: 48px;
    --nav-gutter: 40px;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
    padding: 124px var(--gutter) 72px;
    background: var(--hero-ground);
  }

  .hero__stage {
    display: contents;
  }

  .hero__copy,
  .hero__card,
  .hero__phones {
    position: relative;
    inset: auto;
  }

  .steps {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
  }

  .hero__copy {
    width: 100%;
  }

  .hero__card {
    width: 100%;
    max-width: 640px;
  }

  .hero__phones {
    --heard: 192px;
    --dragon: 174px;
    flex: none;
    align-self: center;
    width: 330px;
    height: 460px;
  }

  .phone--heard {
    top: 0;
  }

  .phone--dragon {
    top: 30px;
  }
}

@media (max-width: 699px) {
  :root {
    --gutter: 20px;
    --nav-gutter: 20px;
    --bevel-radius: 26px;
  }

  body {
    font-size: 16px;
  }

  .site-nav {
    padding-top: 22px;
  }

  .site-nav .wordmark {
    height: 38px;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__get {
    display: inline-flex;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 32px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero__stage {
    height: 760px;
  }

  .hero__world {
    --world-scale: 0.9;
    --pan: 48.6px;
    top: -27px;
  }

  .hero__pip {
    display: none;
  }

  .hero__copy {
    top: 96px;
    gap: 14px;
  }

  .ribbon {
    width: 250px;
  }

  .hero h1 {
    --stroke: 8px;
    font-size: 46px;
  }

  .hero__phones {
    --heard: 200px;
    --dragon: 170px;
    left: 50%;
    right: auto;
    top: 300px;
    width: 350px;
    height: 460px;
    margin-left: -175px;
  }

  .phone--heard {
    left: 40px;
    top: 0;
    z-index: 1;
  }

  .phone--dragon {
    --turn: 6deg;
    left: 176px;
    top: 30px;
    z-index: 2;
  }

  .hero__card {
    position: relative;
    left: auto;
    top: auto;
    margin: -60px var(--gutter) 0;
    width: auto;
    gap: 16px;
    padding: 22px 22px 24px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero__cta .app-store-badge {
    --badge-height: 58px;
  }

  .hero__platforms {
    font-size: 14px;
  }

  .hero__platforms span {
    display: inline;
  }

  .hero__platforms span + span::before {
    content: "· ";
  }

  .mobile-only {
    display: initial;
  }

  .section-title {
    font-size: 38px;
  }

  .how {
    padding: 44px 0 64px;
  }

  .how .section-sub,
  .stories .section-sub,
  .story__title,
  .story__meta {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 34px;
  }

  .stories {
    padding: 48px 0 44px;
    overflow: hidden;
  }

  .stories .section-title {
    font-size: 36px;
    text-align: left;
  }

  .stories__list {
    position: relative;
    display: block;
    width: 390px;
    height: 384px;
    margin: 30px 0 0 calc(50% - 195px);
  }

  .story {
    position: absolute;
    top: 22px;
  }

  .story .phone {
    --w: 150px;
    margin: 0;
  }

  .story--meadow {
    left: 6px;
  }

  .story--meadow .phone {
    --turn: -8deg;
  }

  .story--castle {
    left: 115px;
    top: 0;
    z-index: 1;
  }

  .story--castle .phone {
    --w: 160px;
  }

  .story--dragon {
    left: 234px;
  }

  .story--dragon .phone {
    --turn: 8deg;
  }

  .stories__caption {
    display: block;
  }

  .legal {
    padding-block: 28px 64px;
  }

  .legal__card {
    padding: 28px 24px 34px;
    font-size: 17px;
  }

  .legal__card h1 {
    font-size: 38px;
  }

  .legal__card h2 {
    font-size: 24px;
  }
}
