/* 萌卫展示页：简洁、明亮、轻盈、有活力。蓝白为主，暖粉只给下载按钮。 */
@font-face {
  font-family: "MoeGuard Display";
  src: url("assets/fonts/moe-display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-205E, U+2190-2199;
}

:root {
  --blue: #1e8bff;
  --blue-deep: #0d5bc4;
  --blue-ink: #13294b;
  --sky: #eaf5ff;
  --sky-2: #d7ecff;
  --line: #cfe3f7;
  --text: #1b2a3a;
  --muted: #5b6b7d;
  --white: #fff;
  --cta: #ff5c8a;
  --cta-deep: #e8436f;
  --gold: #ffc94d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 41, 75, .10);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-back: cubic-bezier(.2, .9, .3, 1.25);
  --font: "Nunito", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "MoeGuard Display", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--white);
  line-height: 1.75; letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
:focus-visible { outline: 3px solid rgba(30, 139, 255, .45); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 6px 10px; }
h1, h2, h3, .brand-name, .btn, .eyebrow, .ribbon, .who, .chat-head b, .motto, legend i, .desk-hint, .bubble, .roster span {
  font-family: var(--display); font-synthesis: none;
}

/* reading progress */
.progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), #7cc4ff 60%, var(--cta)); pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; overflow: hidden;
  font-size: 19px; font-weight: 400; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease-back), box-shadow .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-cta {
  color: #fff; background: linear-gradient(135deg, #ff7aa0, var(--cta));
  box-shadow: 0 8px 22px rgba(255, 92, 138, .32);
}
.btn-cta::after {   /* a light sweep every few seconds */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 5s 1.8s ease-in-out infinite;
}
.btn-cta:hover { background: linear-gradient(135deg, #ff6c95, var(--cta-deep)); box-shadow: 0 12px 28px rgba(255, 92, 138, .42); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 6px 18px rgba(30, 139, 255, .28); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { color: var(--blue-deep); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--sky); }
.btn-small { min-height: 36px; padding: 0 18px; font-size: 16px; }
@keyframes shine { 0% { transform: translateX(-120%); } 28%, 100% { transform: translateX(120%); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--blue-ink); }
.brand img { border-radius: 7px; transition: transform .4s var(--ease-back); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand-name { font-size: 22px; letter-spacing: .06em; }
.brand-en { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav-link { position: relative; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--blue);
  transform: scaleX(0) skewX(-20deg); transform-origin: 0 50%; transition: transform .25s var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible, .language-switch[open] > summary { color: var(--blue); }
.nav-link:hover::after, .nav-link:focus-visible::after, .language-switch[open] > summary::after {
  transform: scaleX(1) skewX(-20deg);
}
.topbar-cta { opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.topbar.show-cta .topbar-cta { opacity: 1; pointer-events: auto; transform: none; }

/* A utility group in the same navigation system, not a separate button style. */
.language-switch { position: relative; flex-shrink: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.language-switch summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 0; border: 0; background: transparent;
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-icon { display: block; flex: none; width: 20px; height: 20px; }
.language-caption { white-space: nowrap; }
.language-switch nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 138px; padding: 6px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: none; display: grid; gap: 2px;
}
.language-switch[open] nav { animation: drop .2s var(--ease-out); }
.language-switch a {
  padding: 7px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px;
  white-space: nowrap; transition: background-color .15s, color .15s;
}
.language-switch a:hover { color: var(--blue-deep); background: var(--sky); }
.language-switch a[aria-current="page"] { color: var(--blue-deep); font-weight: 700; }
:lang(en) .brand-en { display: none; }
.client-language-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.client-language-note:empty { display: none; }
:lang(en) h1 { font-size: clamp(36px, 4.6vw, 66px); }
:lang(en) .lead { line-height: 1.7; }
.lost-english { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.lost-english h2 { font-size: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: 48px; padding: 56px max(24px, 6vw) 80px;
  background:
    linear-gradient(180deg, rgba(234, 245, 255, .0) 0%, #fff 100%),
    repeating-linear-gradient(115deg, rgba(30, 139, 255, .05) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, #f4faff 0%, var(--sky) 55%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.halo {
  position: absolute; border-radius: 50%; border: 2px solid rgba(30, 139, 255, .22);
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px); transition: translate .6s var(--ease-out);
}
.halo::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(30, 139, 255, .25); animation: spin 40s linear infinite; }
.halo-a { width: 340px; height: 340px; right: -90px; top: -110px; animation: float 14s ease-in-out infinite; }
.halo-b { width: 120px; height: 120px; left: 46%; top: 8%; border-color: rgba(255, 92, 138, .25); animation: float 11s ease-in-out infinite reverse; }
.halo-c { width: 200px; height: 200px; left: -70px; bottom: -60px; animation: float 16s ease-in-out infinite; }
.halo-b { translate: calc(var(--px, 0) * -1.6px) calc(var(--py, 0) * -1.6px); }
.shard { position: absolute; height: 18px; background: linear-gradient(90deg, rgba(30, 139, 255, .28), transparent); transform: skewX(-28deg); }
.shard-a { width: 120px; left: 6%; top: 18%; animation: drift 9s ease-in-out infinite; }
.shard-b { width: 80px; height: 10px; right: 8%; bottom: 22%; background: linear-gradient(90deg, rgba(255, 92, 138, .25), transparent); animation: drift 12s ease-in-out infinite reverse; }
.streak {
  position: absolute; top: -20%; bottom: -20%; width: 120px; left: -200px; transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: sweep 11s 2s ease-in-out infinite;
}
.spark {
  position: absolute; width: 14px; height: 14px; background: var(--blue); opacity: .0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 4.2s ease-in-out infinite;
}
.s1 { left: 12%; top: 12%; animation-delay: .2s; }
.s2 { left: 40%; top: 26%; width: 10px; height: 10px; background: var(--cta); animation-delay: 1.4s; }
.s3 { left: 54%; top: 82%; animation-delay: 2.3s; }
.s4 { right: 6%; top: 30%; width: 18px; height: 18px; background: #7cc4ff; animation-delay: .9s; }
.s5 { left: 4%; bottom: 18%; width: 9px; height: 9px; background: var(--gold); animation-delay: 3s; }
.s6 { right: 30%; top: 6%; width: 11px; height: 11px; animation-delay: 1.9s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(14px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: skewX(-28deg) translateX(0); } 50% { transform: skewX(-28deg) translateX(26px); } }
@keyframes sweep { 0% { left: -200px; } 40%, 100% { left: calc(100% + 200px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: .85; transform: scale(1) rotate(45deg); } 60% { opacity: .85; } }

.hero-copy { position: relative; z-index: 1; }
.rise { animation: rise .8s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.eyebrow span {
  display: inline-block; padding: 2px 14px; font-size: 15px; letter-spacing: .04em; color: var(--blue-deep);
  background: #fff; border: 1px solid var(--line); transform: skewX(-12deg);
}
.eyebrow span:last-child { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgba(30, 139, 255, .3); }
h1 {
  margin: 0 0 20px; font-size: clamp(40px, 6vw, 72px); line-height: 1.12; font-weight: 400;
  color: var(--blue-ink); letter-spacing: .02em;
}
h1 em { font-style: normal; position: relative; white-space: nowrap; z-index: 0; color: var(--blue); }
h1 em::before {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: .06em; height: .36em; z-index: -1;
  background: linear-gradient(90deg, rgba(30, 139, 255, .26), rgba(255, 92, 138, .18)); transform-origin: 0 50%;
  transform: skewX(-18deg); animation: grow .9s .7s var(--ease-out) both;
}
@keyframes grow { from { transform: skewX(-18deg) scaleX(0); } }
.lead { margin: 0 0 30px; max-width: 32em; font-size: clamp(16px, 1.45vw, 18.5px); line-height: 1.9; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fineprint { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- desktop stage ---------- */
.hero-demo { position: relative; z-index: 1; }
.hero-mascot { display: none; }
@media (min-width: 1280px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .hero-demo { margin-right: 180px; }
  .hero-mascot {
    display: block; position: absolute; z-index: -1; right: -232px; bottom: 70px; width: 252px; height: auto;
    pointer-events: none; animation: slide-in 1s .45s var(--ease-out) both, bob 6s 1.5s ease-in-out infinite;
    /* the art is cut at the waist and on its right edge: fade both */
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%), linear-gradient(to left, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 74%, transparent 98%), linear-gradient(to left, transparent 0, #000 14%);
    mask-composite: intersect;
  }
}
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.desk {
  border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(19, 41, 75, .14), 0 0 0 1px var(--line);
  overflow: hidden; transform: rotate(-.6deg); animation: pop-in .8s .2s var(--ease-back) both;
}
@keyframes pop-in { from { opacity: 0; transform: rotate(-.6deg) translateY(24px) scale(.95); } }
.desk-bar { display: flex; align-items: center; height: 34px; padding: 0 4px 0 14px; background: #f6faff; border-bottom: 1px solid var(--line); }
.desk-bar span { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-right: auto; }
.desk-bar b { position: relative; width: 38px; height: 26px; border-radius: 4px; transition: background-color .15s; }
.desk-bar b:hover { background: #e6f0fa; }
.desk-bar .win-close:hover { background: #ffd9e3; }
.desk-bar b::before, .desk-bar b::after { content: ""; position: absolute; left: 50%; top: 50%; background: #8aa0b8; }
.win-min::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.win-max::before { width: 9px; height: 9px; background: none !important; border: 1.5px solid #8aa0b8; transform: translate(-50%, -50%); }
.win-close::before, .win-close::after { width: 12px; height: 1.5px; transform: translate(-50%, -50%) rotate(45deg); }
.win-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.desk-screen {
  position: relative; height: clamp(300px, 34vw, 430px); overflow: hidden; touch-action: none;
  user-select: none; -webkit-user-select: none;
  background: url("assets/wallpaper.webp") center 70% / cover no-repeat, linear-gradient(170deg, #9fd2ff 0%, #c9e7ff 45%, #eef7ff 100%);
}
.desk-hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; transition: opacity .5s, top .3s;
  padding: 3px 16px; border-radius: 999px; font-size: 15px; letter-spacing: .04em; color: var(--blue-deep);
  background: rgba(255, 255, 255, .88); box-shadow: 0 2px 10px rgba(19, 41, 75, .1); white-space: nowrap;
  animation: nudge 2.8s 1.6s ease-in-out infinite;
}
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -4px; } 90% { translate: 0 1px; } }
.desk-hint.gone { opacity: 0; animation: none; }
.pet {
  position: absolute; left: 0; top: 0; z-index: 2; cursor: grab; will-change: transform;
  background-repeat: no-repeat; touch-action: none;
}
.pet.dragging { cursor: grabbing; }
/* switching pets on a slow link: dim the old one and show three dots (after a short delay,
   so a cached switch does not flicker) */
.pet { transition: opacity .2s; }
.desk-screen.loading .pet { opacity: .45; transition-delay: .15s; }
.desk-loading {
  position: absolute; left: 50%; top: 42%; z-index: 3; display: flex; gap: 6px; padding: 10px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(19, 41, 75, .12);
  transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.desk-loading i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: dots 1s ease-in-out infinite; }
.desk-loading i:nth-child(2) { animation-delay: .15s; }
.desk-loading i:nth-child(3) { animation-delay: .3s; }
.desk-screen.loading .desk-loading { opacity: 1; transition-delay: .15s; }
.pet.settle { transition: transform .32s cubic-bezier(.2, .9, .3, 1.15); }
.bubble {
  position: absolute; z-index: 4; width: max-content; max-width: min(260px, calc(100% - 16px)); padding: 6px 14px; border-radius: 14px;
  font-size: 16px; line-height: 1.45; letter-spacing: .03em; text-wrap: balance;
  color: var(--blue-ink); background: #fff; box-shadow: 0 4px 14px rgba(19, 41, 75, .14);
  opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 50% 100%;
  transition: opacity .2s, transform .25s var(--ease-back); pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; }
.heart {
  position: absolute; z-index: 5; pointer-events: none; font-size: 18px; line-height: 1; color: var(--cta);
  animation: heart-up 1s var(--ease-out) forwards;
}
@keyframes heart-up {
  from { opacity: 0; transform: translate(0, 0) scale(.4); }
  20% { opacity: 1; transform: translate(calc(var(--dx) * .3), -18px) scale(1.1); }
  to { opacity: 0; transform: translate(var(--dx), -70px) scale(.8) rotate(var(--rot)); }
}
.desk-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .9);
}
.tb-start { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--blue), #6cc0ff); }
.tb-app { width: 18px; height: 18px; border-radius: 5px; background: var(--sky-2); }
.tb-clock { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 3x3: built-in three on the first row, fan roles below (no per-tile badge; footer disclaimer) */
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.roster button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit;
  color: var(--text); transition: border-color .15s, box-shadow .15s, transform .2s var(--ease-back);
  animation: rise .6s var(--ease-out) both;
}
.roster button:nth-child(3n + 2) { animation-delay: .08s; }
.roster button:nth-child(3n) { animation-delay: .16s; }
.roster button span { font-size: 15px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.roster button:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(19, 41, 75, .1); }
.roster button:hover img { animation: hop .5s var(--ease-back); }
.roster button[aria-checked="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 139, 255, .16); }
.roster img { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
@media (max-width: 560px) {
  .roster button { flex-direction: column; gap: 0; padding: 8px 4px 6px; }
  .roster button span { font-size: 13.5px; letter-spacing: 0; }
}
.pack-row { margin: 12px 0 0; min-height: 40px; }
.pack-dl {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 14.5px;
  color: var(--blue-deep); background: #fff; border: 1.5px solid var(--sky-2); text-decoration: none;
  transition: border-color .15s, transform .2s var(--ease-back);
}
.pack-dl[hidden] { display: none; }
.pack-dl:hover { border-color: var(--blue); transform: translateY(-2px); }
.pack-dl small { color: var(--muted); font-size: 12.5px; }
.roster-note { margin: 14px 2px 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
@keyframes hop { 40% { transform: translateY(-6px) scale(1.04); } }

/* ---------- ribbons ---------- */
.ribbons { position: relative; height: 104px; margin: -26px 0 -8px; overflow: hidden; z-index: 2; pointer-events: none; }
.ribbon { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; white-space: nowrap; }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { padding: 0 22px; }
.ribbon span::after { content: "✦"; margin-left: 44px; }
.ribbon-front {
  transform: translateY(-50%) rotate(-2.2deg); padding: 9px 0; font-size: 21px; letter-spacing: .08em; color: #fff;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 40%, #49a6ff); box-shadow: 0 8px 24px rgba(30, 139, 255, .25);
}
.ribbon-front span::after { color: rgba(255, 255, 255, .7); }
.ribbon-back {
  transform: translateY(-50%) rotate(2deg); padding: 6px 0; font-size: 15px; letter-spacing: .3em; color: var(--blue);
  background: var(--sky); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ribbon-back .ribbon-track { animation-direction: reverse; animation-duration: 52s; }
.ribbon-back span::after { color: var(--cta); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveal on scroll (only for what starts below the fold) ---------- */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.pending { opacity: 0; transform: translateY(26px); }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  position: relative; display: inline-block; margin: 0 0 4px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.25;
  font-weight: 400; letter-spacing: .03em; color: var(--blue-ink);
}
.section-head h2::after {
  content: ""; display: block; width: 60px; height: 6px; margin: 10px auto 0; background: linear-gradient(90deg, var(--blue), #7cc4ff);
  transform: skewX(-24deg); transition: width .7s .25s var(--ease-out);
}
.section-head.pending h2::after { width: 0; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.8; }

/* features */
.features { position: relative; padding: 72px max(20px, 6vw) 84px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.feature {
  position: relative; overflow: hidden; padding: 24px 24px 22px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(19, 41, 75, .04);
  transition: opacity .7s var(--ease-out), transform .35s var(--ease-back), box-shadow .25s, border-color .25s;
  transition-delay: var(--d, 0ms), 0s, 0s, 0s;
}
.feature::before {   /* slanted corner stripes */
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; transform: rotate(45deg);
  background: repeating-linear-gradient(90deg, rgba(30, 139, 255, .08) 0 6px, transparent 6px 14px);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(30, 139, 255, .45); box-shadow: 0 16px 34px rgba(19, 41, 75, .1); }
.feature-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; font-size: 28px;
  background: linear-gradient(135deg, var(--sky), #fff); box-shadow: inset 0 0 0 1px var(--line);
}
.feature:hover .feature-icon { animation: wiggle .6s var(--ease-back); }
.feature h3 { margin: 0 0 4px; font-size: 24px; font-weight: 400; letter-spacing: .04em; color: var(--blue-ink); }
.feature p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
@keyframes wiggle { 25% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg) scale(1.08); } }

/* guide: chat window */
.guide { padding: 84px max(20px, 6vw); background: linear-gradient(180deg, #fff, #f2f9ff); }
.chat-card { max-width: 700px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #fff;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 55%, #5db3ff);
}
.chat-head .avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.chat-head b { font-size: 20px; font-weight: 400; letter-spacing: .06em; }
.chat-head small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .9; }
.chat-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5dffb0; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(93, 255, 176, .25); } }
.chat {
  display: flex; flex-direction: column; gap: 16px; padding: 22px 18px 26px;
  background: radial-gradient(circle at 1px 1px, rgba(30, 139, 255, .08) 1px, transparent 0) 0 0 / 18px 18px, #f8fbff;
}
.msg { display: flex; align-items: flex-start; gap: 10px; }
.bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.msg.me .bubbles { align-items: flex-end; }
.who { font-size: 15px; letter-spacing: .04em; color: var(--blue-ink); margin-bottom: -2px; }
.bubbles p { margin: 0; padding: 9px 15px; border-radius: 16px; font-size: 15.5px; line-height: 1.7; max-width: 34em; }
.msg.me { justify-content: flex-end; }
.msg.me p { color: #fff; background: var(--blue); border-bottom-right-radius: 4px; box-shadow: 0 4px 12px rgba(30, 139, 255, .22); }
.pet-msg p { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(19, 41, 75, .05); }
.pet-msg .who + p { border-top-left-radius: 4px; }
.avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--sky) url("assets/mascot/face-happy.webp") center / cover no-repeat;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sky-2);
}
.face-wink { background-image: url("assets/mascot/face-wink.webp"); }
.face-thumbsup { background-image: url("assets/mascot/face-thumbsup.webp"); }
.face-thinking { background-image: url("assets/mascot/face-thinking.webp"); }
/* Visible by default; the script hides and replays it only when the chat starts below the fold.
   Messages keep their space while hidden, so the page below never jumps. */
.chat.anim .msg { opacity: 0; }
.chat.anim .msg.in, .chat.anim .msg.typing { opacity: 1; }
.chat.anim .msg.typing .bubbles { visibility: hidden; }
.pet-msg { position: relative; }
/* .static: already on screen when the chat switched to animated mode; never replay it */
.chat.anim .msg.in:not(.static) .bubbles > * { animation: bubble-in .38s var(--ease-back) both; }
.chat.anim .msg.in .bubbles > :nth-child(3) { animation-delay: .32s; }
.chat.anim .msg.in .bubbles > :nth-child(4) { animation-delay: .64s; }
.chat.anim .msg.in .bubbles > :nth-child(5) { animation-delay: .96s; }
.chat.anim .msg.in .bubbles > :nth-child(6) { animation-delay: 1.28s; }
.chat.anim .msg.in .bubbles > :nth-child(7) { animation-delay: 1.6s; }
.msg.me.in .bubbles > * { transform-origin: 100% 100%; }
.sticker { width: 96px; height: 96px; border-radius: 18px; }
.shot { display: block; max-width: min(100%, 440px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(19, 41, 75, .08); }
.shot img { display: block; width: 100%; height: auto; }
/* quick replies: suggested messages stacked on the visitor's side, inside the chat */
.replies { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.replies[hidden] { display: none; }
.replies button {
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue-deep);
  font: inherit; font-size: 14.5px; cursor: pointer; animation: bubble-in .38s var(--ease-back) both;
  transition: background .15s, color .15s, transform .2s var(--ease-back);
}
.replies button:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.replies.busy button { opacity: .5; pointer-events: none; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.92); } }
.dots {
  position: absolute; left: 54px; top: 26px; display: inline-flex; gap: 5px; padding: 13px 16px; border-radius: 16px;
  border-top-left-radius: 4px; background: #fff; border: 1px solid var(--line); animation: bubble-in .3s var(--ease-back) both;
}
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #9cb6d2; animation: dots 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-5px); background: var(--blue); } }
.guide-cta { text-align: center; margin-top: 40px; }

/* faq */
.faq { padding: 84px max(20px, 6vw); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq details {
  margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .2s, border-color .2s;
}
.faq details:hover { border-color: rgba(30, 139, 255, .45); }
.faq details[open] { box-shadow: 0 8px 22px rgba(19, 41, 75, .07); border-color: rgba(30, 139, 255, .45); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 15px 48px 15px 18px; font-weight: 800; font-size: 16.5px; position: relative;
}
.faq summary span { font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s var(--ease-back);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 20px 18px 50px; color: var(--muted); line-height: 1.95; }
.faq details[open] p { animation: drop .35s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* survey */
.survey { --peek-over: 84px; padding: 84px max(20px, 6vw); padding-top: 120px; background: linear-gradient(180deg, #f2f9ff, #fff); }
.survey-form { position: relative; max-width: 780px; margin: 0 auto; padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.survey-form fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.survey-form legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; padding: 0; margin-bottom: 12px; font-weight: 800; font-size: 16.5px; color: var(--blue-ink); }
.survey-form legend label { display: contents; }
.survey-form legend i {
  font-style: normal; font-size: 22px; color: var(--blue); letter-spacing: .02em; transform: skewX(-8deg);
}
.survey-form legend small { font-weight: 600; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips label {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); cursor: pointer; font-size: 15px; background: #fff;
  transition: border-color .15s, background-color .15s, color .15s, transform .2s var(--ease-back);
}
.chips label:hover { border-color: rgba(30, 139, 255, .5); transform: translateY(-1px); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--blue); background: var(--sky); color: var(--blue-deep); font-weight: 700; animation: chip-pop .3s var(--ease-back); }
.chips label:has(input:checked)::before { content: "✓"; margin-right: 6px; font-weight: 900; }
.chips label:has(input:focus-visible) { outline: 3px solid rgba(30, 139, 255, .45); outline-offset: 2px; }
@keyframes chip-pop { 50% { transform: scale(1.07); } }
.survey-form textarea, .survey-form input[type="text"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: 16px; color: var(--text); background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
.survey-form textarea:focus, .survey-form input[type="text"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 139, 255, .14); }
.peek {
  position: absolute; z-index: 2; right: 36px; top: calc(var(--peek-over) * -1); width: 160px; height: auto; pointer-events: none;
  transition: transform .8s .35s var(--ease-back), opacity .5s .35s;
}
.survey-form.pending .peek { transform: translateY(40px); opacity: 0; }
.reward-chibi {
  position: absolute; right: 10px; bottom: 8px; width: 96px; height: auto; pointer-events: none;
  transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-3px); } }
.reward { position: relative; padding: 18px 120px 16px 18px !important; border-radius: 16px; background: linear-gradient(135deg, #fff7fa, #fff); border: 1.5px dashed rgba(255, 92, 138, .45) !important; }
.field-help { margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.field-help b { color: var(--cta-deep); }
.survey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.survey-actions .btn { min-width: 140px; }
.survey-status { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.status-face { display: none; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: center / cover no-repeat; animation: hop .5s var(--ease-back); }
.survey-status.busy .status-face { display: block; background-image: url("assets/mascot/face-thinking.webp"); }
.survey-status.ok .status-face { display: block; background-image: url("assets/mascot/face-wink.webp"); }
.survey-status.err .status-face { display: block; background-image: url("assets/mascot/face-sorry.webp"); }
.survey-status.ok { color: #138a52; }
.survey-status.err { color: var(--cta-deep); }
.confetti {
  position: fixed; z-index: 60; pointer-events: none; width: 9px; height: 9px; border-radius: 2px;
  animation: confetti 1.3s var(--ease-out) forwards;
}
.confetti.star { border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); width: 13px; height: 13px; }
@keyframes confetti {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* support */
.support { padding: 72px max(20px, 6vw) 88px; }
.support-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 780px; margin: 0 auto; }
.card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: opacity .7s var(--ease-out), transform .3s var(--ease-back), box-shadow .2s, border-color .2s;
  transition-delay: var(--d, 0ms), 0s, 0s, 0s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--blue); }
.card-afdian::before { background: #946ce6; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(30, 139, 255, .4); }
.card-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; background: var(--sky); color: var(--blue-ink); }
.card-afdian .card-icon { background: #f3edff; }
.card-icon img { width: 34px; height: 34px; }
.card-text { display: flex; flex-direction: column; min-width: 0; }
.card strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .04em; color: var(--blue-ink); }
.card-text span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card-arrow { margin-left: auto; font-size: 20px; color: var(--blue); transition: transform .25s var(--ease-back); }
.card:hover .card-arrow { transform: translateX(5px); }

/* timeline (更新动态): newest first, emoji dots on a thin rail */
.timeline { padding: 84px max(20px, 6vw) 24px; }
.tl { position: relative; max-width: 808px; margin: 0 auto; padding: 10px 14px 0; list-style: none; }   /* room for the NEW ping ring inside the scroller */
/* app.js: show entries 1-3 in full, fade the lower half of entry 4, scroll for the rest */
.tl.clamped {
  max-height: var(--tl-h); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sky-2) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--tl-fade)), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - var(--tl-fade)), transparent);
}
.tl.clamped.at-end { -webkit-mask-image: none; mask-image: none; }
.tl:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.tl-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; margin: 0 0 14px; }
.tl-item:last-child { margin-bottom: 0; }
/* rail: one segment per entry, from its dot's centre to the next dot's centre, so it ends on the last dot */
.tl-item:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 30px; bottom: -44px; width: 2px; background: var(--sky-2);
}
.tl-item.is-new::before { background: linear-gradient(180deg, var(--blue), var(--sky-2)); }
.tl-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-top: 8px;
  border-radius: 50%; font-size: 20px; background: #fff; border: 1.5px solid var(--line);
}
.tl-body {
  padding: 13px 18px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.tl-item:hover .tl-body { border-color: rgba(30, 139, 255, .45); }
.tl-date { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13.5px; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.tl-new { padding: 1px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: .08em; color: #fff; background: var(--blue); }
.tl-body h3 { margin: 0 0 4px; font-size: 21px; font-weight: 400; letter-spacing: .03em; color: var(--blue-ink); }
.tl-body > .tl-copy { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
/* Release history inside a version card: a miniature of the outer timeline, not a table or a
   second card. Same rail colour and rule (one segment per entry, ending on the last node),
   hollow nodes like the outer dots, body font only. Rail, node and chevron share x = 5px. */
.tl-updates { margin-top: 8px; }
.tl-toggle {
  display: flex; align-items: center; width: fit-content; margin: 0 0 0 -6px; padding: 4px 6px;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  font: 400 13px/20px var(--font); color: var(--muted); text-align: left; transition: color .15s;
}
.tl-toggle[hidden], .tl-branches[hidden] { display: none; }
.tl-toggle::before {   /* › closed, ⌄ open */
  content: ""; flex: none; box-sizing: border-box; width: 6px; height: 6px; margin: 0 10px 0 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform .18s var(--ease-out);
}
.tl-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.tl-toggle:hover { color: var(--blue); }
.tl-branches { --node-y: 10px; position: relative; list-style: none; margin: 6px 0 0; padding: 0; }
.tl-branch { position: relative; padding-left: 18px; }
.tl-branch + .tl-branch { margin-top: 16px; }
.tl-branch:not(:last-child)::before,
.tl-toggle:not([hidden]) + .tl-branches::before {
  content: ""; position: absolute; left: 4px; width: 2px; background: var(--sky-2);
}
.tl-branch:not(:last-child)::before { top: var(--node-y); bottom: calc(-16px - var(--node-y)); }
.tl-toggle:not([hidden]) + .tl-branches::before { top: -12px; height: calc(12px + var(--node-y)); }
.tl-branch::after {
  content: ""; position: absolute; box-sizing: border-box; left: 0; top: calc(var(--node-y) - 5px);
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--line);
}
.tl-branch-meta { font-size: 13px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-branch-meta > span { font-weight: 500; }
.tl-branch h4 { margin: 2px 0 0; font: 500 15px/1.5 var(--font); color: var(--blue-ink); }
.tl-branch h4 a { color: inherit; text-decoration-color: var(--line); }
.tl-branch h4 a:hover { color: var(--blue-deep); }
.tl-branch > p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.tl-body a { color: var(--blue-deep); text-underline-offset: 3px; }
.tl-body h3 a { color: inherit; text-decoration-color: rgba(30, 139, 255, .45); }
.is-new .tl-dot { background: var(--sky); border-color: var(--blue); animation: ping 2.6s ease-out infinite; }
.is-new .tl-body { border-color: rgba(30, 139, 255, .45); box-shadow: 0 8px 22px rgba(19, 41, 75, .07); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(30, 139, 255, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(30, 139, 255, 0); } }

/* footer */
.footer { position: relative; padding: 46px 20px 28px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.8; background: #f6fbff; border-top: 1px solid var(--line); }
.footer p { margin: 6px 0; }
.footer-chibi { width: 76px; height: auto; margin: -92px auto 10px; transform-origin: 50% 100%; animation: sway 3.6s ease-in-out infinite; }
.motto { font-size: 19px; letter-spacing: .14em; color: var(--blue-ink); }
.motto b { font-weight: 400; color: var(--blue); }
.footer-details { max-width: 760px; margin: 8px auto 0; font-size: 12px; }
.footer-details summary {
  display: inline-block; list-style: none; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary:hover, .footer-details a:hover { color: var(--blue); }
.footer-notes { margin-top: 10px; }
.footer-notes a { color: inherit; text-underline-offset: 3px; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 12px; background: var(--blue-ink); color: #fff; font-weight: 700; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease-back); max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 18px 64px; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; margin-bottom: 0; }
  h1 { order: 2; margin-bottom: 0; }
  .hero-demo { order: 3; }
  .lead { order: 4; margin-bottom: 0; }
  .cta-row { order: 5; }
  .fineprint { order: 6; margin-top: -14px; }
  .client-language-note { order: 7; margin-top: -16px; }
  .desk { transform: none; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(.95); } }
  .desk-screen { height: min(78vw, 360px); }
  .nav { display: none; }
  .topbar-cta { margin-left: auto; }
  .language-switch { margin-left: auto; padding-left: 0; border-left: 0; }
  .language-switch summary { min-height: 36px; }
  .topbar-cta { margin-left: 0; }
  .cta-row .btn { flex: 1 1 auto; }
  .ribbons { height: 88px; margin-top: -30px; }
  .ribbon-front { font-size: 18px; padding: 7px 0; }
  .features, .guide, .faq, .support { padding-top: 64px; padding-bottom: 64px; }
  .timeline { padding-top: 64px; padding-bottom: 16px; }
  .survey-form { padding: 22px 16px; }
  .support-cards { grid-template-columns: 1fr; }
  /* The peeking mascot hangs over the card top: keep the heading clear of it. */
  .survey { --peek-over: 62px; padding-top: 72px; }   /* 120px art: drawn part ends 4-5px inside the card, as on desktop */
  .survey .section-head { margin-bottom: calc(var(--peek-over) + 22px); }
  .peek { width: 120px; right: 20px; }
  .reward-chibi { width: 64px; right: 6px; bottom: 6px; }
  .reward { padding-right: 76px !important; }
  .faq details p { padding-left: 18px; }
}
@media (max-width: 600px) {
  .topbar { gap: 10px; }
  .brand-en { display: none; }
  :lang(en) .brand-name { font-size: 19px; letter-spacing: .01em; }
  .topbar-cta { padding-inline: 10px; font-size: 12px; }
  .tl { margin-inline: -12px; padding-inline: 12px; }   /* keep the cards full width on phones */
  .tl-item:not(:last-child)::before { left: 17px; top: 26px; bottom: -40px; }
  .tl-item { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
  .tl-dot { width: 36px; height: 36px; font-size: 17px; }
  .tl-body { padding: 11px 14px 13px; }
  .tl-body h3 { font-size: 19px; }
  .tl-body > .tl-copy { font-size: 14.5px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
  .feature-icon { grid-row: span 2; margin: 0; width: 50px; height: 50px; }
  .feature h3 { font-size: 21px; }
  .chat { padding: 18px 12px 22px; }
  .bubbles p { font-size: 15px; }
  .avatar { width: 38px; height: 38px; }
  .dots { left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending, .survey-form.pending .peek { opacity: 1; transform: none; }
  .section-head.pending h2::after { width: 60px; }
  .chat.anim .msg { opacity: 1; }
}
