/* Emma SafeCheck launch page */

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #17211b;
  background: #f3f7f4;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(22, 163, 74, 0.12), transparent 36rem),
    #f3f7f4;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
}

.card {
  width: min(100%, 31rem);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(30, 50, 38, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 0.8rem 1.6rem rgba(22, 163, 74, 0.22);
}

.eyebrow {
  margin: 0;
  color: #16803e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.8rem, 7vw, 2.45rem);
  line-height: 1.08;
}

.status-message {
  min-height: 3rem;
  margin: 1rem auto 0;
  max-width: 25rem;
  color: #5a665e;
  line-height: 1.55;
}

.spinner {
  width: 2.6rem;
  height: 2.6rem;
  margin: 1.25rem auto 0;
  border: 0.28rem solid #dfe9e2;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.vehicle-card,
.error-card {
  margin-top: 1.4rem;
  padding: 1.25rem;
  border-radius: 1rem;
}

.vehicle-card {
  background: #effaf2;
  border: 1px solid #ccebd4;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  color: white;
  background: #16a34a;
  font-weight: 900;
}

.vehicle-found {
  margin: 0;
  color: #16803e;
  font-size: 0.9rem;
  font-weight: 750;
}

.vehicle-card h2 {
  margin: 0.35rem 0 1rem;
  font-size: 1.5rem;
}

.vehicle-details {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  text-align: left;
}

.vehicle-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(22, 128, 62, 0.14);
}

.vehicle-details dt {
  color: #647168;
}

.vehicle-details dd {
  margin: 0;
  text-align: right;
  font-weight: 750;
}

.error-card {
  color: #7d241f;
  background: #fff2f1;
  border: 1px solid #f2c7c4;
}

.error-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.error-card p {
  margin-bottom: 0;
  line-height: 1.5;
}

.start-button {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #16a34a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0.75rem 1.5rem rgba(22, 163, 74, 0.2);
}

.start-button:hover {
  filter: brightness(0.96);
}

.start-button:focus-visible {
  outline: 0.2rem solid #17211b;
  outline-offset: 0.2rem;
}

.qr-reference {
  margin: 1rem 0 0;
  color: #778179;
  font-size: 0.78rem;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

footer {
  color: #647168;
  font-size: 0.88rem;
  text-align: center;
}
