:root {
  --bg: #f5f4ef; --surface: #ffffff; --surface-2: #fbfaf7; --ink: #16181b; --ink-2: #33373d; --muted: #646a72;
  --line: #e4e1d8; --line-2: #d6d2c6; --accent: #163f33; --accent-ink: #eef7f2; --accent-soft: #e3efe8;
  --ok: #1d7a4c; --ok-soft: #e4f3ea; --bad: #b8432f; --bad-soft: #fbe9e4; --warn: #9a6a10; --warn-soft: #fbf1dc;
  --ai: #5a3fb0; --ai-soft: #efeafc;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 22, 25, .04), 0 8px 24px rgba(20, 22, 25, .06);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1112; --surface: #171a1c; --surface-2: #1c1f22; --ink: #ecebe6; --ink-2: #cfcdc6; --muted: #9a9fa6;
    --line: #2a2e32; --line-2: #383d42; --accent: #7fd1a6; --accent-ink: #0c1f17; --accent-soft: #1b2b24;
    --ok: #6fd39c; --ok-soft: #17291f; --bad: #f08a76; --bad-soft: #2d1a16; --warn: #e6b65a; --warn-soft: #2b2314;
    --ai: #b9a4ff; --ai-soft: #231d38; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(24px, 3vw, 32px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.by { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 10px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.nav nav a:hover { color: var(--ink); }
.langs { display: flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; }
.langs button { border: 0; background: none; color: var(--muted); font: 600 12px var(--font); padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 15px var(--font); padding: 11px 18px; border-radius: 11px; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn.big { font-size: 16px; padding: 14px 26px; }
.btn.sm { font-size: 13px; padding: 7px 12px; border-radius: 9px; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pill { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 600 12px var(--font); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.pill:hover { border-color: var(--ink-2); }
.icon { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.icon:hover { background: var(--bad-soft); color: var(--bad); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(32px, 4.3vw, 52px); font-weight: 720; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-2); margin: 20px 0 26px; max-width: 58ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.proof { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proof figcaption { grid-column: 1 / -1; }
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.r-label { font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.r-num { margin: 0 0 12px; font-size: 34px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.receipt.bad .r-num span { color: var(--bad); } .receipt.ok .r-num span { color: var(--ok); }
.r-num small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.receipt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.receipt li { display: flex; gap: 8px; align-items: center; }
.receipt li::before { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.receipt li.v::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.receipt li.x::before { content: "✗"; background: var(--bad-soft); color: var(--bad); }

/* tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 76px; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mode { margin: 0; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); } .dot.ai { background: var(--ai); }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pane-in { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pane-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; }
.pane-bar label { font-weight: 650; font-size: 14px; }
.pane-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.file { display: inline-flex; }
textarea, input, select { font: 14px/1.5 var(--font); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 12px; width: 100%; }
textarea { resize: vertical; font-family: var(--mono); font-size: 12.5px; min-height: 220px; }
#master { min-height: 380px; }
select { width: auto; max-width: 60%; padding: 6px 10px; font-size: 13px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.meta-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.meta-row input { padding: 8px 10px; font-size: 13px; }
.source { margin: 0; min-height: 18px; overflow-wrap: anywhere; }
.go-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.status { margin: 0; font-size: 14px; color: var(--muted); }
.status.err { color: var(--bad); }

/* results */
.results { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; scroll-margin-top: 76px; }
.sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 2px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat b { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; color: var(--muted); }
.stat.ok { background: var(--ok-soft); border-color: transparent; } .stat.ok b { color: var(--ok); }
.stat.bad { background: var(--bad-soft); border-color: transparent; } .stat.bad b { color: var(--bad); }
.stat.wait b { color: var(--muted); }
.res-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px; border-radius: 11px; overflow-x: auto; max-width: 100%; }
.tabs button { border: 0; background: none; font: 600 13px var(--font); color: var(--muted); padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.dl { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-line { margin: 4px 0 12px; min-height: 20px; }
.ai-tag { display: inline-block; background: var(--ai-soft); color: var(--ai); font-size: 12px; font-weight: 650; padding: 4px 12px; border-radius: 99px; }
.pane { min-height: 200px; }

.cv { background: #fff; color: #1a1c21; border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; max-width: 820px; box-shadow: var(--shadow); font-size: 14px; }
.cv h3 { font-size: 26px; margin-bottom: 4px; }
.cv-doc { text-align: center; font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.cv-head { margin: 0; color: #5c6169; }
.cv-contact { margin: 4px 0 8px; color: #5c6169; font-size: 13px; overflow-wrap: anywhere; }
.cv h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #d5d8de; padding-bottom: 4px; margin: 18px 0 8px; }
.cv[lang="zh"] h4, .cv[lang="ja"] h4 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.cv p { margin: 0 0 4px; }
.cv ul { margin: 4px 0 10px; padding-left: 18px; }
.cv li { margin-bottom: 3px; }
.job-t { margin-top: 8px !important; } .job-d { color: #5c6169; font-size: 13px; }
.notes { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fmt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fmt header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.fmt header small { margin-left: auto; color: var(--muted); }
.badge { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
.fmt ul { list-style: none; margin: 0; padding: 8px 0; }
.fmt li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; padding: 8px 16px; font-size: 14px; }
.fmt li i { font-style: normal; font-weight: 800; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; grid-row: span 2; }
.fmt li.ok i { background: var(--ok-soft); color: var(--ok); } .fmt li.bad i { background: var(--bad-soft); color: var(--bad); } .fmt li.warn i { background: var(--warn-soft); color: var(--warn); }
.fmt li small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.bars { display: grid; gap: 8px; margin-bottom: 20px; max-width: 720px; }
.bar { display: grid; grid-template-columns: 200px 1fr 46px 1fr 46px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar.head small { color: var(--muted); font-size: 12px; }
.track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--line-2); border-radius: 99px; } .track i.after { background: var(--accent); }
.bar b { font-variant-numeric: tabular-nums; font-size: 13px; }
.pane h4 { margin: 18px 0 8px; font-size: 14px; }
.chip { display: inline-block; font-size: 12.5px; padding: 4px 12px; border-radius: 99px; margin: 0 4px 6px 0; border: 1px solid var(--line-2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.miss { background: var(--surface-2); color: var(--muted); border-style: dashed; }
.chip sup { font-size: 9px; margin-left: 3px; opacity: .7; }

.trace { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.trace th, .trace td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.trace th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.trace td:last-child { white-space: nowrap; }
.trace code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 2px 8px; border-radius: 5px; }
.trace small { color: var(--muted); } .trace small.chg { color: var(--accent); font-weight: 600; }
.raw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.raw-grid h4 { margin: 0 0 6px; }
pre { margin: 0; font: 12px/1.55 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }

/* how */
.how, .tracker, .pricing, .faq { padding: 72px 0 0; scroll-margin-top: 60px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: 14px; margin-bottom: 12px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* tracker */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.tr { width: 100%; border-collapse: collapse; font-size: 14px; }
.tr th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tr td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tr tr:last-child td { border-bottom: 0; }
.tr td input, .tr td select { background: transparent; border-color: transparent; padding: 8px 12px; font-size: 14px; width: 100%; max-width: none; }
.tr td input:hover, .tr td select:hover { border-color: var(--line-2); }
.tr td:nth-child(6) { display: flex; align-items: center; gap: 4px; }
.tr td a { text-decoration: none; color: var(--accent); font-weight: 700; }
.tr .empty { text-align: center; color: var(--muted); padding: 28px; }
select.st-applied { color: #2459a8; } select.st-interview { color: var(--ai); } select.st-offer { color: var(--ok); font-weight: 700; } select.st-closed { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; margin-top: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan h3 { font-size: 16px; color: var(--muted); }
.price { margin: 0; } .price b { font-size: 40px; letter-spacing: -0.03em; } .price span { color: var(--muted); margin-left: 4px; }
.plan ul { margin: 6px 0 14px; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; flex: 1; }
.plan .btn { align-self: flex-start; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq details:first-of-type { margin-top: 16px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

.foot { margin-top: 88px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; } .foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .panes, .checks, .raw-grid { grid-template-columns: 1fr; }
  .sum { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .tool { padding: 20px 16px; border-radius: 16px; }
  .proof { grid-template-columns: 1fr 1fr; gap: 10px; }
  .receipt { padding: 16px; } .r-num { font-size: 26px; } .receipt ul { font-size: 12px; }
  .meta-row { grid-template-columns: 1fr; }
  #master { min-height: 300px; }
  .bar { grid-template-columns: 1fr 40px 40px; } .bar .track { display: none; } .bar.head { display: none; }
  .cv { padding: 20px 16px; font-size: 13px; } .cv h3 { font-size: 21px; }
  .plans { grid-template-columns: 1fr; }
  .stat b { font-size: 20px; }
  table.tr thead { display: none; }
  table.tr, .tr tbody, .tr tr, .tr td { display: block; width: 100%; }
  .tr tr { border-bottom: 1px solid var(--line); padding: 12px; position: relative; }
  .tr td { border: 0; padding: 2px 0; }
  .tr td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-left: 8px; }
  .tr td:last-child { position: absolute; top: 10px; right: 10px; width: auto; }
  .tr td:nth-child(6) { display: block; }
  .btn.big { width: 100%; }
  .res-bar .dl .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
