/* Parallel Translate — 官网样式
 * 基建 / 规格表（spec-sheet）风格：发丝级网格线、等宽字体标签、克制留白、单一靛蓝强调色。
 * 与产品「极简即专业」的设计哲学一致，仅浅色主题。无构建步骤、零依赖。 */

:root {
  /* 调色板源自插件 globals.css 的品牌 token */
  --bg: oklch(0.985 0.004 95);
  --bg-soft: oklch(0.965 0.004 95);
  --fg: oklch(0.22 0.01 260);
  --muted: oklch(0.52 0.01 260);
  --faint: oklch(0.7 0.01 260);
  --accent: oklch(0.62 0.22 270);
  --accent-soft: oklch(0.95 0.03 270);
  --accent-fg: oklch(0.99 0 0);
  --line: color-mix(in oklch, var(--fg) 12%, transparent);
  --line-strong: color-mix(in oklch, var(--fg) 22%, transparent);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

  --maxw: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  isolation: isolate;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Default text cursor on long-form copy reads as "selectable here, click
     does nothing" — we want the marketing page to feel like a polished UI,
     not a document. Form controls and editable surfaces opt back in below. */
  cursor: default;
}
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, color-mix(in oklch, var(--accent) 9%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 18%, color-mix(in oklch, var(--accent) 6%, transparent), transparent 30rem),
    radial-gradient(circle at 52% 92%, color-mix(in oklch, var(--accent) 7%, transparent), transparent 34rem);
  transform: translate3d(0, 0, 0) scale(1);
  animation: ambient-glow 26s ease-in-out infinite alternate;
}
body > * {
  position: relative;
  z-index: 1;
}
@keyframes ambient-glow {
  from { transform: translate3d(-10px, 6px, 0) scale(1); }
  to { transform: translate3d(18px, -12px, 0) scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
input, textarea, [contenteditable="true"] { cursor: text; }

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* 等宽小标签：基建风格的「眉标」 */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mono { font-family: var(--font-mono); }

/* ── 容器与分隔线 ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.rule { border: 0; border-top: 1px solid var(--line); }

/* ── 顶栏 ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 76%, transparent);
  backdrop-filter: saturate(165%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand .sub { color: var(--faint); font-weight: 400; font-size: 13px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }

/* 语言切换 */
.lang-menu {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-trigger {
  min-width: 144px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in oklch, var(--bg) 82%, white);
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px 0 14px;
  font: inherit;
  line-height: 1;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.lang-current {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-flag {
  flex: 0 0 auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 14px;
  line-height: 1;
}
.lang-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s;
}
.lang-menu.is-open .lang-chevron { transform: translateY(1px) rotate(225deg); }
.lang-trigger:hover,
.lang-menu.is-open .lang-trigger {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg);
}
.lang-trigger:focus-visible,
.lang-option:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--accent) 55%, transparent);
  outline-offset: 3px;
}
.lang-options {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  width: 184px;
  z-index: 100;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in oklch, var(--bg) 94%, white);
  box-shadow: 0 18px 44px color-mix(in oklch, var(--fg) 14%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity .14s, transform .14s, visibility 0s linear .14s;
}
.lang-menu.is-open .lang-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
.lang-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0 9px 0 10px;
  text-align: start;
  transition: background .12s, color .12s;
}
.lang-option-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.lang-option:hover,
.lang-option:focus-visible {
  background: color-mix(in oklch, var(--accent-soft) 72%, transparent);
  color: var(--fg);
}
.lang-option[aria-selected="true"] {
  background: color-mix(in oklch, var(--accent-soft) 92%, white);
  color: var(--fg);
}
.lang-option[aria-selected="true"]::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
}
.lang-code {
  margin-inline-start: auto;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.lang-option[aria-selected="true"] .lang-code { display: none; }
.lang-toggle,
.lang-select {
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  padding: 5px 12px; transition: all .15s;
}
.lang-select { min-width: 118px; }
.lang-toggle:hover,
.lang-select:hover { color: var(--fg); border-color: var(--fg); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius);
  border: 1px solid transparent; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn svg { width: 16px; height: 16px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  /* 发丝点阵网格背景 */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(color-mix(in oklch, var(--fg) 10%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 35%, transparent 78%);
  opacity: 0.7;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 88px 24px 72px;
  text-align: center;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.05; letter-spacing: 0; font-weight: 680;
  margin: 22px auto 0; max-width: 18ch;
  text-wrap: balance;
}
.hero-title-nowrap { white-space: nowrap; }
html[lang="zh-CN"] .hero h1 { max-width: 9.8em; word-break: keep-all; }
.hero .lede {
  margin: 22px auto 0; max-width: 56ch;
  font-size: clamp(16px, 2.2vw, 19px); color: var(--muted);
}
.hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.launch-notice {
  position: relative;
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}
.launch-notice::before {
  content: none;
}
.launch-notice::after {
  content: none;
}
.install-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.install-actions .store-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: fit-content;
  min-width: 232px;
  max-width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: 0;
  padding: 0 32px;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 90%, white 10%), var(--accent));
  box-shadow:
    0 24px 54px -32px color-mix(in oklch, var(--accent) 64%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 22%, transparent);
  font-size: 16px;
  font-weight: 600;
}
.install-actions .store-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0 34%,
    color-mix(in oklch, white 34%, transparent) 48%,
    transparent 62% 100%
  );
  transform: translateX(-130%);
  animation: store-cta-shine 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.install-actions .store-cta > * {
  position: relative;
  z-index: 1;
}
.install-actions .store-cta .chrome-mark {
  position: relative;
}
.install-actions .store-cta span {
  line-height: 1;
}
.install-actions .store-cta:hover {
  filter: none;
  box-shadow:
    0 30px 62px -31px color-mix(in oklch, var(--accent) 78%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 28%, transparent);
}
@keyframes store-cta-shine {
  0%, 42% { transform: translateX(-130%); opacity: 0; }
  58% { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}
.chrome-mark {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.waitlist-form {
  display: grid;
  gap: 11px;
  margin-top: 4px;
}
.waitlist-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.waitlist-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  padding: 4px;
  border: 1px solid color-mix(in oklch, var(--fg) 26%, var(--accent) 16%);
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in oklch, white 72%, var(--bg)), var(--bg)),
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--fg) 5%, transparent) 0 1px, transparent 1px 18px);
  box-shadow:
    0 10px 26px -22px color-mix(in oklch, var(--fg) 46%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 82%, transparent);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.waitlist-row:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px color-mix(in oklch, var(--accent) 13%, transparent),
    0 18px 36px -26px color-mix(in oklch, var(--accent) 52%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 88%, transparent);
  transform: translateY(-1px);
}
.waitlist-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 11px 13px;
}
.waitlist-row input:focus {
  outline: none;
  box-shadow: none;
}
.waitlist-submit {
  min-height: 42px;
  position: relative;
  overflow: hidden;
  justify-content: center;
  gap: 10px;
  border-color: color-mix(in oklch, var(--fg) 92%, var(--accent));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--fg) 86%, var(--accent) 14%), var(--fg));
  color: var(--bg);
  box-shadow:
    0 18px 34px -22px color-mix(in oklch, var(--fg) 70%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 20%, transparent);
}
.waitlist-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, color-mix(in oklch, white 26%, transparent) 46%, transparent 58% 100%);
  transform: translateX(-120%);
  transition: transform .42s cubic-bezier(0.22, 1, 0.36, 1);
}
.waitlist-submit:hover::before { transform: translateX(120%); }
.waitlist-submit:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 24px 42px -24px color-mix(in oklch, var(--fg) 74%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 24%, transparent);
}
.waitlist-submit::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}
.waitlist-submit:hover::after { transform: translateX(2px) rotate(45deg); }
.waitlist-form.is-submitting .waitlist-submit::after { transform: rotate(45deg); }
.waitlist-form .waitlist-submit[disabled]::after { opacity: 0.45; }
.waitlist-form .waitlist-submit[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.waitlist-form .waitlist-submit[disabled]:hover {
  transform: none;
  box-shadow:
    0 18px 34px -22px color-mix(in oklch, var(--fg) 70%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 20%, transparent);
}
.waitlist-form .waitlist-submit[disabled]:hover::before { transform: translateX(-120%); }
.waitlist-hint,
.waitlist-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.waitlist-hint { color: var(--faint); }
.waitlist-status { color: var(--muted); }
.waitlist-status.is-success { color: color-mix(in oklch, var(--accent) 76%, var(--fg)); }
.waitlist-status.is-error { color: #b94545; }

/* 产品演示：对照阅读卡片 */
.demo {
  position: relative; z-index: 1;
  max-width: 760px; margin: 56px auto -1px; padding: 0 24px;
}
.demo-frame {
  border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
  background: var(--bg); box-shadow: 0 24px 60px -32px color-mix(in oklch, var(--accent) 30%, transparent);
}
.demo-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo-bar .url {
  margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--faint);
}
.demo-body { padding: 26px 30px 30px; text-align: left; cursor: text; }
.demo-body p { margin-top: 14px; }
.demo-body p:first-child { margin-top: 0; }
.src { font-size: 16px; color: var(--fg); }
.src .vocab {
  cursor: help; font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.src .vocab:hover,
.src .vocab:focus-visible,
.src .vocab.is-active {
  background: var(--accent-soft);
  color: color-mix(in oklch, var(--accent) 84%, var(--fg));
  outline: none;
}

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .demo-body .src,
html[dir="rtl"] .demo-bar .url,
html[dir="rtl"] .vocab-popover {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] .demo-body .trg {
  direction: rtl;
  text-align: right;
}

.vocab-popover {
  position: fixed;
  z-index: 80;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg) 98%, white);
  box-shadow: 0 20px 48px -28px color-mix(in oklch, var(--fg) 38%, transparent);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .14s, transform .14s;
}
.vocab-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.vocab-popover::before {
  content: "";
  position: absolute;
  left: var(--arrow-left, 24px);
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  background: inherit;
  transform: rotate(45deg);
}
.vocab-popover[data-placement="top"]::before {
  top: auto;
  bottom: -6px;
  transform: rotate(225deg);
}
.vocab-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vocab-word {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}
.vocab-phonetic {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.vocab-speak {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.vocab-speak:hover,
.vocab-speak:focus-visible {
  background: var(--accent-soft);
  border-color: color-mix(in oklch, var(--accent) 42%, var(--line-strong));
  outline: none;
}
.vocab-speak svg {
  width: 15px;
  height: 15px;
}
.vocab-pos {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.vocab-meaning {
  margin-top: 8px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.55;
}
.vocab-submeaning {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.vocab-example {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.vocab-example strong {
  color: var(--fg);
  font-weight: 560;
}
.trg {
  font-size: 14px; color: var(--muted);
  border-left: 2px solid var(--accent-soft); padding-left: 12px; margin-top: 4px !important;
}

/* ── 通用区块 ── */
section { padding: 72px 0; }
.section-head { max-width: 60ch; }
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; font-weight: 640;
  margin-top: 14px; line-height: 1.15;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* 哲学 / 原则三栏 —— 规格表式分隔 */
.principles {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.principle { padding: 28px; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.principle p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* 功能特性：spec 网格 */
.features {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature {
  padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.feature:hover { background: var(--bg-soft); }
.feature .ico {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { font-size: 16px; font-weight: 600; }
.feature p { margin-top: 7px; font-size: 14px; color: var(--muted); }

/* 引用 / 哲学陈述 */
.quote {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--accent) 7%, transparent), transparent 42%),
    var(--bg);
}
.quote .wrap { padding: 72px 24px; text-align: center; }
.quote blockquote {
  font-size: clamp(22px, 3.4vw, 32px); letter-spacing: -0.02em; line-height: 1.3;
  max-width: 24ch; margin: 0 auto; font-weight: 560;
}
.quote .by { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }

/* CTA 收尾 */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(26px, 4.5vw, 40px); letter-spacing: -0.02em; font-weight: 660; }
.cta-final p { margin-top: 14px; color: var(--muted); }
.cta-final .hero-cta { margin-top: 28px; }

/* ── 页脚 ── */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 15px; }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer-tagline { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-heading { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.footer-col a { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: var(--maxw); margin: 36px auto 0; padding: 0 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--faint);
}

/* ── 法律 / 隐私页 ── */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 34px; letter-spacing: -0.02em; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--faint); margin-top: 8px; }
.legal h2 { font-size: 20px; margin-top: 40px; letter-spacing: -0.01em; }
.legal h3 { font-size: 16px; margin-top: 24px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; font-size: 15px; }
.legal ul { margin-top: 8px; padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); font-weight: 600; color: var(--fg); }
.privacy-summary {
  margin-top: 22px !important;
  padding: 16px 18px 16px 34px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.privacy-summary li {
  color: color-mix(in oklch, var(--fg) 82%, var(--muted));
}

/* ── 反馈页 ── */
.feedback-page { max-width: 640px; margin: 0 auto; padding: 64px 24px 96px; }
.feedback-page h1 { font-size: 34px; letter-spacing: -0.02em; }
.feedback-page .lede { color: var(--muted); margin-top: 12px; font-size: 16px; line-height: 1.6; }
.feedback-form { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.feedback-form .field { display: flex; flex-direction: column; gap: 6px; }
.feedback-form label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--faint);
}
.feedback-form .hint { font-size: 12px; color: var(--faint); margin-top: 2px; }
.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea {
  font: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--fg);
  transition: border-color .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
}
.feedback-form textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
/* Custom select chevron — native arrow sits too tight against the edge and
   varies wildly across platforms. Use a background SVG and reserve room on
   the right with extra padding. */
.feedback-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366646a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
}
.feedback-form select::-ms-expand { display: none; }
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
}
/* honeypot — visually hidden but kept in the accessibility tree off-screen so
   real screen readers can still see it (a true a11y user just leaves it blank). */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.feedback-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.feedback-actions .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.feedback-status { font-size: 14px; color: var(--muted); }
.feedback-status.is-success { color: var(--accent); }
.feedback-status.is-error { color: #b94545; }

/* ── 试读页：居中单栏文章 ── */
.reading-main {
  max-width: 716px;
  margin: 0 auto;
  padding: 88px 24px 120px;
}
.reading-article { min-width: 0; }
.article-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reading-article h1 {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 680;
}
.article-meta {
  margin-top: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
}
.article-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.reading-article p:not(.article-meta):not(.article-note) {
  margin-top: 26px;
  color: color-mix(in oklch, var(--fg) 92%, var(--muted));
  font-size: 18px;
  line-height: 1.86;
  letter-spacing: 0;
}
.article-note + p { margin-top: 36px; }

/* 语言可见性：默认隐藏，由 i18n.js 控制 */
[data-lang-show] { display: none; }

/* ── 响应式 ── */
@media (max-width: 860px) {
  .principles, .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 560px) {
  .principles, .features { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  section { padding: 56px 0; }
  .hero-inner { padding: 64px 24px 56px; }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .lang-trigger { min-width: 128px; height: 32px; }
  .lang-options { width: 176px; }
  .install-actions { flex-direction: column; align-items: center; }
  .install-actions .btn { justify-content: center; }
  .waitlist-row { grid-template-columns: 1fr; }
  .waitlist-row .btn { justify-content: center; }
  .reading-main { padding: 56px 22px 80px; }
  .reading-article p:not(.article-meta):not(.article-note) { font-size: 16px; line-height: 1.78; }
}

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