@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --canvas: #0a0a0a;
  --surface-soft: #121212;
  --surface-card: #1a1a1a;
  --surface-elevated: #242424;
  --yellow: #faff69;
  --yellow-active: #e6eb52;
  --yellow-disabled: #3a3a1f;
  --hairline: #2a2a2a;
  --hairline-strong: #3a3a3a;
  --text: #ffffff;
  --body: #cccccc;
  --strong: #e6e6e6;
  --muted: #888888;
  --soft: #5a5a5a;
  --on-yellow: #0a0a0a;
  --emerald: #22c55e;
  --rose: #ef4444;
  --blue: #3b82f6;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max: 1280px;
  --gutter: 32px;
  --nav-h: 64px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--yellow);
  color: var(--on-yellow);
}

[hidden] {
  display: none !important;
}

img,
video,
canvas {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--on-yellow);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--on-yellow);
}

.button-primary:hover {
  border-color: var(--yellow-active);
  background: var(--yellow-active);
  color: var(--on-yellow);
}

.button-primary:disabled {
  border-color: var(--yellow-disabled);
  background: var(--yellow-disabled);
  color: #b8b87a;
  cursor: not-allowed;
}

.button-secondary {
  border-color: var(--hairline-strong);
  background: var(--surface-elevated);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--soft);
  background: #2d2d2d;
  color: var(--text);
}

.button-quiet {
  border-color: transparent;
  color: var(--muted);
}

.button-quiet:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.button-ink {
  border-color: var(--on-yellow);
  background: var(--on-yellow);
  color: var(--yellow);
}

.button-ink:hover {
  border-color: #1f1f0a;
  background: #1f1f0a;
  color: var(--yellow);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.button-file {
  position: relative;
  overflow: hidden;
}

.button-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.button-primary:focus-visible,
.feature-card-yellow :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--on-yellow);
}

.text-button {
  display: inline;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--yellow);
  font: 500 14px/1.4 var(--font-sans);
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
}

/* Navigation */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 40px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 24px;
  height: 24px;
  fill: var(--yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.nav-links .nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: var(--radius-pill);
  background: var(--text);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 64px;
  padding-block: 96px;
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 24px;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-lede {
  max-width: 58ch;
  margin: 0 0 32px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

.lookup-form {
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.entry-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.entry-row input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: border-color 150ms ease;
}

.entry-row input::placeholder {
  color: var(--muted);
}

.entry-row input:hover {
  border-color: var(--soft);
}

.entry-row input:focus {
  border-color: var(--yellow);
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.entry-row input[aria-invalid="true"] {
  border-color: var(--rose);
}

.entry-row .button {
  min-height: 48px;
  padding-inline: 24px;
  font-size: 15px;
}

.entry-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.entry-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.entry-actions .button {
  min-height: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.stat {
  min-width: 110px;
}

.stat-value {
  display: block;
  color: var(--yellow);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Code card */

.code-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-soft);
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
}

.code-title {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.code-badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.code-body {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  background: var(--canvas);
  color: var(--strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  tab-size: 2;
}

.code-body code {
  color: inherit;
  font: inherit;
  white-space: pre;
}

.tok-comment {
  color: var(--muted);
}

.tok-key {
  color: var(--body);
}

.tok-str {
  color: var(--yellow);
}

.code-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.code-status {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--emerald);
}

/* Shared section furniture */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--emerald);
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

/* Workspace and states */

.workspace {
  padding-bottom: 96px;
}

.workspace-head {
  margin-bottom: 16px;
}

.state-panel {
  padding: 32px;
}

.state-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.state-copy {
  max-width: 62ch;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.state-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.state-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.state-error .state-kicker {
  color: var(--rose);
}

.progress {
  width: min(100%, 420px);
  height: 4px;
  margin: 20px 0 14px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
}

.progress span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  opacity: 0.45;
  animation: progress-pulse 1.4s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

/* Camera */

.camera {
  margin-bottom: 16px;
  padding: 24px;
}

.camera-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.camera-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.camera-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: #000;
}

.camera-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-style: solid;
  border-color: var(--yellow);
}

.camera-corner.top-left {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
}

.camera-corner.top-right {
  top: 16px;
  right: 16px;
  border-width: 2px 2px 0 0;
}

.camera-corner.bottom-left {
  bottom: 16px;
  left: 16px;
  border-width: 0 0 2px 2px;
}

.camera-corner.bottom-right {
  right: 16px;
  bottom: 16px;
  border-width: 0 2px 2px 0;
}

.scan-line {
  position: absolute;
  top: 20%;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--yellow);
  opacity: 0.9;
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    top: 20%;
  }
  50% {
    top: 80%;
  }
}

.camera-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.camera-status.is-error {
  color: var(--rose);
}

.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Product record */

.record {
  padding: 32px;
  animation: record-in 240ms ease-out;
}

@keyframes record-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.record-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.record-code {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.record-stamp {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.record-body {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  padding-block: 32px;
}

.record-media {
  align-self: start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.record-media > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: var(--radius-sm);
  background: #f4f4f2;
  object-fit: contain;
}

.record-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.record-thumbs button {
  width: 100%;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xs);
  background: #f4f4f2;
  cursor: pointer;
}

.record-thumbs button[aria-pressed="true"] {
  border-color: var(--yellow);
}

.record-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.record-info {
  min-width: 0;
}

.record-info h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.record-brand {
  margin: 0 0 4px;
  color: var(--strong);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.record-category {
  margin: 0 0 24px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.record-data {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.record-data dt {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.record-data dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--strong);
  font-size: 14px;
  line-height: 1.5;
}

.record-description {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.record-description h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.record-description p {
  max-width: 78ch;
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

.record-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
}

.record-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.record-strip > div > span:last-child {
  color: var(--strong);
  font-size: 14px;
  line-height: 1.5;
}

.record-strip a {
  color: var(--yellow);
}

.record-strip a:hover {
  color: var(--text);
}

/* Recent lookups */

.recent {
  padding-bottom: 96px;
}

.recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-item {
  display: block;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.recent-item:hover {
  border-color: var(--yellow);
  background: var(--surface-elevated);
}

.recent-code {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.recent-title {
  display: block;
  color: var(--strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* How it works */

.how {
  padding-bottom: 96px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about-links a:hover {
  color: var(--yellow);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.feature-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.feature-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
}

.feature-card-yellow {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--on-yellow);
}

.feature-card-yellow h3 {
  color: var(--on-yellow);
}

.feature-card-yellow .feature-index,
.feature-card-yellow p {
  color: #2a2a0a;
}

/* CTA band */

.cta-band {
  padding: 72px var(--gutter);
  background: var(--yellow);
  color: var(--on-yellow);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: min(100%, var(--max));
  margin-inline: auto;
}

.cta-inner h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--on-yellow);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cta-inner p {
  max-width: 62ch;
  margin: 0;
  color: #2a2a0a;
  font-size: 16px;
  line-height: 1.55;
}

.cta-inner .button {
  margin-top: 8px;
}

/* Footer */

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 42ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-col h2 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-base p {
  margin: 0;
}

/* Toast and noscript */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--yellow);
  color: var(--on-yellow);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transform: translateX(-50%);
}

.noscript {
  margin: 0;
  padding: 16px var(--gutter);
  background: var(--yellow);
  color: var(--on-yellow);
  font-size: 14px;
}

.noscript code {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Responsive */

@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
  }

  .nav-actions {
    gap: 12px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 72px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .code-card {
    position: static;
  }

  .how-grid,
  .recent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    color: var(--strong);
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .nav-actions {
    order: 3;
    margin-left: 0;
  }

  .nav-note {
    display: none;
  }

  .nav-actions .button {
    min-height: 36px;
    padding-inline: 12px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .workspace-head {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding-block: 56px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 10.5vw, 48px);
    letter-spacing: -0.03em;
  }

  .hero-lede {
    margin-bottom: 24px;
    font-size: 17px;
  }

  .lookup-form {
    padding: 20px;
  }

  .entry-row {
    flex-direction: column;
  }

  .entry-row input {
    flex: none;
    width: 100%;
    height: 48px;
  }

  .entry-row .button {
    width: 100%;
  }

  .entry-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .entry-actions {
    margin-top: 16px;
    padding-top: 16px;
  }

  .entry-actions .button {
    flex: 1 1 auto;
  }

  .hero-stats {
    gap: 20px 32px;
  }

  .stat {
    min-width: 96px;
  }

  .stat-value {
    font-size: 36px;
  }

  .code-body {
    padding: 16px;
    font-size: 12px;
  }

  .workspace,
  .recent,
  .how {
    padding-bottom: 64px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .state-panel,
  .record,
  .camera {
    padding: 20px;
  }

  .state-copy {
    font-size: 18px;
  }

  .record-head {
    flex-direction: column;
    gap: 12px;
  }

  .record-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 24px;
  }

  .record-media {
    max-width: 280px;
  }

  .record-data {
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  }

  .record-data dt,
  .record-data dd {
    padding-block: 12px;
  }

  .record-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recent-list,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }

  .cta-band {
    padding-block: 56px;
  }

  .cta-inner h2 {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 38px;
  }

  .nav-actions .button {
    display: none;
  }

  .record-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .progress span {
    width: 50%;
    opacity: 1;
    transform: none;
  }

  .scan-line {
    top: 50%;
  }
}
