@font-face {
  font-family: "Gentium Plus";
  src: url("assets/fonts/GentiumPlus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #30251f;
  background: #ffda72;
  --muted: #5c432c;
  --line: #a66a293f;
  --panda-red: #b34b32;
  --panda-red-dark: #963420;
  --rust: #8c351f;
  --serif: "Gentium Plus", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.icon-definitions { position: absolute; }
:focus-visible { outline: 3px solid var(--panda-red-dark); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }

.shell {
  width: min(100% - 96px, 1176px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 2;
  padding: 12px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font: 700 2rem/1 var(--serif);
  letter-spacing: -.03em;
  text-decoration: none;
}
.wordmark img { margin-right: 9px; object-fit: contain; }
.wordmark span { color: var(--rust); }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.site-header nav a { font-size: .9375rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--rust); }
.site-header .nav-download {
  padding: 10px 17px;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 70px);
  padding-block: 44px 70px;
}
.hero-copy h1 {
  font: 400 clamp(3rem, 5.4vw, 5.2rem)/.98 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-copy > p:first-of-type {
  max-width: 37ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-meta { margin-top: 14px; color: var(--muted); font-size: .875rem; line-height: 1.55; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 680;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.download-button { width: min(100%, 14.5rem); }
.site-header .nav-download, .download-button { background: var(--panda-red); color: #fffaf0; }
.site-header .nav-download:hover, .download-button:hover { background: var(--panda-red-dark); color: #fffaf0; }

.platform-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.platform-icon.windows {
  display: inline-grid;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 1.5px;
  padding: 1px;
}
.platform-icon.windows i { background: currentColor; }

.demo {
  display: grid;
  justify-items: center;
  min-width: 0;
}
.demo-art { position: relative; width: min(100%, 496px); aspect-ratio: 720 / 680; }
.hero-mugi, .demo-art iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mugi { object-fit: contain; }
.demo-art iframe { border: 0; visibility: hidden; }
.demo.is-ready .hero-mugi { visibility: hidden; }
.demo.is-ready iframe { visibility: visible; }
.demo-art iframe:focus-visible { outline-offset: -7px; border-radius: 14px; }
.demo-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.demo-keys { display: inline-flex; flex: none; gap: 4px; }
.demo-keys kbd {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #a77840;
  border-radius: 6px;
  background: #fff3ca;
  box-shadow: 0 2px 0 #b88443;
  font: 700 .85rem/1 system-ui, sans-serif;
}
.demo-hint p { color: var(--muted); font-size: .875rem; line-height: 1.3; }
.demo-hint strong { display: block; color: #30251f; font-size: .9375rem; }
.touch-hint { display: none; }
.demo-fallback { margin-top: 6px; color: var(--rust); }

@media (pointer: coarse), (max-width: 520px) {
  .typing-hint { display: none; }
  .touch-hint { display: inline; }
}

.section-heading h2 {
  font: 400 clamp(2.15rem, 4.1vw, 3.65rem)/1.04 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-heading > p { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.meet { padding-bottom: 77px; }
.meet .section-heading { margin-bottom: 26px; }
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.moment {
  overflow: hidden;
  border-radius: 14px;
  background: #ffe89f;
}
.moment-art { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 1.75; }
.moment-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.moment-type .moment-art img { object-fit: cover; transform: scale(1.34); }
.moment-nap .moment-art img { padding: 8px 4% 0; }

.pet-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: grab;
}
.pet-preview:active { cursor: grabbing; }
.pet-preview:focus-visible { outline-offset: -5px; }
.pet-artwork {
  position: absolute;
  inset: 4px 0 0;
  pointer-events: none;
  transform: translate(var(--pet-x, 0), var(--pet-lift, 0)) rotate(var(--pet-angle, 0deg));
  transform-origin: 50% 80%;
  transition: transform 220ms ease-out;
}
.pet-artwork img { transition: opacity 180ms ease-out; }
.pet-idle { opacity: calc(1 - var(--pet-response, 0)); }
.pet-relaxed { opacity: var(--pet-response, 0); }
.pet-cursor {
  position: absolute;
  top: 33%;
  left: calc(50% + min(13%, 52px));
  width: 24px;
  height: 27px;
  pointer-events: none;
  fill: #fffae6;
  stroke: #30251f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(var(--pet-cursor-x, 0)) rotate(var(--pet-cursor-angle, 9deg));
  transition: transform 220ms ease-out;
}
.pet-hand-closed, .pet-preview:active .pet-hand-open { display: none; }
.pet-preview:active .pet-hand-closed { display: inline; }
.pet-preview:is(:active, .is-petting) {
  --pet-response: 1;
  --pet-lift: -3px;
  --pet-cursor-x: -7px;
  --pet-cursor-angle: -7deg;
}
@media (hover: hover) and (pointer: fine) {
  .pet-preview:hover {
    --pet-response: 1;
    --pet-lift: -3px;
    --pet-cursor-x: -7px;
    --pet-cursor-angle: -7deg;
  }
}

.moment-copy { padding: 19px 20px 23px; }
.moment-copy h3, .download-card h3 { font: 700 1.65rem/1.13 var(--serif); }
.moment-copy p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; }

.download-section {
  padding-block: 60px 0;
  border-top: 1px solid var(--line);
}
.download-section .section-heading { margin-bottom: 26px; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.download-card {
  border-radius: 14px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff1c2;
}
.download-card-title { display: flex; align-items: center; gap: 13px; }
.download-card-title p { margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.download-card-title > .platform-icon { width: 24px; height: 24px; }
.download-card > .download-button { margin-top: 18px; }
.setup-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 18px 0 0 1.35rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.5;
}
.setup-steps li { padding-left: .28em; }
.setup-steps li::marker { color: var(--rust); font-weight: 700; }
.permission-preview {
  max-width: 320px;
  margin-top: 10px;
  border-radius: 9px;
  background: #fffaf0;
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.35;
}
.permission-title { padding: 8px 11px; border-bottom: 1px solid #ddd0af; font-weight: 650; }
.permission-row { display: flex; align-items: center; gap: 8px; padding: 9px 11px; }
.permission-row img { flex: none; }
.permission-on { display: flex; align-items: center; gap: 5px; margin-left: auto; color: var(--rust); font-weight: 650; }
.permission-on i { width: 28px; height: 16px; border-radius: 12px; background: var(--panda-red); }
.permission-on i::after { content: ""; display: block; width: 12px; height: 12px; margin: 2px 2px 2px auto; border-radius: 50%; background: #fffaf0; }
.setup-help { margin-top: 5px; border: 0; }
.setup-help summary {
  width: fit-content;
  min-height: 32px;
  padding-block: 3px;
  color: var(--rust);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.setup-help summary::after { content: none; }
.setup-help p { padding: 0 0 9px; font-size: .875rem; }

.questions { display: grid; grid-template-columns: 1fr 1.38fr; gap: 30px; padding-block: 76px; }
.faq { border-top: 1px solid var(--line); min-width: 0; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  min-height: 55px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #3b2c24;
  font-size: 1rem;
  font-weight: 670;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  padding-block: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: linear-gradient(var(--rust), var(--rust)) center / 12px 2px no-repeat,
    linear-gradient(var(--rust), var(--rust)) center / 2px 12px no-repeat;
}
details[open] summary::after { background-size: 12px 2px, 0 0; }
details p { max-width: 62ch; padding: 0 23px 17px 0; color: var(--muted); line-height: 1.6; }

.site-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer .wordmark { color: #30251f; font-size: 1.65rem; }
.site-footer > a:last-child { margin-left: auto; font-weight: 650; text-underline-offset: 3px; }

@media (max-width: 990px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 25px; padding-block: 42px 61px; }
  .hero-copy h1 { font-size: clamp(3rem, 6vw, 4.55rem); }
  .hero-actions .button { padding-inline: 13px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 44px); }
  .site-header { min-height: 68px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 39px 52px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 10vw, 5rem); }
  .hero-copy > p:first-of-type { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-meta { margin-top: 11px; }
  .demo-art { width: min(100%, 460px); }
  .meet { padding-bottom: 52px; }
  .moments { gap: 10px; }
  .moment-copy { padding: 13px; }
  .moment-copy h3 { font-size: 1.35rem; }
  .download-section { padding-top: 43px; }
  .questions { grid-template-columns: 1fr; gap: 22px; padding-block: 52px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .site-header { gap: 7px; }
  .site-header .wordmark { font-size: 1.65rem; }
  .site-header .wordmark img { width: 29px; height: 29px; margin-right: 5px; }
  .site-header nav { gap: clamp(8px, 2.5vw, 14px); }
  .site-header nav a { font-size: .875rem; }
  .site-header .nav-download { padding-inline: 10px; }
  .hero { padding-top: 36px; }
  .hero-copy h1 { font-size: clamp(2.75rem, 11.5vw, 3.8rem); }
  .demo-hint { gap: 10px; }
  .moments, .downloads { grid-template-columns: 1fr; gap: 12px; }
  .moment { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .moment-art { aspect-ratio: auto; }
  .moment-copy { padding: 13px 12px; align-self: center; }
  .moment-copy p { line-height: 1.42; }
  .site-footer { flex-wrap: wrap; gap: 9px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet-artwork, .pet-cursor { transform: none; transition: none; }
  .pet-artwork img { transition: none; }
}
