:root {
  --ink: #0f1b2d;
  --muted: #3d4757;
  --soft: #4a5565;
  --line: #e2e5ea;
  --panel: #f3f5f7;
  --accent: #1f5f4f;
  --accent-ink: #ffffff;
  --exact-bg: #dcefe8; --exact-fg: #174a3d;
  --est-bg: #fff0d1;  --est-fg: #6b4a00;
  --warn-bg: #fff4d6; --warn-fg: #5a4300;
  --bg: #ffffff;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 20px; text-decoration: none; }
nav.top { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
nav.top a { text-decoration: none; }

.hero { padding: 72px 0 48px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.5vw, 54px); line-height: 1.07; letter-spacing: -0.025em; margin: 0; max-width: 820px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 20px 0 0; }

form.search { margin-top: 32px; max-width: 640px; }
label { font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
input[type=text], input[type=number] {
  flex: 1 1 260px; height: 56px; padding: 0 16px; font: inherit; font-size: 19px;
  border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); background: #fff;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #9cc9bb; outline-offset: 2px; }
button.primary {
  height: 56px; padding: 0 26px; border: 0; border-radius: 6px; background: var(--accent);
  color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
}
button.primary[disabled] { opacity: .6; cursor: progress; }
button.ghost { min-height: 44px; padding: 0 16px; border: 1px solid #c9cfd8; border-radius: 6px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.hint { font-size: 14px; color: var(--soft); margin: 6px 0 0; }
.error { margin-top: 14px; padding: 12px 14px; border-radius: 6px; background: #fdecea; color: #7a1c12; }

.sources { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; color: var(--muted); }
.sources strong { color: var(--ink); }

section.step { padding: 40px 0; }
.addresses { list-style: none; padding: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 8px; max-height: 460px; overflow: auto; }
.addresses li + li { border-top: 1px solid var(--line); }
.addresses button { width: 100%; text-align: left; padding: 14px 16px; min-height: 52px; background: #fff; border: 0; font: inherit; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.addresses button:hover { background: var(--panel); }
.tag { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.tag.exact { background: var(--exact-bg); color: var(--exact-fg); }
.tag.est { background: var(--est-bg); color: var(--est-fg); }

.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.big { font-size: clamp(52px, 9vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.per { font-size: 22px; color: var(--muted); }
.addr { color: var(--muted); margin: 0 0 8px; }

.bands { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.bands button { min-width: 48px; min-height: 44px; border: 2px solid var(--ink); background: #fff; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }
.bands button[aria-pressed=true] { background: var(--ink); color: #fff; }
.controls { display: grid; gap: 18px; margin: 28px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 20px; height: 20px; }

.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 24px; }
.main-col { flex: 999 1 600px; min-width: 0; }
.side-col { flex: 1 1 280px; display: grid; gap: 18px; }
.breakdown { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.line { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.line h3 { margin: 0; font-size: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.line .src { font-family: var(--mono); font-size: 13px; color: var(--soft); }
.amt { text-align: right; }
.amt .m { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.amt .y { font-size: 14px; color: var(--soft); }
.total { padding: 18px 20px; background: var(--panel); display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.total .m { font-family: var(--mono); font-size: 22px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.card h2 { font-size: 18px; margin: 0 0 10px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--soft); }
dl.facts dd { margin: 0; font-weight: 600; }
.note { font-size: 14px; color: var(--soft); }
.banner { background: var(--warn-bg); color: var(--warn-fg); padding: 10px 0; font-size: 14px; }

footer.site { background: var(--ink); color: #c3cad4; margin-top: 56px; }
footer.site .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
footer.site a { color: #fff; }
.prose { max-width: 760px; padding: 48px 0; }
.prose h1 { font-size: 40px; }
.prose h2 { margin-top: 36px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.prose.wide { max-width: 880px; }
.crumbs { font-size: 14px; color: var(--soft); margin: 0 0 12px; }
.cta-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.cta-box > div { flex: 1 1 320px; min-width: 0; }
.cta-title { margin: 0; font-weight: 700; font-size: 18px; }
.cta-box .note { margin: 4px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.bands-table { min-width: 560px; font-variant-numeric: tabular-nums; }
.bands-table td { font-family: var(--mono); font-size: 15px; }
.bands-table tbody th { font-weight: 600; }
.bands-table .total-row th, .bands-table .total-row td { font-weight: 700; border-top: 2px solid var(--ink); }
.similar { padding-left: 20px; }
.src { font-family: var(--mono); font-size: 13px; color: var(--soft); margin-top: 32px; }
.two-col { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.two-col > div { flex: 1 1 300px; min-width: 0; }
.two-col ol { padding-left: 22px; margin: 0; }
[hidden] { display: none !important; }
