/* Kaze — kaze.build
   One tone (--h hue, --c chroma) drives the product's colour: the window's
   backboard, the ink and the sheen on paper. Change data-tone and it follows.

   Colour is the product's, so the page itself is neutral: four layers, each
   a clear step from the next — the page (near-white, a whisper of grain) ›
   the desktop the window sits on (a deep, saturated wallpaper in the tone,
   lit by soft blooms) › the window (the pastel backboard) › its paper
   (white). The site's own furniture (nav, sections, buttons) stays on the
   neutral page in ink; the tone appears where Kaze appears. */

@property --h { syntax: '<number>'; inherits: true; initial-value: 262; }
@property --c { syntax: '<number>'; inherits: true; initial-value: .055; }

[data-tone="sky"]      { --h: 262; --c: .055; }
[data-tone="lavender"] { --h: 296; --c: .058; }
[data-tone="mint"]     { --h: 172; --c: .048; }
[data-tone="mono"]     { --h: 262; --c: 0; }

:root, [data-tone] {
  --tone:   oklch(.875 var(--c) var(--h));
  --tone-2: oklch(.865 var(--c) calc(var(--h) + 24));
  --tone-deep: oklch(.8 calc(var(--c) * 1.25) var(--h));
  --bg:     oklch(.955 calc(var(--c) * .45) var(--h));
  --bg-2:   oklch(.97 calc(var(--c) * .3) calc(var(--h) + 12));
  --wall: linear-gradient(160deg, oklch(.8 calc(var(--c) * 1.6) var(--h)), oklch(.78 calc(var(--c) * 1.6) calc(var(--h) + 24)));
  --ink:    oklch(.26 calc(var(--c) * 1.1) var(--h));
  --ink-2:  oklch(.38 calc(var(--c) * 1.1) var(--h));
  --ink-3:  oklch(.56 calc(var(--c) * 1.1) var(--h));
  --fill:   oklch(.26 calc(var(--c) * 1.1) var(--h) / .07);
  --fill-h: oklch(.26 calc(var(--c) * 1.1) var(--h) / .11);
  --edge:   oklch(.26 calc(var(--c) * 1.1) var(--h) / .16);
  --hair:   oklch(.26 calc(var(--c) * 1.1) var(--h) / .08);
  --sheen:  oklch(.975 calc(var(--c) * .35) var(--h));
  --accent: oklch(.55 calc(var(--c) * 2.6 + .04) var(--h));
  --w-cur:  rgb(255 255 255 / .62);
  --w-hov:  rgb(255 255 255 / .30);
  --w-plate: rgb(255 255 255 / .34);
  --shadow-paper:
    0 0 0 .5px var(--edge),
    0 1px 2px oklch(.26 calc(var(--c) * 1.1) var(--h) / .06),
    0 12px 32px -10px oklch(.26 calc(var(--c) * 1.1) var(--h) / .18);
  --well:
    inset 0 1px 0 oklch(.26 calc(var(--c) * 1.1) var(--h) / .12),
    inset 0 -1px 0 oklch(.26 calc(var(--c) * 1.1) var(--h) / .025),
    inset 1px 0 0 oklch(.26 calc(var(--c) * 1.1) var(--h) / .06),
    inset -1px 0 0 oklch(.26 calc(var(--c) * 1.1) var(--h) / .06);
  --glass: oklch(.2 calc(var(--c) * .9) var(--h) / .88);
  --amber: #F2A33A;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t1: 150ms;
  --t2: 250ms;
}

:root {
  transition: --h 600ms var(--ease), --c 600ms var(--ease);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 1600px) no-repeat, var(--bg-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grain: a dark tile in normal blend and a light tile in plus-lighter, both at 7%. */
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(noise-dark.png) 0 0 / 64px 64px; opacity: .06;
}
body::after { background-image: url(noise-light.png); mix-blend-mode: plus-lighter; }

html[lang="zh-CN"] body { font-size: 16.5px; }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
svg { flex: none; }
button { font: inherit; color: inherit; }
kbd {
  font-family: inherit; font-size: .82em; font-weight: 500;
  display: inline-block; padding: 0 .38em; min-width: 1.5em; text-align: center;
  border-radius: 5px; background: var(--fill); color: var(--ink-2);
  line-height: 1.45; letter-spacing: .02em;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-paper); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  border-radius: 999px; font-weight: 590; letter-spacing: -.005em;
  transition: transform var(--t1) var(--ease), background var(--t1) var(--ease), box-shadow var(--t2) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 17px; }
.btn-glass {
  background: var(--glass); color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), inset 0 1px 0 rgb(255 255 255 / .2), 0 6px 18px -6px oklch(.2 var(--c) var(--h) / .5);
}
.btn-glass:hover { background: oklch(.16 calc(var(--c) * .9) var(--h) / .92); }
.btn-fill { background: var(--fill); color: var(--ink); }
.btn-fill:hover { background: var(--fill-h); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; }
.nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  opacity: 0; transition: opacity var(--t2) var(--ease);
  box-shadow: 0 .5px 0 var(--hair);
}
.nav.is-stuck::before { opacity: 1; }
.nav-in { position: relative; max-width: 1280px; margin: 0 auto; height: 60px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding: 6px 11px; border-radius: 999px; transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.nav-links a:hover { background: var(--w-hov); color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--fill); box-shadow: var(--well); }
.lang-btn { border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 560; color: var(--ink-3); height: 26px; padding: 0 10px; border-radius: 999px; transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.lang-btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 .5px var(--edge), 0 1px 2px var(--hair); }

/* ---------- Hero ---------- */
.hero { padding: 64px 28px 0; }
.hero-in { max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 88px; height: 88px; margin-bottom: 30px; filter: drop-shadow(0 10px 22px oklch(.3 var(--c) var(--h) / .18)); }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 100px); line-height: .98; letter-spacing: -.038em; font-weight: 680;
  color: var(--ink); text-wrap: balance;
}
html[lang="zh-CN"] .hero h1 { letter-spacing: -.02em; line-height: 1.08; font-weight: 640; }
.hero-sub { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); letter-spacing: .005em; }

/* ---------- Demo stage ---------- */
.demo { max-width: 1280px; margin: 72px auto 0; }
/* The desktop the window sits on: the app's backboard recipe, one step deeper, with grain and a hairline. */
.desk {
  position: relative; isolation: isolate; padding: clamp(14px, 4.2vw, 60px); border-radius: clamp(20px, 2.4vw, 32px);
  background: var(--wall);
  box-shadow: inset 0 0 0 .5px oklch(.26 calc(var(--c) * 1.1) var(--h) / .16), 0 1px 2px rgb(0 0 0 / .06);
}
.desk::before, .desk::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(noise-dark.png) 0 0 / 64px 64px; opacity: .07;
}
.desk::after { background-image: url(noise-light.png); mix-blend-mode: plus-lighter; }
.stage { position: relative; width: 100%; aspect-ratio: 1280 / 800; }
.chapters { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; padding: 0 4px; }
.chap-list { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fill); box-shadow: var(--well); }
.chap {
  position: relative; border: 0; background: none; cursor: pointer; height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 560; color: var(--ink-2); overflow: hidden; white-space: nowrap;
  transition: background var(--t1) var(--ease), color var(--t1) var(--ease), transform var(--t1) var(--ease);
}
.chap:hover { background: var(--w-hov); color: var(--ink); }
.chap:active { transform: scale(.96); }
.chap.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 .5px var(--edge), 0 1px 3px var(--hair); }
.chap-bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--hair); opacity: 0; transition: opacity var(--t2) var(--ease); }
.chap-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink-3); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chap.is-on .chap-bar { opacity: 1; }
.swatches { display: flex; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--fill); box-shadow: var(--well); }
.sw {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(150deg, var(--tone), var(--tone-2));
  box-shadow: inset 0 0 0 .5px var(--edge), 0 1px 2px var(--hair);
  transition: transform var(--t1) var(--ease), box-shadow var(--t2) var(--ease);
}
.sw[data-tone-set="sky"]      { --h: 262; --c: .055; }
.sw[data-tone-set="lavender"] { --h: 296; --c: .058; }
.sw[data-tone-set="mint"]     { --h: 172; --c: .048; }
.sw[data-tone-set="mono"]     { --h: 262; --c: 0; }
.sw { --tone: oklch(.84 calc(var(--c) * 1.3) var(--h)); --tone-2: oklch(.84 calc(var(--c) * 1.3) calc(var(--h) + 24)); --edge: oklch(.26 calc(var(--c) * 1.1) var(--h) / .2); }
.sw:hover { box-shadow: inset 0 0 0 .5px var(--edge), 0 0 0 2px #fff, 0 0 0 3px var(--edge); }
.sw:active { transform: scale(.96); }
.sw[aria-checked="true"] { box-shadow: inset 0 0 0 .5px var(--edge), 0 0 0 2px #fff, 0 0 0 3.5px var(--ink-2); }
.caption { margin: 18px auto 0; text-align: center; min-height: 1.5em; font-size: 15px; color: var(--ink-3); max-width: 46em; padding: 0 20px; transition: opacity var(--t2) var(--ease); }
.caption b { color: var(--ink-2); font-weight: 560; }

/* =====================================================================
   The Kaze window (design size 1280×800, scaled by JS through --s)
   ===================================================================== */
.kz {
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px;
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  border-radius: 14px; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, var(--tone), var(--tone-2));
  box-shadow:
    0 0 0 .5px oklch(.26 calc(var(--c) * 1.1) var(--h) / .28),
    inset 0 .5px 0 rgb(255 255 255 / .6),
    0 1px 2px rgb(0 0 0 / .08),
    0 12px 28px -12px rgb(0 0 0 / .32);
  font-size: 13px; line-height: 1.4; color: var(--ink);
  display: flex; padding: 8px 8px 8px 0; gap: 8px;
  user-select: none; -webkit-user-select: none; outline: none;
  text-align: left;
}
.kz:focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 12px 28px -12px rgb(0 0 0 / .32); }
.kz-grain, .tone-board::before, .tone-board::after { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.kz-grain::before, .kz-grain::after, .tone-board::before, .tone-board::after { content: ""; position: absolute; inset: 0; background: url(noise-dark.png) 0 0 / 64px 64px; opacity: .07; }
.kz-grain::after, .tone-board::after { background-image: url(noise-light.png); mix-blend-mode: plus-lighter; }
.tone-board { position: relative; isolation: isolate; background: linear-gradient(165deg, var(--tone), var(--tone-2)); }
.tone-board > * { position: relative; z-index: 1; }

:where(.kz) button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.kz svg { width: 16px; height: 16px; }
.kz kbd { font-size: 11px; background: none; padding: 0; min-width: 0; color: inherit; opacity: .62; margin-left: 6px; }

/* Sidebar */
.kz-side { position: relative; z-index: 1; width: 228px; flex: none; display: flex; flex-direction: column; padding: 0 10px 0 10px; }
.kz-lights { display: flex; gap: 8px; height: 36px; align-items: center; padding-left: 8px; }
.kz-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .12); }
.kz-lights i:nth-child(2) { background: #FEBC2E; }
.kz-lights i:nth-child(3) { background: #28C840; }
.kz-sections { display: flex; gap: 2px; margin: 4px 0 10px; }
.kz-sec { flex: 1; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.kz-sec:hover { background: var(--w-hov); color: var(--ink-2); }
.kz-sec.is-on { background: var(--w-plate); color: var(--ink); }
.kz-pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.kz-pin { height: 44px; border-radius: 10px; background: var(--w-plate); display: grid; place-items: center; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease), box-shadow var(--t1) var(--ease); }
.kz-pin:hover { background: rgb(255 255 255 / .48); }
.kz-pin:active { transform: scale(.96); }
.kz-pin.is-cur { background: rgb(255 255 255 / .82); box-shadow: 0 0 0 .5px var(--hair), 0 1px 3px var(--hair); }
.kz-list { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.kz-new { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px; border-radius: 8px; color: var(--ink-3); margin: 6px 0 4px; transition: background var(--t1) var(--ease); }
.kz-new:hover { background: var(--w-hov); color: var(--ink-2); }
.kz-new kbd { margin-left: auto; }

.tab {
  position: relative; display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px; border-radius: 8px; width: 100%;
  color: var(--ink); transition: background var(--t1) var(--ease), opacity var(--t2) var(--ease), transform var(--t2) var(--ease), height var(--t2) var(--ease), margin var(--t2) var(--ease);
  text-align: left;
}
.tab:hover { background: var(--w-hov); }
.tab.is-cur { background: var(--w-cur); box-shadow: 0 0 0 .5px var(--hair), 0 1px 2px var(--hair); }
.tab-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.tab.is-asleep .fav { opacity: .5; filter: saturate(.4); }
.tab.is-asleep .tab-t { color: var(--ink-3); }
.tab-moon { width: 12px !important; height: 12px !important; color: var(--ink-3); opacity: .7; }
.tab-x { width: 18px; height: 18px; border-radius: 5px; display: none; place-items: center; color: var(--ink-3); }
.tab-x svg { width: 12px !important; height: 12px !important; }
.tab:hover .tab-x { display: grid; }
.tab-x:hover { background: var(--fill); }
.tab.enter { animation: tab-in 450ms var(--ease) both; }
.tab.leave { opacity: 0; transform: translateX(-12px); height: 0; margin: 0; pointer-events: none; }
@keyframes tab-in { from { opacity: 0; transform: translateY(-6px); height: 0; } to { opacity: 1; transform: none; height: 32px; } }

.kz-div { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 4px 0 9px; margin: 4px 0; }
.kz-div-line { flex: 1; height: 1px; background: var(--hair); }
.kz-div button { font-size: 11.5px; font-weight: 560; color: var(--ink-3); padding: 2px 7px; border-radius: 6px; transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.kz-div button:hover { background: var(--w-hov); color: var(--ink); }
.kz-div.is-flash button { background: var(--w-cur); color: var(--ink); }

.kz-group { border-radius: 10px; padding: 2px 0 3px; margin: 0 0 4px; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .35); animation: tab-in-g 500ms var(--ease) both; }
.kz-group.leave { opacity: 0; transform: translateX(-12px); transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
@keyframes tab-in-g { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.kz-ghead { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; font-size: 11.5px; font-weight: 620; color: var(--ink-2); letter-spacing: .01em; }
.kz-ghead svg { width: 11px !important; height: 11px !important; color: var(--accent); }
.kz-group .tab { padding-left: 14px; }

/* Favicons and their states */
.fav {
  position: relative; width: 16px; height: 16px; flex: none; border-radius: 4.5px; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 750; color: #fff; line-height: 1; letter-spacing: 0;
  background: var(--fb, #7A86A8);
}
.fav.lg { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.f-sky { --fb: linear-gradient(160deg, #5B9BFF, #2E6BF0); }
.f-red { --fb: linear-gradient(160deg, #F0675A, #D23B33); }
.f-ink { --fb: linear-gradient(160deg, #4B5163, #24283A); }
.f-green { --fb: linear-gradient(160deg, #4CC38A, #1F9D64); }
.f-amber { --fb: linear-gradient(160deg, #FFC15A, #F08A24); }
.f-violet { --fb: linear-gradient(160deg, #A58BFF, #7356E8); }
.f-pink { --fb: linear-gradient(160deg, #FF7EB0, #E84B8A); }
.f-teal { --fb: linear-gradient(160deg, #45C7D3, #1C98A8); }
.f-paper { --fb: #fff; color: var(--ink); box-shadow: inset 0 0 0 .5px var(--edge); }
.fav.is-working::after {
  content: ""; position: absolute; inset: -4px; border-radius: 8px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 55%, var(--accent) 80%, #fff 92%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 1.6px; animation: spin 1.1s linear infinite;
}

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.fav.is-needs::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 1.5px #fff; }
.fav.is-done::after, .fav.is-driving::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink) center / 8px 8px no-repeat; box-shadow: 0 0 0 1.5px #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z' fill='white'/%3E%3C/svg%3E");
}
.fav.is-driving::after {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M606-105q-23 11-46 2.5T526-134L406-392l-93 130q-17 24-45 15t-28-38v-513q0-25 22.5-36t42.5 5l404 318q23 17 13.5 44T684-440H516l119 255q11 23 2.5 46T606-105Z' fill='white'/%3E%3C/svg%3E");
}

/* Page panel */
.kz-page {
  position: relative; z-index: 1; flex: 1; min-width: 0; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-paper);
  display: flex; flex-direction: column;
  transition: flex-basis var(--t2) var(--ease);
}
.kz-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: .5px solid var(--hair); background: #fff; position: relative; z-index: 3; }
.kz-nav { display: flex; gap: 2px; }
.kz-ib { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--ink-2); transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.kz-ib.sm { width: 24px; height: 24px; border-radius: 6px; }
.kz-ib.dim { color: var(--ink-3); opacity: .55; }
button.kz-ib:hover { background: var(--fill); color: var(--ink); }
.kz-ib[aria-pressed="true"] { color: var(--accent); }
.kz-addr {
  flex: 1; min-width: 0; height: 30px; border-radius: 9px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px;
  background: oklch(.26 calc(var(--c) * 1.1) var(--h) / .04); box-shadow: var(--well); color: var(--ink-3);
}
.kz-lock { width: 11px !important; height: 11px !important; opacity: .7; }
.kz-host { color: var(--ink); white-space: nowrap; }
.kz-path { white-space: nowrap; overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.kz-addr-end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.kz-shield { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 620; color: var(--ink-3); }
.kz-shield svg { width: 13px !important; height: 13px !important; }
.kz-view { position: relative; flex: 1; overflow: hidden; }
.kz-view > .pg { position: absolute; inset: 0; overflow: hidden; animation: pg-in 300ms var(--ease) both; }
@keyframes pg-in { from { opacity: 0; transform: translateY(4px); } }

/* Dock at the page's foot */
.kz-dock {
  position: absolute; left: 50%; bottom: 16px; z-index: 6; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px; border-radius: 14px; min-width: 420px;
  background: linear-gradient(180deg, #fff 55%, var(--sheen)); box-shadow: var(--shadow-paper), 0 14px 28px -12px oklch(.26 var(--c) var(--h) / .3);
  animation: dock-in 360ms var(--ease) both;
}
.kz-dock[hidden] { display: none; }
.kz-dock.is-perm { flex-direction: column; align-items: stretch; padding: 16px; min-width: 0; width: 420px; gap: 0; border-radius: 16px; }
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 10px) scale(.98); } }
.dock { display: flex; align-items: center; gap: 4px; }
.halo-dot { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; }
.halo-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--a, 0deg), transparent 0 40%, var(--accent) 85%, transparent); -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 64%); mask: radial-gradient(closest-side, transparent 60%, #000 64%); animation: spin 1s linear infinite; }
.halo-dot::after { content: ""; position: absolute; inset: 4.5px; border-radius: 50%; background: var(--accent); }
.halo-dot.is-paused::before { animation: none; background: var(--accent); opacity: .35; }
.dock-words { position: relative; flex: 1; min-width: 0; height: 20px; overflow: hidden; margin: 0 10px 0 8px; font-weight: 520; color: var(--ink); }
.dock-word { position: absolute; left: 0; right: 0; top: 0; line-height: 20px; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.dock-word.in { animation: word-in 360ms var(--ease) both; }
.dock-word.out { animation: word-out 300ms var(--ease) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes word-out { to { opacity: 0; transform: translateY(-12px); } }
.dock-sep { width: 1px; height: 18px; background: var(--hair); margin: 0 4px; }
.dbtn, .kz .dbtn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 560; color: var(--ink-2); background: var(--fill); white-space: nowrap; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.dbtn svg { width: 10px !important; height: 10px !important; }
.dbtn kbd { margin-left: 2px; font-size: 11px; background: none; padding: 0; opacity: .6; min-width: 0; }
button.dbtn:hover { background: var(--fill-h); color: var(--ink); }
button.dbtn:active { transform: scale(.96); }
.dbtn.glass, .kz .dbtn.glass { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), inset 0 1px 0 rgb(255 255 255 / .2); }
.dbtn.glass:hover { background: oklch(.16 calc(var(--c) * .9) var(--h) / .92) !important; color: #fff !important; }

/* Key buttons (permission cards, group actions) */
.kbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 580; border: 0; cursor: pointer; white-space: nowrap;
  transition: background var(--t1) var(--ease), transform var(--t1) var(--ease);
}
.kbtn:active { transform: scale(.96); }
.kbtn kbd { background: none; padding: 0; min-width: 0; font-size: .86em; opacity: .62; color: inherit; }
.kbtn.fill { background: var(--fill); color: var(--ink); }
.kbtn.fill:hover { background: var(--fill-h); }
.kbtn.glass { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), inset 0 1px 0 rgb(255 255 255 / .2); }
.kbtn.glass:hover { background: oklch(.16 calc(var(--c) * .9) var(--h) / .92); }

/* Permission card */
.perm { width: 100%; max-width: 400px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #fff 60%, var(--sheen)); box-shadow: var(--shadow-paper), 0 14px 28px -12px oklch(.26 var(--c) var(--h) / .3); }
.kz-dock .perm { padding: 0; box-shadow: none; background: none; max-width: none; }
.perm-top { display: flex; gap: 12px; align-items: flex-start; }
.perm-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in oklch, var(--amber) 18%, #fff); color: #B26A0B; }
.perm-ico svg { width: 18px !important; height: 18px !important; }
.perm-title { font-weight: 640; font-size: 15px; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.perm-sub { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.perm-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.perm-done { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); font-weight: 540; }
.perm-done svg { width: 16px; height: 16px; color: #1F9D64; }
.perm.is-done .perm-btns { display: none; }
.kz .perm-title { font-size: 14px; }
.kz .perm-sub { font-size: 12.5px; }
.kz .kbtn { height: 30px; font-size: 12.5px; padding: 0 12px; border-radius: 9px; }
.kz .kbtn kbd { font-size: 11px; margin-left: 0; }

/* Toast in the page */
.kz-toast { position: absolute; left: 50%; bottom: 16px; z-index: 7; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 12px 30px -10px rgb(0 0 0 / .35); font-weight: 520; white-space: nowrap; animation: dock-in 300ms var(--ease) both; }
.kz-toast[hidden] { display: none; }
.kz-toast button { height: 26px; padding: 0 10px; border-radius: 8px; background: rgb(255 255 255 / .14) !important; font-weight: 600; }
.kz-toast button:hover { background: rgb(255 255 255 / .24) !important; }

/* Translate popover */
.kz-trpop { position: absolute; right: 12px; top: 52px; z-index: 6; width: 300px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg, #fff 60%, var(--sheen)); box-shadow: var(--shadow-paper), 0 14px 28px -12px oklch(.26 var(--c) var(--h) / .3); animation: pop-in 260ms var(--ease) both; }
.kz-trpop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.kz-trpop p { font-size: 12.5px; color: var(--ink-3); margin-bottom: 9px; }
.kz-trpop p b { color: var(--ink); font-weight: 600; }
.kz .seg { font-size: 12px; }
.kz .seg button { padding: 0 6px; }

/* Segmented control (shared) */
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: oklch(.26 calc(var(--c) * 1.1) var(--h) / .05); box-shadow: var(--well); width: 100%; }
.seg button { flex: 1; border: 0; background: none; cursor: pointer; height: 26px; padding: 0 10px; border-radius: 7px; font-size: inherit; font-weight: 560; color: var(--ink-3); white-space: nowrap; transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 .5px var(--edge), 0 1px 2px var(--hair); }

/* Chat panel */
.kz-chat {
  position: relative; z-index: 1; width: 316px; flex: none; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #fff 70%, var(--sheen)); box-shadow: var(--shadow-paper);
  display: flex; flex-direction: column;
  transition: width var(--t2) var(--ease), margin var(--t2) var(--ease), opacity var(--t2) var(--ease);
}
.kz.no-chat .kz-chat { width: 0; margin-left: -8px; opacity: 0; }
.kz-chat-head { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-bottom: .5px solid var(--hair); white-space: nowrap; }
.kz-chat-title { display: flex; align-items: center; gap: 6px; font-weight: 640; }
.kz-chat-title svg { width: 13px !important; height: 13px !important; color: var(--accent); }
.kz-model { font-size: 11.5px; color: var(--ink-3); padding: 2px 7px; border-radius: 6px; background: var(--fill); margin-right: auto; }
.kz-msgs { flex: 1; overflow-y: auto; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; scroll-behavior: smooth; }
.kz-msgs::-webkit-scrollbar { display: none; }
.m { animation: m-in 380ms var(--ease) both; }
@keyframes m-in { from { opacity: 0; transform: translateY(6px); } }
.m-user { align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--fill); color: var(--ink); }
.m-ai { color: var(--ink); line-height: 1.5; }
.m-ai p + p { margin-top: 6px; }
.m-note { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.m-note svg { width: 12px !important; height: 12px !important; }
.steps { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 12px; background: oklch(.26 calc(var(--c) * 1.1) var(--h) / .035); box-shadow: var(--well); }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); animation: m-in 300ms var(--ease) both; }
.step svg { width: 12px !important; height: 12px !important; flex: none; }
.step .ck { color: var(--ink-3); }
.step.is-now { color: var(--ink); font-weight: 520; }
.step .spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.6px solid var(--hair); border-top-color: var(--accent); animation: spin2 .8s linear infinite; }
.step.is-wait { color: #A2600A; }
.step.is-wait .wdot { width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--amber); flex: none; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.m-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sugs { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.sug { text-align: left; padding: 8px 11px; border-radius: 10px; background: var(--fill); color: var(--ink-2); transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.kz .sug:hover { background: var(--fill-h); color: var(--ink); }
.kz .sug:active { transform: scale(.98); }
.empty { display: flex; flex-direction: column; height: 100%; }
.empty-hi { margin: auto 0 18px; text-align: center; }
.empty-hi img { width: 40px; height: 40px; margin: 0 auto 10px; }
.empty-hi p { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.empty-hi span { font-size: 12.5px; color: var(--ink-3); }
.kz-composer { margin: 0 10px 10px; padding: 9px 10px 7px 12px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 .5px var(--edge), 0 2px 8px -2px var(--hair); }
.kz-composer textarea { width: 100%; border: 0; outline: 0; resize: none; font: inherit; color: var(--ink); background: none; padding: 0; height: 38px; user-select: text; -webkit-user-select: text; }
.kz-composer textarea::placeholder { color: var(--ink-3); opacity: .8; }
.kz-comp-row { display: flex; align-items: center; gap: 4px; }
.kz-chip-tab { margin-right: auto; display: inline-flex; align-items: center; gap: 5px; max-width: 180px; font-size: 11.5px; color: var(--ink-3); padding: 2px 7px 2px 4px; border-radius: 6px; background: var(--fill); white-space: nowrap; overflow: hidden; }
.kz-chip-tab .fav { width: 12px; height: 12px; font-size: 7px; border-radius: 3px; }
.kz-send { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); transition: transform var(--t1) var(--ease); }
.kz-send:active { transform: scale(.92); }
.kz-send svg { width: 13px !important; height: 13px !important; }

/* Palette */
.kz-scrim { position: absolute; inset: 0; z-index: 8; background: oklch(.26 var(--c) var(--h) / .1); animation: fade 200ms var(--ease) both; }
.kz-scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.kz-pal {
  position: absolute; left: 50%; top: 150px; z-index: 9; width: 600px; transform: translateX(-50%);
  border-radius: 16px; background: linear-gradient(180deg, #fff 70%, var(--sheen)); overflow: hidden;
  box-shadow: 0 0 0 .5px var(--edge), 0 2px 6px rgb(0 0 0 / .06), 0 12px 28px -12px rgb(0 0 0 / .28);
  animation: pal-in 260ms var(--ease) both; font-size: 13.5px; color: var(--ink);
}
.kz-pal[hidden] { display: none; }
@keyframes pal-in { from { opacity: 0; transform: translateX(-50%) scale(.97); } }
.kz-pal.is-static { position: relative; left: auto; top: auto; transform: none; width: 100%; animation: none; }
.kz-pal-in { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-bottom: .5px solid var(--hair); }
.kz-pal-ico { width: 18px !important; height: 18px !important; color: var(--ink-3); }
.kz-pal-in input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink); background: none; letter-spacing: -.01em; user-select: text; -webkit-user-select: text; min-width: 0; }
.kz-pal-in input::placeholder { color: var(--ink-3); opacity: .7; }
.kz-pal-rows { list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow: hidden; }
.pr { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer; transition: background var(--t1) var(--ease); }
.pr:hover { background: var(--fill); }
.pr.is-sel { background: oklch(.26 calc(var(--c) * 1.1) var(--h) / .09); }
.pr-ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--ink-3); }
.pr-ic svg { width: 15px; height: 15px; }
.pr-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.pr-t small { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.pr-t mark { background: none; color: inherit; font-weight: 660; }
.pr-a { font-size: 12px; color: var(--ink-3); white-space: nowrap; opacity: 0; transition: opacity var(--t1) var(--ease); }
.pr-a kbd { margin-left: 6px; font-size: 11px; background: var(--fill); padding: 1px 5px; opacity: 1; color: var(--ink-2); border-radius: 5px; }
.pr.is-sel .pr-a, .pr:hover .pr-a { opacity: 1; }
.pr-calc .pr-t { font-size: 17px; font-weight: 620; letter-spacing: -.01em; }
.pr-sec { font-size: 11.5px; color: var(--ink-3); padding: 8px 12px 4px; font-weight: 560; }

/* ---------- Fake web pages ---------- */
.pg { background: #fff; color: #1d2230; font-size: 14px; }
.pg-scroll { position: absolute; inset: 0; overflow: hidden; }
.pg-in { transition: transform 900ms var(--ease); }
/* Article */
.art { max-width: 560px; margin: 0 auto; padding: 34px 14px 28px; font-family: "Iowan Old Style", "Palatino", Georgia, serif; }
.art-mast { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1.5px solid #1d2230; padding-bottom: 8px; margin-bottom: 22px; font-family: -apple-system, sans-serif; }
.art-mast b { font-family: "Iowan Old Style", Georgia, serif; font-size: 22px; letter-spacing: -.01em; }
.art-mast span { font-size: 11px; color: #6b7280; letter-spacing: .02em; }
.art h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.art .dek { font-size: 17px; line-height: 1.4; color: #4b5260; margin-top: 10px; }
.art .by { font-family: -apple-system, sans-serif; font-size: 11.5px; color: #6b7280; margin: 14px 0 18px; }
.art-img { height: 150px; border-radius: 6px; margin-bottom: 20px; background:
  radial-gradient(60% 90% at 78% 30%, #FFD66B 0 18%, transparent 19%),
  linear-gradient(180deg, transparent 58%, #E9B44C 58% 74%, #C9862E 74%),
  linear-gradient(180deg, #A7D3F2, #E7F1F8); position: relative; overflow: hidden; }
.art-img::after { content: ""; position: absolute; left: 18%; bottom: 14%; width: 120px; height: 46px; border-radius: 8px 8px 4px 4px; background: #F6C431; box-shadow: inset 0 -10px 0 #C2302A, inset 0 12px 0 #fff3; }
.art-img::before { content: ""; position: absolute; left: 0; right: 0; bottom: 9%; height: 2px; background: #6b4a2a; }
.art p.para { font-size: 15.5px; line-height: 1.6; margin: 0 0 12px; transition: background var(--t1) var(--ease); border-radius: 4px; }
.art p.para.is-hot { background: oklch(.26 var(--c) var(--h) / .05); }
.tr-line { display: block; font-family: -apple-system, "PingFang SC", sans-serif; font-size: 14px; line-height: 1.6; color: oklch(.42 calc(var(--c) * 1.6 + .02) var(--h)); margin: -4px 0 14px; padding-left: 10px; border-left: 2px solid oklch(.8 calc(var(--c) * 1.4) var(--h)); animation: m-in 380ms var(--ease) both; }
.art.only .para:has(+ .tr-line) { display: none; }
.art.only .tr-line { border: 0; padding: 0; color: #1d2230; font-size: 15px; margin: 0 0 12px; }

/* Notes */
.note { max-width: 520px; margin: 0 auto; padding: 44px 28px; }
.note h1 { font-size: 30px; letter-spacing: -.025em; }
.note .meta { color: #8a90a0; font-size: 12.5px; margin: 6px 0 22px; }
.note li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 15px; border-bottom: .5px solid #eef0f4; }
.note ul { padding: 0; margin: 0; }
.note .cb { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #c5cad6; flex: none; margin-top: 2px; display: grid; place-items: center; transition: background var(--t2) var(--ease); }
.note .cb.on { background: #2E6BF0; box-shadow: none; color: #fff; }
.note .cb svg { width: 11px; height: 11px; }
.note li.done span { color: #8a90a0; text-decoration: line-through; }
/* Orbit (news) */
.orb { padding: 0; }
.orb-head { background: #2B2F3E; color: #fff; display: flex; gap: 14px; align-items: center; padding: 8px 18px; font-size: 13px; }
.orb-head b { display: inline-flex; gap: 7px; align-items: center; }
.orb-head span { color: #b8bdcc; }
.orb ol { margin: 0; padding: 12px 18px 0 46px; }
.orb li { padding: 6px 0; font-size: 14px; }
.orb li small { display: block; font-size: 11.5px; color: #8a90a0; }
.orb li.is-read { background: oklch(.9 calc(var(--c) * 1.4 + .02) var(--h) / .35); border-radius: 6px; }
/* Mail */
.mail { display: flex; height: 100%; }
.mail-side { width: 150px; padding: 18px 10px; background: #f7f8fb; font-size: 13px; color: #4b5260; }
.mail-side div { padding: 6px 10px; border-radius: 7px; display: flex; justify-content: space-between; }
.mail-side div.on { background: #e6ecfb; color: #1d3f9a; font-weight: 600; }
.mail-list { flex: 1; }
.mail-row { display: grid; grid-template-columns: 120px 1fr 56px; gap: 10px; padding: 11px 16px; border-bottom: .5px solid #eef0f4; font-size: 13px; }
.mail-row b { font-weight: 650; }
.mail-row span { color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: clip; mask-image: linear-gradient(90deg,#000 85%,transparent); -webkit-mask-image: linear-gradient(90deg,#000 85%,transparent); }
.mail-row span em { font-style: normal; color: #1d2230; }
.mail-row i { font-style: normal; color: #8a90a0; text-align: right; font-size: 12px; }
.mail-row.new { background: #f3f7ff; animation: m-in 400ms var(--ease) both; }
/* Calendar */
.calp { padding: 18px; }
.calp h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: 40px repeat(5, 1fr); gap: 0; font-size: 11.5px; color: #8a90a0; }
.cal-grid > div { height: 44px; border-top: .5px solid #eef0f4; position: relative; }
.cal-grid .dh { height: 24px; border: 0; color: #4b5260; font-weight: 600; }
.ev { position: absolute; left: 3px; right: 3px; top: 3px; border-radius: 6px; padding: 4px 6px; font-size: 11px; font-weight: 600; z-index: 1; }
.ev.a { background: #E6EDFF; color: #2443A8; height: 80px; }
.ev.b { background: #FFEEDB; color: #9A5310; height: 38px; }
.ev.c { background: #E3F6EC; color: #17734A; height: 60px; }
/* Music */
.mus { height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #2b2440, #503a5f); color: #fff; }
.mus-card { text-align: center; }
.mus-art { width: 180px; height: 180px; border-radius: 14px; margin: 0 auto 16px; background: radial-gradient(circle at 30% 30%, #ff9ac4, #7a5cff 60%, #2b2440); box-shadow: 0 14px 28px rgb(0 0 0 / .4); }
.mus-card b { font-size: 17px; }
.mus-card p { color: #d3c9e6; font-size: 13px; }
.mus-bar { width: 220px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .2); margin: 14px auto 0; overflow: hidden; }
.mus-bar i { display: block; width: 38%; height: 100%; background: #fff; }
/* Recipe */
.rec { max-width: 520px; margin: 0 auto; padding: 32px 28px; }
.rec h1 { font-size: 28px; letter-spacing: -.02em; }
.rec .meta { color: #8a90a0; font-size: 12.5px; margin: 6px 0 18px; }
.rec-img { height: 130px; border-radius: 10px; background: radial-gradient(circle at 30% 50%, #F6C760 0 14%, #C9802D 15% 19%, transparent 20%), radial-gradient(circle at 58% 46%, #F6C760 0 14%, #C9802D 15% 19%, transparent 20%), radial-gradient(circle at 84% 54%, #F6C760 0 12%, #B9701F 13% 17%, transparent 18%), #F4EBDD; margin-bottom: 16px; }
.rec li { font-size: 14.5px; padding: 3px 0; }
/* Skyfare */
.sky { padding: 0; height: 100%; display: flex; flex-direction: column; }
.sky-head { padding: 14px 18px; background: linear-gradient(180deg, #1F4FD8, #2E6BF0); color: #fff; }
.sky-head b { font-size: 16px; letter-spacing: -.01em; }
.sky-q { display: flex; gap: 6px; margin-top: 10px; }
.sky-q span { background: #fff; color: #1d2230; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; font-weight: 550; flex: 1; white-space: nowrap; overflow: hidden; }
.sky-q span em { font-style: normal; color: #8a90a0; font-weight: 400; display: block; font-size: 10.5px; }
.sky-filters { display: flex; gap: 6px; padding: 10px 18px; border-bottom: .5px solid #eef0f4; font-size: 12px; }
.sky-filters span { padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px #dfe3ec; color: #4b5260; }
.sky-filters span.on { background: #1d2230; color: #fff; box-shadow: none; animation: m-in 300ms var(--ease) both; }
.sky-rows { padding: 6px 12px; }
.fl { display: grid; grid-template-columns: 26px 1fr 90px 70px; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px; font-size: 13px; transition: background var(--t2) var(--ease), opacity 400ms var(--ease), box-shadow var(--t2) var(--ease), height 400ms var(--ease); }
.fl b { font-weight: 650; }
.fl small { display: block; color: #8a90a0; font-size: 11.5px; }
.fl .pr-v { text-align: right; font-weight: 700; font-size: 14.5px; }
.fl.is-read { background: oklch(.94 calc(var(--c) * .9 + .01) var(--h)); }
.fl.is-out { opacity: .28; }
.fl.is-pick { background: #EEF4FF; box-shadow: inset 0 0 0 1.5px #2E6BF0; }
/* Checkout */
.co { max-width: 520px; margin: 0 auto; padding: 26px 28px; }
.co-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.co-head b { font-size: 18px; letter-spacing: -.01em; }
.co-trip { border-radius: 12px; padding: 14px; background: #f6f8fb; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.co-trip strong { font-size: 22px; letter-spacing: -.02em; }
.co-trip small { display: block; color: #8a90a0; font-size: 11.5px; }
.co-f { margin-bottom: 10px; }
.co-f label { display: block; font-size: 11.5px; color: #6b7280; margin-bottom: 4px; }
.co-f div { height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px #dfe3ec; padding: 0 10px; display: flex; align-items: center; font-size: 13.5px; }
.co-f div.is-typing { box-shadow: inset 0 0 0 1.5px #2E6BF0; }
.co-f div.is-typing::after { content: ""; width: 1.5px; height: 16px; background: #2E6BF0; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.co-pay { margin-top: 16px; height: 40px; border-radius: 10px; background: #C2302A; color: #fff; display: grid; place-items: center; font-weight: 650; }
.co-pay.is-ok { background: #1F9D64; }
.co-ok { text-align: center; padding: 30px 0 10px; }
.co-ok .big { width: 54px; height: 54px; border-radius: 50%; background: #E3F6EC; color: #1F9D64; display: grid; place-items: center; margin: 0 auto 12px; }
.co-ok .big svg { width: 26px; height: 26px; }
/* Sheet */
.sheet { padding: 0; font-size: 12.5px; }
.sheet table { border-collapse: collapse; width: 100%; }
.sheet td, .sheet th { border: .5px solid #e5e8ee; padding: 7px 10px; text-align: left; }
.sheet th { background: #f6f8fb; color: #6b7280; font-weight: 550; }
/* Highlight the agent's cursor focus on a page */
.agent-ring { position: absolute; pointer-events: none; z-index: 4; border-radius: 10px; box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px color-mix(in oklch, var(--accent) 18%, transparent); transition: all 500ms var(--ease); opacity: 0; }
.kz.is-driving .kz-page { box-shadow: var(--shadow-paper), 0 0 0 2px var(--accent); }

/* =====================================================================
   Sections
   ===================================================================== */
.sec { max-width: 1200px; margin: 0 auto; padding: 168px 28px 0; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 680; text-wrap: balance; }
html[lang="zh-CN"] .sec h2 { letter-spacing: -.015em; line-height: 1.15; font-weight: 640; }
.sec-head p, .split-text > p { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-2); line-height: 1.55; max-width: 36em; text-wrap: pretty; }
.sec p kbd, .sec h3 kbd { font-size: .78em; vertical-align: .08em; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { padding: 12px 12px 28px; border-radius: 26px; background: linear-gradient(180deg, #fff 70%, var(--sheen)); box-shadow: var(--shadow-paper); }
.card h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 640; margin: 24px 16px 0; }
.card p { margin: 8px 16px 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 32em; }
.viz { position: relative; height: 260px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; isolation: isolate; background: linear-gradient(165deg, var(--tone), var(--tone-2)); }
.viz::before, .viz::after { content: ""; position: absolute; inset: 0; background: url(noise-dark.png) 0 0 / 64px 64px; opacity: .07; pointer-events: none; z-index: 0; }
.viz::after { background-image: url(noise-light.png); mix-blend-mode: plus-lighter; }
.viz > * { position: relative; z-index: 1; }

.viz-dock { place-items: end center; padding: 0 24px 28px; }
.mini-page { position: absolute !important; left: 32px; right: 32px; top: 30px; bottom: -20px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-paper); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; z-index: 0 !important; }
.sk { display: block; height: 10px; border-radius: 5px; background: #EDEFF4; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.demo-dock { width: min(100%, 440px); padding: 5px 5px 5px 14px; border-radius: 14px; background: linear-gradient(180deg, #fff 55%, var(--sheen)); box-shadow: var(--shadow-paper), 0 14px 28px -12px oklch(.26 var(--c) var(--h) / .3); font-size: 13.5px; z-index: 2 !important; }
.demo-dock .dock-words { height: 20px; }

.viz-states { padding: 20px; }
.st-list { width: min(100%, 320px); display: flex; flex-direction: column; gap: 4px; }
.st-row { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--w-plate); font-size: 14px; }
.st-row:first-child { background: var(--w-cur); box-shadow: 0 0 0 .5px var(--hair), 0 1px 2px var(--hair); }
.st-t { flex: 1; }
.st-l { font-size: 12px; color: var(--ink-3); }

.viz-perm { padding: 24px; }
.viz-perm .perm { font-size: 14px; }

.viz-group { padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.grp { width: min(100%, 300px); padding: 4px; border-radius: 12px; background: rgb(255 255 255 / .2); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .45); }
.grp-head { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 620; color: var(--ink-2); }
.grp-head svg { width: 12px; height: 12px; color: var(--accent); }
.grp-tab { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 16px; border-radius: 8px; font-size: 14px; }
.grp-tab:first-of-type { background: var(--w-cur); }
.grp-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.grp-acts .kbtn { cursor: default; }

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini { padding: 22px 20px 24px; border-radius: 20px; background: rgb(255 255 255 / .55); box-shadow: 0 0 0 .5px var(--hair); }
.mini.big { padding: 28px 26px 30px; background: linear-gradient(180deg, #fff 70%, var(--sheen)); box-shadow: var(--shadow-paper); border-radius: 24px; }
.mini h3 { font-size: 16.5px; letter-spacing: -.015em; font-weight: 640; }
.mini.big h3 { font-size: 20px; }
.mini p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.mini.big p { font-size: 16px; }

/* Split sections */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.split.rev .split-text { order: 2; }
.split-viz { min-width: 0; }
.facts { margin: 36px 0 0; display: flex; flex-direction: column; gap: 18px; }
.facts div { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: baseline; }
.facts dt { font-size: 30px; font-weight: 680; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts dt svg { width: 24px; height: 24px; color: var(--ink-2); transform: translateY(4px); }
.facts dd { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Tidy demo */
.tidy { border-radius: 26px; padding: 26px 22px; min-height: 420px; box-shadow: var(--shadow-paper); max-width: 400px; margin: 0 auto; overflow: hidden; font-size: 14.5px; }
.tidy .tab { height: 38px; padding: 0 12px; border-radius: 10px; gap: 11px; }
.tidy .tab.enter { animation: tab-in2 450ms var(--ease) both; }
@keyframes tab-in2 { from { opacity: 0; transform: translateY(-6px); height: 0; } to { opacity: 1; transform: none; height: 38px; } }
.tidy-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.tidy-div { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding-left: 12px; }
.tidy-line { flex: 1; height: 1px; background: var(--hair); }
.tidy-clear { border: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--w-plate); height: 28px; padding: 0 12px; border-radius: 8px; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.tidy-clear:hover { background: var(--w-cur); color: var(--ink); }
.tidy-clear:active { transform: scale(.96); }
.tidy-kept { display: flex; flex-direction: column; gap: 2px; }
.tidy-toast { position: absolute !important; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 12px; background: var(--glass); color: #fff; font-size: 14px; font-weight: 520; animation: dock-in2 300ms var(--ease) both; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.tidy-toast[hidden] { display: none; }
@keyframes dock-in2 { from { opacity: 0; transform: translateY(8px); } }
.tidy-undo { border: 0; cursor: pointer; height: 30px; padding: 0 14px; border-radius: 9px; background: rgb(255 255 255 / .16); color: #fff; font-weight: 620; font-size: 13.5px; transition: background var(--t1) var(--ease); }
.tidy-undo:hover { background: rgb(255 255 255 / .26); }
.tidy-empty { color: var(--ink-3); font-size: 13.5px; padding: 10px 12px; }

/* Translation demo */
.paper { border-radius: 26px; background: linear-gradient(180deg, #fff 70%, var(--sheen)); box-shadow: var(--shadow-paper); }
.trv { padding: 22px 26px 22px; }
.trv .seg { font-size: 13.5px; max-width: 420px; }
.trv .seg button { height: 30px; }
.trv-doc { margin-top: 22px; font-family: "Iowan Old Style", "Palatino", Georgia, serif; }
.trv-doc h4 { font-size: 24px; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; color: #1d2230; }
.trv-doc .para { font-size: 16.5px; line-height: 1.6; color: #1d2230; margin: 0 0 12px; border-radius: 6px; transition: background var(--t1) var(--ease); }
.trv-doc .para:hover { background: oklch(.26 var(--c) var(--h) / .04); }
.trv-doc .tr-line { font-size: 15px; margin: -4px 0 16px; }
.trv-doc[data-mode="only"] .para:has(+ .tr-line), .trv-doc[data-mode="only"] h4:has(+ .tr-line) { display: none; }
.trv-doc[data-mode="only"] .tr-line { border: 0; padding: 0; color: #1d2230; font-size: 16.5px; margin: 0 0 12px; }
.trv-doc h4 + .tr-line { font-size: 19px; font-weight: 600; margin-top: -8px; }
.trv-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* Palette demo */
.pal-standalone { padding: 44px 36px; border-radius: 26px; box-shadow: var(--shadow-paper); min-height: 440px; }
.pal-standalone .kz-pal { box-shadow: 0 0 0 .5px var(--edge), 0 2px 6px rgb(0 0 0 / .06), 0 12px 28px -12px rgb(0 0 0 / .28); font-size: 14.5px; }
.pal-standalone .kz-pal button { border: 0; background: none; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.try { border: 0; cursor: pointer; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 520; transition: background var(--t1) var(--ease), transform var(--t1) var(--ease); }
.try:hover { background: var(--fill-h); }
.try:active { transform: scale(.96); }

/* Ad blocking demo */
.adv { overflow: hidden; max-width: 560px; margin: 0 auto; }
.adv-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: .5px solid var(--hair); }
.adv-addr { flex: 1; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; background: oklch(.26 var(--c) var(--h) / .04); box-shadow: var(--well); color: var(--ink-2); font-size: 14px; }
.adv-addr svg { width: 12px; height: 12px; opacity: .7; }
.adv-switch { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px 0 11px; border-radius: 10px; border: 0; cursor: pointer; background: var(--fill); font-size: 13.5px; font-weight: 640; color: var(--ink); transition: background var(--t1) var(--ease); font-variant-numeric: tabular-nums; }
.adv-switch:hover { background: var(--fill-h); }
.adv-switch svg { width: 15px; height: 15px; color: #1F9D64; }
.adv-knob { width: 32px; height: 20px; border-radius: 999px; background: #34C27A; position: relative; transition: background var(--t2) var(--ease); }
.adv-knob::after { content: ""; position: absolute; top: 2px; left: 14px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: left var(--t2) var(--ease); }
.adv[data-on="false"] .adv-knob { background: oklch(.26 var(--c) var(--h) / .2); }
.adv[data-on="false"] .adv-knob::after { left: 2px; }
.adv[data-on="false"] .adv-switch svg { color: var(--ink-3); }
.adv-body { position: relative; padding: 22px 26px 14px; display: flex; flex-direction: column; gap: 11px; min-height: 300px; }
.adv-body h4 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; color: #1d2230; font-family: "Iowan Old Style", Georgia, serif; }
.adv-ad { display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(135deg, #FFE7A8 0 12px, #FFD86B 12px 24px); color: #8A5A00; font-weight: 800; font-size: 13px; letter-spacing: .1em; transition: height 420ms var(--ease), opacity 300ms var(--ease), margin 420ms var(--ease); }
.adv-ad.top { height: 64px; }
.adv-ad.mid { height: 84px; background: repeating-linear-gradient(135deg, #FFD0DC 0 12px, #FFB3C6 12px 24px); color: #9A2048; }
.adv-pop { position: absolute !important; right: 18px; bottom: 18px; width: 170px; height: 90px; border-radius: 12px; display: grid; place-items: center; background: #2B2F3E; color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgb(0 0 0 / .25); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.adv[data-on="true"] .adv-ad { height: 0; opacity: 0; margin: -5.5px 0; }
.adv[data-on="true"] .adv-pop { opacity: 0; transform: translateY(10px) scale(.96); }
.adv-note { padding: 12px 26px 18px; font-size: 13.5px; color: var(--ink-3); border-top: .5px solid var(--hair); }

/* Colour */
.tones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tone-card { border: 0; background: none; cursor: pointer; padding: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; font-size: 15px; font-weight: 560; color: var(--ink-2); transition: transform var(--t1) var(--ease); }
.tone-card:active { transform: scale(.98); }
.tone-card.is-private { cursor: default; }
.tw { position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, var(--tone), var(--tone-2)); box-shadow: 0 0 0 .5px var(--edge), 0 10px 28px -12px oklch(.26 var(--c) var(--h) / .35); transition: box-shadow var(--t2) var(--ease), transform var(--t2) var(--ease); }
.tw::before, .tw::after { content: ""; position: absolute; inset: 0; background: url(noise-dark.png) 0 0 / 64px 64px; opacity: .07; z-index: 0; }
.tw::after { background-image: url(noise-light.png); mix-blend-mode: plus-lighter; }
.tw i { position: absolute; z-index: 1; left: 8%; top: 14%; width: 22%; height: 72%; display: block; background:
  linear-gradient(var(--w-cur), var(--w-cur)) 0 0 / 100% 12% no-repeat,
  linear-gradient(oklch(.26 calc(var(--c) * 1.1) var(--h) / .22), oklch(.26 calc(var(--c) * 1.1) var(--h) / .22)) 10% 26% / 70% 5% no-repeat,
  linear-gradient(oklch(.26 calc(var(--c) * 1.1) var(--h) / .16), oklch(.26 calc(var(--c) * 1.1) var(--h) / .16)) 10% 40% / 60% 5% no-repeat,
  linear-gradient(oklch(.26 calc(var(--c) * 1.1) var(--h) / .16), oklch(.26 calc(var(--c) * 1.1) var(--h) / .16)) 10% 54% / 75% 5% no-repeat; border-radius: 4px; }
.tw b { position: absolute; z-index: 1; left: 33%; right: 4%; top: 6%; bottom: 6%; border-radius: 8px; background: #fff; box-shadow: 0 0 0 .5px var(--edge), 0 4px 10px -4px oklch(.26 var(--c) var(--h) / .2); }
.tone-card[aria-checked="true"] { color: var(--ink); }
.tone-card[aria-checked="true"] .tw { box-shadow: 0 0 0 .5px var(--edge), 0 0 0 3px #fff, 0 0 0 4.5px var(--ink-2), 0 14px 30px -12px oklch(.26 var(--c) var(--h) / .4); }

.tw-private { --tone: oklch(.29 .02 275); --tone-2: oklch(.26 .025 295); --w-cur: rgb(255 255 255 / .12); }
.tw-private i { background:
  linear-gradient(rgb(255 255 255 / .14), rgb(255 255 255 / .14)) 0 0 / 100% 12% no-repeat,
  linear-gradient(rgb(255 255 255 / .2), rgb(255 255 255 / .2)) 10% 26% / 70% 5% no-repeat,
  linear-gradient(rgb(255 255 255 / .13), rgb(255 255 255 / .13)) 10% 40% / 60% 5% no-repeat,
  linear-gradient(rgb(255 255 255 / .13), rgb(255 255 255 / .13)) 10% 54% / 75% 5% no-repeat; }
.tw-private b { background: oklch(.2 .015 275); box-shadow: 0 0 0 .5px rgb(255 255 255 / .12); }
.tw-private::after { opacity: .04; }

/* Import */
.imp { padding: 22px; max-width: 520px; margin: 0 auto; }
.imp-from { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: oklch(.26 calc(var(--c) * 1.1) var(--h) / .05); box-shadow: var(--well); }
.imp-from button { flex: 1; border: 0; background: none; cursor: pointer; height: 32px; border-radius: 9px; font-size: 14px; font-weight: 560; color: var(--ink-3); transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.imp-from button:hover { color: var(--ink); }
.imp-from button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 .5px var(--edge), 0 1px 2px var(--hair); }
.imp-list { list-style: none; margin: 18px 0 0; padding: 0; }
.imp-list li { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 6px; border-bottom: .5px solid var(--hair); font-size: 15.5px; }
.imp-list li:last-child { border-bottom: 0; }
.imp-list li b { margin-left: auto; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.imp-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); transition: background var(--t2) var(--ease), color var(--t2) var(--ease); }
.imp-ic svg { width: 15px; height: 15px; }
.imp-list li.is-done .imp-ic { background: #E3F6EC; color: #1F9D64; }
.imp-list li.is-now .imp-ic { background: color-mix(in oklch, var(--accent) 14%, #fff); color: var(--accent); }
.imp-go { width: 100%; height: 44px; margin-top: 16px; font-size: 15px; border-radius: 12px; }

/* Closing */
.closing { position: relative; padding: 200px 14px 28px; text-align: center; overflow: hidden; }
.closing-in { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.kanji { font-size: 220px; line-height: 1; font-weight: 300; color: oklch(.26 calc(var(--c) * 1.1) var(--h) / .09); margin-bottom: -40px; font-family: "Hiragino Mincho ProN", "Songti SC", serif; user-select: none; }
.closing h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 680; }
html[lang="zh-CN"] .closing h2 { letter-spacing: -.02em; line-height: 1.15; }
.closing p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 30em; }

/* Footer */
.foot { border-top: .5px solid var(--hair); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 26px 14px 28px; display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--ink-3); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-links { display: flex; gap: 18px; margin-right: auto; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid5 { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 48px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-text { order: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .tones { grid-template-columns: repeat(3, 1fr); }
  .sec { padding-top: 120px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-in { padding: 0 16px; gap: 12px; }
  .nav-end .btn { display: none; }
  .hero { padding: 36px 18px 0; }
  .hero-icon { width: 68px; height: 68px; margin-bottom: 22px; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { flex-direction: column; align-self: stretch; }
  .hero-cta .btn { width: 100%; }
  .demo { margin-top: 44px; }
  .stage { margin: 0 -6px; width: calc(100% + 12px); }
  .chapters { gap: 12px; margin-top: 20px; }
  .chap-list { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .chap { height: 34px; padding: 0 13px; font-size: 14px; }
  .caption { font-size: 14.5px; color: var(--ink-2); min-height: 3em; }
  .sec { padding: 96px 18px 0; }
  .sec-head { margin-bottom: 32px; }
  .card { border-radius: 22px; }
  .viz { height: 230px; }
  .grid5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid5 .mini:last-child { grid-column: 1 / -1; }
  .mini { padding: 18px 16px 20px; }
  .tones { grid-template-columns: 1fr 1fr; gap: 14px; }
  .facts div { grid-template-columns: 64px 1fr; }
  .tidy { min-height: 380px; padding: 20px 14px; }
  .pal-standalone { padding: 20px 12px; min-height: 0; }
  .trv { padding: 18px; }
  .trv .seg { font-size: 12.5px; }
  .trv .seg button { padding: 0 6px; }
  .imp { padding: 16px; }
  .imp-from button { font-size: 13px; }
  .closing { padding: 140px 14px 28px; }
  .kanji { font-size: 160px; margin-bottom: -28px; }
  .foot-in { flex-wrap: wrap; gap: 14px 20px; padding: 22px 14px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; transition: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .fav.is-working::after, .halo-dot::before { animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
.closing p.hero-meta { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
/* Small screens: a narrower window without the side panel, so the page reads larger. */
.stage.is-compact { aspect-ratio: 860 / 700; }
.kz.is-compact { width: 860px; height: 700px; }
.kz.is-compact .kz-chat { display: none; }
.kz.is-compact .kz-agentbtn { display: none; }
.kz.is-compact .kz-pal { width: 520px; top: 110px; }
@media (max-width: 640px) {
  .demo-dock kbd, .demo-dock .dock-sep, .demo-dock .dbtn:first-of-type { display: none; }
  .demo-dock { padding-left: 12px; }
}

/* The dock: Kaze's dark pill. */
.kz-dock:not(.is-perm), .demo-dock {
  height: 36px; padding: 0 4px 0 12px; gap: 4px; border-radius: 12px; min-width: 0;
  background: rgb(29 29 29 / .88); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .14), 0 12px 32px -10px rgb(0 0 0 / .45), 0 2px 6px rgb(0 0 0 / .14);
  display: flex; align-items: center;
}
.kz-dock:not(.is-perm) { min-width: 400px; }
.kz-dock.is-perm { background: linear-gradient(180deg, #fff 55%, var(--sheen)); }
.kz-dock:not(.is-perm) .dock-words, .demo-dock .dock-words {
  display: grid; align-items: center; height: 36px; margin: 0 8px 0 9px; color: #fff; font-weight: 520;
}
.kz-dock:not(.is-perm) .dock-word, .demo-dock .dock-word { position: static; grid-area: 1 / 1; line-height: 20px; }
.kz-dock:not(.is-perm) .dock-sep, .demo-dock .dock-sep { background: rgb(255 255 255 / .16); }
.kz-dock:not(.is-perm) .dbtn, .demo-dock .dbtn { height: 28px; border-radius: 8px; background: rgb(255 255 255 / .14); color: #fff; }
.kz-dock:not(.is-perm) button.dbtn:hover { background: rgb(255 255 255 / .24); color: #fff; }
.kz-dock:not(.is-perm) .dbtn.glass { background: rgb(255 255 255 / .9) !important; color: #1d1d1d !important; box-shadow: none; }
.kz-dock:not(.is-perm) .dbtn.glass:hover { background: #fff !important; color: #1d1d1d !important; }
.kz-dock .halo-dot::before, .demo-dock .halo-dot::before { background: conic-gradient(from var(--a, 0deg), transparent 0 40%, #fff 85%, transparent); }
.kz-dock .halo-dot::after, .demo-dock .halo-dot::after { background: oklch(.78 .1 var(--h)); }
.demo-dock { width: min(100%, 420px); font-size: 13.5px; }
.kz-dock:not(.is-perm) { min-width: 460px; }
.kz-dock:not(.is-perm) .dock-words { flex: 1 1 auto; min-width: 250px; }
.kz-dock:not(.is-perm) .dock-word.in, .demo-dock .dock-word.in { animation-name: word-in-d; }
.kz-dock:not(.is-perm) .dock-word.out, .demo-dock .dock-word.out { animation-name: word-out-d; }
@keyframes word-in-d { from { opacity: 0; transform: translateY(22px); } }
@keyframes word-out-d { to { opacity: 0; transform: translateY(-22px); } }
.kz-dock .dbtn kbd, .demo-dock .dbtn kbd { color: #fff; background: none; opacity: .6; }
.viz-dock .mini-page { z-index: 1 !important; }
.viz-dock .demo-dock { z-index: 2 !important; }

/* GitHub link in the nav */
.nav-gh { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: background var(--t1) var(--ease), color var(--t1) var(--ease); }
.nav-gh:hover { background: var(--fill); color: var(--ink); }
.nav-gh svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .nav-gh { width: 32px; padding: 0; justify-content: center; } .nav-gh span { display: none; } }

/* Colour tiles (the app's ColorTile): fixed Apple system colours by meaning, not tone-driven. */
/* Colour tiles: light, in the site's airy register — a pale wash of the
   meaning's hue lit from above, the glyph in the hue itself (iOS's tinted
   icons), a white top highlight, a hue-tinted hairline, a soft contact shadow. */
.ctile {
  --th: 310; --tk: 1; --tg: .58;
  width: 40px; height: 40px; border-radius: 10.5px; display: grid; place-items: center; margin-bottom: 16px;
  color: oklch(var(--tg) calc(.17 * var(--tk)) var(--th));
  background: linear-gradient(180deg, oklch(.975 calc(.025 * var(--tk)) var(--th)), oklch(.915 calc(.07 * var(--tk)) var(--th)));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .9),
    inset 0 0 0 .5px oklch(.5 calc(.12 * var(--tk)) var(--th) / .16),
    0 1px 2px oklch(.4 calc(.1 * var(--tk)) var(--th) / .10),
    0 3px 8px -3px oklch(.4 calc(.1 * var(--tk)) var(--th) / .16);
}
.ctile svg { width: 22px; height: 22px; }
.mini.big .ctile { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 18px; }
.mini.big .ctile svg { width: 24px; height: 24px; }
.ct-purple { --th: 305; }
.ct-orange { --th: 58; --tg: .7; }
.ct-teal   { --th: 210; --tk: .85; }
.ct-indigo { --th: 278; }
.ct-red    { --th: 22; }
.ct-blue   { --th: 255; }
.ct-green  { --th: 150; --tk: .9; }
