:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #60717d;
  --paper: #f5f7f8;
  --panel: #ffffff;
  --line: #dbe3e7;
  --blue: #175d8f;
  --green: #17735a;
  --amber: #b16b16;
  --shadow: 0 22px 70px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 56%, #edf2f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.topbar nav a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  padding: 82px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.lookup-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lookup-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 850;
}

.lookup-row {
  display: flex;
  gap: 10px;
}

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

input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
}

input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(23, 93, 143, 0.16);
}

button {
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  color: white;
  background: var(--blue);
  font-weight: 850;
  cursor: pointer;
}

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

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.status-strip div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.status-strip span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
}

.results {
  padding: 42px 0 80px;
}

.empty-state,
.error-state {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.empty-state p,
.error-state span,
.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.error-state {
  border-color: #efc8bb;
  color: #812d1d;
  background: #fff6f3;
}

.error-state strong,
.error-state span {
  display: block;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 42px rgba(23, 32, 38, 0.06);
}

.span-2 {
  grid-column: span 2;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 750;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.good {
  background: var(--green);
}

.warn {
  background: var(--amber);
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 2.6rem;
  line-height: 1;
}

.san-list {
  max-height: 210px;
  margin: 10px 0 0;
  padding-left: 20px;
  overflow: auto;
}

code {
  display: block;
  margin-top: 10px;
  padding: 14px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #eef3f5;
  color: #25333b;
}

@media (max-width: 900px) {
  .hero,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    font-size: 2.82rem;
  }

  .lookup-row,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .lookup-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
