:root {
  --ink: #10151f;
  --muted: #5f6b7a;
  --line: #dbe3ed;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --brand: #0f8a7a;
  --brand-strong: #0b6f64;
  --accent: #f3b43f;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px max(18px, calc((100vw - 1120px) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.header-link {
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 18px 56px;
}

.hero,
.checkout-shell,
.scan-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  min-height: calc(100vh - 118px);
  place-items: center;
}

.hero-copy,
.checkout-copy,
.scan-heading {
  width: 100%;
}

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

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

h1 {
  font-size: clamp(40px, 8vw, 76px);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 20px;
  max-width: 680px;
}

.hero-actions,
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  text-decoration: none;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.phone-preview,
.panel,
.checkout-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(16, 21, 31, 0.08);
}

.phone-preview {
  display: grid;
  gap: 14px;
  max-width: 360px;
  padding: 20px;
  width: 100%;
}

.phone-bar {
  background: var(--ink);
  border-radius: 999px;
  height: 8px;
  margin: 0 auto 6px;
  width: 72px;
}

.scan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: 54px 1fr;
  padding: 14px;
}

.scan-card span {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  grid-row: span 2;
  justify-content: center;
}

.scan-card.active span {
  background: var(--accent);
}

.scan-card small {
  color: var(--muted);
}

.strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0;
}

.strip div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.strip strong,
.strip span {
  display: block;
}

.strip span,
.fine-print,
.disclaimer {
  color: var(--muted);
  font-size: 14px;
}

.panel,
.checkout-card {
  padding: 22px;
}

.panel.wide {
  overflow-x: auto;
}

.checkout-card,
.compact-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.check-list {
  color: var(--muted);
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.check-list li::before {
  color: var(--brand);
  content: "✓ ";
  font-weight: 900;
}

.success-panel {
  margin: 12vh auto 0;
  max-width: 740px;
}

.status-box {
  background: #eef8f6;
  border: 1px solid #b8dfd8;
  border-radius: 8px;
  color: var(--brand-strong);
  margin: 16px 0;
  padding: 12px;
}

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

.error-box {
  background: #fff1f0;
  border-color: #ffc9c4;
}

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

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.scan-layout {
  align-items: start;
  grid-template-columns: 0.75fr 1.25fr;
  min-height: auto;
  place-items: stretch;
}

.scan-heading {
  position: sticky;
  top: 92px;
}

.capture-list {
  display: grid;
  gap: 12px;
}

.capture-card {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px 1fr;
  padding: 14px;
}

.capture-index {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
}

.capture-main {
  display: grid;
  gap: 10px;
}

.capture-main p {
  color: var(--muted);
  margin-bottom: 0;
}

.camera-stage,
.capture-preview,
.uploaded-preview,
.media-preview {
  background: #0b1220;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.camera-stage video,
.capture-preview img,
.capture-preview video,
.uploaded-preview img,
.uploaded-preview video,
.media-preview img,
.media-preview video {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.recording-badge {
  background: #d92d20;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  left: 12px;
  padding: 6px 10px;
  position: absolute;
  top: 12px;
}

.uploaded-preview {
  display: grid;
  gap: 8px;
}

.uploaded-preview span {
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  padding: 0 2px 8px;
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-input {
  background: var(--soft);
}

.report-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
}

.report-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.report-stat span,
.report-stat small {
  color: var(--muted);
}

.report-media-panel {
  margin-top: 18px;
}

.media-section + .media-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

.media-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.media-meta {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.media-meta span,
.media-meta p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.admin-table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

@media (max-width: 760px) {
  main {
    padding-top: 18px;
  }

  .hero,
  .checkout-shell,
  .scan-layout,
  .strip,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .checkout-shell {
    min-height: auto;
    place-items: stretch;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .scan-heading {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .capture-card {
    grid-template-columns: 1fr;
  }

  .capture-index {
    height: 38px;
    width: 42px;
  }
}
