/* hoardkin.com. Layout: one centred column (max 1040px); the home page opens
   on the wisp blue with Niuniu walking along its lower edge, then plain
   sections on paper. System fonts only: the site loads nothing from elsewhere. */
:root {
  --wisp-blue: #3b6fd8;
  --wisp-blue-deep: #2b56b3;
  --cream: #f7f1e6;
  --ink: #1f2330;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --muted: #5c6272;
  --line: #e4e1d8;
  --accent: #2b56b3;
  --ok: #217a4b;
  --warn-bg: #fbf0dc;
  --warn: #8a5a00;
  --code-bg: #f1eee6;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e9ee;
    --paper: #14161c;
    --surface: #1b1e26;
    --muted: #a0a6b4;
    --line: #2c303b;
    --accent: #8eb0f5;
    --ok: #6fd3a0;
    --warn-bg: #352812;
    --warn: #f0be6c;
    --code-bg: #232733;
    --wisp-blue: #2e5bb8;
    --wisp-blue-deep: #24498f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { margin: 0 0 16px; padding: 12px 16px; background: var(--code-bg); border-radius: 8px; overflow-x: auto; }
pre code { padding: 0; background: none; font-size: .9em; overflow-wrap: normal; white-space: pre; }
/* Prompts to copy: long single lines, wrapped so they can be read whole. */
.doc pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.doc td code { white-space: nowrap; }
.doc td code:not(:only-child), .doc td:not(:first-child) code { white-space: normal; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; }
.brand small { font-weight: 400; color: var(--muted); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.site-head nav a { white-space: nowrap; }
.site-head nav a { color: inherit; text-decoration: none; opacity: .85; }
.site-head nav a:hover { opacity: 1; text-decoration: underline; }
.on-blue .site-head, .on-blue .site-head .brand small { color: var(--cream); }
.site-head .langs { display: flex; gap: 10px; font-size: 13px; }
.site-head .langs a { color: inherit; text-decoration: none; opacity: .6; }
.site-head .langs a:hover { opacity: 1; }
.site-head .langs a[aria-current] { opacity: 1; font-weight: 600; }

/* Home: the blue opener */
.hero { background: var(--wisp-blue); color: var(--cream); position: relative; overflow: hidden; }
.hero .wrap { padding-block: 40px 150px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 56px); line-height: 1.2; margin: 0 0 18px; text-wrap: balance; letter-spacing: .02em; }
.hero p.lede { font-size: 18px; margin: 0 0 28px; max-width: 34em; opacity: .92; }
.hero { transition: background-color .45s ease; }
.hero[data-tone="night"] { background: #1e2a4a; }
.hero[data-tone="coral"] { background: #d9553a; }
.wisp-stage { justify-self: center; display: grid; justify-items: center; gap: 6px; width: min(280px, 70%); }
.wisp-button { all: unset; cursor: pointer; display: block; width: 100%; border-radius: 28px; -webkit-tap-highlight-color: transparent; }
.wisp-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }
.hero .wisp { display: block; width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); transition: transform .2s ease; }
.wisp-button:hover .wisp { transform: translateY(-4px) rotate(-3deg); }
.wisp-button.hop .wisp { animation: hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 0% { transform: scale(.82) rotate(-8deg); } 100% { transform: none; } }
.wisp-name { margin: 0; font-size: 13px; opacity: .8; min-height: 1.5em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.button.primary { background: var(--cream); color: #22325c; }
.button.primary:hover { background: #fff; }
.button.ghost { border-color: rgba(247, 241, 230, .55); color: var(--cream); }
.button.ghost:hover { border-color: var(--cream); }
.hero .fine { font-size: 13px; opacity: .8; margin: 12px 0 0; }

/* Niuniu walks along the bottom of the blue, in place; the track moves. */
.walkway { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-top: 1px solid rgba(247, 241, 230, .25); pointer-events: none; }
/* The strip is the app's walk loop (tools/pet-assets/website_walk.py); walk.js
   sets --cross so she moves at her steps' pace. */
.niuniu { position: absolute; bottom: 10px; left: -120px; width: 112.5px; height: 77.5px; background: url(niuniu-walk.webp?v=e01a5131f7) 0 0 / 3937.5px 77.5px no-repeat; animation: stride 1.4583s steps(35) infinite, cross var(--cross, 34s) linear infinite; }
@keyframes stride { to { background-position: -3937.5px 0; } }
@keyframes cross { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 240px)); } }
/* On the home page niuniu.js moves her instead, frame by frame, so she can
   stop for the pointer; a tap on her shows the heart. */
.niuniu.live { left: 0; animation: none; pointer-events: auto; touch-action: manipulation; will-change: transform; }
.niuniu-heart { position: absolute; left: 0; bottom: 81.5px; width: 34px; height: 28px; font-size: 18px; line-height: 28px; text-align: center;
                opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.niuniu-heart.on { opacity: 1; }
/* An invitation to try, by what the visitor points with, at the right of the
   content; gone once she has met them. */
.walk-hint { position: absolute; top: 12px; right: max(20px, calc((100% - 1040px) / 2 + 20px)); margin: 0; font-size: 13px; opacity: .7;
             display: none; transition: opacity .6s ease; }
@media (hover: hover) and (pointer: fine) { html.js .walk-hint.pointer { display: block; } }
@media (hover: none) { html.js .walk-hint.touch { display: block; } }
.walkway.met .walk-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero, .hero .wisp { transition: none; }
  .wisp-button.hop .wisp { animation: none; }
  .niuniu { animation: none; left: 8%; background: url(niuniu-stand.webp?v=d97a3e6bfa) 0 0 / 108.5px 76.5px no-repeat; }
  html.js .walk-hint.pointer, html.js .walk-hint.touch { display: none; }
}

/* Sections */
section.band { padding-block: 64px; }
section.band + section.band { border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 18px; margin: 0 0 6px; }
.section-lede { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; }
.feature .mark { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 8px; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.principle b { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.number { border-left: 3px solid var(--wisp-blue); padding: 4px 0 4px 14px; }
.number b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.number span { color: var(--muted); font-size: 14px; }

.forms-row { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.forms-row figure { margin: 0; text-align: center; }
.forms-row img { height: 90px; width: auto; }
.forms-row figcaption { font-size: 14px; color: var(--muted); }

.more-link { margin: 24px 0 0; }

/* 灵墙: tools, the form for sending one, and the photos in columns. */
.wall-intro { padding-block: 24px 20px; }
.wall-intro h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); line-height: 1.2; margin: 8px 0 10px; }
.wall-intro .section-lede { margin-bottom: 20px; }
.wall-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wall-tools input[type=search] { flex: 1 1 220px; max-width: 320px; }
.wall-page input, .wall-page textarea, .wall-page select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
.wall-page textarea { resize: vertical; }
.wall-page input:focus-visible, .wall-page textarea:focus-visible, .wall-page select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wall-tools .button { margin-left: auto; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.wall-page .button.primary { background: var(--wisp-blue); color: #fff; }
.wall-page .button.primary:hover { background: var(--wisp-blue-deep); }
.wall-page .button:disabled { opacity: .6; cursor: default; }
.button.outline { background: transparent; border: 2px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; }

.wall-form { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 28px; }
.wall-form[hidden] { display: none; }
.wall-drop { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 240px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--muted); text-align: center; padding: 12px; overflow: hidden; }
.wall-drop:hover, .wall-drop:focus-within { border-color: var(--accent); color: var(--accent); }
.wall-drop img { max-height: 320px; border-radius: 8px; }
.wall-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wall-fields { display: grid; gap: 14px; align-content: start; }
.wall-fields label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.wall-fields small { font-weight: 400; color: var(--muted); }
.wall-fields .count { justify-self: end; font-size: 12px; }
.wall-fields .wall-agree { display: block; font-weight: 400; font-size: 14px; }
.wall-agree input { width: auto; margin-right: 6px; vertical-align: -2px; }
.wall-fields .fine { margin: 0; font-size: 13px; color: var(--muted); }
.wall-submit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
#wall-status { font-size: 14px; color: var(--warn); }
#wall-status.ok { color: var(--ok); }

.wall-grid { columns: 4 230px; column-gap: 16px; padding-bottom: 24px; }
.wall-card { all: unset; box-sizing: border-box; display: block; width: 100%; break-inside: avoid; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.wall-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.wall-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wall-card img { display: block; width: 100%; height: auto; background: var(--code-bg); }
.wall-card-text { display: grid; gap: 6px; padding: 12px 14px 14px; }
.wall-name { font-size: 16px; }
.wall-story { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.wall-by { color: var(--muted); font-size: 13px; }
.wall-empty { color: var(--muted); text-align: center; padding: 48px 0; }
.wall-more { display: block; margin: 0 auto 64px; }

.wall-big { border: 0; padding: 0; border-radius: 16px; max-width: min(920px, 94vw); max-height: 94vh; background: var(--surface); color: var(--ink); overflow: auto; }
.wall-big::backdrop { background: rgba(10, 12, 18, .78); }
.wall-big img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #000; }
.wall-big-text { padding: 16px 20px 20px; }
.wall-big-text h2 { font-size: 22px; margin: 0 0 6px; }
.wall-big-text p { margin: 0 0 6px; }
.wall-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Download */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.platform h3 { font-size: 22px; margin: 0; }
.platform .req { color: var(--muted); font-size: 14px; margin: 0; }
.status { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); justify-self: start; }
.platform .soon { color: var(--muted); font-size: 15px; margin: 0; }
.platform .get { justify-self: start; background: var(--wisp-blue); color: #fff; }
.platform .get:hover { background: var(--wisp-blue-deep); }
.platform .button.outline { justify-self: start; text-decoration: none; }
.platform .store-badge { justify-self: start; line-height: 0; }
.platform .store-badge img { height: 52px; width: auto; }
.platform .button.outline:hover { border-color: var(--wisp-blue); }
.platform .sha { margin: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.platform .sha code { font-size: 11px; }

/* Long documents (privacy, terms) */
.doc { max-width: 760px; padding-block: 24px 80px; }
.doc h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); line-height: 1.3; margin: 8px 0 12px; }
/* The download page's heading: an h1 that looks like the other sections' h2. */
.band-title { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; margin: 0 0 12px; text-wrap: balance; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { max-width: 42em; }
.doc .table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: none; }
.doc th { color: var(--muted); font-weight: 600; }
.draft { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.fill { background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 0 4px; }
.lang-switch { font-size: 14px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: inherit; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-links { align-content: start; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.site-foot .social { gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; text-decoration: none; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.support-more .social a { font-size: 15px; padding: 7px 16px 7px 13px; color: var(--ink); }
.support-more .social svg { width: 18px; height: 18px; }

/* 404 */
.lost { text-align: center; padding-block: 80px; }
.lost img { width: 120px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 24px 130px; }
  .wisp-stage { width: 140px; order: -1; justify-self: start; justify-items: start; }
  .grid3, .principles, .platforms { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .wall-drop { min-height: 180px; }
  .wall-tools .button { margin-left: 0; }
  .wall-grid { columns: 2 150px; column-gap: 10px; }
  .wall-card { margin-bottom: 10px; }
  .wall-card-text { padding: 10px; }
  .wall-story { font-size: 14px; }
}

/* Each language's headlines in a serif made for it. */
:lang(ja) { --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
:lang(ko) { --serif: "AppleMyungjo", "Batang", "Noto Serif KR", serif; word-break: keep-all; }
:lang(en) { --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
/* The headline in two lines beside Niuniu, as long as Chinese runs. */
:is(:lang(en), :lang(ja), :lang(ko)) .hero h1 { font-size: clamp(30px, 4.6vw, 48px); }

/* ---- Home: one idea per screen, the app shown in window frames ---------- */

/* The header stays at the top while scrolling. */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.on-blue .site-head { background: color-mix(in srgb, var(--wisp-blue) 86%, transparent); color: var(--cream); }

.hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 96px); padding-block: 48px 160px; align-items: center; }

/* A screenshot in a window: rounded, with the three dots and a soft shadow. */
.window { margin: 0; border-radius: 12px; overflow: hidden; background: #fbfaf7; box-shadow: 0 30px 80px -20px rgba(10, 16, 40, .45), 0 0 0 1px rgba(0, 0, 0, .08); }
.window.dark { background: #1b1b1a; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.window-bar { height: 26px; display: flex; gap: 7px; align-items: center; padding-inline: 12px; background: #ecebe6; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.window.dark .window-bar { background: #262625; border-bottom-color: rgba(255, 255, 255, .06); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i + i { background: #febc2e; }
.window-bar i + i + i { background: #28c840; }
.window img { display: block; width: 100%; height: auto; }

/* Hero: two windows leaning on each other. */
.stack { position: relative; aspect-ratio: 1.25; perspective: 1800px; }
.stack .window { position: absolute; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.stack .back { right: -6%; top: 0; width: 96%; transform: rotateY(-16deg) rotateX(6deg) rotateZ(-1.5deg); }
.stack .front { left: 0; bottom: 2%; width: 62%; transform: rotateY(-8deg) rotateX(4deg) translateZ(80px); animation: float 7s ease-in-out infinite; }
.stack:hover .back { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1deg); }
@keyframes float { 50% { translate: 0 -10px; } }

/* Hero: Niuniu on a made-up desktop (website/clips/make.py), in a screen's
   dark bezel. Each clip shows its still until home.js has it playing, and
   instead of it with reduced motion: the Windows one on Windows and Android,
   the Mac one elsewhere (lang.js sets data-os). */
.hero .kicker { margin: 0 0 12px; font-size: 15px; letter-spacing: .08em; opacity: .8; }
.screen { margin: 0; border-radius: 14px; box-shadow: 0 0 0 7px #1b2030, 0 0 0 8px rgba(255, 255, 255, .16), 0 34px 80px -18px rgba(10, 16, 40, .55); }
.clip-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #c4c4ec center / cover no-repeat; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.clip.on { opacity: 1; }
.clip-frame[data-clip="hero"] { background-image: url(clips/hero-mac.webp?v=16b74a4f67); }
.clip-frame[data-clip="look"] { background-image: url(clips/look-mac.webp?v=b78c62ca78); }
.clip-frame[data-clip="pet"] { background-image: url(clips/pet-mac.webp?v=4b40f6f824); }
.clip-frame[data-clip="run"] { background-image: url(clips/run-mac.webp?v=f25bcbefc2); }
.clip-frame[data-clip="rest"] { background-image: url(clips/rest-mac.webp?v=a68edbc8eb); }
:is([data-os="windows"], [data-os="android"]) .clip-frame[data-clip="hero"] { background-image: url(clips/hero-win.webp?v=15b54a6913); }
:is([data-os="windows"], [data-os="android"]) .clip-frame[data-clip="look"] { background-image: url(clips/look-win.webp?v=ccc9a71bfe); }
:is([data-os="windows"], [data-os="android"]) .clip-frame[data-clip="pet"] { background-image: url(clips/pet-win.webp?v=36b16aad12); }
:is([data-os="windows"], [data-os="android"]) .clip-frame[data-clip="run"] { background-image: url(clips/run-win.webp?v=6615aae47a); }
:is([data-os="windows"], [data-os="android"]) .clip-frame[data-clip="rest"] { background-image: url(clips/rest-win.webp?v=2fbc0ed39f); }

/* What to download, by the visitor's computer: the Store on Windows, the Mac
   download on a Mac, the address to copy on a phone or tablet; the download
   page for everyone else, and when scripts do not run. */
.get-win, .get-mac, .get-phone { display: none; }
:is([data-os="windows"], [data-os="mac"], [data-os="ios"], [data-os="android"]) .get-any { display: none; }
[data-os="windows"] .button.get-win, [data-os="mac"] .button.get-mac, :is([data-os="ios"], [data-os="android"]) .button.get-phone { display: inline-block; }
[data-os="windows"] .fine.get-win, [data-os="mac"] .fine.get-mac, :is([data-os="ios"], [data-os="android"]) .fine.get-phone { display: block; }
button.button { font: inherit; font-weight: 600; cursor: pointer; }

/* The home page's header on a phone: its links fold into a menu (home.js). */
.menu-button { display: none; }
.menu-items { display: contents; }

/* A Ling of your own pet: three from Ling's Hall walking along one floor,
   their names under it. Each stands in a box as tall as the floor is low,
   feet at the bottom, however narrow a phone makes it. */
.custom-scene .cta { justify-content: center; margin-top: 26px; }
.scene-text p.custom-free { margin-top: 14px; font-weight: 700; color: var(--accent); opacity: 1; }
.text-link { font-weight: 600; }
.custom-lings { --floor: 120px; display: flex; justify-content: center; gap: clamp(10px, 4vw, 48px); max-width: 860px; margin: 0 auto;
                background: linear-gradient(var(--line), var(--line)) 0 var(--floor) / 100% 2px no-repeat; }
.custom-lings figure { margin: 0; text-align: center; min-width: 0; }
.custom-lings img { display: block; height: var(--floor); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; object-position: 50% 100%; }
.custom-lings figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* 灵 and the pointer: four small clips. The break screen's title is the
   page's own text, over its clip. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; max-width: 920px; margin: 0 auto; }
.tile { margin: 0; }
.tile .clip-frame { border-radius: 14px; box-shadow: 0 22px 50px -26px rgba(40, 30, 10, .5), 0 0 0 1px rgba(0, 0, 0, .06); }
.tile figcaption { margin-top: 12px; text-align: center; font-size: 16px; opacity: .85; }
.rest-title { position: absolute; left: 6%; right: 6%; top: 22%; margin: 0; text-align: center; color: #f4f2ec; font-weight: 700;
              font-size: clamp(14px, 2.2vw, 21px); line-height: 1.35; }

/* Scenes */
.scene { padding-block: 120px; position: relative; overflow: hidden; }
.scene.night { background: #121a2f; color: var(--cream); }
.scene.warm { background: #f6efe3; color: #2a2620; }
.scene.blue { background: var(--wisp-blue); color: var(--cream); transition: background-color .45s ease; }
.scene.blue[data-tone="night"] { background: #1e2a4a; }
.scene.blue[data-tone="coral"] { background: #d9553a; }
.scene-text h2 { font-family: var(--serif); font-size: clamp(32px, 5.2vw, 58px); line-height: 1.15; margin: 0 0 18px; letter-spacing: .01em; text-wrap: balance; }
.scene-text p { font-size: 18px; margin: 0; opacity: .82; max-width: 36em; text-wrap: pretty; }
.scene-text.centred { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.scene-text.centred p { margin-inline: auto; }
.scene.night .scene-text p, .scene.blue .scene-text p { opacity: .78; }

/* The big disk window, glowing on the night sky. */
.glow { position: relative; max-width: 980px; margin: 0 auto; }
.glow::before { content: ""; position: absolute; inset: -18% -10%; background: radial-gradient(closest-side, rgba(59, 111, 216, .55), transparent 70%); z-index: 0; }
.glow .window { position: relative; z-index: 1; }

/* Startup items: the window runs off the right edge. */
.side-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.bleed .window { width: 135%; }

/* Ling: the window, and Niuniu walking past in front of it. */
.ling-stage { position: relative; max-width: 900px; margin: 0 auto; }
.ling-walk { position: absolute; left: -40vw; right: -40vw; bottom: -46px; height: 96px; pointer-events: none; }
.ling-walk .niuniu { animation-duration: 1.4583s, var(--cross, 26s); }

/* Compared with cleaner apps. */
.compare { max-width: 900px; margin: 0 auto; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.compare table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--muted); }
.compare .us { background: color-mix(in srgb, var(--wisp-blue) 9%, transparent); color: var(--ink); font-weight: 600; }
.compare thead .us { color: var(--accent); font-size: 16px; }

/* Light: the numbers on the night sky. */
.scene.night .numbers { max-width: 900px; margin: 0 auto; }
.scene.night .number { border-left-color: rgba(247, 241, 230, .35); }
.scene.night .number b { font-size: clamp(28px, 4vw, 40px); }
.scene.night .number span { color: rgba(247, 241, 230, .7); }

/* And more. */
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.more { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.more b { display: block; font-size: 17px; margin-bottom: 6px; }
.more p { margin: 0; color: var(--muted); font-size: 15px; }

/* Forms, with the wisp to click. */
.forms-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.scene.blue .forms-row figcaption { color: rgba(247, 241, 230, .8); }
.scene.blue .more-link a { color: var(--cream); }
.scene.blue .wisp { width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); transition: transform .2s ease; }
.scene.blue .wisp-button:hover .wisp { transform: translateY(-4px) rotate(-3deg); }
.closing .cta { justify-content: center; margin-top: 28px; }
.closing .button.primary, .custom-scene .button.primary { background: var(--wisp-blue); color: #fff; }
.closing .button.primary:hover, .custom-scene .button.primary:hover { background: var(--wisp-blue-deep); }
.closing .button.ghost { border-color: var(--line); color: var(--ink); }
.closing .fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.closing .fine a, .hero .fine a { color: inherit; }
.button.big { padding: 14px 34px; font-size: 17px; }

/* Rising into place. Only when scripts run (lang.js sets .js). */
html.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.tilt { transform: perspective(1400px) rotateX(16deg) translateY(70px) scale(.95); transform-origin: 50% 100%; }
html.js .reveal.slide { transform: translateX(90px); }
html.js .reveal.in { opacity: 1; transform: none; }
.more-grid .more:nth-child(3n+2) { transition-delay: .08s; }
.more-grid .more:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .stack .front { animation: none; }
  .stack .window, html.js .reveal, .clip { transition: none; }
}
@media (max-width: 820px) {
  .site-head { position: static; }
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 24px 140px; }
  .stack { aspect-ratio: 1.4; margin-top: 12px; }
  .scene { padding-block: 80px; }
  .side-grid, .forms-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bleed .window { width: 120%; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .wisp-stage { order: 0; justify-self: center; width: 180px; }
  /* Niuniu first, so a phone shows it on the first screen. */
  .hero .screen { order: -1; margin: 8px 8px 4px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .custom-lings { --floor: 84px; }
  html.js .fold .menu-button { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px auto; padding: 0;
                               border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
  .menu-button i, .menu-button i::before, .menu-button i::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; }
  .menu-button i { position: relative; }
  .menu-button i::before, .menu-button i::after { content: ""; position: absolute; left: 0; }
  .menu-button i::before { top: -6px; }
  .menu-button i::after { top: 6px; }
  html.js .fold .menu-items { display: none; }
  html.js .fold.open .menu-items { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 4px 0 8px; }
}
@media (prefers-color-scheme: dark) {
  .scene.warm { background: #211c16; color: var(--cream); }
  .scene.night { background: #0f1526; }
}

/* ---- Features: a night-blue opening where 灵 lives, three promises lying
   over its edge, then one chapter per thing Hoardkin does: a tag column on
   the left, the copy and the screenshots that prove it on the right. ---- */
:root { --night: #1e2a4a; --core: #ffd27a; }
@media (prefers-color-scheme: dark) { :root { --night: #141c33; } }
.on-blue.night .site-head { background: color-mix(in srgb, var(--night) 86%, transparent); }
.all-features { text-align: center; margin: 40px 0 0; }

.feat-open { background: var(--night); color: var(--cream); padding-block: 40px 104px; }
.feat-open-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.kicker { font-size: 13px; letter-spacing: .16em; opacity: .7; margin: 0 0 16px; }
.feat-open h1 { font-family: var(--serif); font-size: clamp(40px, 7vw, 72px); line-height: 1.12; margin: 0; letter-spacing: .02em; text-wrap: balance; }
.feat-open h1 em { font-style: normal; color: var(--core); white-space: nowrap; }
:lang(ja) .feat-open h1 { font-size: clamp(34px, 5.8vw, 60px); }
.feat-open .sub { font-family: var(--serif); font-size: 20px; opacity: .7; margin: 10px 0 0; }
.feat-open .lede { font-size: 17px; max-width: 34em; margin: 24px 0 0; opacity: .9; }
.feat-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.feat-toc a { color: var(--cream); text-decoration: none; font-size: 14px; padding: 3px 14px; border-radius: 999px; border: 1px solid rgba(247, 241, 230, .3); }
.feat-toc a:hover { border-color: var(--cream); }
.feat-toc a:focus-visible { outline-color: var(--cream); }

/* 灵 bobs and blinks, in a warm glow. */
.feat-ling { justify-self: center; width: min(280px, 70vw); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.feat-ling::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 122, .28), transparent 66%); }
.feat-ling svg { width: 78%; height: 78%; position: relative; animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.feat-ling .eyes { animation: blink 5.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.feat .promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: -48px; position: relative; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; box-shadow: 0 10px 30px rgba(30, 42, 74, .08); }
.promise b { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; }

.feat .chapter { padding-block: 80px 0; scroll-margin-top: 72px; }
.chapter-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: baseline; margin-bottom: 28px; }
.chapter-head .tag { font-size: 13px; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.chapter-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin: 0; }
.chapter-head p { color: var(--muted); max-width: 40em; margin: 8px 0 0; }
.feat .items, .shots, .feat-table { margin-left: 144px; }
.feat .items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px 32px; }
.item h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 4px; }
.item p { margin: 0; color: var(--muted); font-size: 15px; }
.item .stat { font-family: var(--mono); color: var(--ink); font-size: 14px; margin-top: 6px; }
.shots { display: grid; gap: 22px; margin-top: 36px; }
.shots.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.shot .cap { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.feat-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feat-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.feat-table th, .feat-table td { text-align: left; vertical-align: top; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.feat-table tr:last-child th, .feat-table tr:last-child td { border-bottom: none; }
.feat-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.feat-table tbody th { font-weight: 600; white-space: nowrap; }
.feat-table td { color: var(--muted); }

.feat .closing { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) { .feat-ling svg, .feat-ling .eyes { animation: none; } }
@media (max-width: 820px) {
  .feat-open { padding-block: 24px 88px; }
  .feat-open-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .feat-ling { order: -1; justify-self: start; width: 132px; }
  .feat .promises, .shots.two { grid-template-columns: minmax(0, 1fr); }
  .feat .chapter { padding-top: 64px; }
  .chapter-head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .feat .items, .shots, .feat-table { margin-left: 0; }
  /* The table becomes a list: each feature above what it tells you. */
  .feat-table thead { display: none; }
  .feat-table tr, .feat-table tbody th, .feat-table td { display: block; }
  .feat-table tbody th { white-space: normal; border-bottom: none; padding-bottom: 2px; }
}

/* ---- FAQ, support and blog: reading pages on paper, like the policies. ---- */
.faq h2 { font-size: 24px; margin: 48px 0 4px; padding-top: 8px; }
.faq h3 { font-size: 17px; margin: 26px 0 6px; }
.faq section { scroll-margin-top: 72px; }
.faq h3 { scroll-margin-top: 80px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-toc a { text-decoration: none; color: var(--ink); font-size: 14px; padding: 3px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.faq-toc a:hover { border-color: var(--accent); color: var(--accent); }
.faq-more { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

.support { max-width: 860px; padding-block: 24px 80px; }
.support h1, .blog h1, .post h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); line-height: 1.3; margin: 8px 0 12px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.support-card h2 { font-size: 20px; margin: 0 0 6px; }
.support-card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.support-card.main { border-color: color-mix(in srgb, var(--wisp-blue) 40%, var(--line)); }
.button.mail { background: var(--wisp-blue); color: #fff; overflow-wrap: anywhere; }
.button.mail:hover { background: var(--wisp-blue-deep); }
.support-more { margin-top: 40px; max-width: 42em; }
.support-more h2 { font-size: 20px; margin: 32px 0 8px; }
.support-more p, .support-more li { color: var(--muted); }
.support-more ul, .support-more ol { padding-left: 1.2em; margin: 0; }
.lings-h { font-size: 20px; margin: 32px 0 12px; }
.ling-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ling-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ling-card img { height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.ling-card figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lings-custom { margin-top: 36px; }
.custom-hall { margin-top: 18px; }
.custom-hall p { color: var(--ink); margin: 0; }
.release-notes { max-width: 42em; margin: 36px 0 8px; }
.release-notes h2 { font-size: 20px; margin: 0 0 2px; }
.release-notes p { margin: 6px 0; }
.release-notes ul { padding-left: 1.2em; margin: 6px 0 0; color: var(--muted); }
.release-notes li + li { margin-top: 4px; }
.support-more li + li { margin-top: 6px; }
.custom-forms { display: flex; gap: 28px; align-items: flex-end; margin: -8px 0 28px; }
.custom-forms img { width: auto; height: 96px; }

.posts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.posts a { display: grid; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.posts a:hover { border-color: var(--accent); transform: translateY(-1px); }
.posts time { font-size: 13px; color: var(--muted); }
.posts b { font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.posts span { color: var(--muted); font-size: 15px; }
.guides .posts { margin-top: 14px; }
.post-back { font-size: 14px; margin: 0; }
.post-back a, .post-end a { text-decoration: none; }
.post-date { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.post p, .post li { line-height: 1.85; }
.post-end { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 820px) {
  .support-grid { grid-template-columns: minmax(0, 1fr); }
}
