@font-face {
  font-family: Inter;
  src: url(assets/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url(assets/outfit.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
.landing :is(h1, h2) {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}
:root {
  --ink: #263827;
  --green: #3c5939;
  --sage: #e2e8d8;
  --paper: #f8f9f2;
  --edge: #bcc9b1;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --steps: polygon(
    0 12px,
    6px 12px,
    6px 6px,
    12px 6px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 6px,
    calc(100% - 6px) 6px,
    calc(100% - 6px) 12px,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 6px) calc(100% - 12px),
    calc(100% - 6px) calc(100% - 6px),
    calc(100% - 12px) calc(100% - 6px),
    calc(100% - 12px) 100%,
    12px 100%,
    12px calc(100% - 6px),
    6px calc(100% - 6px),
    6px calc(100% - 12px),
    0 calc(100% - 12px)
  );
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.5 Inter,
    sans-serif;
}
html {
  scroll-padding-top: 24px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
button,
a {
  font: inherit;
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #966020;
  outline-offset: 2px;
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 3;
}
.skip:focus {
  top: 8px;
}
header {
  padding-top: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: fit-content;
  margin: auto;
  padding: 8px 24px 8px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: #f9fbf4e8;
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.06em;
}
.brand img {
  width: 32px;
}
.links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
header:not(.meadow-header) .links a:hover,
footer a:hover {
  text-decoration: underline;
}
.meadow-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
}
.meadow-header nav {
  max-width: 100%;
  gap: 0;
  padding: 4px 4px 4px 16px;
  background: rgba(250, 252, 244, 0.76);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    0 4px 16px rgba(32, 42, 32, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}
.meadow-header .links {
  align-items: center;
  gap: 8px;
}
.meadow-header .links a {
  padding: 8px 4px;
  border-radius: 999px;
  white-space: nowrap;
}
.meadow-header .links a:hover,
.meadow-header .links a:focus-visible {
  background: var(--sage);
}
.meadow-header .links .nav-buy {
  padding-inline: 16px;
  background: var(--ink);
  color: white;
}
.meadow-header .links .nav-buy:hover,
.meadow-header .links .nav-buy:focus-visible {
  background: var(--green);
}
.meadow-header .links a:first-child {
  /* Keep one unit of breathing room per link, within the available width. */
  margin-inline-start: var(--brand-gap, 32px);
  margin-inline-start: min(
    var(--brand-gap, 40px),
    calc(sibling-count() * 12px)
  );
}
.hero-landscape {
  background: #f5f3e3 url("assets/hero-meadow.webp") center bottom / cover
    no-repeat;
}
.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
  padding-block: 184px 116px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}
.eyebrow i {
  width: 8px;
  height: 8px;
  background: #759566;
  box-shadow: 2px -2px #b5c7a7;
}
h1 {
  margin: 24px 0;
  font-size: clamp(3rem, 5.35vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 600;
}
h1 span {
  color: var(--green);
}
.lead {
  max-width: 420px;
  color: #51604f;
  font-size: 18px;
  line-height: 28px;
}
.buy {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s var(--curve);
}
.intro .buy {
  margin-top: 32px;
}
.buy:hover {
  background: var(--green);
}
.buy:active {
  transform: scale(0.98);
}
.buy b {
  font-size: 20px;
}
.buy:disabled {
  background: #596951;
  cursor: default;
}
small {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  color: #52614e;
}
.clearing {
  align-self: stretch;
  position: relative;
}
.fox {
  position: absolute;
  width: calc(21% - 1px);
  left: 40%;
  bottom: -8%;
  image-rendering: pixelated;
}
.routine {
  background: var(--sage);
  padding: 80px 0;
}
h2 {
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.06em;
}
.routine h2 {
  margin-block-end: clamp(24px, 3vw, 32px);
}
.routine-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.routine-cards li {
  padding: 8px;
  background: var(--paper);
  clip-path: var(--steps);
}
.routine-preview {
  display: block;
  position: relative;
  background: #d7ddcd;
  cursor: zoom-in;
}
.routine-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: contain;
}
.routine-preview span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.routine-preview:is(:hover, :focus-visible) span {
  background: var(--ink);
  color: white;
}
.routine-copy {
  padding: 24px 16px 16px;
}
.routine-copy p,
.answers p {
  color: #51604f;
}
@media (max-width: 760px) {
  .routine-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}
h3 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.045em;
  margin-bottom: 8px;
}
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding-block: 96px;
}
.answers details {
  padding: 16px 0;
  border-bottom: 1px solid var(--edge);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
}
details[open] summary:after {
  content: "−";
}
.answers p {
  padding-top: 12px;
}
.closing {
  text-align: center;
  background: var(--sage);
  padding: 64px 24px;
}
.closing img {
  width: 64px;
  margin-bottom: 16px;
}
.closing p {
  margin: 16px auto 24px;
}
.tagline span {
  display: inline-block;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s var(--curve) var(--delay, 0ms),
    transform 0.65s var(--curve) var(--delay, 0ms);
}
.tagline .reveal {
  opacity: 0.35;
  transform: none;
}
.reveal.visible,
.tagline .visible {
  opacity: 1;
  transform: none;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
}
footer > span {
  font-size: 14px;
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  header {
    padding-top: 16px;
  }
  .hero,
  .faq {
    grid-template-columns: 1fr;
  }
  .meadow-header nav {
    --brand-gap: clamp(8px, calc(100vw - 380px), 40px);
    padding-left: 12px;
  }
  .meadow-header .links {
    gap: 4px;
  }
  .hero-landscape {
    background-position: 27% bottom;
  }
  .hero {
    padding-block: 112px 16px;
    gap: 0;
  }
  .clearing {
    height: 268px;
  }
  .fox {
    left: 42%;
    bottom: 4%;
  }
  .hero h1 {
    font-size: 48px;
    margin: 16px 0;
  }
  .hero h1 br:first-child {
    display: none;
  }
  .hero h1 br:first-child:after {
    content: " ";
  }
  .lead {
    font-size: 16px;
    line-height: 24px;
  }
  .intro .buy {
    margin-top: 24px;
  }
  .routine,
  .faq {
    padding-block: 48px;
  }
  .faq {
    gap: 24px;
  }
  h2 {
    font-size: 36px;
    line-height: 40px;
  }
  .closing {
    padding: 48px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .reveal,
  .tagline .reveal {
    opacity: 1;
    transform: none;
  }
}

.install {
  max-width: 720px;
  padding-block: 64px;
}
.install h1 {
  font-size: clamp(3rem, 6vw, 3.75rem);
}
.install section {
  margin-top: 32px;
  padding: 24px;
  background: var(--sage);
  clip-path: var(--steps);
}
.install h2 {
  font-size: 30px;
  line-height: 36px;
}
.install p,
.install ol {
  margin-block: 16px 0;
}
.install ol {
  padding-left: 24px;
}
.install li + li {
  margin-top: 12px;
}
.install section a {
  text-decoration: underline;
}
.install-start {
  display: grid;
  grid-template-columns: minmax(140px, 36%) 1fr;
  align-items: center;
  gap: 24px;
}
.guide-picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.launch-guide .guide-picture {
  width: min(100%, 320px);
  margin: 16px auto;
}
@media (max-width: 600px) {
  .install-start {
    grid-template-columns: 1fr;
  }
  .install-start .guide-picture {
    max-width: 300px;
    margin: auto;
  }
}

@media (max-width: 400px) {
  .meadow-header.wrap {
    width: calc(100% - 8px);
  }
  .meadow-header nav {
    padding-left: 4px;
  }
  .meadow-header .brand {
    gap: 4px;
  }
  .meadow-header .links .nav-buy {
    padding-inline: 8px;
  }
  .meadow-header .links a {
    padding-inline: 2px;
  }
}

/* Keep Buddy's sprite and the moving woodland behind the hero copy. */
.hero-landscape {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.falling-leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.falling-leaves i {
  position: absolute;
  top: 14%;
  left: var(--start, 79%);
  width: 10px;
  height: 12px;
  background: var(--leaf, #889353);
  clip-path: polygon(
    60% 0,
    100% 0,
    100% 45%,
    80% 45%,
    80% 68%,
    55% 68%,
    55% 85%,
    25% 85%,
    0 100%,
    0 60%,
    22% 60%,
    22% 32%,
    44% 32%,
    44% 15%,
    60% 15%
  );
  opacity: 0;
  animation: leaf-fall var(--period, 7s) linear var(--delay, 0s) infinite paused;
}
.falling-leaves i:nth-child(2) {
  --start: 93%;
  --period: 8s;
  --delay: -3s;
  --leaf: #a4a261;
}
.falling-leaves i:nth-child(3) {
  --start: 84%;
  --period: 6s;
  --delay: -4s;
}
.falling-leaves i:nth-child(4) {
  --start: 72%;
  --period: 9s;
  --delay: -6s;
  --leaf: #a89a59;
}
.falling-leaves i:nth-child(5) {
  --start: 97%;
  --period: 8s;
  --delay: -1s;
}
.in-motion .falling-leaves i {
  animation-play-state: running;
}
@keyframes leaf-fall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-20deg);
  }
  12% {
    opacity: 0.9;
  }
  32% {
    transform: translate(-4vw, 12vh) rotate(65deg);
  }
  58% {
    transform: translate(-2vw, 25vh) rotate(-20deg);
  }
  82% {
    opacity: 0.85;
    transform: translate(-6vw, 36vh) rotate(90deg);
  }
  100% {
    opacity: 0;
    transform: translate(-5vw, 44vh) rotate(135deg);
  }
}
.buddy-sprite {
  aspect-ratio: 1;
  overflow: hidden;
}
.buddy-sprite img {
  display: block;
  width: 400%;
  max-width: none;
  height: 100%;
  image-rendering: pixelated;
}
.fox img {
  animation: buddy-tail 0.8s steps(4, end) infinite;
  animation-play-state: paused;
}
.in-motion .fox img {
  animation-play-state: running;
}
@keyframes buddy-tail {
  to {
    transform: translateX(-100%);
  }
}
.scene-motion {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font:
    500 12px/16px Inter,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 12px;
}
.playground-scene {
  position: relative;
  height: clamp(354px, 55svh, 900px);
  overflow: hidden;
  container-type: size;
  background: var(--sage);
}
.buddy-panorama {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(100cqw, 300cqh);
  aspect-ratio: 3;
}
.buddy-home {
  display: block;
  width: 100%;
  height: 100%;
}
.studio-pet {
  position: absolute;
  width: clamp(130px, 16vw, 270px);
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  image-rendering: pixelated;
}
.studio-pet[data-look="bow"]::after {
  content: "";
  position: absolute;
  left: 33%;
  top: 65.5%;
  width: 33%;
  aspect-ratio: 32/15;
  background: url("assets/berry-bow.svg") center/contain no-repeat;
  pointer-events: none;
}
.accessory-thumb {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.accessory-thumb img {
  width: 100%;
}
.buddy-preview-page {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
}
.buddy-preview-page > .buddy-footer {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--edge);
  background: var(--paper);
}
.buddy-playground {
  display: grid;
  background: var(--sage);
}
.buddy-playground > section {
  display: grid;
  grid-template-rows: auto 1fr;
}
.buddy-dock {
  position: relative;
  align-self: center;
  margin-block: clamp(24px, 4vh, 64px);
  padding: clamp(20px, 3vw, 40px);
  background: var(--paper);
  clip-path: var(--steps);
}
.dock-heading {
  text-align: center;
}
.dock-heading h1 {
  margin: 0 0 4px;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.08;
}
.dock-heading p,
.studio-feedback {
  color: var(--green);
}
.studio-controls:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 24px 0 0;
}
.studio-controls fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
.studio-controls legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
}
.studio-controls label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.studio-controls input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.option-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 6px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.option-tile > img,
.look-thumb {
  display: block;
  flex: none;
  width: 44px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}
.look-thumb {
  width: 36px;
  overflow: hidden;
}
.look-thumb img {
  width: 400%;
  max-width: none;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.studio-controls label:hover .option-tile {
  background: #edf0e7;
}
.studio-controls input:checked + .option-tile {
  background: var(--sage);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.studio-controls input:focus-visible + .option-tile {
  outline: 3px solid #966020;
  outline-offset: 2px;
}
.studio-feedback {
  min-height: 20px;
  margin-top: 8px;
  font-size: 14px;
}
.meadow-header .links [aria-current="page"] {
  position: relative;
  color: var(--ink);
}
.meadow-header .links [aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
@media (max-width: 1000px) {
  .option-tile {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 700px) {
  .playground-scene {
    height: clamp(314px, 44svh, 420px);
  }

  .buddy-dock {
    padding: 20px 16px;
  }
  .studio-controls:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
  }
  .option-tile {
    flex-direction: row;
    justify-content: center;
  }
}
@media (max-width: 440px) {
  .option-tile {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .meadow-header .brand span {
    display: none;
  }
  .meadow-header nav {
    --brand-gap: 4px;
  }
  .meadow-header .links {
    gap: 4px;
  }
}
