
:root {
  --bg: #f3efe6;
  --bg-elev: #fffdf8;
  --ink: #1c1916;
  --muted: #645e55;
  --line: #e3d8c8;
  --teal: #0e5c56;
  --teal-deep: #083f3b;
  --teal-soft: #e5f3f1;
  --warn: #8a4b08;
  --warn-bg: #fff3dc;
  --bad: #8e2340;
  --bad-bg: #fde8ee;
  --ok: #1d6b3a;
  --ok-bg: #e7f6ec;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: white; padding: 8px 12px;
}
.skip:focus { top: 12px; }
.topbar {
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.92);
  position: sticky; top: 0; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 650; letter-spacing: -0.02em; }
.brand svg { display: block; }
.brand small { display: block; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.wrap { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
main { padding-bottom: 64px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 12px; }
h2 { font-size: 30px; margin: 0 0 8px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.hero { padding: 56px 0 20px; }
.lede { font-size: 19px; max-width: 44rem; color: #3c3832; margin: 0 0 22px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn, button, input[type="submit"] {
  appearance: none; border: 1px solid var(--teal-deep); background: var(--teal); color: #f7fffd;
  border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn.secondary, button.secondary { background: transparent; color: var(--teal-deep); }
.btn.danger, button.danger { background: transparent; color: var(--bad); border-color: #e4b7c3; }
button:hover, .btn:hover { filter: brightness(1.05); }
.grid-3, .stats, .prices { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); margin: 28px 0; }
.stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 18px 0; }
.prices { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 14px; align-items: stretch; }
.card, .stat, .price {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.stat b, .price .amount { display: block; font-family: var(--serif); font-size: 32px; font-weight: 560; }
.price { display: flex; flex-direction: column; }
.price .amount { margin: 4px 0 12px; }
.price ul { margin: 0 0 16px; padding-left: 18px; }
.price li { margin: 6px 0; }
.price .btn { margin-top: auto; }
.stat span, .muted, .fine { color: var(--muted); }
.stat.bad { background: var(--bad-bg); border-color: #f3c3cf; }
.stat.bad b, .stat.bad span { color: var(--bad); }
.stat.warn { background: var(--warn-bg); border-color: #f0ddb4; }
.stat.warn b { color: var(--warn); }
.stat a { text-decoration: none; color: inherit; }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--teal); margin: 0 0 8px; }
.banner {
  border: 1px solid #d7e4df; background: var(--teal-soft); border-radius: 14px; padding: 12px 14px; margin: 18px 0;
}
.banner.budget { background: var(--warn-bg); border-color: #efd7a8; }
.timeline { margin: 8px 0 0; padding-left: 18px; }
.timeline li { margin: 6px 0; }
.notice { border-radius: 12px; padding: 10px 12px; background: #fff7e8; border: 1px solid #efd7a8; margin: 16px 0; }
section { margin: 34px 0; }
label { display: block; font-size: 14px; margin-bottom: 10px; }
input, select {
  width: 100%; max-width: 420px; border: 1px solid var(--line); background: white; border-radius: 10px;
  padding: 10px 12px; font: inherit; color: inherit;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 12px 0; }
.filters input, .filters select { width: auto; max-width: none; }
.inline { display: inline; }
table { width: 100%; border-collapse: collapse; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
tr.expired td { background: var(--bad-bg); }
tr.critical td { background: #fff1e4; }
tr.soon td { background: #fffaf0; }
tr.expired td:first-child, tr.critical td:first-child, tr.soon td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
tr.soon td:first-child, tr.critical td:first-child { box-shadow: inset 3px 0 0 #c47b12; }
tr.expired td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.mono, code { font-family: var(--mono); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span, .badge {
  background: #efe8dc; border-radius: 999px; padding: 2px 8px; font-size: 12px;
}
.badge.bad { background: #f8d5de; color: var(--bad); }
.badge.warn { background: #ffe7c2; color: var(--warn); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.swatch { width: 10px; height: 10px; display: inline-block; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.swatch.bad { background: var(--bad); }
.swatch.warn { background: #c47b12; }
.swatch.ok { background: var(--ok); }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
footer { border-top: 1px solid var(--line); padding: 22px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.placeholder { font-size: 13px; color: var(--warn); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 650; }
.orgs { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .grid-3, .prices, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .topbar { padding: 14px 16px; }
  h1 { font-size: 38px; }
}
