:root {
  --ink: #1c2b4a;
  --paper: #f5f7fa;
  --action: #0f766e;
  --action-ink: #0b5a54;
  --wash: #e4f2ef;
  --muted: #5b6b82;
  --line: #d6dde7;
  --white: #ffffff;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", system-ui, sans-serif;
  --step: 1.25;
  --s0: 1rem;
  --s1: calc(var(--s0) * var(--step));
  --s2: calc(var(--s1) * var(--step));
  --s3: calc(var(--s2) * var(--step));
  --s4: calc(var(--s3) * var(--step));
}

html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh-Hans"] { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s0);
  line-height: 1.7;
}
a { color: var(--action-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { font-weight: 700; font-size: var(--s1); letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.bar-actions { display: flex; align-items: center; gap: 20px; }
.lang {
  font: inherit; font-size: 0.875rem; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}

/* Hero: copy left, the sample result table right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 88px;
}
.hero h1 {
  font-size: var(--s4);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.hero p.lede { font-size: var(--s1); color: var(--muted); margin: 0 0 32px; max-width: 30em; line-height: 1.6; }
.cta {
  display: inline-block;
  background: var(--action);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
}
.cta:hover { background: var(--action-ink); }
.cta-note { display: block; margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

/* The one bold element: an actual-looking result */
.result {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(28, 43, 74, 0.35);
  overflow: hidden;
}
.result-query {
  display: flex; gap: 12px; align-items: baseline;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.result-query .you { color: var(--muted); flex: none; }
.result table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.result th {
  text-align: left; font-weight: 600; color: var(--muted);
  padding: 12px 22px 8px; border-bottom: 1px solid var(--line);
}
.result td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.result tr:last-child td { border-bottom: 0; }
.result td:nth-child(3) { color: var(--muted); width: 28%; }
html[data-lang="zh"] .result td:nth-child(3) { white-space: nowrap; width: auto; }
.result .name { font-weight: 600; }
.result .name small { display: block; font-weight: 400; color: var(--muted); }
.tag {
  display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px;
  border-radius: 6px; background: var(--wash); color: var(--action-ink);
  font-size: 0.8125rem; font-weight: 600;
}
.result-note {
  margin: 0; padding: 14px 22px; background: var(--paper);
  border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); line-height: 1.6;
}

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: var(--s3); line-height: 1.3; margin: 0 0 12px; }
section.block .intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

/* A real sequence: the steps of a case */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 20px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--action); color: var(--action-ink); font-weight: 700;
  background: var(--paper); position: relative; z-index: 1; margin-bottom: 16px;
}
.steps li::after {
  content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--s0); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Do / don't */
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.promises h3 { font-size: var(--s1); margin: 0 0 16px; }
.promises ul { margin: 0; padding-left: 1.2em; }
.promises li { margin-bottom: 12px; max-width: 34em; }

/* Price */
.price { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: start; }
.amount { font-size: var(--s4); font-weight: 700; line-height: 1; margin: 0; }
.amount small { font-size: var(--s0); font-weight: 400; color: var(--muted); margin-left: 6px; }
.price ul { margin: 0; padding-left: 1.2em; }
.price li { margin-bottom: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 46em; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Emergency line stays visible and plain */
.emergency {
  margin: 0; padding: 16px 20px; border-left: 4px solid #b42318; background: #fdf1f0; color: #7a1a12;
  border-radius: 0 10px 10px 0; max-width: 46em;
}

footer { padding: 48px 0 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 52px; min-height: 36px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 40px; left: 17px; right: auto; bottom: -24px; width: 2px; height: auto; }
  .promises, .price { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 48px 0; }
  section.block h2 { font-size: var(--s2); }
  .hero h1 { font-size: var(--s3); }
  .result th:nth-child(3), .result td:nth-child(3) { display: none; }
  .result td, .result th { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
