:root {
  --ink: #0B1626;
  --slate: #5B6B84;
  --slate-deep: #46536B;
  --cyan: #06B6D4;
  --cyan-deep: #0891B2;
  --cyan-text: #0E7490;
  --mist: #EEF2F6;
  --paper: #FBFCFE;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --on-ink: #FFFFFF;
  --ok: #0E7490;
  --bad: #b91c1c;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-ui: "Instrument Sans", system-ui, sans-serif;
  --font: var(--font-ui);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --radius: var(--radius-lg);
  --shadow-card: 0 1px 2px rgba(11, 22, 38, 0.05);
  --muted: var(--slate);
  --line: var(--border);
  --bg: var(--paper);
  --card: var(--surface);
  --brand: var(--ink);
  --brand-2: var(--cyan-deep);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font-ui); }
a { color: var(--cyan-text); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { display: block; width: 36px; height: 40px; object-fit: contain; }
.brand-word { font-weight: 700; letter-spacing: 0.02em; font-size: 1.15rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.nav-links a:not(.btn) { color: var(--slate-deep); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-pill); padding: 10px 16px; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  background: var(--ink); color: var(--on-ink);
  box-shadow: 0 10px 24px -16px rgba(11, 22, 38, 0.65);
}
.btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--cyan)); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn.secondary, .btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: none;
}
.btn.secondary:hover, .btn-ghost:hover { border-color: color-mix(in srgb, var(--cyan) 45%, var(--border)); background: var(--surface); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; }
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(6, 182, 212, 0.18), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    var(--mist);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--slate-deep); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--cyan-deep); font-weight: 700; margin-right: 8px; }
.eyebrow {
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.72rem; font-weight: 700; color: var(--cyan-text);
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.1rem; }
.lede { margin: 0 0 20px; color: var(--slate-deep); font-size: 1.05rem; line-height: 1.55; max-width: 40rem; }
.lede.narrow { max-width: 36rem; }
.hero-impact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.impact-card {
  background: linear-gradient(180deg, #0b1626 0%, #122038 100%);
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, #1e2f4a);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  display: grid; gap: 6px;
  box-shadow: 0 18px 36px -28px rgba(11, 22, 38, 0.7);
}
.impact-card b {
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--cyan); line-height: 1.1;
}
.impact-card span { font-size: 0.82rem; color: #b7c3d6; line-height: 1.35; }
section { padding: 36px 0; }
.section { padding: 64px 0; }
.section-alt { background: var(--mist); }
.section-plain { background: var(--paper); }
section p.sub, .sub { color: var(--slate-deep); margin: 0 0 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 16px; box-shadow: var(--shadow-card);
}
.feature-card p { margin: 0; color: var(--slate-deep); line-height: 1.5; font-size: 0.95rem; }
.highlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.highlight-row p { margin: 0; color: var(--slate-deep); line-height: 1.5; }

/* search */
.search-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.mode-toggle {
  display: inline-flex; flex-wrap: wrap; padding: 4px; margin-bottom: 20px;
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
}
.mode-toggle button {
  border: 0; background: transparent; border-radius: var(--radius-pill); padding: 8px 14px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--slate-deep); cursor: pointer;
}
.mode-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.search-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius-lg) + 4px);
  padding: 22px; box-shadow: var(--shadow-card);
}
.lookup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.lookup-row select, .lookup-row input {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 10px 14px; font: inherit; background: #fff; color: var(--ink); width: auto; min-width: 0;
}
.lookup-row input[name=q] { flex: 1; min-width: 220px; }
.lookup-row input.county { width: 180px; }
.trail {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.92rem; }
.crumb { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--cyan-text); font-weight: 600; cursor: pointer; }
.crumb:hover { text-decoration: underline; }
.crumb.current { color: var(--ink); cursor: default; }
.crumb.current:hover { text-decoration: none; }
.crumbs .sep { color: var(--slate); }
.results { display: grid; gap: 10px; margin-top: 14px; }
.results.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-card {
  display: grid; gap: 3px; text-align: left; width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow-card);
}
.result-card.link { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.result-card.link:hover, .result-card.link:focus-visible {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--border));
  box-shadow: 0 18px 40px -28px rgba(8, 145, 178, 0.55); outline: none;
}
.result-card h3 { margin: 2px 0 0; }
.result-card p { margin: 0; }
.result-card .go { font-size: 0.85rem; font-weight: 600; color: var(--cyan-text); margin-top: 4px; }
.result-api { font-family: var(--mono); font-size: 12px; color: var(--cyan-text); font-weight: 700; letter-spacing: .04em; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.view-head h3 { font-size: 1.35rem; margin-bottom: 4px; }
.view-head p { margin: 0; }
.view-head .eyebrow { margin-bottom: 6px; }
.filter { display: flex; gap: 8px; }
.filter input { border-radius: var(--radius-pill); min-width: 220px; }
.well-detail { margin-top: 14px; }
.well-detail h3 { font-size: 1.35rem; }
.well-detail .kv { margin: 14px 0 18px; max-width: 640px; }
.locked {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  background: var(--mist); border: 1px dashed color-mix(in srgb, var(--cyan) 45%, var(--border));
  border-radius: var(--radius-lg); padding: 14px 16px; color: var(--slate-deep); font-size: 0.95rem;
}
.locked b { color: var(--ink); }
.locked span { flex: 1; min-width: 220px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sample { margin-top: 8px; }

/* call to action and footer */
.cta { background: radial-gradient(800px 320px at 20% 0%, rgba(6, 182, 212, 0.16), transparent 55%), var(--mist); }
.cta-inner {
  display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius-lg) + 4px);
  padding: 28px; box-shadow: var(--shadow-card);
}
.cta-inner > div { flex: 1; min-width: 260px; }
.cta-inner p { margin: 0; color: var(--slate-deep); max-width: 40rem; line-height: 1.55; }
.cta-actions { display: grid; gap: 10px; min-width: min(380px, 100%); }
.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 16px; box-shadow: var(--shadow-card);
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--slate-deep); line-height: 1.5; }
.card .price { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.card .price small { font-size: 14px; color: var(--slate); font-weight: 500; }
.card ul { padding-left: 18px; margin: 10px 0 16px; color: var(--slate-deep); font-size: 14px; }
.card.featured { border-color: color-mix(in srgb, var(--cyan) 55%, var(--border)); box-shadow: 0 18px 40px -28px rgba(8, 145, 178, 0.55); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan-text); background: color-mix(in srgb, var(--cyan) 14%, white); padding: 3px 8px; border-radius: var(--radius-pill);
}
.access-form { display: grid; gap: 10px; max-width: 560px; }
pre, code { font-family: var(--mono); font-size: 13px; }
pre { background: #0B1626; color: #e8eef7; padding: 14px 16px; border-radius: var(--radius-md); overflow: auto; margin: 0; }
form.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type=email], input[type=text], input[type=search], textarea, select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font: inherit; background: #fff; color: var(--ink);
}
form.inline input { min-width: 240px; width: auto; }
.note { font-size: 14px; color: var(--slate); }
.msg { margin-top: 10px; font-size: 14px; color: var(--slate-deep); }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--slate); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; }
.bar { height: 8px; background: var(--mist); border-radius: var(--radius-pill); overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; background: var(--cyan); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.spark i { flex: 1; background: var(--cyan-deep); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.secret { font-family: var(--mono); background: color-mix(in srgb, var(--cyan) 10%, white); border: 1px dashed var(--cyan-deep); padding: 10px 12px; border-radius: var(--radius-md); word-break: break-all; }
footer, .footer { padding: 18px 0 28px; color: var(--slate); font-size: 0.88rem; border-top: 1px solid var(--border); }
footer a { color: var(--slate-deep); text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer-note { margin-top: 8px; font-size: 0.8rem; }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .hero-grid, .grid.cols-3, .grid.cols-4, .grid.cols-2, .feature-grid, .highlight-row, .results.grid-2 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn), .nav-links .btn-ghost { display: none; }
  h1 { font-size: 2rem; }
  .lookup-row input.county { width: 100%; }
  .filter, .filter input { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .hero-impact { grid-template-columns: 1fr 1fr; }
}
