/*
 * NekoAPI crayon fat-cat theme.
 * Static overlay for the exported site: no route, API, or app logic changes.
 */

:root {
  --crayon-ink: #4f2f22;
  --crayon-muted: #7b6657;
  --crayon-paper: #fff6df;
  --crayon-paper-deep: #f8dfaa;
  --crayon-card: rgba(255, 250, 232, 0.92);
  --crayon-orange: #e98231;
  --crayon-orange-dark: #a84f22;
  --crayon-red: #e86460;
  --crayon-blue: #4f93cb;
  --crayon-green: #7fa95a;
  --crayon-line: rgba(96, 56, 31, 0.28);
  --crayon-shadow: rgba(105, 65, 32, 0.16);
  --crayon-radius: 18px 23px 17px 26px;
}

html {
  background: var(--crayon-paper);
}

.crayon-site {
  min-height: 100vh;
  color: var(--crayon-ink) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 206, 91, 0.18) 0 9%, transparent 10%),
    radial-gradient(circle at 82% 12%, rgba(232, 100, 96, 0.12) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 82%, rgba(79, 147, 203, 0.12) 0 10%, transparent 11%),
    repeating-linear-gradient(100deg, rgba(125, 83, 45, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #fff8e8 0%, #fdeabc 48%, #fff4df 100%) !important;
}

.crayon-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background: url("/neko-assets/crayon/paper-texture.webp") center / 720px auto repeat;
  mix-blend-mode: multiply;
}

.crayon-site > main,
.crayon-site > div {
  position: relative;
  z-index: 1;
}

.crayon-site,
.crayon-site main {
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif !important;
}

.crayon-site main {
  overflow: hidden;
  color: var(--crayon-ink) !important;
  background: transparent !important;
}

.crayon-site main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.44;
  background:
    linear-gradient(90deg, rgba(105, 65, 32, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(105, 65, 32, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.crayon-site main::after {
  content: "";
  position: fixed;
  right: clamp(12px, 3vw, 44px);
  bottom: clamp(12px, 3vw, 32px);
  z-index: 20;
  width: clamp(72px, 10vw, 132px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/avatar-fat-cat.webp") center / contain no-repeat;
  border: 3px solid rgba(111, 72, 45, 0.32);
  border-radius: 36% 44% 38% 45%;
  box-shadow: 0 14px 30px rgba(95, 52, 27, 0.18);
  transform: rotate(4deg);
}

.crayon-site header {
  border-bottom: 3px solid rgba(93, 57, 35, 0.22) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 207, 0.86)),
    repeating-linear-gradient(0deg, rgba(157, 111, 56, 0.04) 0 1px, transparent 1px 7px) !important;
  box-shadow: 0 8px 24px rgba(120, 75, 34, 0.12);
  backdrop-filter: blur(10px);
}

.crayon-site header img,
.crayon-site footer img {
  filter: drop-shadow(0 4px 0 rgba(103, 63, 32, 0.12));
}

.crayon-site nav a,
.crayon-site header span,
.crayon-site a {
  color: var(--crayon-ink) !important;
}

.crayon-site nav a:hover {
  color: var(--crayon-orange-dark) !important;
}

.crayon-site a[href="/login"],
.crayon-site a[href="/docs"],
.crayon-site button {
  border-radius: 16px 20px 14px 22px !important;
}

.crayon-site a[href="/login"] {
  color: #fffaf1 !important;
  border: 2px solid rgba(91, 48, 22, 0.35) !important;
  background:
    repeating-linear-gradient(-12deg, rgba(255, 255, 255, 0.16) 0 4px, transparent 4px 10px),
    var(--crayon-orange) !important;
  box-shadow: 0 5px 0 var(--crayon-orange-dark), 0 16px 26px rgba(224, 122, 49, 0.24) !important;
}

.crayon-site a[href="/docs"] {
  color: var(--crayon-ink) !important;
  border: 2px dashed rgba(109, 67, 38, 0.52) !important;
  background: rgba(255, 253, 242, 0.78) !important;
}

.crayon-site section {
  background: transparent !important;
}

.crayon-site section:not(:first-of-type) {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem) !important;
}

.crayon-site section:not(:first-of-type)::before {
  content: "";
  position: absolute;
  inset: 18px clamp(10px, 2vw, 32px);
  z-index: -1;
  border: 2px solid rgba(92, 58, 38, 0.12);
  border-radius: 38px 28px 44px 30px;
  background:
    radial-gradient(circle at 5% 12%, rgba(232, 100, 96, 0.08), transparent 15%),
    radial-gradient(circle at 96% 76%, rgba(79, 147, 203, 0.1), transparent 18%),
    rgba(255, 251, 232, 0.58);
  transform: rotate(-0.35deg);
}

.crayon-site h1,
.crayon-site h2,
.crayon-site h3,
.crayon-site h4 {
  color: var(--crayon-ink) !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.crayon-site h1,
.crayon-site h2,
.crayon-site .neko-title {
  font-family: "Segoe Print", "Microsoft YaHei", "Trebuchet MS", system-ui, sans-serif !important;
  text-shadow: 0 3px 0 rgba(255, 205, 103, 0.42);
}

.crayon-site p,
.crayon-site li,
.crayon-site td,
.crayon-site th,
.crayon-site summary,
.crayon-site [class*="text-slate"],
.crayon-site [class*="text-gray"] {
  color: var(--crayon-muted) !important;
}

.crayon-site [class~="text-white"],
.crayon-site [class~="text-slate-100"],
.crayon-site [class~="text-slate-200"],
.crayon-site [class~="text-slate-300"] {
  color: var(--crayon-ink) !important;
}

.page-home main > section:first-of-type {
  min-height: 100svh;
  padding-top: clamp(7rem, 13vw, 11rem) !important;
  padding-bottom: clamp(4rem, 7vw, 7rem) !important;
  background:
    radial-gradient(ellipse at 20% 18%, rgba(255, 201, 93, 0.35), transparent 36%),
    radial-gradient(ellipse at 85% 22%, rgba(232, 100, 96, 0.14), transparent 32%) !important;
}

.page-home .neko-grid {
  opacity: 0.28 !important;
  background-image:
    linear-gradient(90deg, rgba(126, 78, 42, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(126, 78, 42, 0.1) 1px, transparent 1px) !important;
  background-size: 36px 36px !important;
}

.page-home .neko-glow {
  display: none !important;
}

.page-home main > section:first-of-type .grid {
  align-items: center !important;
}

.page-home main > section:first-of-type .grid > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.page-home main > section:first-of-type .grid > div:first-child::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -28px;
  z-index: -1;
  width: 82px;
  height: 82px;
  background:
    radial-gradient(circle, transparent 34%, var(--crayon-orange) 36% 42%, transparent 44%),
    conic-gradient(from 12deg, var(--crayon-orange) 0 8deg, transparent 8deg 28deg);
  border-radius: 50%;
  opacity: 0.6;
  transform: rotate(-12deg);
}

.page-home main > section:first-of-type .grid > div:first-child::after {
  display: none;
}

.page-home main > section:first-of-type .grid > div:nth-child(2) {
  position: relative;
  min-height: clamp(430px, 42vw, 620px);
  align-items: center !important;
  justify-content: center !important;
  isolation: isolate;
}

.page-home main > section:first-of-type .grid > div:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 237, 0.5), rgba(255, 232, 175, 0.18)),
    url("/neko-assets/crayon/hero-fat-cat.webp") center / contain no-repeat;
  border: 3px solid rgba(103, 63, 32, 0.18);
  border-radius: 36px 28px 46px 32px;
  clip-path: inset(0 round 36px 28px 46px 32px);
  box-shadow: 0 20px 42px rgba(119, 74, 35, 0.18);
  transform: rotate(1.3deg);
}

.page-home .code-panel {
  position: absolute !important;
  left: 0;
  bottom: 10px;
  z-index: 4;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: 390px !important;
  min-width: 390px !important;
  max-width: 390px !important;
  height: 392px !important;
  min-height: 392px !important;
  max-height: 392px !important;
  overflow: hidden !important;
  contain: layout paint;
  border: 3px solid rgba(83, 49, 30, 0.5) !important;
  border-radius: 21px 15px 24px 18px !important;
  background:
    repeating-linear-gradient(-7deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px),
    rgba(59, 37, 26, 0.98) !important;
  box-shadow: 0 18px 38px rgba(84, 52, 28, 0.28), 0 0 0 7px rgba(255, 245, 214, 0.26) !important;
  transform: rotate(-2deg);
  opacity: 1;
}

.page-home .code-panel > div:first-child,
.crayon-site pre,
.crayon-site code {
  background: rgba(96, 62, 39, 0.88) !important;
  color: #fff4d7 !important;
  border-color: rgba(61, 35, 20, 0.3) !important;
}

.page-home .code-panel > div:last-child {
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  color: #fff4d7 !important;
  background:
    radial-gradient(circle at 14px 14px, rgba(255, 219, 133, 0.14), transparent 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 30px),
    rgba(49, 31, 24, 0.98) !important;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.78;
  text-shadow: 0 1px 0 rgba(26, 14, 8, 0.85);
}

.page-home .code-panel *,
.page-home .code-panel [class*="text-slate"],
.page-home .code-panel [class*="text-gray"],
.page-home .code-panel [class*="text-white"] {
  color: #fff2c4 !important;
  opacity: 1 !important;
}

.page-home .code-panel > div:first-child {
  flex: 0 0 48px !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  background:
    linear-gradient(180deg, rgba(90, 62, 49, 0.96), rgba(58, 38, 28, 0.98)) !important;
}

.page-home .code-panel > div:first-child > div:last-child {
  color: rgba(255, 228, 171, 0.82) !important;
}

.page-home .code-panel p {
  display: block;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.terminal-cursor {
  background: #ffe082 !important;
  box-shadow: 0 0 0 3px rgba(255, 224, 130, 0.22) !important;
}

.page-home #features .grid > div::before,
.page-home #pricing .grid > div::before {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -28px;
  z-index: 0;
  width: clamp(88px, 9vw, 130px);
  aspect-ratio: 1;
  pointer-events: none;
  background: center / contain no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
}

.page-home #features .grid > div > *,
.page-home #pricing .grid > div > * {
  position: relative;
  z-index: 1;
}

.page-home #features .grid > div:nth-child(1)::before {
  background-image: url("/neko-assets/crayon/sticker-paw.webp");
}

.page-home #features .grid > div:nth-child(2)::before {
  background-image: url("/neko-assets/crayon/sticker-keyboard.webp");
}

.page-home #features .grid > div:nth-child(3)::before {
  background-image: url("/neko-assets/crayon/sticker-fish.webp");
}

.page-home #pricing .grid > div:nth-child(1)::before {
  background-image: url("/neko-assets/crayon/sticker-fish.webp");
}

.page-home #pricing .grid > div:nth-child(2)::before {
  background-image: url("/neko-assets/crayon/sticker-paw.webp");
}

.page-home #docs .mx-auto.max-w-4xl {
  position: relative;
}

.page-home #docs .mx-auto.max-w-4xl::after {
  content: "";
  position: absolute;
  right: clamp(-44px, -4vw, -18px);
  top: -70px;
  z-index: 2;
  width: clamp(80px, 10vw, 128px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-terminal.webp") center / contain no-repeat;
  opacity: 0.72;
  transform: rotate(7deg);
}

.crayon-site .rounded-xl,
.crayon-site .rounded-2xl,
.crayon-site [class*="rounded-lg"],
.crayon-site details,
.crayon-site table,
.crayon-site pre {
  border-radius: var(--crayon-radius) !important;
}

.crayon-site .border,
.crayon-site [class*="border-slate"],
.crayon-site [class*="border-gray"] {
  border-color: var(--crayon-line) !important;
}

.crayon-site [class*="bg-slate"],
.crayon-site [class*="bg-[#020617]"],
.crayon-site [class*="bg-[#1a1a1a]"],
.crayon-site [class*="bg-[#0d1117]"] {
  background-color: var(--crayon-card) !important;
  background-image:
    repeating-linear-gradient(-8deg, rgba(138, 86, 42, 0.045) 0 2px, transparent 2px 9px) !important;
}

.crayon-site .grid > div[class*="rounded"],
.crayon-site .space-y-4 > details,
.crayon-site table,
.crayon-site pre {
  border: 2px solid var(--crayon-line) !important;
  box-shadow: 0 14px 28px var(--crayon-shadow) !important;
}

.crayon-site .grid > div[class*="rounded"] {
  position: relative;
  overflow: hidden;
}

.crayon-site .grid > div[class*="rounded"]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 12px;
  width: 54px;
  height: 20px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(232, 100, 96, 0.55) 10% 25%, transparent 25% 40%, rgba(79, 147, 203, 0.5) 40% 58%, transparent 58% 72%, rgba(127, 169, 90, 0.48) 72% 86%, transparent 86%);
  border-radius: 999px;
  opacity: 0.5;
  transform: rotate(7deg);
}

.crayon-site svg {
  color: var(--crayon-orange-dark) !important;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 0 rgba(255, 210, 124, 0.55));
}

.crayon-site table {
  overflow: hidden;
  background: rgba(255, 252, 239, 0.82) !important;
}

.crayon-site thead tr {
  background: rgba(255, 221, 143, 0.35) !important;
}

.crayon-site tbody tr:nth-child(odd) {
  background: rgba(255, 247, 220, 0.42) !important;
}

.crayon-site th,
.crayon-site td {
  border-color: rgba(101, 62, 36, 0.18) !important;
}

.crayon-site [class*="bg-[#d97757]"],
.crayon-site [class*="bg-[#d97757]/"] {
  background-color: rgba(232, 130, 49, 0.18) !important;
}

.crayon-site [class*="text-[#d97757]"],
.crayon-site [class*="text-[#f59e0b]"],
.crayon-site [class*="text-[#f5e0c3]"] {
  color: var(--crayon-orange-dark) !important;
}

.crayon-site footer {
  background:
    linear-gradient(180deg, rgba(255, 245, 211, 0.72), rgba(246, 213, 153, 0.78)) !important;
  border-top: 3px dashed rgba(103, 63, 32, 0.24) !important;
}

.page-docs main,
.page-faq main,
.page-404 main {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 202, 93, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 248, 226, 0.85), rgba(252, 231, 184, 0.62)) !important;
}

.page-docs main > section:first-of-type,
.page-faq main > section:first-of-type,
.page-404 main > section:first-of-type {
  padding-top: clamp(7rem, 12vw, 10rem) !important;
}

.page-docs main > section:first-of-type::after,
.page-faq main > section:first-of-type::after {
  content: "";
  display: block;
  width: min(720px, calc(100vw - 40px));
  aspect-ratio: 1672 / 941;
  margin: 2rem auto 0;
  border: 3px solid rgba(103, 63, 32, 0.18);
  border-radius: 34px 24px 38px 28px;
  background: url("/neko-assets/crayon/docs-cat-1.webp") center / cover no-repeat;
  box-shadow: 0 18px 38px rgba(100, 63, 33, 0.17);
  transform: rotate(-1deg);
}

.page-faq main > section:first-of-type::after {
  width: min(520px, calc(100vw - 40px));
  aspect-ratio: 1448 / 1086;
  background-image: url("/neko-assets/crayon/faq-404-cat.webp");
  background-size: cover;
  background-color: rgba(255, 251, 236, 0.76);
}

.crayon-site details {
  background: rgba(255, 252, 239, 0.88) !important;
  border: 2px solid rgba(103, 63, 32, 0.22) !important;
}

.crayon-site summary {
  color: var(--crayon-ink) !important;
}

.crayon-site pre {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 30px),
    rgba(86, 55, 36, 0.92) !important;
  border: 2px solid rgba(64, 38, 23, 0.35) !important;
}

.crayon-site pre code {
  background: transparent !important;
}

.page-faq summary code {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  color: var(--crayon-orange-dark) !important;
  background:
    repeating-linear-gradient(-8deg, rgba(232, 130, 49, 0.12) 0 2px, transparent 2px 8px),
    rgba(255, 239, 205, 0.72) !important;
  border: 1px solid rgba(132, 78, 41, 0.18);
  border-radius: 9px 12px 8px 11px;
}

.page-docs main > div[class*="h-screen"] > div:last-child {
  position: relative;
}

.page-docs main > div[class*="h-screen"] > div:last-child::before {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 86px);
  top: clamp(92px, 13vh, 148px);
  z-index: -1;
  width: min(360px, 32vw);
  aspect-ratio: 1672 / 941;
  opacity: 0.42;
  background: url("/neko-assets/crayon/docs-cat-2.webp") center / cover no-repeat;
  border: 3px solid rgba(103, 63, 32, 0.14);
  border-radius: 28px 22px 34px 24px;
  box-shadow: 0 16px 34px rgba(100, 63, 33, 0.12);
  transform: rotate(2deg);
}

.page-docs main::after {
  width: clamp(120px, 16vw, 240px);
  aspect-ratio: 1672 / 941;
  background: url("/neko-assets/crayon/docs-cat-1.webp") center / cover no-repeat;
  border-radius: 28px 22px 34px 24px;
  opacity: 0.82;
}

.page-404 .crayon-404-actions {
  position: fixed;
  left: 50%;
  top: calc(50% + 72px);
  z-index: 2;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  min-width: min(360px, calc(100vw - 40px));
  padding: 0.75rem;
  color: var(--crayon-ink);
  font-weight: 700;
  background:
    repeating-linear-gradient(-10deg, rgba(232, 130, 49, 0.16) 0 4px, transparent 4px 10px),
    rgba(255, 249, 226, 0.9);
  border: 2px dashed rgba(103, 63, 32, 0.34);
  border-radius: 18px 23px 16px 24px;
  box-shadow: 0 12px 24px rgba(95, 52, 27, 0.14);
  transform: translateX(-50%) rotate(-1deg);
}

.page-404 .crayon-404-actions a {
  display: inline-flex;
  min-width: 118px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  color: var(--crayon-ink) !important;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(103, 63, 32, 0.18);
  border-radius: 13px 17px 12px 16px;
  background: rgba(255, 252, 238, 0.72);
}

.page-404 .crayon-404-actions a[href="/login"] {
  color: #fffaf1 !important;
  background:
    repeating-linear-gradient(-12deg, rgba(255, 255, 255, 0.16) 0 4px, transparent 4px 10px),
    var(--crayon-orange);
  box-shadow: 0 4px 0 var(--crayon-orange-dark);
}

.page-404 .crayon-404-actions a:hover {
  color: var(--crayon-orange-dark) !important;
}

.page-404::before {
  content: "";
  position: fixed;
  left: 50%;
  top: calc(50% - 132px);
  z-index: 0;
  width: min(430px, 82vw);
  aspect-ratio: 1448 / 1086;
  background: url("/neko-assets/crayon/faq-404-cat.webp") center / cover no-repeat;
  border: 3px solid rgba(103, 63, 32, 0.18);
  border-radius: 34px 24px 38px 28px;
  box-shadow: 0 18px 40px rgba(95, 52, 27, 0.18);
  opacity: 0.72;
  transform: translate(-50%, -100%) rotate(-3deg);
}

.page-404 > div,
.page-404 #__next,
.page-404 main {
  position: relative;
  z-index: 1;
}

/* Second-pass art direction: make every supplied crayon asset earn a real place. */
.crayon-site::after {
  content: "";
  position: fixed;
  left: clamp(18px, 4vw, 58px);
  bottom: clamp(16px, 4vw, 42px);
  z-index: 18;
  width: clamp(86px, 10vw, 146px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-lines.webp") center / contain no-repeat;
  opacity: 0.34;
  mix-blend-mode: multiply;
  transform: rotate(-10deg);
}

.crayon-site header {
  overflow: visible;
}

.crayon-site header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px;
  z-index: -1;
  width: min(560px, 42vw);
  aspect-ratio: 2.3;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-lines.webp") center / contain no-repeat;
  opacity: 0.16;
  mix-blend-mode: multiply;
  transform: translateX(-50%) rotate(1.5deg);
}

.crayon-site header img[src="/neko-assets/logo.png"],
.crayon-site footer img[src="/neko-assets/logo.png"] {
  background: rgba(255, 253, 243, 0.86);
  border: 2px solid rgba(103, 63, 32, 0.16);
  border-radius: 38% 45% 36% 44%;
  box-shadow: 0 6px 0 rgba(190, 127, 54, 0.14);
  transform: rotate(-2deg);
}

.crayon-site footer {
  position: relative;
  overflow: hidden;
}

.crayon-site footer::before {
  content: "";
  position: absolute;
  right: clamp(32px, 8vw, 132px);
  bottom: -24px;
  z-index: 0;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/avatar-fat-cat.webp") center / contain no-repeat;
  border: 3px solid rgba(103, 63, 32, 0.14);
  border-radius: 36% 44% 38% 45%;
  opacity: 0.42;
  transform: rotate(5deg);
}

.crayon-site footer > * {
  position: relative;
  z-index: 1;
}

.page-home main > section:first-of-type .grid > div:nth-child(2)::after {
  content: "";
  position: absolute;
  right: clamp(4px, 2vw, 28px);
  top: clamp(28px, 6vw, 72px);
  z-index: 3;
  width: clamp(92px, 10vw, 142px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-lines.webp") center / contain no-repeat;
  opacity: 0.42;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 18px rgba(100, 61, 34, 0.12));
  transform: rotate(13deg);
}

.page-home #features::after,
.page-home #pricing::after,
.page-home #docs::before,
.page-home main > section:nth-of-type(6)::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: center / contain no-repeat;
}

.page-home #features::after {
  right: clamp(24px, 5vw, 86px);
  top: clamp(30px, 5vw, 72px);
  width: clamp(130px, 15vw, 230px);
  aspect-ratio: 1;
  background-image: url("/neko-assets/crayon/avatar-fat-cat.webp");
  border: 3px solid rgba(103, 63, 32, 0.13);
  border-radius: 34% 44% 38% 46%;
  box-shadow: 0 18px 30px rgba(95, 52, 27, 0.12);
  opacity: 0.34;
  transform: rotate(7deg);
}

.page-home main > section:nth-of-type(3)::after {
  content: "";
  position: absolute;
  left: clamp(28px, 6vw, 110px);
  bottom: clamp(22px, 6vw, 90px);
  width: clamp(120px, 14vw, 220px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-chat.webp") center / contain no-repeat;
  opacity: 0.34;
  transform: rotate(-9deg);
}

.page-home #pricing::after {
  left: clamp(28px, 7vw, 120px);
  top: clamp(58px, 8vw, 118px);
  width: clamp(94px, 10vw, 150px);
  aspect-ratio: 1;
  background-image: url("/neko-assets/crayon/sticker-fish.webp");
  opacity: 0.52;
  transform: rotate(-14deg);
}

.page-home #pricing .grid > div:nth-child(1)::after {
  background-image: url("/neko-assets/crayon/sticker-terminal.webp");
  background-size: contain;
  width: 78px;
  height: 78px;
  top: auto;
  right: 18px;
  bottom: 18px;
  opacity: 0.22;
}

.page-home #pricing .grid > div:nth-child(2)::after {
  background-image: url("/neko-assets/crayon/sticker-keyboard.webp");
  background-size: contain;
  width: 84px;
  height: 84px;
  top: auto;
  right: 16px;
  bottom: 16px;
  opacity: 0.2;
}

.page-home #docs {
  overflow: hidden;
}

.page-home #docs::before {
  left: clamp(22px, 5vw, 84px);
  top: clamp(44px, 7vw, 92px);
  z-index: 0;
  width: min(360px, 28vw);
  aspect-ratio: 1792 / 1024;
  background-image: url("/neko-assets/crayon/docs-cat.webp");
  border: 3px solid rgba(103, 63, 32, 0.16);
  border-radius: 30px 22px 36px 24px;
  box-shadow: 0 18px 34px rgba(95, 52, 27, 0.12);
  opacity: 0.58;
  transform: rotate(-3deg);
}

.page-home #docs > * {
  position: relative;
  z-index: 1;
}

.page-home #docs .mx-auto.max-w-4xl::before {
  content: "";
  position: absolute;
  left: clamp(-44px, -4vw, -18px);
  bottom: -64px;
  z-index: 2;
  width: clamp(116px, 12vw, 178px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-lines.webp") center / contain no-repeat;
  opacity: 0.36;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
}

.page-home main > section:nth-of-type(6)::after {
  right: clamp(20px, 5vw, 86px);
  top: clamp(90px, 12vw, 150px);
  width: clamp(124px, 16vw, 238px);
  aspect-ratio: 1448 / 1086;
  background-image: url("/neko-assets/crayon/faq-404-cat.webp");
  border: 3px solid rgba(103, 63, 32, 0.13);
  border-radius: 30px 22px 36px 24px;
  box-shadow: 0 18px 34px rgba(95, 52, 27, 0.12);
  opacity: 0.34;
  transform: rotate(4deg);
}

.page-docs main > div[class*="h-screen"]::before {
  content: "";
  position: fixed;
  right: clamp(22px, 5vw, 96px);
  top: 112px;
  z-index: 0;
  width: min(430px, 30vw);
  aspect-ratio: 1792 / 1024;
  pointer-events: none;
  background: url("/neko-assets/crayon/docs-cat.webp") center / cover no-repeat;
  border: 3px solid rgba(103, 63, 32, 0.12);
  border-radius: 34px 24px 38px 28px;
  box-shadow: 0 18px 38px rgba(100, 63, 33, 0.12);
  opacity: 0.22;
  transform: rotate(3deg);
}

.page-docs main > div[class*="h-screen"] > aside {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 205, 103, 0.22), transparent 26%),
    rgba(255, 250, 231, 0.88) !important;
  border-right: 2px dashed rgba(103, 63, 32, 0.2) !important;
}

.page-docs main > div[class*="h-screen"] > aside::after {
  content: "";
  position: sticky;
  display: block;
  left: 24px;
  bottom: 24px;
  width: min(160px, 70%);
  aspect-ratio: 1;
  margin: 1.25rem auto 0;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-keyboard.webp") center / contain no-repeat;
  opacity: 0.38;
  transform: rotate(-6deg);
}

.page-docs main > div[class*="h-screen"] > div:last-child article,
.page-docs main > div[class*="h-screen"] > div:last-child .prose {
  position: relative;
}

.page-docs h1::after,
.page-faq h1::after,
.page-home #pricing h2::after,
.page-home #docs h2::after {
  content: "";
  display: block;
  width: min(190px, 42vw);
  height: 12px;
  margin: 0.55rem auto 0;
  background:
    radial-gradient(ellipse at 12% 50%, rgba(232, 100, 96, 0.65) 0 7px, transparent 8px),
    linear-gradient(90deg, rgba(232, 100, 96, 0.58), rgba(247, 166, 52, 0.64) 36%, rgba(79, 147, 203, 0.54) 72%, transparent);
  border-radius: 999px 70% 999px 60%;
  opacity: 0.52;
  transform: rotate(-1deg);
}

.page-docs h1::after {
  margin-left: 0;
  opacity: 0.44;
}

.page-faq main > div[class*="overflow-hidden"] {
  position: relative;
}

.page-faq main > div[class*="overflow-hidden"]::before {
  content: "";
  position: absolute;
  right: clamp(24px, 6vw, 110px);
  top: 118px;
  z-index: 0;
  width: min(430px, 30vw);
  aspect-ratio: 1448 / 1086;
  pointer-events: none;
  background: url("/neko-assets/crayon/faq-404-cat.webp") center / cover no-repeat;
  border: 3px solid rgba(103, 63, 32, 0.15);
  border-radius: 34px 24px 38px 28px;
  box-shadow: 0 18px 38px rgba(100, 63, 33, 0.13);
  opacity: 0.46;
  transform: rotate(4deg);
}

.page-faq main > div[class*="overflow-hidden"]::after {
  content: "";
  position: absolute;
  left: clamp(26px, 6vw, 110px);
  top: 260px;
  z-index: 0;
  width: clamp(104px, 11vw, 168px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/neko-assets/crayon/sticker-chat.webp") center / contain no-repeat;
  opacity: 0.34;
  transform: rotate(-8deg);
}

.page-faq main > div[class*="overflow-hidden"] > * {
  z-index: 1;
}

.page-faq details:nth-of-type(3n + 1)::before,
.page-faq details:nth-of-type(3n + 2)::before,
.page-faq details:nth-of-type(3n)::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 58px;
  aspect-ratio: 1;
  pointer-events: none;
  background: center / contain no-repeat;
  opacity: 0.16;
  transform: rotate(8deg);
}

.page-faq details:nth-of-type(3n + 1)::before {
  background-image: url("/neko-assets/crayon/sticker-paw.webp");
}

.page-faq details:nth-of-type(3n + 2)::before {
  background-image: url("/neko-assets/crayon/sticker-fish.webp");
}

.page-faq details:nth-of-type(3n)::before {
  background-image: url("/neko-assets/crayon/sticker-terminal.webp");
}

.page-faq footer::before {
  opacity: 0.5;
  width: clamp(118px, 16vw, 190px);
}

.crayon-site .grid > div[class*="rounded"]::after {
  background: url("/neko-assets/crayon/sticker-lines.webp") center / contain no-repeat;
  width: 78px;
  height: 54px;
  opacity: 0.22;
  mix-blend-mode: multiply;
  transform: rotate(9deg);
}

@media (max-width: 900px) {
  .crayon-site main::after {
    display: none;
  }

  .page-home main > section:first-of-type .grid > div:nth-child(2) {
    min-height: 440px;
    margin-top: 1rem;
  }

  .page-home .code-panel {
    left: 50%;
    bottom: 0;
    width: min(300px, 88%) !important;
    min-width: min(300px, 88%) !important;
    max-width: min(300px, 88%) !important;
    height: 344px !important;
    min-height: 344px !important;
    max-height: 344px !important;
    transform: translateX(-50%) rotate(-1.5deg);
  }

  .page-home .code-panel > div:first-child {
    flex-basis: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding-inline: 1rem !important;
  }

  .page-home .code-panel > div:last-child {
    padding: 1rem !important;
    font-size: 0.86rem;
    line-height: 1.62;
  }

  .page-docs main > div[class*="h-screen"] > div:last-child::before {
    display: none;
  }

  .page-home main > section:first-of-type .grid > div:first-child::after,
  .page-home #docs .mx-auto.max-w-4xl::after {
    display: none;
  }

  .page-404::before {
    top: calc(50% - 150px);
    width: min(320px, 80vw);
    opacity: 0.64;
  }
}

@media (max-width: 640px) {
  .crayon-site header {
    position: sticky !important;
  }

  .page-home main > section:first-of-type {
    padding-top: 5.5rem !important;
  }

  .page-home main > section:first-of-type .grid > div:nth-child(2) {
    min-height: 370px;
  }

  .page-home main > section:first-of-type .grid > div:nth-child(2)::before {
    border-radius: 24px 18px 30px 20px;
  }

  .page-home .code-panel {
    display: none !important;
  }

  .page-404 .crayon-404-actions {
    top: calc(50% + 102px);
    width: min(292px, calc(100vw - 48px));
    min-width: 0;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .page-404 .crayon-404-actions a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0.5rem 0.55rem;
    font-size: 0.92rem;
  }

  .page-404::before {
    top: calc(50% - 158px);
    width: min(270px, 78vw);
  }

  .crayon-site section:not(:first-of-type)::before {
    inset: 8px 8px;
  }

  .crayon-site table {
    font-size: 0.85rem;
  }
}
