/* onboard 样稿 — token 沿用 mb-calculator/mb.css */
:root {
  --bg: #F5F5F0;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .08);
  --orange: #FF6B00;
  --orange-hover: #E55F00;
  --orange-light: #FFB380;
  --orange-wash: #FFF4EC;
  --slate: #94A3B8;
  --slate-deep: #64748B;
  --input-border: #E8E6DE;
  --ink: #1a1a1a;
  --muted: #888888;
  /* 装饰性 chrome（页脚、语言切换未选中、小字单位说明）用 --muted；
     有实际意义要读的说明/建议文字（.guide、.sum .g、.hint、.submit-note、
     disclaimer、review lead 等）用这个，WCAG AA：#fff 5.33:1、#F5F5F0 4.87:1 */
  --muted-strong: #6B6B6B;
  --body: #444444;
  --danger: #d33a4b;
  --sand: #FAFAF7;
  /* 现金流条五段：灰 = 必要开销，橙系由深到浅 = 给未来的钱 → 给现在的钱 */
  --seg-fixed: #94A3B8;
  --seg-invest: #FF6B00;
  --seg-save: #FFA45C;
  --seg-fun: #FFDCC0;
  --font-num: 'Sora', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.page { max-width: 560px; margin: 0 auto; padding: 1.5rem 1rem 0; }

/* header */
.site-header { text-align: center; padding-bottom: 1.2rem; }
.brand-logo { display: block; width: 116px; height: auto; margin: 0 auto 14px; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; text-align: left; }
.head-row h1 { font-family: var(--font-num); font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.lang-switch { display: flex; gap: 4px; flex: none; }
.lang-btn { background: none; border: none; cursor: pointer; padding: 2px 4px; font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-btn.is-active { color: var(--orange); }

.card { background: var(--card); border: .5px solid var(--line); border-radius: 16px; padding: 1.3rem 1.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 13px 18px; cursor: pointer;
  font-size: 15px; font-weight: 700; border: 1.5px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { background: var(--card); border-color: var(--input-border); color: var(--body); }
.btn-ghost:hover { border-color: var(--orange-light); color: var(--orange); }
.btn-block { width: 100%; }

.site-footer { padding: 1.6rem .2rem 2rem; font-size: 11.5px; color: var(--muted); line-height: 1.7; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.page-narrow { max-width: 640px; }
.gate h1 { font-family: var(--font-num); font-size: 20px; font-weight: 700; margin-bottom: .6rem; }
.gate p { font-size: 15px; line-height: 1.75; color: var(--body); }
.gate .gate-home { margin-top: 1.2rem; }
.err { font-size: 13px; color: var(--danger); margin-top: .6rem; }
.err:empty { display: none; }
::selection { background: #FFE0C7; color: var(--ink); }
input { caret-color: var(--orange); }
