@font-face { font-family: "Outfit"; src: url("/assets/Outfit.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
html[data-lang="en"] .zh, html[data-lang="zh"] .en { display: none !important; }
/* Layout: a dark "desk" hero with a live app window, then alternating feature bands where each
   feature is shown as a small animated sheet of paper; one pricing card; quiet footer. */
:root {
  --desk: #121722; --desk-2: #1a2130; --paper: #ffffff; --paper-ink: #1c2230;
  --bg: #f4f5f7; --surface: #ffffff; --ink: #141821; --muted: #5d6576; --line: #dfe2e8;
  --brand: #e5322d; --brand-ink: #b8231f;
  --t-markup: #c2620d; --t-edit: #2457e6; --t-fill: #15803d; --t-pages: #7c3aed; --t-protect: #be123c;
  --hl: #ffd34d; --sel: rgba(36, 87, 230, .22);
  --display: "Outfit", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: var(--display);
  --ui: var(--display);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0d1017; --surface: #161b25; --ink: #eef0f4; --muted: #a2a9b8; --line: #283040;
  --t-markup: #f0a54a; --t-edit: #7aa2ff; --t-fill: #4ade80; --t-pages: #b794f6; --t-protect: #fb7185; color-scheme: dark } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--ui); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--desk) 88%, transparent); backdrop-filter: blur(14px); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; opacity: .8; } .top nav a:hover { opacity: 1; }
.pill { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 13px; font-size: 14px; background: none; color: #fff; cursor: pointer; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 600px at 75% 10%, #24304a 0%, var(--desk) 60%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; padding-block: 72px 96px; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ff8a84; }
.hero h1 { font: 800 clamp(42px, 6vw, 72px)/1 var(--display); letter-spacing: -.035em; margin: 18px 0 20px; text-wrap: balance; }
.hero h1 .real { position: relative; color: var(--hl); white-space: nowrap; }
.hero h1 .real::after { content: ""; position: absolute; right: -.08em; top: .08em; bottom: .02em; width: .06em; background: #fff; animation: blink 1.1s steps(1) infinite; }
.lead { font-size: 19px; line-height: 1.55; color: #c6cddc; max-width: 34ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; flex-direction: column; background: #fff; color: #111; border-radius: 12px; padding: 10px 20px; text-decoration: none; }
.store b { font: 700 16px/1.2 var(--display); } .store small { font-size: 12px; color: #555; }
.cta .note { font-size: 13px; color: #98a2b8; }

/* the app window */
.window { background: #f2f2f4; border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; color: #1d1d1f; font: 12px/1 var(--ui); }
.titlebar { display: flex; align-items: flex-end; height: 44px; padding: 0 12px; gap: 10px; }
.lights { display: flex; gap: 6px; align-self: center; } .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.titlebar .doc { align-self: center; font-weight: 600; margin-right: auto; }
.tabs { display: flex; align-items: flex-end; margin-right: auto; }
.tab { border: 0; background: none; font: 12.5px/1 var(--ui); color: #3a3a40; padding: 0 12px; height: 30px; border-radius: 8px 8px 0 0; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--c); font-weight: 600; background: color-mix(in srgb, var(--c) 11%, #f2f2f4); }
.toolrow { display: flex; justify-content: center; gap: 4px; height: 40px; align-items: center; background: color-mix(in srgb, var(--c) 11%, #f2f2f4); border-bottom: 1px solid #ddd; transition: background-color .3s; }
.tool { padding: 6px 9px; border-radius: 6px; white-space: nowrap; color: #3a3a40; }
.tool.on { background: #fff; color: var(--c); font-weight: 600; box-shadow: 0 .5px 1px rgba(0,0,0,.25); }
.tool b { font: 700 7.5px/1 var(--ui); color: #fff; background: linear-gradient(135deg, #ff5a4f, #b8231f); border-radius: 3px; padding: 2px 5px; margin-left: 5px; vertical-align: 1px; letter-spacing: .04em; }
.canvas { background: #dcdce0; padding: 22px 0 0; height: 330px; overflow: hidden; display: flex; justify-content: center; }
.sheet { width: min(420px, 86%); background: var(--paper); color: var(--paper-ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); padding: 22px 28px; font: 13px/1.55 var(--serif); position: relative; }
.sheet h4 { font: 700 15px/1.2 var(--display); margin: 0 0 8px; color: #1f3a5f; }
.status { display: flex; justify-content: space-between; padding: 6px 12px; font-size: 11px; color: #666; border-top: 1px solid #ddd; }

/* scene contents */
.scene { display: none; } .scene.on { display: block; animation: rise .4s ease both; }
.hl { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 0 / 0% 100%; }
.on .hl { animation: sweep 1.1s .5s ease forwards; }
.circle { position: absolute; border: 2px solid #ef4444; border-radius: 50%; opacity: 0; }
.on .circle { animation: pop .5s 1.8s ease forwards; }
.metrics { display: flex; gap: 10px; margin: 12px 0 4px; }
.metrics div { flex: 1; border-top: 3px solid #2aa198; background: #f4f6f9; border-radius: 6px; padding: 8px; font: 700 18px/1 var(--display); }
.metrics div:nth-child(2) { border-color: #ea580c; } .metrics small { display: block; font: 400 10px/1.4 var(--ui); color: #667; margin-top: 4px; }
.editbox { outline: 2px solid var(--t-edit); outline-offset: 4px; border-radius: 2px; }
.typed { color: #1d4ed8; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: #1d4ed8; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.field { border: 1px solid #c9d3e6; background: #eef4ff; border-radius: 4px; height: 26px; margin: 4px 0 10px; padding: 4px 8px; font: 13px/1.3 var(--ui); }
.label { font: 11px/1 var(--ui); color: #667; }
.sigline { border-top: 1px solid #333; margin-top: 46px; font: 10px var(--ui); color: #667; padding-top: 3px; position: relative; }
.sig { position: absolute; left: 8px; bottom: 10px; width: 180px; height: 60px; }
.sig path { fill: none; stroke: #1b2a55; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.on .sig path { animation: draw 1.8s 1.6s ease forwards; }
.thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.thumb { width: 70px; height: 92px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); border-radius: 2px; padding: 8px 7px; position: relative; }
.thumb i { display: block; height: 4px; background: #d7dae0; border-radius: 2px; margin-bottom: 5px; }
.thumb i:first-child { background: #1f3a5f; height: 10px; }
.thumb span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font: 10px var(--ui); color: #555; }
.on .thumb.rot { animation: rot 1s 1s ease forwards; }
.on .thumb.move { animation: hop 1.2s 2.2s ease forwards; }
.on .thumb.gone { animation: shrink .6s 3.5s ease forwards; }
.bar { position: relative; }
.bar::after { content: ""; position: absolute; inset: -1px -2px; background: #0b0b0b; transform-origin: left; transform: scaleX(0); }
.on .bar::after { animation: redact .7s ease forwards; } .on .bar.b2::after { animation-delay: .9s; }
.copied { margin-top: 14px; font: 11px/1.4 var(--mono); background: #f3f4f6; border-radius: 6px; padding: 8px 10px; color: #445; opacity: 0; }
.on .copied { animation: rise .4s 2.1s ease forwards; }

/* ---------- sections ---------- */
section { padding-block: 96px; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font: 800 clamp(32px, 4vw, 48px)/1.05 var(--display); letter-spacing: -.03em; margin: 12px 0 14px; text-wrap: balance; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .art { order: -1; }
.feature h3 { font: 700 28px/1.15 var(--display); letter-spacing: -.02em; margin: 10px 0 12px; }
.feature p { color: var(--muted); margin: 0 0 14px; max-width: 46ch; }
.tag { display: inline-flex; gap: 8px; align-items: center; font: 600 12px/1 var(--ui); color: var(--c); }
.pro-badge, .free-badge { font: 700 10px/1 var(--display); letter-spacing: .08em; padding: 4px 7px; border-radius: 4px; color: #fff; background: linear-gradient(135deg, #ff5a4f, var(--brand-ink)); box-shadow: 0 2px 8px rgba(229,50,45,.35); }
.free-badge { background: var(--c); box-shadow: none; }
.pro-badge.solid { font-size: 12px; padding: 5px 10px; margin-left: 6px; vertical-align: 2px; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.art { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: grid; place-items: center; min-height: 300px; position: relative; overflow: hidden; }
.art .sheet { width: 100%; max-width: 380px; }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 220px at 80% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent); }
.art > * { position: relative; }

/* reflow demo */
.reflow { text-align: justify; hyphens: auto; }
.reflow .ins { color: #1d4ed8; background: rgba(36,87,230,.08); }
/* ocr demo */
.scan { position: relative; font: 13px/1.6 "Times New Roman", serif; color: #2b2b2b; filter: contrast(.9); background: repeating-linear-gradient(0deg, #fff 0 2px, #fbfbf8 2px 3px); }
.scan .w { border-radius: 2px; }
.scan.done .w.found { background: var(--sel); box-shadow: 0 0 0 1px rgba(36,87,230,.5); }
.beam { position: absolute; left: -10px; right: -10px; height: 34px; top: -34px; background: linear-gradient(transparent, rgba(36,87,230,.25), transparent); border-bottom: 2px solid rgba(36,87,230,.8); }
.scan.run .beam { animation: beam 2s ease-in-out forwards; }
.searchchip { position: absolute; right: 14px; top: 14px; font: 11px/1 var(--ui); background: #fff; border: 1px solid #ccd; border-radius: 6px; padding: 6px 9px; color: #333; opacity: 0; transition: opacity .4s; }
.scan.done ~ .searchchip, .searchchip.show { opacity: 1; }
/* sync demo */
.macs { display: flex; gap: 22px; align-items: center; }
.mac { width: 150px; height: 100px; border-radius: 8px; background: #1b2232; border: 6px solid #2a3245; position: relative; display: grid; place-items: center; }
.mac::after { content: ""; position: absolute; bottom: -16px; left: 50%; width: 60px; height: 10px; transform: translateX(-50%); background: #2a3245; border-radius: 0 0 6px 6px; }
.mac svg { width: 110px; height: 50px; } .mac path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.art.play .mac.a path { animation: draw 1.4s ease forwards; } .art.play .mac.b path { animation: draw 1.4s 1.9s ease forwards; }
.cloud { font-size: 26px; color: var(--c); } .art.play .cloud { animation: pulse 1s 1.3s ease 2; }

/* pro */
.pro { background: var(--desk); color: #fff; border-radius: 26px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pro h2 { font: 800 clamp(30px, 4vw, 44px)/1.05 var(--display); letter-spacing: -.03em; margin: 10px 0 12px; }
.price { font: 800 64px/1 var(--display); letter-spacing: -.04em; } .price small { font: 500 16px var(--ui); color: #9aa3b8; letter-spacing: 0; }
.pro ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro li { display: flex; gap: 10px; align-items: baseline; color: #d5dbe7; } .pro li::before { content: "✓"; color: #ff8a84; font-weight: 700; }
.free { color: #9aa3b8; font-size: 14px; margin-top: 16px; }

/* privacy strip + footer */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.strip div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.strip b { font: 700 18px/1.2 var(--display); display: block; margin-bottom: 6px; } .strip span { color: var(--muted); font-size: 15px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; padding-block: 26px 40px; } footer .links { margin-left: auto; display: flex; gap: 18px; }

/* reveal on scroll (content is visible without JS; JS only adds motion) */
.reveal { transition: transform .7s ease, opacity .7s ease; }
.js .reveal:not(.in) { transform: translateY(18px); opacity: .001; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sweep { to { background-size: 100% 100%; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rot { to { transform: rotate(90deg) scale(.85); } }
@keyframes hop { 50% { transform: translate(-41px, -26px); } to { transform: translateX(-82px); } }
@keyframes shrink { to { transform: scale(0); opacity: 0; width: 0; margin: 0 -6px; } }
@keyframes redact { to { transform: scaleX(1); } }
@keyframes beam { to { top: 100%; } }
@keyframes pulse { 50% { transform: scale(1.25); } }

@media (max-width: 900px) {
  .hero .wrap, .feature, .pro { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .art { order: 0; }
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .tab { padding: 0 7px; font-size: 11px; } .toolrow { justify-content: flex-start; overflow: hidden; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
}

/* ---------- Support & Privacy pages ---------- */
.doc { max-width: 780px; padding-block: 56px 80px; }
.doc h1 { font: 800 clamp(34px, 5vw, 48px)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.doc .date { color: var(--muted); margin: 0 0 30px; }
.doc h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.01em; margin: 38px 0 8px; }
.doc p { max-width: 68ch; }
.doc a { color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .doc a { color: #ff8a84; } }
.doc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.doc summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.doc details p { color: var(--muted); margin: 10px 0 0; }

/* hero window: tabs centered between the traffic lights and undo/redo, like the app */
.titlebar .tabs { margin: 0 auto; }
.titlebar .doc { display: none; }
.titlebar .undo { align-self: center; color: #9a9aa2; font-size: 15px; letter-spacing: 2px; }
.tab { padding: 0 9px; }
.tool { padding: 6px 8px; }
.toolrow { overflow: hidden; }
.cta .note { line-height: 1.4; }
.store small .en, .store small .zh { display: inline; }
html[data-lang="en"] .store small .zh, html[data-lang="zh"] .store small .en { display: none !important; }
.kicker { text-transform: uppercase; }
html[data-lang="zh"] body { font-family: var(--display), "PingFang SC", "Hiragino Sans GB", sans-serif; }

.cloud { color: var(--c); flex: none; }

.price small { display: block; margin-top: 8px; }
.titlebar { min-width: 0; }
.titlebar .tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.titlebar .tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
@media (max-width: 560px) { .titlebar .lights, .titlebar .undo { display: none; } .titlebar { padding: 0 6px; } .hero .wrap { padding-block: 40px 56px; } }
@media (max-width: 560px) { .macs { gap: 12px; } .mac { width: 108px; height: 76px; } .mac svg { width: 80px; } .art { padding: 22px; } }
