/* 主见 / Facet 落地页 · 暗场单一外观（刻意不做浅色主题） */
/* 自托管字体：Google Fonts 按页面用到的字形切出的可变字体（wght 100–900）；不再依赖外链 */
@font-face { font-family: "Noto Sans SC"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/noto-sans-sc.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/noto-sans.woff2") format("woff2"); }
:root {
  --ink: #050507;
  --ink-2: #0b0b0f;
  --fg: #f5f5f7;
  --fg-2: #86868b;
  --fg-3: #515156;
  --display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.55, 1);
}
html[lang="en"] { --display: "Noto Sans", "Noto Sans SC", -apple-system, "Segoe UI", system-ui, sans-serif; }
/* 繁 / 日 / 韩：自托管子集里没有这些字形，交给系统字体——macOS 与 Windows 上都有对应的正文黑体 */
html[lang="zh-Hant"] { --display: "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Microsoft JhengHei", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ja"] { --display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, "Noto Sans", system-ui, sans-serif; }
html[lang="ko"] { --display: "Apple SD Gothic Neo", Pretendard, "Noto Sans KR", "Malgun Gothic", "Noto Sans", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  background: #f5f5f7;   /* 页面以亮底收尾；暗场由舞台自己画 */
  color: var(--fg);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* 第一幕：420vh 的滚动行程，舞台钉在视口 */
.hero { position: relative; height: 2400vh; }   /* 第一幕 + 字符化过渡 + 第二幕 + 第三幕，同一舞台 */
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink); }
.light { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback {
  position: absolute; inset: 0; display: none;
  background:
    radial-gradient(60vmin 60vmin at 50% 50%, rgba(255,255,255,.18), transparent 70%),
    conic-gradient(from 200deg at 50% 50%, #b98cff, #57b8ff, #7dffb0, #ffc857, #ff6b6b, transparent 60%);
  filter: blur(40px); mix-blend-mode: screen; opacity: .55;
}
.no-gl .fallback { display: block; }
.no-gl .light { display: none; }

.mark {
  position: absolute; left: 50%; top: 50%;
  width: 24vmin; height: 24vmin; margin: -12vmin 0 0 -12vmin;
  color: var(--fg); mix-blend-mode: screen;
  will-change: transform;
}

.eyebrow, .hint {
  position: absolute; left: 0; right: 0; text-align: center; margin: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--fg-2);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.eyebrow { top: 9vh; }
.hint { bottom: 5vh; }
.stage.arrived .eyebrow, .stage.arrived .hint { opacity: 0; transform: translateY(-6px); }

/* 右上：五件事清单（第二拍出现），位置由 hero.js 写入 */
.ledger { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.ledger li {
  position: absolute; left: var(--x, 80vw); top: 0; height: 0;
  display: flex; align-items: center; gap: 12px;
  transform: translate3d(0, var(--y, 50vh), 0);
  font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--fg); white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease-io) calc(var(--i) * .14s), visibility 0s linear calc(.8s + var(--i) * .14s);
}
.ledger li::before {
  content: ""; width: 28px; height: 1px; background: var(--c); box-shadow: 0 0 8px var(--c);
  transform-origin: left center; transform: scaleX(0);
  transition: transform .7s var(--ease-out) calc(var(--i) * .14s + .1s);
}
.stage.beat-b .ledger li { opacity: 1; visibility: visible; transition-delay: calc(.2s + var(--i) * .14s), 0s; }
.stage.beat-b .ledger li::before { transform: scaleX(1); }

/* 标志实体化：十个三角面叠成带厚度的玻璃体，棱线在上 */
.mark .faces polygon { fill: rgba(255,255,255,.06); stroke: none; transition: fill .5s var(--ease-out); }
.mark .faces polygon.lit { fill: rgba(255,255,255,.22); }
.mark .edges line { stroke: currentColor; }

/* 标题：两拍文案同一背景。A=首页主张+下载；B=产品介绍+右侧清单 */
.headline {
  position: absolute; left: 6.5vw; bottom: 11vh; margin: 0;
  width: min(46vw, 640px); text-align: left; pointer-events: none;
}
.headline h1 {
  margin: 0; font-size: clamp(30px, 3.7vw, 50px); font-weight: 700; line-height: 1.16;
  letter-spacing: -0.01em; text-wrap: balance;
}
.headline-a h1 { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -0.015em; }
.headline h1 span { display: inline-block; }
/* 必须是 > p：表单里的说明与状态也是 <p>，写成 .headline p 会连它们一起放大到 15~19px，
   把 .wl-note 自己的 12px 压掉，小字和副标题就一样大了。 */
.headline > p {
  margin: 18px 0 0; max-width: 34em; font-size: clamp(15px, 1.3vw, 19px); color: var(--fg-2); line-height: 1.6;
}
/* ===== 预约内测表单（取代下载按钮） ===== */
.waitlist { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; pointer-events: auto; max-width: 520px; }
.wl-field { position: relative; flex: 1 1 220px; min-width: 200px; }
.wl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wl-input {
  width: 100%; appearance: none; font: inherit; font-size: 14px; color: var(--fg);
  padding: 13px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.wl-input::placeholder { color: var(--fg-3); }
.wl-input:hover { border-color: rgba(255,255,255,.30); }
.wl-input:focus { outline: none; border-color: var(--fg); background: rgba(255,255,255,.10); }
.wl-input:read-only { opacity: .6; }
.wl-submit {
  appearance: none; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .02em; cursor: pointer;
  color: var(--fg); padding: 13px 22px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(255,255,255,.14);
  transition: transform .2s var(--ease-out), filter .2s var(--ease-out);
}
.wl-submit:hover { filter: brightness(1.18); }
.wl-submit:active { transform: scale(.985); }
.wl-submit:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.waitlist[data-busy="true"] .wl-submit { opacity: .6; pointer-events: none; }
.waitlist[data-done="true"] .wl-submit { pointer-events: none; opacity: .75; }
.wl-note { flex: 1 0 100%; margin: 2px 0 0; font-size: 12px; line-height: 1.55; color: var(--fg-3); }
.wl-status { flex: 1 0 100%; margin: 0; font-size: 12.5px; min-height: 1.2em; color: var(--fg-2); }
.wl-status[data-tone="ok"] { color: #7dffb0; }
.wl-status[data-tone="bad"] { color: #ffc857; }
/* 静态光边：左上受光、右下冷反光的 1px 渐变边，玻璃底，顶部内高光 */
.dl {
  position: relative; display: inline-block; padding: 1px; border-radius: 999px; color: var(--fg);
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.14) 32%, rgba(255,255,255,.06) 58%, rgba(185,205,255,.42));
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .22s var(--ease-out), filter .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.dl-body {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(24,24,28,.98), rgba(9,9,12,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -10px 18px rgba(0,0,0,.35);
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.dl-glyph { width: 16px; height: 16px; opacity: .92; }
.dl:hover { transform: scale(1.045); filter: brightness(1.12); box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.dl:active { transform: scale(0.985); transition-duration: .08s; }
.dl:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.dl[aria-disabled="true"] { cursor: default; }
.headline h1 span, .headline p, .headline .waitlist {
  opacity: 0; transform: translateY(26px); visibility: hidden;
  transition: opacity .9s var(--ease-io), transform .7s var(--ease-io), visibility 0s linear .9s;
}
.stage.beat-a .headline-a h1 span, .stage.beat-a .headline-a p, .stage.beat-a .headline-a .waitlist,
.stage.beat-b .headline-b h1 span, .stage.beat-b .headline-b p {
  opacity: 1; transform: none; visibility: visible;
  transition-delay: calc(var(--i) * .15s), calc(var(--i) * .15s), 0s;
}
/* A 退场：上移淡出，不等错落 */
.stage.beat-b .headline-a h1 span, .stage.beat-b .headline-a p, .stage.beat-b .headline-a .waitlist {
  opacity: 0; transform: translateY(-18px); visibility: hidden;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s linear .5s;
}

/* ===== 第二幕：Simon 对话（暗场，钉住） ===== */
.ascii { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; z-index: 5; pointer-events: none; }
.stage.asciified .light, .stage.asciified .mark, .stage.asciified .headline, .stage.asciified .ledger { opacity: 0 !important; transition: opacity 1.2s var(--ease-io); }
.light, .mark { transition: opacity 1.2s var(--ease-io); }
.act2-eyebrow {
  z-index: 6;
  position: absolute; left: 6.5vw; top: calc(50% - 86px); margin: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--fg-2);
  opacity: 0; transition: opacity .8s var(--ease-io);
}
.act2-line {
  z-index: 6;
  position: absolute; left: 6.5vw; top: 50%; transform: translateY(-50%); margin: 0; width: min(26vw, 360px);
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em;
}
.act2-line span { display: inline-block; opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-io), transform .7s var(--ease-io); }
.stage.panel .act2-eyebrow { opacity: 1; }
.stage.panel .act2-line span { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i) * .15s); }

/* 风格化的 Simon 面板：暗玻璃 */
.simon {
  z-index: 6;
  position: absolute; left: 60%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  width: min(620px, 54vw); height: min(66vh, 560px);
  display: flex; flex-direction: column; pointer-events: auto;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(22,22,27,.78), rgba(12,12,15,.82));
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .8s var(--ease-io), transform .9s var(--ease-out);
  overflow: hidden;
}
.stage.panel .simon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.simon-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; font-weight: 600;
}
.simon-head svg { width: 18px; height: 18px; color: var(--fg); opacity: .9; }
.simon-tag { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-2);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; }
/* 这里**不能**写 overscroll-behavior: contain。面板压在光带经过的位置上，鼠标多半就停在它上面；
   contain 会把滚动链掐断——日志滚到头（或像现在这样根本没内容可滚）之后，滚轮就停在面板里不往下传，
   页面跟着一起不动。auto 让它滚完自己的再接着滚页面，面板内部该滚还是能滚。 */
.simon-log { flex: 1; overflow-y: auto; overscroll-behavior-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.simon-log > :first-child { margin-top: auto; }   /* 内容少时贴底，多了可滚动 */
.msg { max-width: 82%; font-size: 14.5px; line-height: 1.6; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.msg.on { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.10); border-radius: 14px 14px 4px 14px; padding: 9px 13px; }
.msg.bot { align-self: flex-start; color: var(--fg); }
.msg.bot .t { white-space: pre-wrap; }
.msg .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--fg); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.block { margin-top: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.035);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.block.on { opacity: 1; transform: none; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.row:first-child { border-top: 0; }
.row .k { color: var(--fg); }
.row .v { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; border-radius: 999px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.12); color: var(--fg-2); }
.chip.ok { color: #7dffb0; border-color: rgba(125,255,176,.35); }
.chip.no { color: #ffc857; border-color: rgba(255,200,87,.35); }
.chip.src { color: #57b8ff; border-color: rgba(87,184,255,.35); }
.file { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); font-size: 13px; }
.file i { width: 14px; height: 18px; border: 1.5px solid var(--fg-2); border-radius: 3px; display: inline-block; }
.msg .note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--fg-2); }
.simon-composer { display: flex; align-items: center; gap: 12px; margin: 10px 14px 14px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); font-size: 13px; color: var(--fg-2); }
.simon-attach, .simon-send { font-size: 12px; color: var(--fg-2); }
.simon-send { margin-left: auto; color: var(--fg); opacity: .5; }
.simon-placeholder { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .msg, .block, .simon, .act2-line span, .act2-eyebrow { transition: none; }
  .msg .caret { animation: none; }
}

/* ===== 第三幕：光铺满 → 亮处的一份申请 ===== */
:root {
  --paper: #f5f5f7; --paper-2: #ffffff; --ink-on: #1d1f21; --ink-on-2: #5f6368; --ink-on-3: #8b9095;
  --line: #e2e4e7; --line-soft: #eef0f2; --mint: #216f57; --mint-soft: #e4f2eb; --apricot: #a65a2b; --apricot-soft: #faecdf; --blue: #315fad; --blue-soft: #e8f0ff;
}
.dawn { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: transparent; --dawn: 0; transition: background .8s var(--ease-io); }
.dawn::before { display: none; content: ""; position: absolute; left: 50%; top: 55%; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff 22%, rgba(255,255,255,.92) 40%, rgba(245,245,247,0) 68%);
  transform: scale(calc(0.04 + var(--dawn) * var(--dawn) * 5.5)); opacity: calc(min(1, var(--dawn) * 3)); }
.stage.dawn-on .dawn { opacity: 1; }
/* 光回来：第三幕开始时 WebGL 画布重新显现，由光带本身涨满整屏 */
.stage.dawn-on .light { opacity: 1 !important; transition: none; }
.stage.relit .mark { opacity: 1 !important; transition: opacity .9s var(--ease-io); }   /* 射线击中：标志从黑底挖开的区域里显形 */
.stage.dawn-on .simon, .stage.dawn-on .act2-line, .stage.dawn-on .act2-eyebrow { opacity: 0 !important; transition: opacity .6s var(--ease-io); }
.stage.daylight { background: var(--paper); }
.stage.daylight .dawn { background: var(--paper); transition: background 1.2s var(--ease-io); }
.stage.dawn-on .simon { transition: opacity 1.4s var(--ease-io); }
.act3 { position: absolute; inset: 0; z-index: 8; pointer-events: none; display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 4vw; align-items: center; padding: 0 6.5vw; color: var(--ink-on); }
.act3-copy { opacity: 0; }
.act3-eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--ink-on-3); }
.act3 h2 { margin: 0; font-size: clamp(28px, 3.2vw, 46px); font-weight: 700; line-height: 1.18; letter-spacing: -0.012em; }
.act3-sub { margin: 16px 0 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; color: var(--ink-on-2); max-width: 24em; }
.act3-copy > * { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-io), transform .7s var(--ease-io); }
.stage.daylight .act3-copy { opacity: 1; }
.stage.daylight .act3-copy > * { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .15s); }
.appcard { justify-self: end; width: min(560px, 100%); background: var(--paper-2); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(20 22 25 / 5%), 0 10px 28px rgb(20 22 25 / 8%); padding: 18px 22px 14px; display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .9s var(--ease-io) .35s, transform .9s var(--ease-out) .35s; }
.stage.daylight .appcard { opacity: 1; transform: none; }
.appcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.appcard-eyebrow { margin: 0 0 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-on-3); }
.appcard h3 { margin: 0; font-size: 19px; font-weight: 600; }
.appcard-meta { margin: 4px 0 0; font-size: 12px; color: var(--ink-on-3); }
.appcard-state { font-size: 11px; color: var(--mint); background: var(--mint-soft); border-radius: 999px; padding: 5px 12px; white-space: nowrap; font-weight: 500; }
.appcard-sec h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-on-2); letter-spacing: .02em; }
.aprow { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; margin-top: 6px;
  background: var(--surface-muted, #f7f8f9); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 13px;
  opacity: 0; transform: translateX(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.aprow.on { opacity: 1; transform: none; }
.aprow .k { font-size: 11px; color: var(--ink-on-3); }
.aprow .v { font-weight: 500; }
.tag { font-size: 10.5px; border-radius: 999px; padding: 3px 9px; white-space: nowrap; font-weight: 500; }
.tag.src { color: var(--mint); background: var(--mint-soft); }
.tag.ok { color: var(--blue); background: var(--blue-soft); }
.tag.ai { color: var(--apricot); background: var(--apricot-soft); }
.appcard-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-on-3); padding-top: 4px; }
.appcard-link { color: var(--blue); }

/* ===== 第四幕：亮底收尾 ===== */
.act4 { background: var(--paper); color: var(--ink-on); padding: 18vh 6.5vw 10vh; }
.act4-inner { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.act4-mark { width: 44px; height: 44px; color: var(--ink-on); flex: 0 0 auto; margin: 0 -3px; }
/* 收尾签名：一道白光进来、打在标志上、出去时分成彩色。
   和第一幕是同一件事，只是缩成一条发丝线——亮底上「白光」要反过来画成墨色。 */
.signature { display: flex; align-items: center; width: 100%; max-width: 620px; }
.signature .sig-beam,
.signature .sig-spec { height: 1px; min-width: 0; }
.signature .sig-beam { flex: 1; background: linear-gradient(90deg, transparent, rgba(20,22,25,.55)); }
.signature .sig-spec {
  flex: 1;
  background: linear-gradient(90deg, #8a5cff, #1e93e6 24%, #17b877 47%, #d99400 70%, #e2545a 88%, transparent);
}
.act4 h2 { margin: 8px 0 0; font-size: clamp(32px, 4vw, 54px); font-weight: 700; letter-spacing: -0.015em; }
/* 同上，必须是 .act4-inner > p，不能写 .act4 p */
.act4-inner > p { margin: 0; font-size: clamp(15px, 1.3vw, 19px); color: var(--ink-on-2); }
.waitlist-light { margin-top: 14px; justify-content: center; }
.waitlist-light .wl-input { color: var(--ink-on); border-color: rgba(20,22,25,.16); background: #fff; box-shadow: 0 1px 2px rgb(20 22 25 / 5%); }
.waitlist-light .wl-input::placeholder { color: var(--ink-on-3); }
.waitlist-light .wl-input:focus { border-color: var(--ink-on); background: #fff; }
.waitlist-light .wl-submit { color: #fff; background: linear-gradient(180deg, #2b2d31, #17181b); box-shadow: 0 1px 2px rgb(20 22 25 / 12%); }
.waitlist-light .wl-note, .waitlist-light .wl-status { color: var(--ink-on-3); text-align: center; }
.waitlist-light .wl-status[data-tone="ok"] { color: var(--mint); }
.waitlist-light .wl-status[data-tone="bad"] { color: var(--apricot); }
.act4-foot { margin-top: 14vh; width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--ink-on-3); }
.act4-links { display: flex; gap: 22px; }
.act4-links a:hover { color: var(--ink-on); }

@media (prefers-reduced-motion: reduce) { .act3-copy > *, .appcard, .aprow, .dawn::before { transition: none; } }

.next {
  height: 100vh; display: grid; place-items: center; background: var(--ink-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--fg-3);
}
.next p { margin: 0; }

/* 胶片颗粒：内联 SVG 湍流噪声，overlay 叠加，两步抖动 */
.grain {
  position: fixed; inset: -10%; z-index: 30; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 300px 300px; opacity: .07; mix-blend-mode: overlay;
  animation: grain-shift .9s steps(2) infinite;
}
@keyframes grain-shift { 0% { transform: translate(0,0);} 50% { transform: translate(1.5%, -1%);} 100% { transform: translate(0,0);} }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .ledger li, .ledger li::before, .headline h1 span, .headline p, .headline .waitlist, .eyebrow, .hint, .wl-input, .wl-submit { transition: none; }
  .dl:hover { transform: none; }
}

/* ===== 语言切换（固定右上，中 / EN） ===== */
.lang {
  position: fixed; top: 18px; right: 6.5vw; z-index: 20; display: flex; gap: 2px; padding: 2px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(10,10,14,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--fg-2); cursor: pointer;
  padding: 6px 9px; border-radius: 999px; font: inherit; letter-spacing: inherit; white-space: nowrap;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.lang button[aria-pressed="true"] { color: var(--fg); background: rgba(255,255,255,.12); }
.lang button:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.lang.on-light { border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.7); }
.lang.on-light button { color: var(--ink-on-2); }
.lang.on-light button[aria-pressed="true"] { color: var(--ink-on); background: rgba(0,0,0,.07); }
@media (prefers-reduced-motion: reduce) { .lang button { transition: none; } }
html[lang="en"] .aprow .k { min-width: 7.5em; }   /* 英文字段名更长，避免在窄列里折行 */
html[lang="ja"] .aprow .k, html[lang="ko"] .aprow .k { min-width: 5.5em; }
/* 韩文行高比中日略高，正文不至于挤在一起 */
html[lang="ko"] body { line-height: 1.58; }

/* ============================================================
   滚动吸附（仅桌面端 / 横屏）
   做法参照 Apple 产品页：不锁死每一屏，只在你停手时轻轻落到最近的叙事休止拍。
   用 proximity 而不是 mandatory——这条时间轴是可以自由擦洗的，强制吸附会打断擦洗手感。
   锚点位置写死成 vh，是因为竖屏的舞台高度不同（1400vh），而竖屏本来就不吸附。
   ============================================================ */
/* 默认 display:none —— 锚点位置是按桌面端 2400vh 的舞台算死的，
   竖屏舞台只有 1400vh，留着会把文档底下撑出好几屏空白。 */
.snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
/* 不再用 CSS scroll-snap —— 它的吸附范围会把小幅滚动整个拉回去（见 snap.js 的说明）。 */

/* ============================================================
   竖屏 / 手机端（≤ 760px 或近似竖屏）
   做法参照 Apple 的产品页：保留同一段滚动叙事，但把构图改成竖屏、
   行程压短、渲染负担降下来——不是把横屏等比缩小塞进窄屏。
   ============================================================ */
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  /* 行程从 24 屏压到 14 屏；各幕比例不变（进度是归一化的） */
  .hero { height: 1400vh; }

  /* 标志放大一点并上移，给下方文案留出位置 */
  .mark { width: 44vmin; height: 44vmin; margin: -30vmin 0 0 -22vmin; }

  .eyebrow { top: 6vh; font-size: 10.5px; }
  .hint { bottom: 3.5vh; font-size: 10.5px; }

  /* 五项清单：竖屏移到标题正上方，把上半屏让给光——不然光束正好从清单里穿过去 */
  .ledger {
    inset: auto 0 auto 0; bottom: 30vh; padding: 0 6vw;
    display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  }
  /* 基础样式里 li 是 height:0 的绝对定位项，竖屏要还原成常规流才不会叠在一起 */
  .ledger li { position: static !important; transform: none !important; height: auto; font-size: 13px; }
  .ledger li::before { width: 20px; }

  /* 文案：整幅宽度，压在底部 */
  .headline { left: 6vw; right: 6vw; bottom: 9vh; width: auto; }
  .headline-a h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .headline h1 { font-size: clamp(22px, 6.1vw, 30px); }
  .headline > p { font-size: 15px; margin-top: 14px; }
  .waitlist { gap: 8px; margin-top: 20px; max-width: none; }
  .wl-field { flex: 1 0 100%; }
  .wl-input, .wl-submit { font-size: 15px; padding: 14px 18px; }   /* 手机上 ≥16px 可避免 iOS 聚焦缩放，这里 15px 配合 viewport 已足够 */

  /* 第二幕：标题移到面板上方，面板占满宽度 */
  .act2-eyebrow { left: 6vw; top: 11vh; }
  .act2-line {
    left: 6vw; right: 6vw; top: 14.5vh; transform: none; width: auto;
    font-size: clamp(21px, 5.9vw, 28px);
  }
  .simon {
    left: 6vw; right: 6vw; top: auto; bottom: 6vh; width: auto;
    height: min(56vh, 460px); transform: translateY(14px) scale(.98);
  }
  .stage.panel .simon { transform: none; }
  .simon-log { padding: 14px 14px 6px; gap: 10px; }
  .msg { max-width: 92%; font-size: 13.5px; }
  .row { grid-template-columns: 1fr auto; row-gap: 4px; font-size: 12px; }
  .row .chip { grid-column: 2; }
  .simon-composer { margin: 8px 10px 10px; padding: 9px 12px; font-size: 12px; }

  /* 第三幕：文案在上、申请卡在下，单列 */
  .act3 {
    grid-template-columns: 1fr; align-content: center; gap: 18px;
    padding: 0 6vw; overflow-y: auto;
  }
  .act3 h2 { font-size: clamp(24px, 6.8vw, 32px); }
  .act3-sub { font-size: 14px; }
  .appcard { justify-self: stretch; width: auto; padding: 16px 16px 12px; gap: 12px; }
  .appcard h3 { font-size: 16px; }
  .appcard-head { flex-direction: column; gap: 8px; }
  .appcard-state { align-self: flex-start; }
  .aprow { grid-template-columns: 1fr auto; row-gap: 2px; padding: 8px 10px; }
  .aprow .k { grid-column: 1 / -1; }

  /* 第四幕：只调比例与间距，不动版式本身 */
  /* 这一屏原本只有 731px 高（390×844 下），滚到底时上方还会露出第三幕被切掉一半的申请卡，
     落幕不干净。让它至少占满一屏。用 svh 而不是 vh：手机地址栏收起时 vh 会多算出一截，
     反而把内容顶到屏外去。 */
  .act4 { min-height: 100vh; min-height: 100svh; padding: 6vh 6vw 5vh; }
  .act4-inner { min-height: calc(100vh - 11vh); min-height: calc(100svh - 11vh); gap: 14px; }
  /* 主体在剩余空间里居中、页脚沉到底部：两处 auto 外边距把余量对半分掉，
     于是不论屏多高，「签名→标题→按钮」这一簇的重心都稳定落在正中略偏上。 */
  .act4 .signature, .act4-foot { margin-top: auto; }
  /* 窄屏上签名被拉得很扁：发丝线越长，中间那枚标志显得越小。收短线、放大标志。 */
  .signature { max-width: 300px; }
  .act4-mark { width: 54px; height: 54px; }
  .act4 h2 { font-size: clamp(26px, 7.6vw, 38px); margin-top: 10px; }
  /* 只挑副标题那一段，不要写成 .act4 p —— 表单里的说明文字也是 <p>，会被一起限宽 */
  .act4-inner > p { font-size: 15px; text-wrap: balance; }
  .waitlist-light { margin-top: 18px; }
  /* 说明小字不再需要在这里兜底：.act4 p 收窄成 .act4-inner > p 之后，
     .wl-note 自己的 12px 终于生效了（全站一致）。 */
  .act4-foot { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
  .act4-links { gap: 18px; }

  /* 手机上没有指针：去掉悬停放大，保留按下反馈 */
  .wl-submit:hover { filter: none; }
  .wl-submit { flex: 1 0 100%; }

  /* 颗粒在小屏上更明显也更费电，压淡 */
  .grain { opacity: .05; animation: none; }

  .lang { top: 12px; right: 4vw; font-size: 10px; letter-spacing: .06em; }
  .lang button { padding: 5px 7px; }
}
