:root {
  --bg: #ffffff;
  --surface: #f7f6f3;
  --border: rgba(0, 0, 0, 0.12);
  --text: #1f1d1a;
  --text-2: #5f5c57;
  --accent: #d85900;
  --accent-soft: #fdf0e6;
  --green: #1a7f37;
  --green-soft: #e9f6ec;
  --red: #b42318;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
header.site {
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav a { color: var(--text-2); text-decoration: none; font-size: 14px; margin-left: 18px; }
nav a:hover { color: var(--accent); }
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { color: var(--text-2); font-size: 16px; margin-top: 10px; max-width: 640px; }
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px 0;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 9px 11px; font-size: 15px;
  border: 0.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.divider { grid-column: 1 / -1; border-top: 0.5px solid var(--border); margin: 4px 0; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.checkline input { width: 16px; height: 16px; accent-color: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; padding: 11px 22px; border-radius: 8px; text-decoration: none;
}
.btn.ghost { background: #fff; color: var(--text); border: 0.5px solid var(--border); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.results { margin-top: 4px; }
.bignum {
  background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.bignum .v { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.bignum .v.good { color: var(--green); }
.bignum .v.bad { color: var(--red); }
.bignum .k { font-size: 13px; color: var(--text-2); }
table.fees { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
table.fees th, table.fees td { text-align: left; padding: 9px 10px; border-bottom: 0.5px solid var(--border); }
table.fees th { font-size: 12px; color: var(--text-2); font-weight: 500; }
table.fees td.num, table.fees th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.fees tr.total td { font-weight: 600; border-bottom: none; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.green { background: var(--green-soft); color: var(--green); }
section.body { padding: 10px 0 30px; }
section.body h2 { font-size: 21px; font-weight: 600; margin: 26px 0 10px; }
section.body h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
section.body p { color: var(--text); margin: 8px 0; }
section.body ul { margin: 8px 0 8px 20px; }
section.body li { margin: 5px 0; }
section.body table.ref { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
section.body table.ref th, section.body table.ref td { border: 0.5px solid var(--border); padding: 8px 10px; text-align: left; }
section.body table.ref th { background: var(--surface); font-weight: 500; font-size: 13px; }
details.faq { border-bottom: 0.5px solid var(--border); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 500; font-size: 15px; list-style: none; }
details.faq summary::before { content: "+ "; color: var(--accent); font-weight: 600; }
details.faq[open] summary::before { content: "− "; }
details.faq p { color: var(--text-2); font-size: 14px; margin-top: 8px; }
footer.site { border-top: 0.5px solid var(--border); padding: 22px 0 40px; color: var(--text-2); font-size: 13px; }
footer.site a { color: var(--text-2); }
.note { font-size: 12px; color: var(--text-2); margin-top: 10px; }
.verdict { font-size: 15px; font-weight: 500; margin-top: 12px; }
