:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #141822;
  --muted: #64748b;
  --accent: #f5ad4f;
  --accent-dark: #b45309;
  --border: #cbd5e1;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a {
  color: var(--accent-dark);
}

.site-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-brand {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}

.site-tag {
  font-size: 13px;
  color: var(--muted);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}

.widget-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 18px 22px;
}

.widget-card h1 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
}

.widget-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.widget-feature h2,
.widget-feature p {
  margin: 0;
}

.widget-feature h2 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.widget-feature p {
  font-size: 15px;
  color: #334155;
}

.widget-feature--scan {
  padding-top: 4px;
}

.widget-feature-lead {
  margin-bottom: 14px !important;
  font-weight: 600;
  color: var(--text) !important;
}

.barcode-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scan-circle {
  border: 0;
  width: 112px;
  height: 112px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  animation: scan-pulse 1.8s infinite;
}

.scan-circle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scan-circle:focus-visible {
  outline: 3px solid rgba(245, 173, 79, 0.55);
  outline-offset: 3px;
}

@keyframes scan-pulse {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(245, 173, 79, 0.55);
  }
  70% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 16px rgba(245, 173, 79, 0);
  }
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(245, 173, 79, 0);
  }
}

.barcode-entry-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.barcode-entry-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.barcode-entry-input::placeholder {
  color: #94a3b8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.barcode-entry-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 173, 79, 0.25);
}

.barcode-entry-search {
  flex: 0 0 auto;
  width: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.barcode-entry-search:hover {
  border-color: var(--accent);
  background: #fffbeb;
}

.barcode-entry-search svg {
  width: 20px;
  height: 20px;
  display: block;
}

.widget-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
}

.scan-page-hero {
  margin-bottom: 16px;
}

.scan-page-hero .barcode-entry {
  margin-bottom: 4px;
}

.scan-page-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}
