:root {
  color-scheme: light dark;
  --base: #f8faf7;
  --paper: #fffefa;
  --ink: #182b25;
  --muted: #465a52;
  --green: #16483d;
  --line: #d6e2db;
  --well: #e5f0eb;
  --well-deep: #c9e0d7;
  --blue: #e6edf9;
  --violet: #ece8f8;
  --cream: #f5ead9;
  --store: #d8ebe3;
  --shadow: 0 20px 50px #233d3121;
  --radius: 30px;
  --ease: cubic-bezier(.2,.72,.24,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --base: #121b18; --paper: #27342d; --ink: #eff7f1; --muted: #b9cbc1;
    --green: #a7d9c5; --line: #3b5047; --well: #1b2e26; --well-deep: #2e4b40;
    --blue: #26364f; --violet: #352f45; --cream: #3b3227; --store: #273f35;
    --shadow: 0 20px 50px #030e0a70;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 1rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
:lang(zh-Hant) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif; }
:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", system-ui, sans-serif; }
:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #34816c; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1192px, 100% - 92px); margin-inline: auto; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 12px; z-index: 10; background: var(--paper); padding: .7rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.48rem; font-weight: 750; letter-spacing: -.065em; line-height: 1; }
.wordmark img { border-radius: 10px; }
.topbar nav { display: flex; gap: clamp(12px, 3vw, 42px); margin-inline-start: auto; }
.topbar nav a, .footer nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.topbar nav a:hover, .footer nav a:hover, a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.language { position: relative; }
.language-control { display: flex; align-items: center; position: relative; }
.language-control:has(select[hidden]) { display: none; }
.language-control > .icon { position: absolute; inset-inline-start: 12px; pointer-events: none; color: var(--green); }
.language-control::after { content: ''; position: absolute; height: 7px; width: 7px; inset-inline-end: 14px; top: 17px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.language select, .language summary { appearance: none; min-height: 44px; border: 1px solid var(--line); border-radius: 100px; padding: 0 30px; background: var(--base); color: var(--ink); font-size: .875rem; cursor: pointer; max-width: 100%; }
.language summary { display: grid; align-items: center; }
.language ul { position: absolute; z-index: 2; inset-inline-end: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; list-style: none; padding: .75rem 1rem; min-width: 160px; box-shadow: var(--shadow); }
.language li a { display: block; padding: .15rem 0; }
.hero { min-height: min(645px, 86vh); display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; gap: clamp(32px, 5vw, 96px); padding: clamp(48px, 7vw, 105px) 0; }
.hero-copy { min-width: 0; }
.eyebrow { font-size: .875rem; font-weight: 720; color: var(--green); letter-spacing: .07em; line-height: 1.4; }
.hero h1, .document h1 { font-weight: 760; line-height: 1.04; letter-spacing: -.065em; font-size: clamp(2.65rem, 5.4vw, 5.25rem); overflow-wrap: anywhere; text-wrap: balance; }
.hero h1 { margin: .24em 0 .31em; }
.hero h1 span { display: block; color: var(--green); }
:lang(zh) .hero h1 { font-size: clamp(2.65rem, 4.55vw, 4.2rem); text-wrap: initial; }
:lang(zh) .hero h1, :lang(zh) .document h1, :lang(ja) .hero h1, :lang(ko) .hero h1 { letter-spacing: -.055em; line-height: 1.13; }
.hero-lead { max-width: 32rem; color: var(--muted); font-size: clamp(1.03rem, 1.6vw, 1.22rem); line-height: 1.7; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border-radius: 15px; min-height: 55px; padding: .57rem 1rem; font-size: .94rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.28; }
.button small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 560; font-size: .79rem; }
.button .icon { font-size: 1.25rem; line-height: 1; }
.store.play { background: var(--store); }
.store.apk { background: var(--blue); }
a.store:hover { box-shadow: 0 0 0 2px var(--green); }
.solid { background: var(--green); color: var(--base); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; font-weight: 700; }
.icon { font-family: system-ui, sans-serif; display: inline-block; font-weight: 680; line-height: 1; }
.demo { display: grid; grid-template-rows: auto 1fr auto; min-height: 455px; border-radius: 37px; border: 1px solid var(--line); padding: 23px clamp(20px, 2.6vw, 35px); background: radial-gradient(ellipse at 55% 45%, var(--well-deep), transparent 69%), var(--well); overflow: clip; }
.demo-top { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; font-weight: 650; color: var(--green); }
.demo-top .icon { margin-inline-end: 8px; font-size: 1.25rem; vertical-align: -.07em; }
.demo-progress { flex-shrink: 0; font-variant-numeric: tabular-nums; letter-spacing: .09em; color: var(--muted); }
.paper-stack { display: grid; align-content: center; justify-items: center; isolation: isolate; min-height: 315px; position: relative; }
.paper-stack::before, .paper-stack::after { position: absolute; inset: 50% auto auto 50%; content: ''; border: 1px solid var(--line); border-radius: var(--radius); width: 82%; height: 76%; transform: translate(-50%, -50%) rotate(-9deg); background: var(--violet); z-index: -2; }
.paper-stack::after { transform: translate(-50%, -50%) rotate(8deg); background: var(--cream); z-index: -1; }
.paper-card { width: 79%; min-height: 254px; aspect-ratio: 1.35; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 19px; display: grid; grid-template-rows: auto 1fr auto; text-align: start; align-items: center; touch-action: pan-y; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.paper-card:hover { transform: translateY(-3px); }
.paper-card:active { transform: scale(.99); }
.paper-top { display: flex; justify-content: space-between; gap: .35rem; padding: 1px 0 8px; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--green); font-weight: 650; line-height: 1.4; }
.paper-inner { display: grid; perspective: 750px; padding: .45rem 0; }
.paper-face { grid-area: 1 / 1; align-self: center; font-weight: 720; line-height: 1.3; letter-spacing: -.025em; backface-visibility: hidden; transition: transform .34s var(--ease); overflow-wrap: anywhere; }
.paper-front { font-size: clamp(1.3rem, 2.3vw, 2.25rem); }
.paper-back { font-size: clamp(1.05rem, 1.75vw, 1.6rem); transform: rotateY(180deg); }
.is-flipped .paper-front { transform: rotateY(-180deg); }
.is-flipped .paper-back { transform: rotateY(0); }
.paper-bottom { font-size: .78rem; color: var(--muted); }
.paper-bottom .icon { margin-inline-end: 3px; }
.ratings { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.rating { min-height: 44px; padding: .4rem .2rem; border: 1px solid transparent; border-radius: 12px; font-size: .84rem; line-height: 1.2; font-weight: 680; overflow-wrap: anywhere; }
.rating.again { color: #873c38; background: #f7e1dd; }
.rating.hard { color: #765722; background: #f5ebd3; }
.rating.good { color: #235f50; background: #dceee3; }
.rating.easy { color: #514777; background: #eae5f8; }
.rating:disabled { color: var(--muted); opacity: .8; background: color-mix(in srgb, var(--paper) 63%, transparent); cursor: default; }
.rating:not(:disabled):hover { border-color: currentColor; }
.features { padding-block: clamp(30px, 4vw, 66px) 50px; scroll-margin-top: 12px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .local-note h2 { font-size: clamp(1.65rem, 3.5vw, 3rem); line-height: 1.2; letter-spacing: -.045em; margin-top: .17em; text-wrap: balance; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; grid-template-rows: 1fr auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--well); }
.feature.editor { background: var(--cream); }
.feature.stats { background: var(--violet); }
.feature-copy { padding: clamp(16px, 2.25vw, 28px); }
.feature-icon { color: var(--green); font-size: 1.35rem; }
.feature h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.03em; line-height: 1.26; margin: .25em 0 .35em; }
.feature p:not(.feature-icon), .local-note p { color: var(--muted); text-wrap: pretty; }
.screen { height: clamp(182px, 23vw, 264px); width: min(68%, 235px); margin-inline: auto; border-radius: 23px 23px 0 0; border: 5px solid #24332b; border-bottom: 0; box-shadow: var(--shadow); overflow: hidden; background: var(--paper); }
.screen img { width: 100%; height: auto; }
.local-note { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: clamp(20px, 3vw, 35px); margin-block-end: 70px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--blue); }
.local-note > .icon { font-size: 2rem; color: var(--green); }
.local-note h2 { font-size: clamp(1.3rem, 2.2vw, 2rem); margin: 0 0 .2em; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 25px; }
.footer-inner p { font-size: .85rem; color: var(--muted); margin: .35rem 0 0 4px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.document { max-width: 750px; min-height: 58vh; padding-block: clamp(42px, 7vw, 86px); }
.document h1 { font-size: clamp(2.35rem, 5.5vw, 4.45rem); margin: .18em 0 .3em; }
.document-lead { font-size: 1.13rem; color: var(--muted); max-width: 60ch; margin-bottom: 1.55rem; }
.document section + section { margin-top: 1.75rem; }
.document section h2, .steps h2 { font-size: 1.35rem; line-height: 1.3; margin-bottom: .36rem; letter-spacing: -.026em; }
.document section p, .steps p { color: var(--muted); }
.document section .button { margin: .8rem 0 .35rem; }
.document a { overflow-wrap: anywhere; }
.policy-status { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.5rem; background: var(--cream); color: var(--muted); }
.steps { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; counter-reset: step; }
.steps li { position: relative; padding: 18px 20px 18px 65px; border: 1px solid var(--line); border-radius: 19px; background: var(--well); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 16px; inset-block-start: 16px; border-radius: 50%; width: 35px; height: 35px; display: grid; place-items: center; color: var(--green); background: var(--paper); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 650; cursor: pointer; padding: .85rem 0; }
.faq details p { padding-bottom: .95rem; }
@media (max-width: 920px) {
  .shell { width: calc(100% - 54px); }
  .hero { gap: 27px; }
  .demo { min-height: 410px; }
  .paper-stack { min-height: 280px; }
  .paper-card { width: 84%; min-height: 220px; }
  .paper-stack::before, .paper-stack::after { width: 85%; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 34px); }
  .topbar { min-height: 70px; gap: 10px; }
  .topbar nav { margin: 0; gap: 9px; }
  .topbar nav a { font-size: .84rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 37px 25px; min-height: auto; }
  .hero h1, :lang(zh) .hero h1 { font-size: clamp(2.55rem, 8.65vw, 4.1rem); text-wrap: initial; }
  .hero-actions { margin-top: 18px; margin-bottom: 4px; }
  .demo { min-height: 390px; border-radius: 27px; padding: 16px; }
  .paper-card { width: min(82%, 340px); }
  .paper-stack::before, .paper-stack::after { width: min(84%, 350px); }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(90px, .69fr); grid-template-rows: auto; align-items: end; gap: 6px; }
  .feature-copy { align-self: center; }
  .screen { width: min(92%, 178px); height: 170px; margin-top: 14px; margin-inline-start: 0; border-width: 4px; border-bottom: 0; }
  .local-note { grid-template-columns: auto 1fr; gap: 8px 12px; margin-block-end: 36px; }
  .local-note a { grid-column: 2; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer nav { gap: 0 15px; }
}
@media (max-width: 445px) {
  .topbar nav { display: none; }
  .wordmark { font-size: 1.35rem; }
  .feature p:not(.feature-icon) { font-size: .93rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

