/* Kimi document pages: policies, support, download, invite/profile launchers, plan entry and 404.
   Shared by every page except the homepage. */
body { background: var(--rice); }

/* ---------- Policy / support pages ---------- */
.doc main { width: min(840px, 100%); margin: 0 auto; padding: 48px 20px 72px; }
.doc .brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.doc .brand .icon { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 14px rgba(7, 79, 61, 0.16); }
.doc .brand .mark { height: 30px; width: auto; }
.doc article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px; }
.doc h1 { font-size: clamp(32px, 6vw, 40px); line-height: 1.08; margin: 0 0 10px; }
.doc h2 { font-size: 20px; line-height: 1.3; margin: 30px 0 10px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.doc p + p, .doc ul + p, .doc ol + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc article a:not(.cta) { color: var(--jade); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.doc .cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 48px;
  background: var(--jade); color: #fff; padding: 12px 22px; border-radius: var(--radius-button);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.doc .cta:hover { background: var(--jade-deep); }
.doc .cta.secondary { background: #fff; color: var(--jade); border: 1.5px solid var(--line); margin-left: 8px; }
.doc .note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--mist-soft); color: var(--ink); font-size: 15px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 24px; }
.doc-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.doc-nav a:hover, .doc-nav a[aria-current="page"] { color: var(--jade); }
@media (max-width: 560px) {
  .doc main { padding-top: 32px; }
  .doc article { padding: 24px 20px; }
  .doc .cta.secondary { margin-left: 0; }
}

/* ---------- Download bridge and plan entry (centered hero) ---------- */
.centered { min-height: 100svh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 78% 8%, rgba(248, 190, 101, 0.3) 0, transparent 34%), var(--rice); }
.centered main { width: min(100%, 480px); text-align: center; }
.centered .mascot { width: 160px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 18px 26px rgba(7, 79, 61, 0.18)); }
.centered .hero-art { width: min(300px, 80%); height: auto; margin: 0 auto 10px; }
.centered .wordmark { width: 104px; height: auto; margin: 0 auto 22px; }
.centered h1 { font-size: clamp(32px, 8.4vw, 44px); line-height: 1.06; }
.centered p { margin: 14px auto 24px; max-width: 36ch; color: var(--muted); font-weight: 500; line-height: 1.55; }
.pill-badge {
  min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 0 26px; border-radius: 999px; color: #fff; background: var(--badge);
  box-shadow: 0 18px 38px rgba(17, 24, 21, 0.24); font-weight: 700; font-size: 16px;
}
.pill-badge svg { width: 22px; height: 22px; }
.pill-badge[aria-disabled="true"] { background: #55635e; box-shadow: none; cursor: default; }
.soon { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--jade-deep); font-size: 13px; font-weight: 700; }
.tip { display: block; margin-top: 18px; color: #6d8077; font-size: 14px; }
.tip a, .centered .links a { color: var(--jade); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.centered .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 26px; font-size: 14px; }
.phrase { display: inline-grid; gap: 2px; margin: 4px auto 18px; padding: 14px 22px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(24, 38, 34, 0.06); }
.phrase .zh { font-size: 30px; line-height: 1.3; font-weight: 700; color: var(--jade); }
.phrase .pinyin { font-size: 15px; color: var(--ink); font-weight: 600; }
.phrase small { font-size: 13px; color: var(--muted); }
.plan-steps { text-align: left; margin: 0 auto 26px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 360px; }
.plan-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; }
.plan-steps .n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: #fff; font-size: 13px; font-weight: 700; }
.plan-steps li:nth-child(2) .n { background: var(--apricot); color: var(--ink); }
.plan-steps li:nth-child(3) .n { background: var(--ink); }

/* ---------- Invite / profile launcher card ---------- */
.launcher { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.launcher main { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; text-align: center; box-shadow: var(--shadow-card); }
.launcher img.mark { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; }
.launcher h1 { font-size: 26px; line-height: 1.2; margin: 18px 0 6px; }
.launcher .handle { font-size: 15px; color: var(--jade); font-weight: 700; margin: 0 0 14px; word-break: break-all; }
.launcher p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.launcher a.btn { display: block; border-radius: var(--radius-button); padding: 15px 18px; font-size: 15px; font-weight: 700; }
.launcher a.primary { background: var(--jade); color: #fff; }
.launcher a.primary:hover { background: var(--jade-deep); }
.launcher a.secondary { background: #fff; color: var(--jade); border: 1.5px solid var(--line); margin-top: 10px; }
.launcher small { display: block; margin-top: 18px; color: #7d8f87; font-size: 12px; }
.launcher .help { font-size: 13px; margin: 14px 0 0; }
