:root {
  --ink: #0f2744;
  --slate: #5a6b7d;
  --line: #d8dee6;
  --bg: #ffffff;
  --bg-2: #f4f7fa;
  --navy: #0f2744;
  --navy-mid: #1a3a5c;
  --link: #1a4d7c;
  --red: #8b1a1a;
  --amber: #8a5a00;
  --green: #1a5c2e;
  --max: 760px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

a { color: var(--link); }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--navy);
}
h1 { font-size: clamp(1.7rem, 3.5vw, 2.15rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 14px; }
.lede { color: var(--slate); max-width: 42em; text-wrap: pretty; }
.muted { color: var(--slate); }
.small { font-size: 0.92rem; }
.tiny { font-size: 0.85rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
}
.logo {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--slate); font-weight: 500; }
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--navy); }

.urgency {
  background: var(--navy);
  color: #c9d6e4;
  font-size: 0.88rem;
  padding: 10px 22px;
}
.urgency .wrap { padding: 0; }
.urgency strong { color: #fff; font-weight: 600; }

.hero { padding: 44px 0 28px; }
.eyebrow {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  margin: 0 0 12px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.btn {
  display: inline-block;
  font-weight: 560;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  cursor: pointer;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
}
.btn:hover { background: var(--navy-mid); color: #fff; text-decoration: none; }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: #fff;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}
.stats .stat {
  display: block;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  margin: 0;
}
.stats .stat:last-child { border-right: none; }
.stats .stat .n {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stats .stat .l {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.35;
}

.grid { display: grid; gap: 0; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.price-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.price-card .amount {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.price-card .amount small {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
}
.price-card .hint {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0 0 16px;
  flex: 1;
}
.price-card .btn-row { margin-top: auto; }
.price-card .btn { width: 100%; text-align: center; }
.tag { display: none !important; }

.card {
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  background: transparent;
  box-shadow: none;
}

section { padding: 32px 0; border-top: 1px solid var(--line); }
section.alt { background: transparent; }

.checker { margin: 16px 0; }
.checker form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.checker input[type="text"] {
  flex: 1 1 220px;
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
  min-height: 44px;
}
.checker input[type="text"]:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
  border-color: var(--navy);
}
.checker .btn { min-height: 44px; }

.upload-form { margin-top: 18px; max-width: 520px; }
.upload-form .field {
  display: block;
  margin-bottom: 16px;
}
.upload-form .field > span {
  display: block;
  font-size: 0.9rem;
  font-weight: 560;
  margin-bottom: 6px;
  color: var(--ink);
}
.upload-form input[type="text"],
.upload-form input[type="file"],
.upload-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}
.upload-form textarea { resize: vertical; min-height: 96px; }
.upload-form input:focus,
.upload-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: -1px;
  border-color: var(--navy);
}

.chip {
  display: inline;
  font-size: 0.85rem;
  font-weight: 560;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
}
.chip-red { color: var(--red); }
.chip-amber { color: var(--amber); }
.chip-green { color: var(--green); }
.chip-grey { color: var(--slate); }

.result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 10px;
}
.tally { display: flex; gap: 14px; flex-wrap: wrap; }

.prop {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  background: #fff;
}
.prop.red, .prop.amber, .prop.green { border-left: none !important; }
.prop summary {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 0.95rem;
}
.prop summary::-webkit-details-marker { display: none; }
.prop .addr { flex: 1; min-width: 0; }
.prop .body { padding: 0 0 14px; font-size: 0.92rem; }

.finding { padding: 10px 0; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: none; }
.finding .ft { font-weight: 600; }
.finding .fd { color: var(--slate); font-size: 0.9rem; margin: 4px 0 0; }
.finding .fa { font-size: 0.9rem; margin: 6px 0 0; border: none; padding: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 11px 10px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 600;
}
tbody tr:hover { background: transparent; }
table a { text-decoration: none; }
table a:hover { text-decoration: underline; }

ul.ticks {
  list-style: disc;
  padding-left: 1.2em;
  margin: 10px 0 0;
}
ul.ticks li { margin-bottom: 6px; font-size: 0.95rem; }
ul.ticks li::before { content: none; }

ol.steps {
  list-style: decimal;
  padding-left: 1.3em;
  margin: 0;
}
ol.steps li { margin-bottom: 16px; }
ol.steps li::before { content: none; display: none; }

.notice {
  border: none !important;
  background: var(--bg-2);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin: 14px 0;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  border: none;
  background: none;
}
.countdown div {
  display: block;
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: 4px;
}
.countdown .big {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.countdown .lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--slate);
}
.countdown .big::after { content: none; }

.region-block {
  scroll-margin-top: 72px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.region-block:first-of-type { border-top: none; }

.glossary {
  font-size: 0.92rem;
  color: var(--slate);
  margin: 12px 0 0;
}
.glossary dt {
  font-weight: 650;
  color: var(--navy);
  margin-top: 14px;
}
.glossary dd { margin: 3px 0 0; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 28px 0;
  color: var(--slate);
  font-size: 0.85rem;
}
.site-footer a { color: var(--slate); }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 28px 0 18px; }
  .nav a.hide-sm { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stats .stat:last-child { border-bottom: none; }
  .countdown { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
