:root {
  --bg: #ffffff;
  --soft: #f4f6f5;
  --card: #ffffff;
  --ink: #12161a;
  --muted: #5a636c;
  --line: #e3e7ea;
  --accent: #0a6a51;
  --accent-ink: #ffffff;
  --shadow: 0 18px 40px rgba(16, 24, 32, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1012;
    --soft: #15191c;
    --card: #181d20;
    --ink: #eef2f3;
    --muted: #9aa5ad;
    --line: #262d32;
    --accent: #46c49a;
    --accent-ink: #06261c;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 12px; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.store-badge { display: inline-block; }
.store-badge img { height: 54px; width: auto; }
.fineprint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.phones { position: relative; height: 560px; }
.phones img {
  position: absolute; width: 250px; border-radius: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--soft);
}
.phones img:first-child { right: 185px; top: 44px; }
.phones img:last-child { right: 0; top: 0; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--soft); }
.section-title { font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.privacy-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.gallery img {
  width: 230px; flex: 0 0 auto; border-radius: 22px; border: 1px solid var(--line);
  scroll-snap-align: start; background: var(--soft);
}

.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support a.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; color: var(--ink);
}
.support a.card:hover { text-decoration: none; border-color: var(--accent); }
.support h3 { margin: 0 0 6px; font-size: 18px; }
.support p { margin: 0; color: var(--muted); font-size: 15px; word-break: break-word; }

.cta { text-align: center; }
.cta .section-lead { margin-left: auto; margin-right: auto; }
.cta .store-badge { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Documents (privacy, terms) */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: 38px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; line-height: 1.3; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; margin: 0 0 8px; }
.table-scroll { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--soft); font-weight: 600; }

.lang-switch { display: flex; gap: 8px; margin: 0 0 24px; }
.lang-switch a {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--muted);
}
.lang-switch a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lang-switch a:hover { text-decoration: none; }
html[data-lang="en"] article[lang="zh-Hans"],
html[data-lang="zh"] article[lang="en"] { display: none; }

/* Small screens */
@media (max-width: 860px) {
  .hero { padding: 44px 0 24px; }
  .hero .wrap, .privacy-band .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 18px; }
  .phones { height: 420px; }
  .phones img { width: 180px; border-radius: 22px; }
  .phones img:first-child { right: auto; left: calc(50% - 170px); top: 30px; }
  .phones img:last-child { right: auto; left: calc(50% - 10px); }
  .features, .support { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .section-title { font-size: 28px; }
  .site-nav { gap: 14px; }
  .site-nav .optional { display: none; }
  .doc h1 { font-size: 30px; }
}
