/* ============================
   RESET / BASE
   ============================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #e6edf5;
  color: #374151;
}

/* ============================
   LAYOUT
   ============================ */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ============================
   HEADER
   ============================ */

h1 {
  margin: 0 0 24px 0;
  font-size: 42px;
  font-family: "omnes-semicond", sans-serif;
  font-weight: 700;
  color: #021738;
  text-align: center;
}

/* ============================
   CARD
   ============================ */

.card {
  background: #f5f3ef;
  border-radius: 14px;
  padding: 28px;
  margin-top: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  font-family: "Nunito", system-ui, sans-serif;
}

/* ============================
   FORM
   ============================ */

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c7d2e0;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 14px;
  font-family: "Nunito", system-ui, sans-serif;
}

input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ============================
   BUTTON
   ============================ */

button {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Nunito", system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover {
  background: #2563eb;
}

/* ============================
   ALERTS
   ============================ */

.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.alert.error {
  background: rgba(255, 0, 0, 0.06);
  border: 1px solid rgba(255, 0, 0, 0.2);
  color: #7f1d1d;
}

/* ============================
   RESULT GRID
   ============================ */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 10px;
}

.k {
  display: inline-block;
  min-width: 140px;
  font-weight: 600;
  color: #6b7280;
}

.v {
  color: #111827;
}

/* ============================
   DETAILS / RAW JSON
   ============================ */

details {
  margin-top: 18px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: #3b82f6;
}

pre {
  margin-top: 10px;
  overflow: auto;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

/* ============================
   BACK LINK
   ============================ */

a {
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: #021738;
}

.confidence {
  font-size: 0.85em;
  margin-left: 4px;
  opacity: 0.85;
}

.confidence.high {
  color: #b00020;
}

.confidence.medium {
  color: #d97706;
}

.confidence.low {
  color: #6b7280;
}
