:root {
  --ink: #102033;
  --muted: #647184;
  --line: #d9e1ea;
  --panel: #ffffff;
  --soft: #eef5f4;
  --accent: #0f8b7b;
  --accent-dark: #075b52;
  --warning: #b35b16;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

nav {
  color: var(--muted);
  font-size: 14px;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(16px, 4vw, 40px) 44px;
}

.hero {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 90px);
  padding: 54px 0 28px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 760px;
}

.subcopy {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  max-width: 590px;
}

.lookup-form {
  margin-top: 34px;
  max-width: 620px;
}

label {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.search-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 132px;
}

input,
button {
  border-radius: 8px;
  font: inherit;
  min-height: 54px;
}

input {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 18px;
  text-transform: uppercase;
}

button {
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.status-panel div {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 22px;
}

.status-panel div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--muted);
}

.result-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: -22px;
  overflow: hidden;
}

.result-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px;
}

.result-head h2 {
  font-size: 24px;
  margin-bottom: 0;
}

#result-badge {
  background: var(--soft);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.empty-state {
  color: var(--muted);
  padding: 28px 24px;
}

.grid-result {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--line);
}

.field {
  background: #fff;
  min-height: 82px;
  padding: 18px 20px;
}

.field span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.field strong {
  word-break: break-word;
}

.coverage {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 38px;
}

.coverage article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.coverage span {
  color: var(--accent);
  font-weight: 900;
}

.coverage h3 {
  margin: 14px 0 10px;
}

.coverage p,
footer {
  color: var(--muted);
  line-height: 1.55;
}

footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 54px);
}

.error {
  color: var(--danger);
}

@media (max-width: 780px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 44px;
  }

  .search-row,
  .grid-result,
  .coverage {
    grid-template-columns: 1fr;
  }
}
