/* 催催 / Nudge — marketing site. Same design system as the app (public/style.css, /design.html):
   warm paper and ink, one accent (ember) for "needs you now", serif display over a sans UI.
   Tokens and the reminder's components are mirrored from the app so the demos look like the product. */

/* Chinese-only families first, as in the app: the display face is Songti for Chinese and the
   system serif (New York) for Latin; the UI face is PingFang / the system sans. */
@font-face { font-family: 'Nudge CJK Local'; font-weight: 100 449; src: local('PingFangSC-Regular'), local('PingFang SC'), local('HiraginoSansGB-W3'), local('Hiragino Sans GB'), local('Microsoft YaHei'), local('Noto Sans CJK SC'), local('Source Han Sans SC'); unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF; }
@font-face { font-family: 'Nudge CJK Local'; font-weight: 450 599; src: local('PingFangSC-Medium'), local('PingFang SC'), local('HiraginoSansGB-W6'), local('Hiragino Sans GB'), local('Microsoft YaHei'), local('Noto Sans CJK SC Medium'), local('Source Han Sans SC Medium'); unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF; }
@font-face { font-family: 'Nudge CJK Local'; font-weight: 600 900; src: local('PingFangSC-Semibold'), local('PingFang SC'), local('HiraginoSansGB-W6'), local('Hiragino Sans GB'), local('Microsoft YaHei Bold'), local('Noto Sans CJK SC Bold'), local('Source Han Sans SC Bold'); unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF; }
@font-face { font-family: 'Nudge CJK Serif'; font-weight: 100 599; src: local('STSongti-SC-Regular'), local('Songti SC'), local('Noto Serif CJK SC'), local('Source Han Serif SC'), local('SimSun'); unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF; }
@font-face { font-family: 'Nudge CJK Serif'; font-weight: 600 900; src: local('STSongti-SC-Bold'), local('Songti SC Bold'), local('Noto Serif CJK SC Bold'), local('Source Han Serif SC Bold'), local('SimSun'); unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF; }

/* ---------------------------------------------------------- tokens */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --sunken: #efece6;
  --ink: #15130f;
  --ink-2: #5d5950;
  --ink-3: #99948a;
  --line: rgba(21, 19, 15, 0.09);
  --line-2: rgba(21, 19, 15, 0.17);
  --accent: #e5481b;
  --accent-soft: rgba(229, 72, 27, 0.1);
  --ok: #1f7a4d;
  --ok-soft: rgba(31, 122, 77, 0.1);
  --e1: 0 1px 2px rgba(21, 19, 15, 0.05);
  --e2: 0 1px 2px rgba(21, 19, 15, 0.04), 0 8px 24px rgba(21, 19, 15, 0.07);
  --shadow: 0 2px 4px rgba(21, 19, 15, 0.04), 0 18px 48px rgba(21, 19, 15, 0.14);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --font: 'Nudge CJK Local', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --display: 'Nudge CJK Serif', 'Nudge CJK Local', ui-serif, 'New York', 'Iowan Old Style', Georgia, serif;
  --mono: 'Nudge CJK Local', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 0.15s;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0c;
    --surface: #191815;
    --sunken: #22201c;
    --ink: #f4f1ea;
    --ink-2: #aaa59b;
    --ink-3: #706b62;
    --line: rgba(244, 241, 234, 0.09);
    --line-2: rgba(244, 241, 234, 0.18);
    --accent: #ff6a3d;
    --accent-soft: rgba(255, 106, 61, 0.14);
    --ok: #4ccb86;
    --ok-soft: rgba(76, 203, 134, 0.14);
    --e1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --e2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.6);
  }
}
/* The reminder is always night, whatever the system theme. */
.night {
  --bg: #0f0e0c;
  --surface: #191815;
  --sunken: #22201c;
  --ink: #f4f1ea;
  --ink-2: #aaa59b;
  --ink-3: #706b62;
  --line: rgba(244, 241, 234, 0.1);
  --line-2: rgba(244, 241, 234, 0.2);
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.14);
  --ok: #4ccb86;
  color: var(--ink);
  color-scheme: dark;
}

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { font: 16px/1.6 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

/* Two languages live side by side in the markup; only the chosen one is drawn. */
[data-lang="zh"] [lang="en"], [data-lang="en"] [lang="zh"] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 820px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
[data-lang="zh"] .display { letter-spacing: 0; line-height: 1.2; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

.logo { display: inline-block; width: 28px; height: 28px; flex: none; }
.logo svg { width: 100%; height: 100%; display: block; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------------------------------------------------------- controls (as in the app) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 17px;
  border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid var(--line-2);
  background: var(--surface); transition: transform 0.08s, opacity var(--fast), background var(--fast), box-shadow var(--fast);
}
.btn:hover { background: var(--sunken); }
.btn:active { transform: scale(0.975); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--e1); }
.btn.primary:hover { opacity: 0.86; background: var(--ink); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover { background: var(--accent); opacity: 0.9; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--sunken); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-3); border-style: dashed; cursor: default; }
.btn.ghost:hover { background: transparent; }
.btn.ghost:active { transform: none; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 15px; padding: 0 24px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500;
  color: var(--ink-2); background: var(--surface); transition: all var(--fast);
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:disabled { opacity: 0.45; pointer-events: none; }
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e2), inset 0 0 0 1px var(--line); padding: 28px; }

.tint-1 { --tint-bg: #e2edfa; --tint-fg: #2b5c99; }
.tint-2 { --tint-bg: #e1efe2; --tint-fg: #2f6b3f; }
.tint-3 { --tint-bg: #eee5f8; --tint-fg: #6a3fa0; }
.tint-4 { --tint-bg: #f6ead0; --tint-fg: #8a6212; }
.tint-5 { --tint-bg: #f9e3e5; --tint-fg: #a5384a; }
.tint-6 { --tint-bg: #dbf0ee; --tint-fg: #1f6b66; }
@media (prefers-color-scheme: dark) {
  .tint-1 { --tint-bg: rgba(88, 148, 222, 0.2); --tint-fg: #9cc3f2; }
  .tint-2 { --tint-bg: rgba(98, 176, 120, 0.2); --tint-fg: #a5d8b3; }
  .tint-3 { --tint-bg: rgba(160, 118, 220, 0.22); --tint-fg: #cdb3f0; }
  .tint-4 { --tint-bg: rgba(214, 168, 74, 0.2); --tint-fg: #e6c987; }
  .tint-5 { --tint-bg: rgba(226, 108, 128, 0.2); --tint-fg: #f0aab6; }
  .tint-6 { --tint-bg: rgba(84, 184, 176, 0.2); --tint-fg: #9bd9d3; }
}
.glyph { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-bg); color: var(--tint-fg); font-size: 15px; font-weight: 700; }
.glyph svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glyph.mono { font-family: var(--display); font-size: 17px; }

/* ---------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background 0.25s, box-shadow 0.25s; padding-top: env(safe-area-inset-top); }
.nav.stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 80px; display: flex; align-items: center; gap: 32px; }
.nav .brand { gap: 12px; }
.nav .brand .logo { width: 36px; height: 36px; }
.nav .brand b { font-size: 24px; white-space: nowrap; }
.nav-links { display: flex; gap: 30px; margin-left: 16px; font-size: 16px; font-weight: 700; color: var(--ink); }
.nav-links a { opacity: 0.82; white-space: nowrap; }
.nav-links a:hover { opacity: 1; }
.nav .btn.sm { height: 40px; padding: 0 18px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.nav-links a { transition: color var(--fast); }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.lang button { white-space: nowrap; }
.lang { display: inline-flex; background: var(--sunken); border-radius: 12px; padding: 3px; gap: 2px; }
.lang button { height: 34px; padding: 0 13px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.lang button:hover { color: var(--ink); }
[data-lang="zh"] .lang [data-set-lang="zh"], [data-lang="en"] .lang [data-set-lang="en"] { background: var(--surface); color: var(--ink); box-shadow: var(--e1), 0 0 0 0.5px var(--line); }

/* ---------------------------------------------------------- hero */
.hero { padding: 178px 0 40px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; background: radial-gradient(52% 60% at 50% 0%, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(56px, 10.4vw, 136px); letter-spacing: -0.035em; line-height: 0.98; margin: 0 auto 30px; }
[data-lang="zh"] .hero h1 { letter-spacing: 0.01em; line-height: 1.14; font-size: clamp(56px, 10vw, 128px); }
.sub { font-size: clamp(17px, 1.75vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 31em; margin: 0 auto; text-wrap: pretty; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.stage {
  margin-top: 84px; text-align: left; border-radius: 30px; padding: 22px 26px 30px; position: relative; overflow: hidden;
  background: radial-gradient(70% 90% at 78% 0%, rgba(255, 106, 61, 0.17), transparent 62%), #0f0e0c;
  box-shadow: 0 2px 4px rgba(21, 19, 15, 0.08), 0 40px 90px -20px rgba(21, 19, 15, 0.45), inset 0 0 0 1px rgba(244, 241, 234, 0.08);
}
.stage-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: beat 1.6s ease-in-out infinite; }
.stage-clock { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.stage-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; padding: 34px 22px 12px 26px; }
.stage-side h2 { font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 18px; }
.stage-side > p { font-size: 16px; max-width: 28em; }
.record { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.record .eyebrow { margin-bottom: 12px; }
.record ol { display: grid; gap: 9px; min-height: 132px; align-content: start; }
.record li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--ink-2); }
.record li.fresh { animation: rise 0.45s var(--ease) both; }
.record li time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); padding-top: 1.5px; font-variant-numeric: tabular-nums; }
.record li.hot { color: var(--accent); }
.record li.ok { color: var(--ok); }
.record li q { quotes: '「' '」'; color: var(--ink); }
[data-lang="en"] .record li q { quotes: '“' '”'; }

/* The reminder card and its sheets: the app's .nag and .sheet. */
.demo-card { background: var(--surface); border-radius: 26px; padding: 30px 30px 24px; min-height: 508px; display: flex; flex-direction: column; box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--line); }
.demo-card > div { animation: rise 0.45s var(--ease) both; flex: 1; display: flex; flex-direction: column; }
.nag-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.nag-top .logo { width: 30px; height: 30px; }
.nag-time { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink-2); }
.nag .eyebrow { color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nag .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: beat 1.6s ease-in-out infinite; }
.nag h3 { font-family: var(--display); font-size: 38px; line-height: 1.14; margin-bottom: 12px; letter-spacing: -0.01em; word-break: break-word; }
.nag .meta { font-size: 13px; color: var(--ink-3); margin-bottom: auto; padding-bottom: 28px; }
.nag .stack { display: grid; gap: 8px; }
.nag .pair-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.night .btn { background: rgba(244, 241, 234, 0.08); border-color: transparent; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.night .btn:hover { background: rgba(244, 241, 234, 0.14); }
.night .btn.primary { background: var(--ink); color: #0f0e0c; }
.night .btn.primary:hover { background: var(--ink); opacity: 0.9; }
.night .btn.quiet { background: transparent; color: var(--ink-2); }
.night .chip { background: transparent; }
.night .chip.on { background: var(--ink); color: #0f0e0c; }
.nag .skip { margin-top: 16px; text-align: center; }
.nag .skip button { font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.nag .skip button:hover { color: var(--ink-2); }

.sheet h3 { font-family: var(--display); font-size: 27px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.sheet .lead { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.sheet .warn { color: var(--accent); }
.steps { display: flex; gap: 6px; margin-bottom: 30px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--sunken); transition: background 0.3s; }
.steps i.on { background: var(--ink); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; padding: 11px 13px; font-size: 15px; resize: none; outline: 0; transition: border-color var(--fast), box-shadow var(--fast); display: block; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.input::placeholder { color: var(--ink-3); }
.sheet-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.sheet-actions .spacer { flex: 1; }
.hold { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold .fill { position: absolute; inset: 0; background: var(--ok); width: 0; transition: width 0.15s linear; }
.hold.holding .fill { width: 100%; transition: width 1.2s linear; }
.hold span { position: relative; }

.away, .result { justify-content: center; text-align: center; align-items: center; }
.away h3, .result h3 { font-family: var(--display); font-size: 36px; line-height: 1.18; margin-bottom: 10px; }
.away p, .result p { color: var(--ink-2); max-width: 22em; }
.away .bar { width: 180px; height: 4px; border-radius: 4px; background: var(--sunken); margin-top: 30px; overflow: hidden; }
.away .bar i { display: block; height: 100%; width: 100%; background: var(--ink-2); transform-origin: left; animation: fill var(--dur, 3.6s) linear both; }
.result .tick { width: 68px; height: 68px; border-radius: 50%; background: var(--ok-soft, rgba(76, 203, 134, 0.14)); display: grid; place-items: center; margin-bottom: 22px; animation: pop 0.5s var(--ease) both; }
.result .tick svg { width: 30px; height: 30px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.result .tick.off { background: var(--sunken); }
.result .tick.off svg { stroke: var(--ink-3); }
.result .won { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; margin: 16px 0 0; }
.result .stack { display: grid; gap: 8px; width: 100%; margin-top: 30px; }

.burst { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; animation: bit 1.1s var(--ease) both; }

/* ---------------------------------------------------------- sections */
.sec { padding: 132px 0 0; }
.h-sec { font-size: clamp(36px, 5vw, 62px); margin-bottom: 26px; }
.center-head { text-align: center; }
.center-head .lead { margin: 0 auto; }

.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 54px; border-top: 1px solid var(--line-2); counter-reset: step; }
.loop li { padding: 30px 28px 6px 0; position: relative; }
.loop li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.loop li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.loop li + li::before { left: 28px; }
.loop li:nth-child(2)::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.num { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.loop h3 { font-family: var(--display); font-size: 25px; line-height: 1.25; margin: 14px 0 12px; }
.loop p { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.flip .copy { order: 2; }
.note-line { margin-top: 22px; font-size: 14px; color: var(--ink-3); padding-left: 14px; border-left: 2px solid var(--accent); max-width: 30em; }
.points { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 18px; }
.points li b { color: var(--ink); font-weight: 600; }

/* quick add */
.quick { padding: 22px; }
.quick-in { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--fast); }
.quick-in:focus-within { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px var(--line); }
.quick-in .plus { font-size: 22px; color: var(--ink-3); line-height: 1; }
.quick-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; }
.quick .chips { margin-top: 12px; }
.read { margin-top: 22px; border-top: 1px solid var(--line); }
.read > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); align-items: baseline; }
.read > div:last-child { border-bottom: 0; padding-bottom: 4px; }
.read dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.read dd { font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.read dd.t { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.25; }
.read dd.none { color: var(--ink-3); font-size: 15px; }
.read dd.hit { animation: hit 0.6s var(--ease); }
.read dd small { color: var(--ink-3); font-size: 13px; margin-left: 8px; }

/* review mock */
.review { display: grid; gap: 24px; }
.review-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.review-head b { font-family: var(--display); font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.review-head b small { font-size: 22px; margin-left: 2px; }
.review-head span { font-size: 13px; color: var(--ink-3); display: block; margin-top: 8px; }
.sample { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 96px; align-items: end; }
.bars i { border-radius: 5px 5px 2px 2px; background: var(--ink); min-height: 4px; transform-origin: bottom; transform: scaleY(0); transition: transform 0.8s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.bars i.low { background: var(--accent); }
.rv.in .bars i { transform: none; }
.review h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.rank { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.rank div { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank div:last-child { border-bottom: 0; }
.rank span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.rank b { flex: none; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; position: relative; }
.rank i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); }
.habit-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.habit-row b { font-weight: 600; font-size: 15px; }
.habit-row span { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.habit { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.habit i { height: 22px; border-radius: 6px; background: var(--sunken); }
.habit i.done { background: var(--ink); }
.habit i.off { background: none; border: 1px dashed var(--line-2); }
.habit i.todo { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* rewards */
.gacha { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.gacha-side { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e2), inset 0 0 0 1px var(--line); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tickets { display: flex; align-items: baseline; gap: 10px; }
.tickets b { font-family: var(--display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.tickets span { color: var(--ink-2); font-size: 14px; }
.drawn { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); animation: reveal 0.5s var(--ease) both; }
.drawn[hidden] { display: none; }
.drawn-stage { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: radial-gradient(80% 80% at 50% 20%, color-mix(in srgb, var(--rar, var(--ink-3)) 22%, transparent), transparent 75%); }
.drawn-stage canvas, .drawn-stage img { width: 100% !important; height: 100% !important; display: block; }
.drawn-text { display: grid; gap: 2px; min-width: 0; }
.drawn-text b { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.rr { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rar, var(--ink-3)); }
.odds { display: grid; gap: 0; margin-top: 4px; border-top: 1px solid var(--line); }
.odds > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.odds dt { display: flex; align-items: center; gap: 9px; }
.odds dt i { width: 8px; height: 8px; border-radius: 50%; background: var(--rar); }
.odds dd { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); font-family: var(--mono); font-size: 13px; }
.rules { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.rules li { display: flex; justify-content: space-between; gap: 12px; }
.rules b { color: var(--ink); font-weight: 600; white-space: nowrap; }

.gacha-main { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e2), inset 0 0 0 1px var(--line); padding: 18px 18px 14px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.room-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 4px; min-height: 34px; }
.finishes { display: flex; gap: 6px; flex-wrap: wrap; }
.finish { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all var(--fast); }
.finish i { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px var(--line-2); }
.finish:hover { color: var(--ink); border-color: var(--ink-3); }
.finish.on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.finish:disabled { opacity: 0.5; pointer-events: none; }
.finish small { color: var(--ink-3); font-size: 11.5px; }
.room-stage { position: relative; flex: 1; min-height: 520px; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--surface), var(--sunken)); }
.room-stage canvas { position: absolute; inset: 0; }
.stage-note { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ink-3); font-size: 14px; padding: 24px; pointer-events: none; }
.stage-note:empty { display: none; }
.item-tip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--e2), inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; animation: rise 0.3s var(--ease) both; pointer-events: none; }
.item-tip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rar); }
.item-tip span { color: var(--rar); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.things { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 20px; }
.thing { position: relative; border-radius: 14px; background: var(--surface); padding: 6px 6px 9px; text-align: center; box-shadow: var(--e1), inset 0 0 0 1px var(--line); overflow: hidden; transition: transform var(--fast), box-shadow var(--fast); }
.thing::before { content: ''; position: absolute; inset: 0 0 45% 0; background: radial-gradient(80% 100% at 50% 0%, color-mix(in srgb, var(--rar) 16%, transparent), transparent 75%); pointer-events: none; }
.thing > * { position: relative; }
.thing img, .thing .ph { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.thing .ph { border-radius: 10px; }
.thing .nm { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thing .rr { display: block; font-size: 9px; margin-top: 1px; }
.thing.locked { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.thing.locked::before { display: none; }
.thing.locked img { filter: grayscale(1) contrast(0.6); opacity: 0.28; }
.thing.locked .nm, .thing.locked .rr { color: var(--ink-3); }
.thing.new { animation: reveal 0.6s var(--ease) both; box-shadow: var(--e2), inset 0 0 0 1.5px var(--rar); }
.thing .qty { position: absolute; top: 5px; right: 6px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 6px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.things-foot { margin-top: 18px; }

/* devices */
.devices { position: relative; min-height: 470px; }
.mac { position: absolute; left: 0; top: 0; width: 92%; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.mac-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.mac-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mac-body { display: grid; grid-template-columns: 124px minmax(0, 1fr); min-height: 380px; }
.mac-side { background: var(--bg); border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 3px; align-content: start; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.mac-side .brand { margin: 0 0 12px 6px; gap: 7px; }
.mac-side .brand .logo { width: 20px; height: 20px; }
.mac-side .brand b { font-size: 14px; }
.mac-side > span:not(.brand) { padding: 6px 9px; border-radius: 8px; }
.mac-side > span.on { background: var(--surface); color: var(--ink); box-shadow: var(--e1), inset 0 0 0 1px var(--line); }
.mac-main { padding: 20px 20px 16px; min-width: 0; }
.mock-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 14px; padding: 16px 18px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.mock-hero p { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.mock-hero h4 { font-family: var(--display); font-size: 21px; line-height: 1.25; margin-top: 4px; }
.mock-ring { position: relative; width: 58px; height: 58px; flex: none; }
.mock-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.mock-ring circle { fill: none; stroke-width: 10; }
.mock-ring .track { stroke: var(--sunken); }
.mock-ring .value { stroke: var(--ink); stroke-linecap: round; }
.mock-ring .ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mock-ring .ring-label b { font-family: var(--display); font-size: 15px; }
.mock-ring .ring-label span { display: none; }
.mock-rows { display: grid; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; min-width: 0; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .glyph { width: 26px; height: 26px; border-radius: 9px; font-size: 12px; }
.mock-row .glyph svg { width: 14px; height: 14px; }
.mock-row b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row time { margin-left: auto; color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-row.done b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.mock-row.done .glyph { opacity: 0.5; filter: saturate(0.35); }
.mock-row .now { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: 11px; margin-left: auto; white-space: nowrap; }
.phone { position: absolute; right: 0; bottom: 0; width: 206px; border-radius: 34px; padding: 8px; background: #15130f; box-shadow: var(--shadow), inset 0 0 0 1px rgba(244, 241, 234, 0.14); }
.phone-in { border-radius: 27px; background: var(--bg); overflow: hidden; padding: 30px 12px 0; position: relative; }
.phone-in::before { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 62px; height: 17px; border-radius: 12px; background: #15130f; }
.phone .mock-hero { padding: 12px; margin-bottom: 6px; }
.phone .mock-hero h4 { font-size: 16px; }
.phone .mock-ring { width: 44px; height: 44px; }
.phone .mock-ring .ring-label b { font-size: 12px; }
.phone .mock-row { font-size: 11.5px; padding: 7px 0; gap: 8px; }
.phone .mock-row time { display: none; }
.phone-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px -12px 0; padding: 9px 0 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: 9px; text-align: center; color: var(--ink-3); font-weight: 600; }
.phone-tabs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.phone-tabs .on { color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); margin-top: 34px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-family: var(--display); font-size: 22px; font-weight: 700; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 44px 26px 0; color: var(--ink-2); font-size: 16.5px; max-width: 40em; text-wrap: pretty; }

/* final call and footer */
.final { text-align: center; padding: 150px 0 130px; }
.logo.big { width: 64px; height: 64px; margin-bottom: 34px; }
.final h2 { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -0.03em; line-height: 1.02; }
[data-lang="zh"] .final h2 { letter-spacing: 0.01em; line-height: 1.16; }
.final .cta { margin-top: 44px; }
.final .small { margin: 18px auto 0; max-width: 36em; text-wrap: pretty; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in .lang { margin-left: auto; }

/* ---------------------------------------------------------- pricing (pricing.html) */
.nav-links a.on { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); }
.price-hero { padding: 170px 0 0; text-align: center; position: relative; }
.price-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 560px; background: radial-gradient(50% 60% at 50% 0%, var(--accent-soft), transparent 70%); pointer-events: none; }
.price-hero .wrap { position: relative; }
.price-hero h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -0.03em; line-height: 1; margin: 0 auto 26px; }
[data-lang="zh"] .price-hero h1 { letter-spacing: 0.01em; line-height: 1.16; }
.tiers-sec { padding-top: 76px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { background: var(--surface); border-radius: var(--r-lg); padding: 30px 28px 26px; box-shadow: var(--e2), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.tier.best { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--ink); }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier h2 { font-size: 17px; font-weight: 700; }
.tier-tag { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tier-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.tier-price b { font-family: var(--display); font-size: 58px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier-price > span { color: var(--ink-3); font-size: 15px; }
.tier-note { color: var(--ink-2); font-size: 15px; min-height: 3.2em; }
.tier-list { display: grid; gap: 10px; margin: 18px 0 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.tier-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.tier-list li::before { content: ''; width: 9px; height: 5px; margin-top: 8px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg); }
.tier-cta { margin-top: auto; display: grid; gap: 8px; }
.tiers-foot { margin: 28px auto 0; max-width: 46em; text-wrap: pretty; }
.faq details p a, .foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq details p a { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }

/* ---------------------------------------------------------- motion */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.loop .rv:nth-child(2) { transition-delay: 0.08s; }
.loop .rv:nth-child(3) { transition-delay: 0.16s; }
.loop .rv:nth-child(4) { transition-delay: 0.24s; }
.tiers .rv:nth-child(2) { transition-delay: 0.08s; }
.tiers .rv:nth-child(3) { transition-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes beat { 50% { transform: scale(1.7); opacity: 0.35; } }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } }
@keyframes reveal { from { opacity: 0; transform: scale(0.86) translateY(14px); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes hit { from { color: var(--accent); } }
@keyframes bit {
  from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  65% { opacity: 1; }
  to { transform: translate(var(--dx), calc(var(--dy) + 110px)) rotate(var(--rot)) scale(0.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .bars i { transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .away .bar i { animation-duration: var(--dur, 3.6s) !important; }
}

/* ---------------------------------------------------------- narrower screens */
/* The header holds four links, the language switch and 下载: below this the links go (they are in the footer). */
.nav-price { display: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .nav-price { display: inline-flex; } }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .stage-body { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 26px 4px 4px; }
  .stage-side { order: 2; }
  .demo-card { max-width: 460px; width: 100%; justify-self: center; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop li:nth-child(3) { padding-left: 0; border-left: 0; }
  .loop li:nth-child(3)::before { left: 0; }
  .loop li:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .split-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .flip .copy { order: 0; }
  .gacha { grid-template-columns: minmax(0, 1fr); }
  .gacha-main { order: -1; }
  .room-stage { min-height: 420px; }
  .devices { max-width: 560px; }
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .tier-note { min-height: 0; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .nav-in { height: 66px; gap: 12px; }
  .nav .brand .logo { width: 32px; height: 32px; }
  .nav .brand b { font-size: 21px; }
  [data-lang="en"] .nav .brand b { font-size: 15px; line-height: 1.12; white-space: normal; max-width: 6.2em; }
  .nav .brand { min-width: 0; }
  .nav .btn.sm { height: 36px; padding: 0 12px; font-size: 14px; }
  .lang button { height: 30px; padding: 0 8px; font-size: 13px; }
  .nav-end { gap: 8px; }
  .hero { padding-top: 132px; }
  .stage { margin-top: 56px; border-radius: 24px; padding: 16px 14px 18px; margin-left: -8px; margin-right: -8px; }
  .demo-card { padding: 24px 22px 20px; border-radius: 22px; min-height: 484px; }
  .nag h3 { font-size: 32px; }
  .sec { padding-top: 96px; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .loop li, .loop li + li { padding: 26px 0 22px; border-left: 0; border-top: 1px solid var(--line-2); }
  .loop li:first-child { border-top: 0; }
  .loop li::before, .loop li + li::before { left: 0; }
  .points li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .panel { padding: 20px; }
  .quick { padding: 16px; }
  .read > div { grid-template-columns: 64px minmax(0, 1fr); }
  .room-stage { min-height: 340px; }
  .devices { min-height: 420px; }
  .mac { width: 100%; }
  .mac-body { grid-template-columns: 92px minmax(0, 1fr); }
  .phone { width: 172px; right: -4px; }
  .faq summary { font-size: 19px; }
  .final { padding: 110px 0 96px; }
  .foot-in .lang { margin-left: 0; }
  .price-hero { padding-top: 124px; }
  .tiers-sec { padding-top: 56px; }
  .tier { padding: 26px 22px 22px; }
  .nav-price { display: none; }
}
