.phase-scale { grid-template-columns: repeat(5, 1fr); }
.score-heading { display: flex; align-items: baseline; justify-content: space-between; font: 700 52px/1 "Manrope", sans-serif !important; color: #b8f6ff; }
.score-heading span { font: 600 16px/1 "Manrope", sans-serif; color: #f7f5ff; }
#hero-title { line-height: 1.2; }
#final-title {line-height: 1.2;}
.site-header nav { gap: 18px; }
.site-header nav a { font-size: 13px; white-space: nowrap; }
.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  object-fit: cover;
}
.phone-shell-screenshot::before { display: none; }
.phone-shell-screenshot,
.app-shot-real {
  width: 356.4px;
  height: auto;
  /* Match the 540x1170 source screenshots, including the 8px frame. */
  aspect-ratio: 540 / 1142;
  box-sizing: border-box;
  padding: 8px;
  border: 0;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(145deg, #4b4a56, #171720 27%, #09090e 70%, #565361);
  box-shadow: 0 45px 90px rgba(0, 0, 0, .48), 0 0 80px rgba(121, 79, 255, .18);
}
.phone-shell-screenshot {
  width: 356.4px;
}
.phone-shell-screenshot .phone-screen {
  height: 100%;
  border-radius: 36px;
  padding: 0;
}
.app-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  background: #0c0c13;
}
.app-shot-real {
  width: 356.4px;
}
.carousel-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  background: #11111a;
  border-radius: 36px;
}
.carousel {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .hero-device {
    width: 100%;
    height: 780px;
    margin-left: 0;
    justify-self: center;
  }
  .phone-shell-screenshot,
  .app-shot-real {
    width: min(356.4px, calc(100vw - 32px));
    height: auto;
  }
  .phone-shell-screenshot { transform: none; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero h1 span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .analysis-demo {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }
}

/* Mobile keeps motion restrained: short reveals, a gentle device float, and slow background drift. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .phone-shell-screenshot {
    animation: phone-float-mobile 7s ease-in-out infinite;
  }
  .hero-haze-one {
    animation: mobile-haze-drift-one 7s ease-in-out infinite;
    will-change: transform, opacity;
  }
  .hero-haze-two {
    animation: mobile-haze-drift-two 13s ease-in-out infinite alternate;
  }
}

@keyframes phone-float-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes mobile-haze-drift-one {
  0%, 100% { opacity: .14; transform: translate3d(0, 0, 0) scale(.78); }
  25% { opacity: .24; transform: translate3d(-18px, 12px, 0) scale(1.12); }
  50% { opacity: .18; transform: translate3d(16px, 22px, 0) scale(.86); }
  75% { opacity: .26; transform: translate3d(26px, -14px, 0) scale(1.18); }
}

@keyframes mobile-haze-drift-two {
  0% { opacity: .12; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: .22; transform: translate3d(12px, -8px, 0) scale(1.08); }
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #071017;
  box-shadow: 0 8px 24px rgba(86, 232, 255, .16);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.header-cta span { display: inline-flex; align-items: center; line-height: 1; }
.header-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-cta:hover { transform: translateY(-2px); background: #8af1ff; border-color: #8af1ff; box-shadow: 0 12px 30px rgba(86, 232, 255, .25); }
.header-cta:active { transform: translateY(0); box-shadow: 0 5px 15px rgba(86, 232, 255, .16); }

/* Keep the marketing page readable across platforms, especially for Chinese text. */
body {
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

h1, h2, h3, h4, .brand, .store-button span, .section-heading h2,
.compare-side h3, .feature-copy h3, .screen-info h3, .faq-list summary,
.final-inner h2, .info-title, .info-section h2, .info-section h3 {
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.eyebrow, .section-number { font-size: 13px; line-height: 1.5; }
.eyebrow { font-size: 16px; line-height: 1.6; font-weight: 600; }
.hero-copy > p, .section-heading p, .final-inner > p { line-height: 1.8; }
.hero-note { font-size: 14px !important; }
.compare-label small, .compare-side li > span, .feature-index,
.screen-info span, footer > div { font-size: 12px; }
.compare-side li p, .feature-copy p, .screen-info p, .faq-list details p { font-size: 16px; line-height: 1.75; }
.compare-side li strong { font-size: 16px; }
.prompt-demo > span, .analysis-demo > span, .prompt-demo small { font-size: 12px; }
.topic-cloud span, .level-scale span { font-size: 12px; }
.analysis-demo small { font-size: 12px; }
.feature-copy p, .screen-info p, .faq-list details p,
.compare-side li p { color: #aaa7b6; }
.feature-index, .compare-side li > span { color: #8f8b98; }
.level-scale span { color: #918d9a; }
.setting-lines span, .setting-lines strong { font-size: 12px; }

/* Small type inside the phone mockups remains secondary, but must still be legible. */
.phone-status, .time-row { font-size: 10px; }
.player-top span, .cover-index, .cover-level, .cover-art div small,
.chip-level span, .chip-generated small, .shot-status, .app-shot > small,
.shot-chips span { font-size: 12px; }
.store-button small, .mini-cover span { font-size: 12px; }
.player-meta span, .sentence-card > span, .sentence-card button,
.phrase span { font-size: 12px; }
.versus span { font-size: 12px; }
.app-shot > small, .cover-index, .cover-level, .cover-art div small,
.player-top span { color: #aaa7b6; }
.sentence-card p { font-size: 12px; line-height: 1.6; }

/* Public pages use a 16px minimum text size for comfortable reading. */
.site-header nav a,
.eyebrow, .section-number, .hero-note,
.compare-label small, .compare-side li > span, .compare-side li p,
.compare-side li strong, .feature-index, .feature-copy p,
.prompt-demo > span, .prompt-demo small, .topic-cloud span,
.level-scale span, .setting-lines span, .setting-lines strong,
.screen-info span, .screen-info p, .faq-list summary,
.faq-list details p, footer > div,
.phone-status, .player-top span, .cover-index, .cover-level,
.cover-art div small, .player-meta span, .time-row,
.sentence-card > span, .sentence-card p, .sentence-card button,
.chip-level span, .chip-generated small, .store-button small,
.shot-status, .app-shot > small, .shot-chips span, .mini-cover span,
.shot-input, .phrase strong, .phrase span, .analysis-demo > span,
.analysis-demo p, .analysis-demo mark, .analysis-demo small,
.versus span { font-size: 16px; }

.player-controls button small { font-size: 16px; }

@media (max-width: 640px) {
  .site-header nav a { font-size: 13px; }
  .eyebrow { font-size: 15px; }
  .header-cta { min-height: 44px; padding: 0 13px; gap: 7px; }
  .header-cta svg { width: 17px; height: 17px; }
  .hero-copy > p, .section-heading p, .final-inner > p { line-height: 1.75; }
  .compare-side li p, .feature-copy p, .screen-info p, .faq-list details p { font-size: 15px; }
}

@media (max-width: 1040px) {
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 13px; }
}

/* Final accessibility floor: every visible text label on public pages is 16px+. */
.site-header nav a,
.header-cta,
.eyebrow, .section-number, .hero-note,
.compare-label small, .compare-side li > span, .compare-side li p,
.compare-side li strong, .feature-index, .feature-copy p,
.feature-icon, .prompt-demo > span, .prompt-demo small,
.topic-cloud span, .level-scale span, .setting-lines span,
.setting-lines strong, .screen-info span, .screen-info p,
.faq-list summary, .faq-list details p, footer > div,
.phone-status, .player-top span, .cover-index, .cover-level,
.cover-art div small, .player-meta span, .time-row,
.sentence-card > span, .sentence-card p, .sentence-card button,
.chip-level span, .chip-generated small, .store-button small,
.shot-status, .app-shot > small, .shot-chips span, .mini-cover span,
.phrase span, .analysis-demo > span, .analysis-demo small,
.versus span, .player-controls button small,
.info-page .info-kicker, .info-page .info-meta,
.info-page .info-toc strong, .info-page .info-toc a,
.info-page .info-tabs a, .info-page .info-footer p,
.info-page .info-footer > div { font-size: 16px !important; }

.phone-status, .time-row { font-size: 16px !important; }

.audio-toggle {
  isolation: isolate;
  position: fixed;
  z-index: 110;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 41.6px;
  height: 41.6px;
  display: grid;
  place-items: center;
  border: 5px solid rgba(86, 232, 255, .325);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(86, 232, 255, .62), rgba(139, 108, 255, .72) 48%, rgba(226, 108, 250, .62));
  background-size: 280% 280%;
  color: var(--cyan);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 30px rgba(86, 232, 255, .3);
  backdrop-filter: blur(14px);
  cursor: pointer;
  animation: audio-dream-shift 3.2s ease-in-out infinite, audio-dream-pulse 2.4s ease-in-out infinite;
  transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.audio-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 1px solid rgba(86, 232, 255, .42);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.audio-toggle:not(.is-paused)::before {
  animation: audio-ripple 2.2s ease-out infinite;
}
.audio-toggle:hover { transform: translateY(-2px); border-color: rgba(86, 232, 255, .5); color: #e9fcff; }
.audio-toggle:active { transform: translateY(0); }
.audio-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.audio-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.audio-icon-play { display: none; fill: currentColor; stroke-width: 1.5; }
.audio-toggle.is-paused .audio-icon-pause { display: none; }
.audio-toggle.is-paused .audio-icon-play { display: block; }
.audio-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: 190px;
  padding: 9px 12px;
  border: 1px solid rgba(86, 232, 255, .28);
  border-radius: 8px;
  background: rgba(10, 12, 22, .94);
  color: #f7f5ff;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.audio-toggle:hover .audio-tooltip,
.audio-toggle:focus-visible .audio-tooltip,
.audio-toggle.show-audio-tooltip .audio-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
  animation: audio-tooltip-timeout 5s ease forwards;
}
@keyframes audio-ripple {
  0% { opacity: .7; transform: scale(.82); }
  70%, 100% { opacity: 0; transform: scale(1.42); }
}
@keyframes audio-tooltip-timeout {
  0%, 82% { opacity: 1; transform: translate(0, -50%); }
  100% { opacity: 0; transform: translate(4px, -50%); }
}
@keyframes audio-dream-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes audio-dream-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 24px rgba(86, 232, 255, .22); }
  50% { box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 46px rgba(226, 108, 250, .48); }
}

@media (max-width: 640px) {
  .audio-toggle {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }
  .audio-tooltip {
    right: calc(100% + 10px);
    font-size: 13px;
  }
}

/* 页脚现在只剩这一条居中的版权 + 备案信息，原来的品牌块、标语和链接已删除
   （顶部导航里都有，页脚那份是重复的）。 */

/* 原来靠 min-height 撑出品牌块的高度，只剩一行字就成了大片空白，改成按内边距给。
   .info-footer 写在 info-pages.css 里、且那个文件加载在本文件之后，同特异性会输，
   所以这里用 footer.info-footer（0,1,1）压过它的 .info-footer（0,1,0）。 */
footer,
footer.info-footer {
  min-height: 0;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.site-beian {
  /* footer 是 grid，这条要横跨所有列才能真正居中 */
  grid-column: 1 / -1;
  /* landing.css 有 footer>div{display:flex}（特异性 0,0,2，压过 .site-beian 的 0,1,0），
     不改回 block 的话这里是个 flex 容器，text-align 对 flex 子项不起作用，
     文字会贴左边。 */
  display: block;
  /* landing.css 的窄屏媒体查询里有 footer>div{justify-self:end}（640px 下是 start），
     .site-beian 是 footer 的直接 div 子元素，会被推到一边去。这里显式拉满，
     配合 text-align:center 才能在所有断点都居中。 */
  justify-self: stretch;
  text-align: center;
  /* 分隔线由上面 footer 的 border-top 负责，这里再画一条会变成双线 */
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  color: #6f6c78;
  /* 不设 font-size：本文件上面那条可读性规则（把 footer > div 等小字统一提到 16px）
     特异性 0,3,0，压得过 .site-beian 的 0,1,0。写 12px 只会是死代码，用 !important
     去顶又会破坏这套刻意的放大。 */
  line-height: 1.8;
}
.site-beian a { color: inherit; text-decoration: none; }
.site-beian a:hover { color: #fff; }
.site-beian .sep { margin: 0 8px; opacity: .5; }

@media (max-width: 640px) {
  /* 窄屏一行放不下，让公司名和备案号各占一行 */
  .site-beian .sep { display: block; height: 0; margin: 2px 0; overflow: hidden; }
}

/* 「正在开发中」提示条 */
.toast-notice {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(20, 20, 30, .92);
  color: #f7f5ff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
