/* Homepage only: hero, the scripted Kalamos window, the stage, bento, jobs, film, download and closing. */
@keyframes row-enter { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes check-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: 118px 0 0; text-align: center; }
.announce { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.announce b { color: var(--ink); font-weight: 500; }
.announce .go { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pill); }
.announce .go .icon { width: 12px; height: 12px; stroke-width: 2; }
.announce:hover .go { background: var(--pill-hover); }
h1 { margin: 30px 0 0; font-weight: 500; font-size: clamp(46px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -.035em; }
h1 .word { display: inline-block; }
/* 认识 and the wordmark are centred on their outer edges, which is what the eye reads (measured at 1440px).
   The ink centroids already matched, but the mark's ascenders rose above 认识 and 认识 hung below the mark's
   baseline, so the mark looked high. At .86em/600 认识 is the mark's height within 7%; the mark then drops
   .09em so both boxes share one centre, the mark sitting about 2px inside 认识 at top and bottom. */
h1 .kw-slot { height: .74em; margin-left: .2em; vertical-align: -.02em; cursor: default; }
:lang(zh-Hans) h1 .hero-cn { font-size: .86em; font-weight: 600; letter-spacing: -.01em; position: relative; top: -.054em; }
:lang(en) h1 .kw-slot { vertical-align: 0; margin-left: .24em; }
.hero-sub { margin: 26px auto 0; max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: balance; }
/* Two lines: the line with "Proven, better, new.", then "Focus and simplicity..." under it. */
.hero-sub > span { display: block; }
.hero-cta { position: relative; z-index: 6; margin-top: 34px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
/* Once a direct download starts: which installer is coming and where the install steps are. It sits under the
   buttons out of the flow, so nothing below moves; hide the sibling platform hint cleanly so they never overlap. */
.dl-started { position: absolute; left: 0; right: 0; top: calc(100% + 14px); margin: 0; font-size: 13px; color: var(--muted); text-align: center; animation: fade-up 360ms var(--ease-snap) both; }
.dl-started a { margin-left: 14px; color: var(--ink); font-weight: 500; }
.dl-started a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-cta.is-downloading + .hero-platforms { visibility: hidden; }

/* ---------- The pinned note: two sheets of warm paper on a brass tack beside the subtitle ----------
   The note and the subtitle with its buttons read as one group centred under the title: home.js moves the
   text right by half the note's width plus the gap and hangs the note just left of the subtitle's last line.
   The front sheet carries the WeChat code, the one behind it the email, its corner showing. home.js hangs the
   pair from the tack as a damped pendulum in a light breeze; a click tucks the front sheet behind the other,
   and a held press picks the note up (upright, raised, larger) so the code scans easily. The pale paper keeps
   the brown code at full contrast and is its quiet zone, so it scans at any of these angles. */
.hero .wrap { position: relative; }
.note { position: absolute; left: 0; top: 0; z-index: 3; width: 118px; text-align: center; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; visibility: hidden; opacity: .72; transition: opacity 320ms var(--ease-snap); }
.note *, .modes, .modes *, .greet-mark, .kw-slot, .job-chip, .picks, .picks *, .qa button { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.note::selection, .note *::selection { background: transparent; color: inherit; }
/* At rest it stays light; under the pointer or in the hand it comes to full strength for scanning. */
.note:hover, .note.held { opacity: 1; }
.note.placed { visibility: visible; }
.note.held { cursor: grabbing; }
.note-sway { transform-origin: 50% 11px; transform: rotate(-5deg); will-change: transform; }
.note-stack { --lift: 0; position: relative; display: grid; isolation: isolate; transform-origin: 50% 11px; will-change: transform; }
.note-paper {
  grid-area: 1 / 1; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 11px 8px; border-radius: 2px 2px 7px 2px; transform-origin: 50% 11px; will-change: transform;
  background-color: #fcfbf7; transition: background-color 400ms;
  background-image: linear-gradient(176deg, rgb(255 255 255 / 50%) 0%, rgb(255 255 255 / 0%) 58%, rgb(120 96 60 / 7%) 100%);
  box-shadow: 0 0 0 .5px rgb(70 56 30 / 11%), 0 1px 2px rgb(70 56 30 / 10%), 2px 6px 11px -4px rgb(60 46 24 / 22%),
    0 calc(8px + var(--lift) * 22px) calc(14px + var(--lift) * 26px) calc(-8px - var(--lift) * 4px) rgb(60 46 24 / calc(.28 - var(--lift) * .06));
}
/* The sheet behind sits in the front one's shade and never intercepts touches. */
.note-paper.back { background-color: #f3f0e8; }
.note-paper.back, .note-paper.back * { pointer-events: none !important; }
:root[data-theme="dark"] .note-paper {
  background-color: #f4f1e8;
  box-shadow: 0 0 0 .5px rgb(20 18 14 / 22%), 0 2px 5px rgb(0 0 0 / 26%),
    0 calc(8px + var(--lift) * 20px) calc(16px + var(--lift) * 24px) -8px rgb(0 0 0 / .42);
}
:root[data-theme="dark"] .note-paper.back { background-color: #e4dfd3; }
/* A brass thumbtack through both sheets: flat round head, a darker rim, a highlight, and its shadow on the paper. */
.pin {
  position: absolute; z-index: 3; top: 5px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff4d6 0 9%, #e3c27e 26%, #b98d43 58%, #8a6427 82%, #6e4f1e 100%);
  box-shadow: inset 0 0 0 1px rgb(110 78 28 / 55%), inset 0 -1.5px 2px rgb(60 40 10 / 35%), 1.5px 2.5px 2.5px rgb(50 36 14 / 38%);
}
.pin::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; box-shadow: inset 0 0 0 .75px rgb(255 240 200 / 55%); }
/* Set larger than they read: home.js draws the whole note at .75, so these land near 8-11px on screen. */
.note-title { margin: 0 0 5px; font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8a7553; }
:lang(zh-Hans) .note-title { font: 400 17px/1.1 var(--brush); letter-spacing: .06em; text-transform: none; font-synthesis: none; }
.note-qr { display: block; width: 92px; height: 92px; margin: 0 auto; mix-blend-mode: multiply; pointer-events: none; -webkit-user-drag: none; opacity: .74; transition: opacity 320ms var(--ease-snap); }
.note:hover .note-qr, .note.held .note-qr { opacity: 1; }
.note-cap { margin: 5px 0 0; font: 11px/1.3 var(--ui); color: #a2937a; }
.note .qr-hold { display: none; }
@media (hover: none) { .note .qr-scan { display: none; } .note .qr-hold { display: inline; } }
/* The email on a square sheet: an envelope, then the address broken at the @ so the name can be large. */
.note-mail { display: flex; flex-direction: column; align-items: center; width: 92px; height: 92px; justify-content: center; color: #6b5a3e; text-decoration: none; cursor: pointer; }
.note-mail svg { width: 34px; height: 24px; margin-bottom: 9px; fill: none; stroke: #8a7553; stroke-width: 1.6; stroke-linejoin: round; transition: transform 300ms var(--ease-snap); }
.note-mail b { font: 600 19px/1.1 var(--sans); letter-spacing: -.01em; color: #5a4a32; }
.note-mail span { margin-top: 2px; font: 500 12.5px/1.2 var(--sans); color: #8a7553; }
.note-mail:hover svg { transform: translateY(-2px); }
.note-mail:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- The Kalamos window ---------- */
.app {
  position: relative; margin: 76px auto 0; width: min(1200px, 100% - 32px); height: 680px; border-radius: 26px;
  background: var(--paper); box-shadow: var(--win-shadow); overflow: hidden; text-align: left;
  display: grid; grid-template-columns: 252px 1fr; grid-template-rows: minmax(0, 1fr); font-family: var(--ui);
}
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; min-width: 0; min-height: 0; }
.side-top { display: flex; align-items: center; gap: 8px; height: 26px; padding-left: 4px; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.modes { margin-left: auto; display: flex; padding: 2px; border-radius: 8px; background: rgb(127 125 118 / 13%); font-size: 12px; position: relative; }
.modes span { position: relative; z-index: 1; padding: 3px 11px; border-radius: 6px; color: var(--muted); transition: color 300ms, transform 140ms var(--ease-snap); }
.modes span.on { color: var(--ink); }
.modes i { position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: 6px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 10%); transition: transform 420ms var(--ease-snap), width 420ms var(--ease-snap); }
.side-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; margin-top: 14px; border-radius: 8px; font-size: 14px; color: var(--ink); transition: background-color 200ms, transform 140ms var(--ease-snap); }
.side-item.quiet { margin-top: 2px; color: var(--ink-2); }
.side-item.hover { background: rgb(127 125 118 / 12%); }
.side-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-top: 10px; border-radius: 9px; background: rgb(127 125 118 / 9%); font-size: 13px; color: var(--faint); }
.side-search .icon { width: 15px; height: 15px; }
.side-head { margin: 18px 8px 6px; font-size: 12px; color: var(--muted); }
.rows { display: flex; flex-direction: column; gap: 2px; }
.row { padding: 8px 10px; border-radius: 10px; animation: row-enter 380ms var(--ease-snap) calc(var(--n, 0) * 50ms) both; transition: background-color 300ms; }
.row.active { background: rgb(127 125 118 / 13%); }
.row.new { animation: row-new 520ms var(--ease-snap) both; }
@keyframes row-new { from { opacity: 0; transform: translateY(-6px); max-height: 0; padding-block: 0; } to { opacity: 1; transform: none; max-height: 60px; } }
.row-top { display: flex; align-items: center; gap: 8px; }
.row-t { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.row .kw-slot { height: 9px; display: none; }
.row.busy .kw-slot { display: inline-block; }
.row.busy .row-time { display: none; }
.row-p { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 13px; color: var(--muted); }

.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main-head { display: flex; align-items: center; gap: 10px; height: 54px; flex: none; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; transition: border-color 400ms; }
.main.home .main-head { border-bottom-color: transparent; }
.main-head .t { font-weight: 500; color: var(--ink); }
.main-head .ctx { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.main-head .ctx .icon { width: 14px; height: 14px; }
.thread {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 26px 0 30px;
  -webkit-mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 24px), transparent);
  transition: opacity 320ms var(--ease-snap), filter 320ms;
}
.thread::-webkit-scrollbar { display: none; }
.thread.leaving { opacity: 0; filter: blur(6px); }
/* Home: the greeting and the composer share the middle of the window; a conversation sends the composer down. */
.greet, .below, .spacer { display: none; }
.main.home .thread { display: none; }
.main.home .greet { display: flex; flex: 1; align-items: flex-end; justify-content: center; padding-bottom: 30px; }
.main.home .below { display: flex; }
.main.home .spacer { display: block; flex: 1.2; }
.main.home .composer { margin-bottom: 0; }
.greet-line { display: inline-flex; align-items: center; gap: 14px; height: 46px; white-space: nowrap; color: var(--ink); }
/* line-height 0: the box is exactly the drawing, so centring it in the line centres the ink (no strut gap under
   the inline SVG pushing it up). */
.greet-mark { position: relative; flex: none; width: 132px; line-height: 0; cursor: pointer; transition: transform 140ms var(--ease-snap); }
.greet-mark.press, .greet-mark:active { transform: scale(.96); }
.greet-mark .kw-slot { width: 100%; }
/* A small tag over the mark: the visitor can draw a lot too. Hidden while a lot is drawn, and for good once
   the visitor has drawn one, until the window goes back to its script. */
.lot-hint {
  position: absolute; left: 50%; bottom: calc(100% + 12px); display: block; padding: 4px 10px 3px; border-radius: 999px;
  font: 12px/1.4 var(--ui); white-space: nowrap; color: var(--muted); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgb(40 36 28 / 6%);
  transform: translateX(-50%); pointer-events: none; transition: opacity 360ms var(--ease-snap), translate 360ms var(--ease-snap);
  animation: hint-bob 2.8s ease-in-out infinite;
}
.lot-hint::after { content: ""; position: absolute; left: 50%; top: 100%; width: 7px; height: 7px; margin: -4px 0 0 -3.5px; background: var(--surface); box-shadow: 1px 1px 0 0 var(--line-2); transform: rotate(45deg); }
.lot-hint .hint-tap { display: none; }
@media (hover: none) { .lot-hint .hint-click { display: none; } .lot-hint .hint-tap { display: inline; } }
.greet.drawing .lot-hint, .lot-hint.used { opacity: 0; translate: 0 4px; }
@keyframes hint-bob { 50% { transform: translateX(-50%) translateY(-3px); } }
.greet-mark .kalamos-wordmark .kw-m.is-drawn { color: var(--lot-seal); }
.lot {
  --lot-seal: #c23a2b; --lot-bamboo: #b98a4e; --lot-bamboo-dark: #8a6233;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: .32em; height: 1.15em; overflow: visible;
  font: 400 31px/1.15 var(--brush); font-synthesis: none; transition: width 380ms var(--ease-snap);
}
:root[data-theme="dark"] .lot, :root[data-theme="dark"] .greet-mark { --lot-seal: #d9564a; --lot-bamboo: #c79a5c; --lot-bamboo-dark: #9c7341; }
.lot-measure { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; display: inline-flex; align-items: center; gap: .32em; font: 400 31px/1.15 var(--brush); white-space: nowrap; }
.lot-invite { color: var(--faint); font-size: .8em; }
/* Chinese lines, measured at 2x against the mark's ink (ascender top to baseline): the web subset (Kalamos
   Brush) sits centred as set; the locally installed FZ face rides 2px high in the same line, so home.js marks
   the page brush-fz when that face is the one in use and the line comes down. */
.lot-words { display: inline-block; position: relative; white-space: nowrap; }
.lot-invite { position: relative; }
.lot-invite:not(.en) { top: .04em; }
.brush-fz .lot-words:not(.en) { top: .065em; }
.brush-fz .lot-invite:not(.en) { top: .12em; }
.lot-words.rolling { opacity: .5; overflow: hidden; text-align: center; }
/* The Owner's seals, cut from their sheets (media/seals): a tall seal stands a little taller than the line, a
   square one about its height. On light paper the red multiplies into it, as stamped ink does. */
.lot-seal { position: relative; top: -.03em; display: block; flex: none; height: 1.34em; width: calc(1.34em * var(--a)); margin-left: .08em; transform: rotate(-2deg); -webkit-user-drag: none; user-select: none; }
.lot-seal.square { height: 1.22em; width: calc(1.22em * var(--a)); }
:root:not([data-theme="dark"]) .lot-seal { mix-blend-mode: multiply; }
/* English lots: no seal, the site's sans at .8 of the brush size, about two thirds of the wordmark's height.
   Centred on the visual centre, as the state labels are: in the Owner's Chrome (2026-10-27) the line read
   1px high and "Today's lot" 2.5-3px high with their ascender-to-baseline boxes centred, because the eye
   weighs the x-height band, so both come down. The Do / Don't labels step back. */
.lot-words.en, .lot-invite.en { font-family: var(--sans); font-synthesis: none; position: relative; }
.lot-words.en { font-size: .8em; font-weight: 500; letter-spacing: -.01em; top: .11em; }
.lot-words.en b { font-weight: 500; color: var(--muted); margin-right: .3em; }
.lot-words.en i { font-style: normal; color: var(--faint); margin: 0 .55em; }
.lot-invite.en { font-size: .62em; letter-spacing: .01em; top: .15em; }
.lot-tube { position: relative; top: -.19em; display: block; flex: none; width: .78em; height: 1.32em; overflow: visible; transform-box: fill-box; transform-origin: 50% 100%; }
.lot-tube .tube-body { fill: var(--lot-bamboo); }
.lot-tube .tube-band { fill: var(--lot-bamboo-dark); }
.lot-tube .tube-stick { fill: var(--lot-bamboo); stroke: var(--lot-bamboo-dark); stroke-width: .6; transform-box: fill-box; }
.lot-tube .tube-stick.is-drawn { fill: var(--lot-seal); stroke: var(--lot-seal); }
.below { width: min(640px, 100% - 48px); margin: 12px auto 0; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.below > span { display: inline-flex; align-items: center; gap: 6px; }
.below .icon { width: 14px; height: 14px; }
.below .chev { width: 12px; height: 12px; }

.col { width: min(640px, 100% - 48px); margin-inline: auto; }
.enter { animation: enter 300ms var(--ease-snap) both; }
.msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-bottom: 22px; }
.bubble { max-width: 82%; padding: 10px 15px; border-radius: 18px; background: var(--bubble); font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chip b { color: var(--ink); font-weight: 500; }
.chip .icon { width: 14px; height: 14px; }
.turn { margin-bottom: 18px; }
.turn-head { display: flex; align-items: center; gap: 12px; height: 22px; }
.turn-head .kw-slot { height: 15px; }
.label { font-size: 13px; color: var(--muted); }
/* State labels beside the small wordmark, measured at 2x: Latin labels sat 1.3px (outer box) to 2px (ink
   centroid) above the mark, Chinese ones 1px by their outer edges; each comes down by that much. */
.turn-head .label, .mini-head > span:not(.kw-slot) { position: relative; top: .12em; }
:lang(zh-Hans) .turn-head .label, :lang(zh-Hans) .mini-head > span:not(.kw-slot) { top: .08em; }
.label.swap { animation: fade-up 260ms var(--ease-snap) both; }
.label.pending {
  color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 300% 100%;
  background-image: linear-gradient(90deg, var(--muted) 0%, var(--muted) 40%, var(--ink) 50%, var(--muted) 60%, var(--muted) 100%);
  animation: shimmer 1.9s linear infinite;
}
.turn-body { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.check .tick { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--ok); }
.check .tick .icon { width: 14px; height: 14px; stroke-width: 2.2; animation: check-in 260ms var(--ease-snap) both; }
.check .spin { width: 12px; height: 12px; margin: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--ink); animation: spin 900ms linear infinite; }
.check.mono { font-family: var(--mono); font-size: 12.5px; }
.outline { padding: 12px 16px; border-radius: 14px; background: var(--card); font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.doc { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.doc h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.doc p { margin: 0 0 6px; font-size: 14px; line-height: 1.75; color: var(--ink-2); min-height: 1.75em; }
.doc .caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); animation: kw-caret 1060ms linear infinite; }
.ask { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.ask .file { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-fg); flex: none; }
.ask .what { flex: 1; min-width: 0; }
.ask strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ask span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask .b { height: 32px; padding: 0 14px; border-radius: 10px; font-size: 13px; display: grid; place-items: center; flex: none; transition: transform 140ms var(--ease-snap); }
.ask .deny { box-shadow: inset 0 0 0 1px var(--line-2); }
.ask .allow { background: var(--solid); color: var(--solid-fg); }
.press { transform: scale(.94); }
.receipt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.receipt b { color: var(--ink); font-weight: 500; }
.receipt .icon { width: 15px; height: 15px; color: var(--ok); stroke-width: 2; }
.meter { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.chart { padding: 16px 18px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.chart-head { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.chart-head .btn { height: 28px; padding: 0 12px; font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 14px; }
.bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: var(--tone-mos); transform-origin: 50% 100%; animation: bar-grow 700ms var(--ease-out) calc(var(--n) * 45ms) both; }
.composer {
  position: relative; flex: none; width: min(640px, 100% - 48px); margin: 0 auto 22px; padding: 14px 16px 12px; border-radius: 20px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px rgb(40 36 28 / 5%);
}
.composer .attach { display: flex; gap: 6px; margin-bottom: 10px; }
.composer .attach:empty { display: none; }
.composer .field { min-height: 22px; font-size: 14.5px; line-height: 22px; color: var(--ink); }
.composer .ph { color: var(--faint); }
.composer .caret { display: inline-block; width: 1.5px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--ink); opacity: 0; }
.composer.typing .caret { opacity: 1; animation: kw-caret 1060ms linear infinite; }
.composer .bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.composer .bar .model { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.composer .bar .model .icon { width: 13px; height: 13px; }
.send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--solid); color: var(--solid-fg); transition: transform 140ms var(--ease-snap), opacity 200ms; }
.send .icon { width: 15px; height: 15px; stroke-width: 2; }
.send .stop { display: none; width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.composer.busy .send .up { display: none; }
.composer.busy .send .stop { display: block; }
.composer.idle .send { opacity: .28; }
.cursor {
  position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 29px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 25%));
  transition: transform 760ms var(--ease-io), opacity 300ms;
}
.cursor svg { width: 100%; height: 100%; transform-origin: 3px 3px; transition: transform 120ms var(--ease-snap); }
.cursor.down svg { transform: scale(.86); }

/* ---------- The stage card with the wordmark rising out of its floor ---------- */
.stage { position: relative; height: 520px; border-radius: 32px; background: var(--card); overflow: hidden; }
.stage-copy { position: relative; z-index: 1; max-width: 440px; padding: 56px 0 0 56px; }
.stage-mark { position: absolute; right: -8%; bottom: -10%; width: 84%; color: var(--ink); }
.stage-mark .kw-slot { width: 100%; }

/* ---------- Bento ---------- */
.bento { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { border-radius: 28px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; transition: transform 300ms var(--ease-snap); }
.tile:hover { transform: translateY(-3px); }
.tile-view { position: relative; height: 300px; display: grid; place-items: center; padding: 28px; }
.tile-copy { padding: 0 32px 30px; }
.tile-copy h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tile-copy p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mini { width: min(400px, 100%); padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); font-family: var(--ui); }
.mini-head { display: flex; align-items: center; gap: 10px; height: 18px; font-size: 12.5px; color: var(--muted); }
.mini-head .kw-slot { height: 13px; }
.lines { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.lines i { display: block; height: 8px; border-radius: 4px; background: var(--card-2); }
.lines i.grow { transform-origin: 0 50%; animation: line-write 3.2s var(--ease-io) infinite; }
@keyframes line-write { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
.files { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12px; }
.files div { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: var(--card); animation: file-in 4.8s var(--ease-snap) calc(var(--n) * 400ms) infinite both; }
.files em { font-style: normal; color: var(--ok); }
@keyframes file-in { 0% { opacity: 0; transform: translateY(6px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.picks { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.picks span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 400ms, color 400ms, box-shadow 400ms; }
.picks span.on { background: var(--solid); color: var(--solid-fg); box-shadow: none; }
.tile .ask { box-shadow: none; padding: 0; background: none; margin-top: 14px; }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.job-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.job-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.job-chip:hover { background: var(--pill); }
.job-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); opacity: 0; transition: opacity 200ms; }
.job-chip.on { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.job-chip.on i { opacity: 1; }
.job-desc { margin: 26px 0 0; max-width: 420px; min-height: 52px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.job-desc.swap { animation: fade-up 320ms var(--ease-snap) both; }
.job-view { position: relative; height: 520px; border-radius: 32px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.job-win { width: min(390px, 100% - 40px); height: 430px; border-radius: 24px; background: var(--paper); box-shadow: var(--win-shadow); display: flex; flex-direction: column; overflow: hidden; font-family: var(--ui); }
.job-win .head { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.job-win .head .tl { width: 10px; height: 10px; }
.job-win .body { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.job-win .bubble { align-self: flex-end; font-size: 13.5px; }
.job-win .turn-head .kw-slot { height: 14px; }
.result { padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--card-shadow); font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.result.mono { font-family: var(--mono); font-size: 12px; }
.job-win .foot { margin: 0 14px 14px; height: 40px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; align-items: center; padding: 0 6px 0 14px; font-size: 12.5px; color: var(--faint); }
.job-win .foot .send { margin-left: auto; width: 26px; height: 26px; opacity: .28; }

/* ---------- Film ---------- */
.film { position: relative; margin-top: 56px; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; background: #f7f5f0; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film .play { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 44px; gap: 14px; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.02em; color: #141413; background: linear-gradient(transparent 55%, rgb(20 20 19 / 6%)); }
.film .play svg { width: .7em; height: .7em; margin-bottom: .12em; fill: currentColor; transition: transform 200ms var(--ease-snap); }
.film .play:hover svg { transform: scale(1.12); }
.film.playing .play { display: none; }

/* ---------- Download ---------- */
.download { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--card); transition: background-color 160ms; }
.dl:hover { background: var(--card-2); }
.dl .icon { width: 22px; height: 22px; }
.dl .what { flex: 1; }
.dl strong { display: block; font-size: 16px; font-weight: 600; }
.dl span { display: block; font-size: 13.5px; color: var(--muted); }
.dl .go { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; }
.faq-all { display: inline-block; margin-top: 22px; }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 0; text-align: left; font-size: 16.5px; font-weight: 500; }
.qa button span { flex: 1; }
.qa .pm { position: relative; width: 14px; height: 14px; flex: none; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 1px; transition: transform 300ms var(--ease-snap); }
.qa .pm::after { transform: rotate(90deg); }
.qa.open .pm::after { transform: rotate(0deg); }
.qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-snap); }
.qa.open .a { grid-template-rows: 1fr; }
.qa .a > div { overflow: hidden; }
.qa .a p { margin: 0; padding: 0 40px 24px 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Closing ---------- */
.closing { position: relative; padding: 170px 0 0; text-align: center; overflow: hidden; }
.closing h2 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -.035em; }
.closing-mark { position: relative; width: min(1320px, 112%); margin: 88px 0 -4.5%; left: 50%; transform: translateX(-50%); }
.closing-mark .kw-slot { width: 100%; }
.kalamos-wordmark.ghost .kw-part { fill-opacity: 0; stroke-opacity: .42; transition-delay: 0s; cursor: default; }
.kalamos-wordmark.ghost .kw-part:hover { fill-opacity: 1; fill: var(--kw-tone); stroke-opacity: 0; }

/* ---------- Narrow screens ---------- */
/* Phones and tablets: tapping lifts the note; the code itself takes the long press, so WeChat can recognise it.
   (home.js pins it to the demo window's top-right corner there, where it takes no space of its own.) */
@media (hover: none) {
  .note { touch-action: manipulation; cursor: default; opacity: 1; user-select: none; -webkit-user-select: none; }
  .note * { user-select: none; -webkit-user-select: none; }
  .note-sway, .note-stack, .note-paper { will-change: auto; }
  .note-qr { opacity: 1; mix-blend-mode: normal; border-radius: 2px; pointer-events: none; -webkit-touch-callout: none; }
  .sheet-qr:not(.back) .note-qr { pointer-events: auto; -webkit-touch-callout: default; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; height: 600px; }
  .side { display: none; }
  .jobs, .download, .faq { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 72px; }
  .hero-sub { font-size: 16px; }
  /* Phones: the new-chat view had about 140px empty above the greeting and 170px below the composer. A shorter
     window leaves about 80px at each end (the hint tag sits in the upper gap); a conversation scrolls inside it
     as before. */
  .app { height: 450px; border-radius: 20px; margin-top: 56px; }
  .main.home .spacer { flex: .8; }
  .col, .composer, .below { width: calc(100% - 28px); }
  .main-head .ctx { display: none; }
  .greet-line { gap: 10px; }
  .greet-mark { width: 92px; }
  .lot, .lot-measure { font-size: 22px; }
  /* At this size the brush lines measured 1-1.5px above the mark in either face; they come down to it. */
  .lot-words:not(.en) { top: .07em; }
  .brush-fz .lot-words:not(.en) { top: .135em; }
  .lot-invite:not(.en) { top: .1em; }
  .lot-invite.en { top: .2em; }
  .stage { height: 440px; border-radius: 26px; }
  .stage-copy { padding: 34px 28px 0; }
  /* Phones: the whole word stands at the card's floor, like the desktop crop, instead of a cut-off "kala". */
  .stage { height: auto; padding-bottom: 104px; }
  .stage-mark { width: 86%; right: 7%; bottom: -10px; }
  .bento { grid-template-columns: 1fr; margin-top: 44px; }
  .tile-view { height: 250px; padding: 20px; }
  .tile-copy { padding: 0 24px 26px; }
  .job-view { height: 470px; border-radius: 26px; }
  .film { border-radius: 22px; }
  .film .play { padding: 24px; }
  .closing { padding-top: 120px; }
  .closing-mark { width: 92%; margin-top: 56px; margin-bottom: -2.5%; }
}
@media (prefers-reduced-motion: reduce) {
  .enter, .row, .lines i.grow, .files div, .bars i, .label.pending { animation: none !important; }
  .label.pending { color: var(--muted); background: none; }
  .cursor { display: none; }
  .lot { transition: none; }
  .lot-hint { animation: none; }
}
