/*
  Design: "green lane". White paper, deep customs-green ink, one status system
  (green = OK, amber = review) used the same way on every page.
  One bold element: the live cost comparison at the top of the landing page.
*/
:root {
  --paper: #FFFFFF;
  --field: #F1F5F2;
  --ink: #102A21;
  --text: #2B3B34;
  --muted: #5A6A63;
  --rule: #D7E0DB;
  --rule-strong: #B9C7C0;
  --green: #157A55;
  --green-deep: #0E5A3F;
  --green-tint: #E3F1EA;
  --amber: #9A5B00;
  --amber-dot: #D08A12;
  --amber-tint: #FCEFD6;
  --red: #B23B2E;
  --red-tint: #FBE7E4;
  --bar: #A9B6AF;
  --font: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-zh: "Work Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="zh-Hans"] body { font-family: var(--font-zh); }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--field { background: var(--field); }
.section--ruled { border-top: 1px solid var(--rule); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }

/* Type */
.display { font-size: clamp(38px, 5vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; max-width: 15em; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
/* One family, Work Sans, for headings and text. --font-head stays separate so a heading face can be swapped in one place. */
.display, .h2, .h3, .ledger__title, .lrow__hours b, .lrow__cost, .plan__price, .done-title, .summary__type, .brand span, .step-num { font-family: var(--font-head); }
html[lang="zh-Hans"] .display, html[lang="zh-Hans"] .h2, html[lang="zh-Hans"] .h3, html[lang="zh-Hans"] .ledger__title, html[lang="zh-Hans"] .done-title, html[lang="zh-Hans"] .summary__type { font-family: var(--font-zh); }
html[lang="zh-Hans"] .display, html[lang="zh-Hans"] .h2 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 40em; }
.p { max-width: 40em; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--green-tint); color: var(--green-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn svg { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--green-deep); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 400; text-decoration: none; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.langs { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 8px; background: var(--field); }
.langs button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 400; cursor: pointer; }
.langs button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(16, 42, 33, 0.14); }

/* Hero */
.hero { padding-block: clamp(36px, 4.5vw, 64px) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 40px 56px; align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__grid .display { font-size: clamp(34px, 3.4vw, 50px); }
.hero__grid .lead { font-size: 18px; }

/* Cost ledger: the one bold element */
.ledger { border: 1px solid var(--rule); border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(16, 42, 33, 0.04), 0 18px 40px -22px rgba(16, 42, 33, 0.35); }
.ledger__head { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 30px) 12px; }
.ledger__title { font-size: 20px; line-height: 1.3; font-weight: 700; }
.ledger__sentence { font-size: 17px; line-height: 2.1; }
.blank { display: inline-block; width: 3.4ch; margin: 0 3px; padding: 0 4px; border: 0; border-bottom: 2px solid var(--green); border-radius: 4px 4px 0 0; background: var(--green-tint); color: var(--green-deep); font: inherit; font-weight: 700; line-height: 1.5; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.blank::-webkit-outer-spin-button, .blank::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.blank--rate { width: 5.6ch; }
.ledger__rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, auto) minmax(88px, auto); column-gap: 20px; padding: 2px clamp(20px, 2.6vw, 30px) 4px; }
.lrow { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-areas: "name hours cost" "track track track"; row-gap: 10px; align-items: end; padding: 16px 0; border-top: 1px solid var(--rule); }
@supports not (grid-template-columns: subgrid) {
  .lrow { grid-template-columns: minmax(0, 1fr) 128px 96px; column-gap: 20px; }
}
.lrow--head { grid-template-areas: "name hours cost"; padding: 0 0 8px; border-top: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.lh-name { grid-area: name; }
.lh-hours { grid-area: hours; text-align: right; }
.lh-cost { grid-area: cost; text-align: right; }
.lrow__name { grid-area: name; align-self: start; display: flex; flex-direction: column; gap: 3px; }
.lrow__name strong { color: var(--ink); font-size: 18px; line-height: 1.3; }
.lrow__sub { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.track { grid-area: track; height: 24px; border-radius: 6px; background: var(--field); overflow: hidden; }
.fill { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--bar); transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lrow:nth-child(3) .fill { transition-delay: 0.08s; }
.lrow:nth-child(4) .fill { transition-delay: 0.16s; }
.lrow__hours { grid-area: hours; text-align: right; white-space: nowrap; line-height: 1.1; }
.lrow__hours b { color: var(--ink); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.unit { margin-left: 5px; color: var(--muted); font-size: 14px; font-weight: 400; }
.lrow__cost { grid-area: cost; color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.2; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lrow--app .fill { background: var(--green); }
.lrow--app .lrow__name strong, .lrow--app .lrow__hours b, .lrow--app .lrow__cost { color: var(--green-deep); }
.ledger__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 6px clamp(20px, 2.6vw, 30px) 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.ledger__more { padding: 4px clamp(20px, 2.6vw, 30px) 24px; display: flex; flex-direction: column; gap: 14px; }
.table-wrap { overflow-x: auto; }
.atable { width: 100%; min-width: 560px; border-collapse: collapse; }
.atable th, .atable td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; font-size: 15px; vertical-align: middle; }
.atable thead th { color: var(--muted); font-size: 13px; font-weight: 400; }
.atable tbody th { font-weight: 400; color: var(--text); }
.atable input { width: 88px; min-height: 40px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.sources { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; color: var(--muted); }

/* Documents */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.group + .group { margin-top: 32px; }
.group__h { margin-bottom: 6px; color: var(--muted); font-size: 15px; font-weight: 700; }
.doclist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.doclist li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink); font-size: 16px; line-height: 1.45; }
.doclist svg { flex: none; margin-top: 2px; color: var(--green); }

/* Why the checks matter: two sourced examples */
.band-why { background: var(--green-deep); color: #E3EFE8; }
.band-why .h2 { color: #fff; }
.band-why .lead { color: #CFE3D7; }
.band-why :focus-visible { outline-color: #fff; }
.band-why .case :focus-visible { outline-color: var(--ink); }
.cases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-top: 40px; align-items: stretch; }
.case { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; background: #fff; color: var(--text); overflow: hidden; box-shadow: 0 28px 50px -28px rgba(0, 0, 0, 0.55); }
.case__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 24px; border-bottom: 1px solid #F0D7AC; background: var(--amber-tint); color: var(--amber); font-size: 14px; }
.case__tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.case__body { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 26px 26px 28px; }
.case__lead { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.35; font-weight: 700; }
.case__num { display: block; margin-bottom: 8px; color: var(--amber); font-size: clamp(60px, 6.4vw, 88px); line-height: 0.95; letter-spacing: -0.035em; }
html[lang="zh-Hans"] .case__num { letter-spacing: 0; }
.units { display: flex; flex-wrap: wrap; gap: 8px; }
.units svg { flex: none; }
.case__title { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.3; font-weight: 700; }
.misslist { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; border: 1px dashed #E3B4AD; border-radius: 10px; background: #FFF9F8; }
.misslist li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.misslist svg { flex: none; margin-top: 2px; }
.case__text { margin-top: auto; color: var(--text); font-size: 15.5px; }
.why-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px; }
.why-cta p { max-width: 40em; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.45; }
.refs.refs--dark { border-top-color: rgba(255, 255, 255, 0.22); color: #D6E8DD; }
.refs.refs--dark .refs__h { color: #fff; }
.refs.refs--dark a { color: #fff; }
.refs.refs--dark a:hover { color: #E3F1EA; }
.refs.refs--dark li:target { outline-color: #fff; }
.units-wrap { display: flex; flex-direction: column; gap: 10px; }
.units-key { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13.5px; }
.units-key span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.key--refused { border: 1.5px solid var(--amber); background: var(--amber-tint); }
.key--ok { border: 1.5px solid var(--green); background: #fff; }
.ref { margin-left: 2px; font-size: 0.78em; font-weight: 700; line-height: 0; text-decoration: none; vertical-align: super; white-space: nowrap; }
.refs { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; line-height: 1.55; }
.refs__h { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }
.refs ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.refs li a { font-weight: 700; overflow-wrap: anywhere; }
.refs li:target { outline: 2px solid var(--amber-dot); outline-offset: 4px; border-radius: 4px; }

/* Checks */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--rule); }
.cols3 > div { padding: 28px 28px 4px 0; }
.cols3 > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; }
.checklist svg { flex: none; margin-top: 4px; color: var(--green); }
.aside { display: flex; gap: 10px; align-items: flex-start; margin-top: 36px; max-width: 46em; color: var(--muted); font-size: 15px; }
.aside svg { flex: none; margin-top: 3px; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); font-size: 17px; font-weight: 700; }

/* See it first */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.pair > div { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); min-width: 0; }
.pair > div + div { border-left: 1px solid var(--rule); }
.pair .actions { margin-top: auto; padding-top: 4px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; }
.ticks svg { flex: none; margin-top: 4px; color: var(--green); }
.mini { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.mini caption { padding-bottom: 8px; color: var(--muted); font-size: 13px; text-align: left; }
.mini th { padding: 0 10px 6px 0; color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; }
.mini td { padding: 9px 10px 9px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.mini td:first-child { color: var(--muted); width: 48%; }
.flag { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--amber-tint); color: var(--amber); font-size: 14px; line-height: 1.5; }
.flag svg { flex: none; margin-top: 2px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 2px solid var(--ink); }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 24px 24px 8px 0; }
.plan + .plan { padding-left: 24px; border-left: 1px solid var(--rule); }
.plan__name { color: var(--ink); font-size: 18px; font-weight: 700; }
.plan__price { color: var(--ink); font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--muted); font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.plan__limit { font-size: 16px; }
.plan__year { color: var(--muted); font-size: 14px; }

/* Waitlist band */
.band { background: var(--green-deep); color: #E3EFE8; }
.band .h2 { color: #fff; }
.band .lead { color: #CFE3D7; }
.band :focus-visible { outline-color: #fff; }
.band .formcard :focus-visible { outline-color: var(--ink); }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.formcard { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: #fff; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { color: var(--ink); font-size: 15px; font-weight: 700; }
.input, .select { min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.alert { padding: 8px 12px; border-radius: 8px; background: var(--red-tint); color: var(--red); font-size: 14px; }
.info { padding: 10px 14px; border-radius: 8px; background: var(--green-tint); color: var(--green-deep); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vh:focus-visible + .btn { outline: 3px solid var(--ink); outline-offset: 2px; }
dl.summary-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
dl.summary-list dt { color: var(--muted); }
dl.summary-list dd { margin: 0; overflow-wrap: anywhere; }
.done-title { color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-block: 28px 40px; }
.site-footer p { max-width: 46em; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Translator page */
.tool { background: var(--field); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tool__inner { display: flex; flex-direction: column; gap: 18px; padding-block: 32px 36px; }
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.picker__label { color: var(--ink); font-weight: 700; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; font-weight: 700; }
.picker__or { color: var(--muted); }
.upbtn[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }
.blurb { color: var(--muted); font-size: 15px; }
.uploader { display: flex; flex-direction: column; gap: 14px; max-width: 720px; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.filerow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.runrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.result-section { padding-block: 40px 64px; }
.idle { padding: 28px; border: 1.5px dashed var(--rule-strong); border-radius: 12px; color: var(--muted); }
.progress { list-style: none; margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.progress li { display: flex; align-items: center; gap: 12px; color: var(--bar); font-size: 16px; }
.progress li.is-done { color: var(--muted); }
.progress li.is-active { color: var(--ink); font-weight: 700; }
.summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.summary__type { color: var(--ink); font-size: 24px; font-weight: 700; }
.summary__meta { color: var(--muted); }
.deleted { display: inline-flex; align-items: center; gap: 6px; color: var(--green-deep); font-size: 14px; font-weight: 700; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; font-size: 14px; color: var(--text); }
.count { display: inline-flex; align-items: center; gap: 7px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 999px; }
.dot--ok { background: var(--green); }
.dot--review { background: var(--amber-dot); }
.dot--note { background: var(--bar); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; margin-top: 24px; }
.cols2 > section { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.colhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.sample-tag { padding: 3px 10px; border-radius: 999px; background: var(--amber-tint); color: var(--amber); font-size: 13px; font-weight: 700; }
.subhead { color: var(--muted); font-size: 15px; font-weight: 700; }
.paper { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--rule); border-radius: 4px; background: #fff; box-shadow: 0 14px 34px -18px rgba(16, 42, 33, 0.35); color: #1F2A26; font-size: 14px; line-height: 1.6; }
.paper--zh { font-family: var(--font-zh); }
.paper__head { text-align: center; }
.paper__title { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; }
.paper__sub { color: var(--muted); font-size: 13px; }
.dtable { width: 100%; min-width: 440px; border-collapse: collapse; border: 1px solid #9AA6A0; font-size: 12.5px; }
.dtable th { padding: 5px 6px; border: 1px solid var(--rule); background: #EEF2EF; text-align: left; }
.dtable td { padding: 5px 6px; border: 1px solid var(--rule); vertical-align: top; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status--ok { background: var(--green-tint); color: var(--green-deep); }
.status--review { background: var(--amber-tint); color: var(--amber); }
.status--note { background: #ECEFED; color: var(--muted); }
.check { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.check__title { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.35; }
.check__detail { color: var(--muted); font-size: 15px; }
.otable { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.otable th { padding: 0 10px 8px 0; color: var(--muted); font-size: 13px; font-weight: 400; text-align: left; }
.otable td { padding: 10px 10px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.otable .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.otable .orig { color: var(--muted); overflow-wrap: anywhere; }
.otable .note { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.otable .note--warn { color: var(--amber); }
.otable tfoot td { border-top: 1.5px solid var(--ink); font-weight: 700; }
.pretext { padding: 24px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.localpreview { display: block; max-width: 100%; max-height: 520px; object-fit: contain; }
.after { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* Small screens */
@media (max-width: 1080px) {
  .nav__link--opt { display: none; }
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .split, .split--even, .cols2 { grid-template-columns: 1fr; }
  .cols3, .cases { grid-template-columns: 1fr; }
  .cols3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .pair { grid-template-columns: 1fr; }
  .pair > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { padding-left: 0; border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .nav__link { display: none; }
  .lrow { grid-template-areas: "name name name" "track track track" "hours hours cost"; }
  .lrow--head { display: none; }
  .track { height: 18px; }
  .lrow__hours { text-align: left; }
}
@media (max-width: 560px) {
  .doclist, .misslist { grid-template-columns: 1fr; }
  .case__body { padding: 22px 20px 24px; }
  .case__bar { padding: 12px 20px; }
  .check { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fill { transition: none; }
}
