/* EngiCore site v8 · "The runtime for engineering drawings"
   Paper and ink, one drafting blue, navy for the product section. Redline only for proposed changes,
   green only for approval. Drafting detail lives in the illustrations and the title-block footer. */
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/InterTight-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --paper: #F6F5F0; --paper-2: #EFEEE7; --surface: #fff; --ink: #14161A; --ink-2: #2E3239; --graphite: #50555E; --muted: #5E636C;
  --line: #E2E0D8; --line-2: #CFCDC3; --blue: #1F4FD8; --blue-ink: #163CA8; --red: #B8361F; --green: #1E8A5A;
  --navy: #0B1D33; --navy-text: #B4C4D8;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --t1: 13px; --t2: 15px; --t3: 17px; --t4: 20px; --t5: 30px;
  --t6: clamp(34px, 1.2rem + 2.6vw, 56px);
  --t7: clamp(44px, 1rem + 5vw, 92px);
  --ease: cubic-bezier(.2, .8, .2, 1); --nav-h: 64px;
}
/* Chinese pages (/zh/): the system's CJK face follows each Latin face, so Latin words and digits keep Inter. */
:root:lang(zh) {
  --cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC';
  --sans: 'Inter', var(--cjk), ui-sans-serif, system-ui, sans-serif;
  --display: 'Inter Tight', 'Inter', var(--cjk), ui-sans-serif, system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, var(--cjk), monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 var(--t3)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* type */
.h1 { font: 600 var(--t7)/1 var(--display); letter-spacing: -.032em; color: var(--ink); max-width: 21ch; text-wrap: balance; }
.h2 { font: 600 var(--t6)/1.06 var(--display); letter-spacing: -.024em; color: var(--ink); max-width: 16ch; text-wrap: balance; }
.h3 { font: 600 var(--t5)/1.14 var(--display); letter-spacing: -.016em; color: var(--ink); text-wrap: balance; }
.lead { font-size: var(--t4); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.k { font: 400 var(--t1)/1.4 var(--mono); letter-spacing: .02em; color: var(--graphite); }
.cap { font-size: var(--t1); line-height: 1.5; color: var(--muted); margin-top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font: 500 var(--t2)/1 var(--sans); white-space: nowrap; transition: background .15s var(--ease); }
.btn:hover { background: #2A2E36; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.link { color: var(--graphite); font-size: var(--t2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(246, 245, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 19px/1 var(--display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-wordmark { width: 122px; height: auto; flex: none; }
.nav .brand { min-height: 44px; }
@media (max-width: 720px) { .brand-wordmark { width: 116px; } }
.logo { width: 22px; height: 22px; color: var(--ink); }
.mark-core { fill: var(--blue); }
.nav-l { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.nav-l a, .nav-l .link { color: var(--ink-2); font-size: var(--t2); }
.nav-l a:hover, .nav-l .link:hover { color: var(--blue); }
.nav-act { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.lang { color: var(--ink-2); font-size: var(--t2); }
.lang:hover { color: var(--blue); }

/* hero */
.hero { padding-top: clamp(40px, 5vw, 76px); }
.hero-t { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hero-b { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-v { max-width: 1360px; margin: clamp(20px, 3vw, 36px) auto 0; padding: 0 20px; }

/* sections */
.sec { padding: clamp(48px, 5.2vw, 74px) 0; }
.sec.alt { background: var(--paper-2); }
.sec.dark { background: var(--navy); color: var(--navy-text); }
.sec.dark .h2, .sec.dark .h3 { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.prose-l { font-size: var(--t4); line-height: 1.5; color: var(--graphite); }
.prose-l p + p { margin-top: 16px; }
.prose-l.one { padding-top: 8px; }
.sec.dark .prose-l { color: var(--navy-text); }
.fig { margin-top: clamp(28px, 3.4vw, 44px); }

/* illustrations */
.illus { width: 100%; aspect-ratio: var(--r); }
.illus svg { width: 100%; height: auto; }
.illus svg text { font-family: var(--sans); }
.illus svg text.dr, .illus svg text.m { font-family: var(--mono); }
.illus svg text.d { font-family: var(--display); }
@media (max-width: 720px) { .illus { aspect-ratio: var(--rm); } }

/* illustration motion: one entrance, then rest */
.illus.ready:not(.static) .ly, .illus.ready:not(.static) .graph, .illus.ready:not(.static) .node, .illus.ready:not(.static) .card,
.illus.ready:not(.static) .stamp, .illus.ready:not(.static) .outs { opacity: 0; }
.illus.anim .ly { animation: rise .9s var(--ease) both; }
.illus.anim .ly1 { animation-delay: .1s; }
.illus.anim .fileset { animation-delay: .25s; }
.illus.anim .ly2 { animation-delay: .8s; }
.illus.anim .ly3 { animation-delay: 1.5s; }
.illus.anim .ly0, .illus.anim .planelabels { animation-delay: 2.1s; }
.illus.anim .graph { animation: fade .7s ease 2.3s both; }
.illus.anim .node { animation: pop .4s var(--ease) both; }
.illus.anim .node:nth-of-type(1) { animation-delay: 2.4s; }
.illus.anim .node:nth-of-type(2) { animation-delay: 2.55s; }
.illus.anim .node:nth-of-type(3) { animation-delay: 2.7s; }
.illus.anim .node:nth-of-type(4) { animation-delay: 2.85s; }
.illus.anim .node:nth-of-type(5) { animation-delay: 3s; }
.illus.anim .node:nth-of-type(6) { animation-delay: 3.15s; }
.illus.anim .node:nth-of-type(7) { animation-delay: 3.3s; }
.illus.anim .node { animation-delay: 2.6s; }
.illus.anim .cloud { animation: fade .5s ease 3.5s both; }
.illus.anim .card { animation: rise .7s var(--ease) 3.7s both; }
.illus.anim .stamp { animation: stampin .4s cubic-bezier(.2, 1.4, .4, 1) 5s both; transform-box: fill-box; transform-origin: center; }
.illus.anim .outs { animation: fade .7s ease 5.4s both; }
.illus.anim .flow { stroke-dasharray: 3 4; animation: dash 1.1s linear 5; }
.illus.anim .edge { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s var(--ease) .15s forwards; }
.illus.anim .scan { animation: scan 7s ease-in-out infinite alternate; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes stampin { from { opacity: 0; scale: 1.5; } to { opacity: 1; scale: 1; } }
@keyframes dash { to { stroke-dashoffset: -14; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scan { from { transform: translateX(-140px); } to { transform: translateX(150px); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; margin-top: 36px; }
.steps h3 { font: 600 var(--t4)/1.2 var(--display); color: var(--ink); margin-bottom: 8px; }
.steps p { font-size: var(--t2); line-height: 1.6; color: var(--graphite); }

/* capabilities */
.caps { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: clamp(40px, 3.8vw, 52px); }
.cap-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 20px 64px; align-items: center; }
.cap-row.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.cap-row.flip .cap-t { order: 2; }
.cap-t p { margin-top: 14px; color: var(--graphite); font-size: var(--t3); max-width: 42ch; }
.scroll-x:focus-visible { outline-offset: 4px; }

/* product tour */
.tour { margin-top: clamp(32px, 3.6vw, 48px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tab { height: 44px; padding: 0 16px; color: var(--navy-text); border: 1px solid rgba(180, 196, 216, .3); font: 500 var(--t2)/1 var(--sans); transition: background .15s, color .15s; }
.tab:hover { color: #fff; border-color: rgba(180, 196, 216, .7); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.tour-cap { color: var(--navy-text); font-size: var(--t2); line-height: 1.5; max-width: 90ch; margin-top: 12px; min-height: 3em; }
.filmcard { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: center; margin-top: clamp(36px, 4vw, 56px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(180, 196, 216, .25); }
.filmcard p { margin-top: 10px; color: var(--navy-text); }
.filmcard .cap { color: var(--navy-text); }
.film-btn { position: relative; display: block; width: 100%; }
.film-btn img { width: 100%; }
.film-btn { border-radius: 10px; overflow: hidden; }
.film-btn::before { content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--ink); box-shadow: 0 8px 24px rgba(11, 29, 51, .35); transition: transform .2s var(--ease); }
.film-btn:hover::before { transform: scale(1.06); }
.play.big { position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%); color: #fff; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

/* platform */
.uses { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.uses-l { color: var(--ink-2); font-size: var(--t3); }
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line-2); background: var(--surface); }
.type { padding: 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.type:first-child { border-left: 0; }
.type span { font: 600 var(--t3)/1.3 var(--display); color: var(--ink); }
.type em { font: 400 var(--t1)/1.4 var(--mono); color: var(--muted); font-style: normal; }
.type.on em { color: var(--blue-ink); }

/* why now */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.why > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.why h3 { font: 600 var(--t4)/1.25 var(--display); color: var(--ink); margin-bottom: 8px; }
.why p { color: var(--graphite); font-size: var(--t2); }

/* close */
.close { text-align: left; }
.close-h { margin-bottom: 14px; font-size: var(--t6); line-height: 1.06; letter-spacing: -.024em; }
#why .h2 { max-width: 26ch; }
.close .cta { margin-top: 28px; gap: 16px; }
.mailline { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t3); white-space: nowrap; }
.copy { height: 44px; padding: 0 8px; color: var(--graphite); font-size: var(--t1); text-decoration: underline; }

/* footer */
.foot { border-top: 1px solid var(--line-2); padding: 40px 0 24px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; align-items: center; }
.foot-brand p { color: var(--muted); font-size: var(--t2); margin-top: 8px; }
.foot-l { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; }
.foot-l a, .foot-l .link { color: var(--ink-2); font-size: var(--t2); line-height: 44px; }
.tblock { margin-top: 28px; border: 1.5px solid var(--ink); }
.cells { display: grid; grid-template-columns: 2fr 4fr 1fr 1fr; }
.cells > div { padding: 8px 12px; border-left: 1px solid var(--ink); font: 400 var(--t2)/1.3 var(--sans); color: var(--ink); }
.cells > div:first-child { border-left: 0; }
.cells .k { display: block; font-size: 12px; margin-bottom: 2px; }
.legal { margin-top: 14px; color: var(--muted); font-size: var(--t1); }
.legal a { color: var(--muted); text-decoration: underline; }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(11, 29, 51, .86); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-in { width: min(1120px, 100%); }
.modal-close { display: block; margin-left: auto; height: 44px; color: #fff; font-size: var(--t2); }
.modal video { width: 100%; background: #000; }
video::cue { background: rgba(11, 29, 51, .86); color: #fff; font: 500 16px/1.4 var(--sans); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 16px); padding: 10px 14px; background: var(--ink); color: #fff; font-size: var(--t2); opacity: 0; pointer-events: none; transition: all .2s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* secondary pages */
.docpage .doc { padding: clamp(48px, 7vw, 96px) 0; min-height: 60vh; }
.prose { max-width: 66ch; }
.prose h1 { font: 600 var(--t6)/1.06 var(--display); color: var(--ink); letter-spacing: -.024em; margin-bottom: 16px; }
.prose h2 { font: 600 var(--t4)/1.3 var(--display); color: var(--ink); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--graphite); margin-bottom: 10px; }
.prose a { white-space: nowrap; }
.nf { max-width: 640px; }
.nf-cloud { width: 180px; margin-bottom: 24px; }
.nf-cloud, .nf-cloud * { fill: none; stroke: #D6452B; stroke-width: 2; }
.nf .label { font: 400 var(--t1)/1.4 var(--mono); color: var(--red); margin-bottom: 10px; }
.nf .sub { color: var(--graphite); margin: 14px 0 22px; }
.nf-tb { margin-top: 36px; }
.nf-tb .cells { grid-template-columns: repeat(4, 1fr); }

/* runtime guarantees, FAQ, moat */
.notline { margin-top: clamp(28px, 3.4vw, 44px); font: 600 clamp(22px, 1rem + 1.4vw, 34px)/1.2 var(--display); letter-spacing: -.016em; color: var(--ink); }
.guar { margin-top: clamp(24px, 2.8vw, 36px); }
.guar .h3 { font-size: var(--t4); }
.guar ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: 14px; }
.guar li { border-top: 1px solid var(--line-2); padding-top: 12px; color: var(--graphite); font-size: var(--t2); line-height: 1.45; }
.guar b { display: block; color: var(--ink); font-weight: 600; }
.moat { margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--ink); }
.moat-h, .moat-r { display: grid; grid-template-columns: 4fr 5fr 4fr; gap: 12px 36px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.moat-h { padding: 12px 0; font-size: var(--t1); color: var(--muted); }
.moat-r b { font: 600 var(--t4)/1.25 var(--display); letter-spacing: -.008em; color: var(--ink); }
.moat-r span { color: var(--graphite); font-size: var(--t2); line-height: 1.5; }
.moat-r span:last-child { color: var(--blue-ink); }
.moat-b { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 64px; margin-top: 32px; }
.moat-b h3 { font: 600 var(--t4)/1.25 var(--display); color: var(--ink); margin-bottom: 8px; }
.moat-b p { color: var(--graphite); font-size: var(--t2); line-height: 1.6; }
.faq-w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; font: 600 var(--t3)/1.3 var(--display); color: var(--ink); padding: 14px 28px 14px 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 12px; font: 400 20px/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--graphite); font-size: var(--t2); padding-bottom: 16px; max-width: 58ch; }
.faq-note { margin-top: 18px; color: var(--ink-2); font-size: var(--t2); font-weight: 500; }

/* product section blocks */
.flow { margin-top: clamp(32px, 3.8vw, 52px); }
.flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: 28px; counter-reset: s; }
.flow li { counter-increment: s; border-top: 1px solid rgba(180, 196, 216, .4); padding-top: 14px; color: var(--navy-text); font-size: var(--t2); line-height: 1.55; }
.flow li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(157, 187, 238, .18); color: #DCE7F8; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.flow b { display: block; color: #fff; font-weight: 600; margin-bottom: 6px; }
.chg { margin-top: clamp(44px, 5vw, 72px); }
.chg .h2 { max-width: 15ch; }
.chg .app { margin-top: clamp(20px, 2.6vw, 32px); }
.ev { margin-top: clamp(44px, 5vw, 72px); }
.ev dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; margin: 24px 0 0; }
.ev dl > div { border-top: 1px solid rgba(180, 196, 216, .4); padding-top: 14px; }
.ev dt { font: 600 clamp(38px, 1.4rem + 2.6vw, 62px)/1 var(--display); letter-spacing: -.028em; color: #fff; white-space: nowrap; }
.ev dd { margin: 12px 0 0; color: var(--navy-text); font-size: var(--t2); line-height: 1.5; }

/* the rebuilt app */
.app { --a-line: #E4E5EA; --a-mut: #6B707A; --a-ink: #1B1E24; background: #F7F7F5; color: var(--a-ink); border-radius: 14px; overflow: hidden; font: 400 13px/1.45 var(--sans); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); }
.app code, .app pre { font-family: var(--mono); font-size: 12px; }
.app u { text-decoration: none; display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #EBECEF; color: var(--a-mut); font-size: 11px; line-height: 18px; text-align: center; }
.a-top { display: flex; align-items: center; gap: 18px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--a-line); color: var(--a-mut); }
.a-top b { color: var(--a-ink); font-weight: 600; }
.a-head { padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--a-line); }
.a-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.a-title b { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; }
.a-title code, .a-back { color: var(--a-mut); }
.a-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.a-stages li { padding-top: 9px; position: relative; color: var(--a-mut); font-size: 12px; }
.a-stages li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: #E4E5EA; }
.a-stages .d1::before { background: #5A4A3C; } .a-stages .d2::before { background: #8C5A4E; } .a-stages .d3::before { background: #9A7450; } .a-stages .d4::before { background: #A18B4E; }
.a-stages .cur { color: var(--a-ink); font-weight: 600; }
.a-tabs { display: flex; gap: 18px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--a-line); overflow: hidden; white-space: nowrap; color: var(--a-mut); }
.a-tabs span { padding: 9px 0; border-bottom: 2px solid transparent; }
.a-tabs .on { color: var(--a-ink); font-weight: 500; border-bottom-color: var(--a-ink); }
.app .tp { padding: 14px 18px 16px; }
.a-sub { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--a-line); border-radius: 7px; overflow: hidden; background: #fff; }
.seg i, .seg button { font-style: normal; padding: 5px 12px; font-size: 12.5px; color: var(--a-mut); min-height: 30px; display: inline-flex; align-items: center; }
.seg .on { background: var(--a-ink); color: #fff; }
.a-rev em { font-style: normal; margin-left: 6px; padding: 2px 8px; border: 1px solid #BFDCCB; border-radius: 6px; color: #17704A; background: #EFF8F3; font-size: 12px; }
.a-rem { padding: 8px 12px; background: #fff; border: 1px solid var(--a-line); border-radius: 8px; margin-bottom: 10px; color: var(--a-mut); }
.ws { display: grid; grid-template-columns: 200px minmax(0, 1fr) 236px; gap: 10px; }
.ws-o, .ws-i, .ws-c { background: #fff; border: 1px solid var(--a-line); border-radius: 8px; min-width: 0; }
.ws-o { padding: 8px; height: 506px; overflow-y: auto; }
.ws-o p { color: var(--a-mut); font-size: 12px; margin: 8px 6px 3px; }
.ws-o button { display: block; width: 100%; text-align: left; font: 12px/1.3 var(--mono); padding: 5px 8px; border-radius: 6px; color: var(--a-ink); border: 1px solid transparent; overflow-wrap: anywhere; }
.ws-o button:hover { background: #F2F3F5; }
.ws-o button[aria-selected="true"] { background: #EEF2FD; border-color: #AFC2F4; color: var(--blue-ink); }
.ws-st { display: flex; align-items: center; gap: 6px; padding: 6px 10px 0; border-bottom: 1px solid var(--a-line); }
.ws-st .st { padding: 5px 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--a-mut); font-size: 12px; white-space: nowrap; }
.ws-st .on { border-color: var(--a-line); color: var(--a-ink); background: #fff; }
.ws-st .r { margin-left: auto; color: var(--a-mut); font-size: 12px; white-space: nowrap; }
.canvas { position: relative; overflow: auto; background: #fff; }
.slot { width: 100%; }
.slot .sheet { display: block; width: 100%; height: auto; }
.ws-c .canvas { height: 430px; display: flex; align-items: center; }
.ws-c .canvas.zoomed { display: block; }
.ws-z { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 6px; border-top: 1px solid var(--a-line); color: var(--a-mut); font-size: 12px; }
.ws-z button { min-width: 34px; height: 28px; padding: 0 8px; border: 1px solid var(--a-line); border-radius: 6px; background: #fff; color: var(--a-ink); }
.ws-z button:hover { border-color: #9AA0AC; }
.ws-z span { min-width: 44px; text-align: center; }
.ws-i { padding: 12px; height: 506px; overflow-y: auto; }
.i-k { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; }
.i-k dt { color: var(--a-mut); } .i-k dd { margin: 0; overflow-wrap: anywhere; }
.i-b { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--a-line); align-items: center; }
.i-jump { padding: 4px 10px; min-height: 30px; border: 1px solid #AFC2F4; border-radius: 7px; color: var(--blue-ink); background: #F3F6FE; font-weight: 500; font-size: 12.5px; }
.i-jump:hover { background: #E7EDFD; }
.i-l { color: var(--a-mut); margin-top: 12px; font-weight: 500; }
.i-v { overflow-wrap: anywhere; }
.i-v code { display: block; }
.jump { position: absolute; inset: 0; padding: 14px; background: rgba(255, 255, 255, .97); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.jump[hidden] { display: none; }
.ban { padding: 8px 12px; background: #EFF8F3; color: #17704A; border: 1px solid #BFDCCB; border-radius: 7px; width: 100%; }
.jump pre { margin: 0; padding: 12px 14px; width: 100%; flex: 1; overflow: auto; background: #FAFAF8; border: 1px solid var(--a-line); border-radius: 7px; line-height: 1.6; }
.jump mark { background: #E9EEFC; color: var(--blue-ink); outline: 1.5px solid var(--blue); border-radius: 2px; }
.jump button { padding: 6px 12px; min-height: 34px; border: 1px solid var(--a-line); border-radius: 7px; background: #fff; font-size: 12.5px; }
.a-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--a-line); border-radius: 8px; color: var(--a-mut); font-size: 12px; }
.a-foot i { margin-left: auto; }
.a-foot .ghost { padding: 3px 9px; border: 1px solid var(--a-line); border-radius: 6px; }
.a-foot .ok::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.a-foot .pri { padding: 4px 11px; border-radius: 6px; background: #8D9199; color: #fff; }

/* intake */
.in-h { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 10px; }
.in-h span { color: var(--a-mut); }
.intk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 10px; }
.in-wb, .in-fa { background: #fff; border: 1px solid var(--a-line); border-radius: 8px; padding: 10px; min-width: 0; height: 430px; display: flex; flex-direction: column; }
.in-tabs { display: flex; align-items: center; gap: 6px; color: var(--a-mut); margin-bottom: 8px; }
.in-tabs i { font-style: normal; padding: 3px 9px; border: 1px solid var(--a-line); border-radius: 6px; }
.in-tabs .on { color: var(--a-ink); border-color: #9AA0AC; }
.in-fx { display: flex; gap: 10px; padding: 5px 8px; background: #FAFAF8; border: 1px solid var(--a-line); border-radius: 6px; margin-bottom: 8px; }
.in-fx code { color: var(--blue-ink); }
.grid-w { overflow: auto; flex: 1; }
.grid { border-collapse: collapse; font-size: 12px; }
.grid th, .grid td { border: 1px solid var(--a-line); padding: 4px 8px; height: 26px; white-space: nowrap; min-width: 36px; }
.grid th { background: #F4F4F2; color: var(--a-mut); font-weight: 400; text-align: center; }
.grid.lit .hot { background: #E9EEFC; color: var(--blue-ink); font-weight: 600; outline: 2px solid var(--blue); outline-offset: -2px; }
.in-se { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--a-mut); font-size: 12px; }
.in-se input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #AFC2F4; border-radius: 7px; font: 12px var(--mono); color: var(--a-ink); background: #fff; }
.facts-w { overflow: auto; flex: 1; }
.facts { width: 100%; border-collapse: collapse; font-size: 12px; }
.facts th { text-align: left; color: var(--a-mut); font-weight: 500; padding: 5px 6px; border-bottom: 1px solid var(--a-line); position: sticky; top: 0; background: #fff; }
.facts td { padding: 6px; border-bottom: 1px solid #F0F0EE; white-space: nowrap; }
.facts code { font-size: 11.5px; }
.facts .hot td { background: #EEF2FD; color: var(--blue-ink); font-weight: 600; }

/* rules */
.ru { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; }
.ru-l, .ru-c { background: #fff; border: 1px solid var(--a-line); border-radius: 8px; min-width: 0; }
.ru-l { padding: 12px; min-height: 440px; }
.ru-h { color: var(--a-mut); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { display: inline-flex; gap: 5px; align-items: center; height: 32px; padding: 0 10px; border: 1px solid var(--a-line); border-radius: 16px; background: #fff; font-size: 12.5px; }
.chips .on { border-color: var(--a-ink); box-shadow: inset 0 0 0 1px var(--a-ink); }
.rem { padding: 10px 12px; border: 1px solid var(--a-line); border-left: 3px solid #C8CBD2; border-radius: 6px; margin-bottom: 8px; }
.rem.live { border-left-color: var(--red); background: #FFF8F6; }
.rem span { display: flex; gap: 6px; margin-bottom: 5px; }
.rem i { font-style: normal; font-size: 11.5px; padding: 1px 8px; border: 1px solid var(--a-line); border-radius: 6px; color: var(--a-mut); background: #fff; }
.rem.live i:first-child { color: var(--red); border-color: #E7B5A9; }
.rem .lv::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.rem code { color: var(--a-mut); }
.rem-e { color: var(--a-mut); padding: 8px 0; }
.ru-c { display: flex; align-items: center; }

/* compare */
.tl { background: #fff; border: 1px solid var(--a-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.tl > b { display: block; font-weight: 600; margin-bottom: 6px; }
.tl-r { display: grid; grid-template-columns: 34px 1.4fr 1.5fr 1fr auto; gap: 10px; align-items: center; padding: 4px 8px; border-radius: 6px; color: var(--a-mut); }
.tl-r b { color: var(--a-ink); font-weight: 600; }
.tl-r span { color: var(--a-ink); }
.tl-r.cur { background: #F8F3EE; }
.tl-r em { font-style: normal; padding: 1px 8px; border: 1px solid #BFDCCB; border-radius: 6px; color: #17704A; background: #EFF8F3; font-size: 12px; }
.cm-c { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.cm-c b { font-weight: 600; } .cm-f { color: var(--a-mut); }
.cm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 10px; }
.cm .canvas { border: 1px solid var(--a-line); border-radius: 8px; }
.cm-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cm-i { display: block; width: 100%; text-align: left; padding: 7px 10px; min-height: 44px; background: #fff; border: 1px solid var(--a-line); border-radius: 7px; }
.cm-i:hover, .cm-i:focus-visible { border-color: var(--blue); }
.cm-i span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-i i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.cm-i em { font-style: normal; padding: 0 6px; border: 1px solid var(--a-line); border-radius: 5px; color: var(--a-mut); font-size: 11px; }
.cm-d { color: var(--a-mut); font-size: 12px; margin-top: 2px; }
.cm-d s { color: var(--red); } .cm-d b { color: #17704A; font-weight: 500; }
.cm-n { color: var(--a-mut); font-size: 12px; padding: 4px 2px; overflow-wrap: anywhere; }
.cm-n b { color: var(--a-ink); font-weight: 500; }

/* sheet states */
.sheet { fill: #14161A; }
.sheet text { font-family: var(--sans); }
.sheet .st-a, .sheet .st-add { opacity: 0; transition: opacity .5s ease .25s; }
.sheet .st-b, .sheet .st-gone { transition: opacity .35s ease; }
.sheet .shift { transition: transform .7s var(--ease) .1s; }
.s-after .sheet .st-a, .s-after .sheet .st-add { opacity: 1; }
.s-after .sheet .st-b, .s-after .sheet .st-gone { opacity: 0; }
.s-after .sheet .shift { transform: translateY(calc(var(--dy) * 1px)); }
.sheet .marks { opacity: 0; transition: opacity .35s ease; }
.s-proposed .sheet .marks { opacity: 1; }
.sheet .m-row, .sheet .m-rev { fill: rgba(214, 69, 43, .14); transition: fill .3s ease, opacity .3s ease; }
.sheet .m-ring { fill: none; stroke: #D6452B; stroke-width: 4.5; transition: stroke .3s ease, opacity .3s ease; }
.s-done .sheet .m-row, .s-done .sheet .m-gone { opacity: 0; }
.s-done .sheet .m-rev { fill: rgba(30, 138, 90, .14); }
.s-done .sheet .m-ring { stroke: var(--green); }
.sel .hit { fill: rgba(31, 79, 216, .1); stroke: var(--blue); stroke-width: 7; }
.sel .chg { fill: rgba(31, 79, 216, .12); stroke: var(--blue); stroke-width: 5; }
.sel .chg.one { fill: rgba(31, 79, 216, .22); stroke-width: 9; }
.sel .flag { fill: rgba(214, 69, 43, .08); stroke: var(--red); stroke-width: 8; }

/* proposal */
.app-p { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.p-sheet { padding: 12px; min-width: 0; }
.p-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--a-ink); font-weight: 500; }
.p-h u { background: none; color: var(--a-mut); font-weight: 400; }
.p-rev { padding: 2px 10px; background: #fff; border: 1px solid var(--a-line); border-radius: 6px; font: 12px var(--mono); }
.p-sheet .canvas { border: 1px solid var(--a-line); border-radius: 8px; }
.p-dock { padding: 14px 16px; background: #fff; border-left: 1px solid var(--a-line); min-width: 0; display: flex; flex-direction: column; }
.p-dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.p-dh b { font-weight: 600; font-size: 14px; }
.pill { padding: 2px 10px; border-radius: 11px; font-size: 12px; background: #EBECEF; color: var(--a-mut); }
.pill.wait { background: #FBEAE6; color: var(--red); }
.pill.ok { background: #E4F3EC; color: #17704A; }
.p-lab { color: var(--a-mut); font-size: 12px; margin-bottom: 5px; }
.p-lab span { margin-left: 4px; }
.p-ins { min-height: 66px; padding: 10px 12px; border: 1px solid #AFC2F4; border-radius: 8px; font-size: 15px; line-height: 1.4; color: var(--a-ink); margin-bottom: 14px; }
.p-body { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.p-body.in { opacity: 1; transform: none; }
.diff { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.diff td { padding: 6px 5px; border-top: 1px solid #F0F0EE; vertical-align: top; font-family: var(--mono); overflow-wrap: anywhere; word-break: break-word; }
.diff td:first-child { color: var(--a-mut); width: 42%; }
.diff .o { white-space: nowrap; }
.diff .o { color: var(--red); text-decoration: line-through; }
.diff .n { color: #17704A; }
.p-ok { margin: 12px 0; color: var(--a-mut); min-height: 40px; }
.p-act { display: flex; align-items: center; gap: 12px; }
.btn.appr { background: var(--ink); border-color: var(--ink); }
.btn.appr:disabled { opacity: .5; cursor: progress; }
.btn.appr.done { background: var(--green); border-color: var(--green); }
.p-replay { height: 40px; padding: 0 6px; color: var(--a-mut); text-decoration: underline; font-size: 13px; }

/* Chinese type: CJK needs no negative tracking and more leading than Latin display type.
   Display headings break only at punctuation and at the <wbr> marks between phrases in the zh pages,
   never inside a word; a phrase too long for the line still wraps (overflow-wrap) instead of overflowing. */
:lang(zh) :is(.h1, .h2, .h3, .close-h, .notline, .moat-r b, .prose h1) { letter-spacing: 0; }
:lang(zh) :is(.h1, .h2, .h3) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .h1 { line-height: 1.16; }
:lang(zh) :is(.h2, .close-h, .prose h1) { line-height: 1.24; }
:lang(zh) .h3 { line-height: 1.3; }
:lang(zh) body { line-height: 1.75; }
:lang(zh) :is(.lead, .prose-l) { line-height: 1.7; }

/* responsive */
@media (max-width: 1020px) {
  .moat-b, .faq-w { grid-template-columns: minmax(0, 1fr); }
  .guar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
  .flow ol, .ev dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
  .ws { grid-template-columns: 170px minmax(0, 1fr); }
  .ws-i { grid-column: 1 / -1; height: auto; }
  .app-p { grid-template-columns: minmax(0, 1fr); }
  .p-dock { border-left: 0; border-top: 1px solid var(--a-line); }
  .intk, .ru, .cm { grid-template-columns: minmax(0, 1fr); }
  .in-wb, .in-fa { height: 300px; }
  .ru-l { min-height: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .cap-row, .cap-row.flip { grid-template-columns: minmax(0, 1fr); }
  .cap-row.flip .cap-t { order: 0; }
  .filmcard { grid-template-columns: minmax(0, 1fr); }
  .steps, .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type:nth-child(odd) { border-left: 0; }
  .type:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) { .nav-l { display: none; } .nav .btn.sm { margin-left: auto; } }
@media (max-width: 720px) {
  :root { --t3: 16px; --t4: 17px; --t5: 24px; }
  .sec { padding: 36px 0; }
  .cap-row { gap: 14px; }
  .cap-t p { margin-top: 10px; }
  .split { gap: 16px; }
  .wrap { padding: 0 16px; }
  .moat-h { display: none; }
  .moat-r { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .flow ol { grid-template-columns: minmax(0, 1fr); }
  .ev dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; }
  .tab { flex: none; }
  .app { border-radius: 10px; margin: 0 -8px; }
  .app .tp { padding: 10px; }
  .a-top span, .a-back, .a-title code { display: none; }
  .a-stages li { font-size: 10.5px; overflow: hidden; }
  .a-tabs { overflow-x: auto; }
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-o { height: auto; display: flex; gap: 6px; overflow-x: auto; }
  .ws-o p { display: none; }
  .ws-o button { flex: none; width: auto; white-space: nowrap; min-height: 40px; border-color: var(--a-line); }
  .ws-c .canvas { height: auto; min-height: 230px; }
  .ws-i { height: auto; }
  .a-foot .ghost { display: none; }
  .tl-r { grid-template-columns: 30px 1fr auto; }
  .tl-r code { display: none; }
  .p-sheet { padding: 8px; }
  .slot .sheet text { paint-order: normal; }
  .hero-v { padding: 0 8px; }
  .hero-b .cta { width: 100%; }
  .hero-b .btn { flex: 1; justify-content: center; }
  .scroll-x { overflow: visible; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cells > div:nth-child(2) { border-left: 1px solid var(--ink); }
  .cells > div:nth-child(3) { border-left: 0; }
  .cells > div:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .mailline { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; white-space: normal; }
  .mailname { grid-column: 1 / -1; color: var(--graphite); font-size: var(--t1); }
  .mailline a { white-space: nowrap; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .illus .ly, .illus .graph, .illus .node, .illus .card, .illus .cloud, .illus .stamp, .illus .outs { opacity: 1 !important; animation: none !important; }
  .illus .flow, .illus .edge, .illus .scan { animation: none !important; }
  .sheet .st-a, .sheet .st-add, .sheet .st-b, .sheet .st-gone, .sheet .shift, .sheet .marks, .p-body { transition: none !important; }
}
