:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #10231f;
  color: #f2f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #a8bdb5;
  --panel: #19332d;
  --accent: #19d3a2;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top right, #22463d 0, #10231f 42rem);
}

.page {
  width: min(100% - 28px, 720px);
  margin: 0 auto;
  padding: 34px 0 max(32px, env(safe-area-inset-bottom));
}

.header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: -0.04em;
}

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

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.panel {
  padding: 20px;
  border: 1px solid #315349;
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 16px 40px #07130f55;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #285144;
  color: var(--accent);
  font-weight: 800;
}

.step-copy strong {
  display: block;
  margin-top: 4px;
}

.step-copy p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.button.primary {
  background: var(--accent);
  color: #08251c;
}

.button.secondary {
  border: 1px solid #52796c;
  background: #24453b;
  color: #f2f7f4;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.capture-row {
  margin-top: 26px;
}

.status,
.error {
  margin: 16px 0 0;
  line-height: 1.5;
}

.error {
  color: #ff9c93;
  overflow-wrap: anywhere;
}

.result-panel {
  margin-top: 18px;
}

.result-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.timing,
.job {
  color: var(--muted);
  font-size: 0.82rem;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #09130f;
}

footer {
  margin-top: 20px;
  text-align: center;
}

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

@media (min-width: 700px) {
  .page {
    padding-top: 54px;
  }
}
