:root {
  color-scheme: light;
  --page: oklch(97% 0.008 255);
  --ink: oklch(19% 0.02 260);
  --heading: oklch(22% 0.03 265);
  --muted: oklch(42% 0.015 260);
  --link: oklch(45% 0.17 275);
  --link-hover: oklch(35% 0.17 275);
  --placeholder: oklch(55% 0.01 260);
  --navy: oklch(20% 0.045 268);
  --teal: oklch(72% 0.15 195);
  --accent: oklch(45% 0.17 275);
  --nav: oklch(32% 0.015 260);
  --paper: oklch(91% 0.035 280);
  --hero-eyebrow: oklch(45% 0.15 280);
  --hero-sub: oklch(38% 0.03 265);
  --input-bg: oklch(98% 0.008 280);
  --input-border: oklch(78% 0.03 280);
  --input-text: oklch(22% 0.02 265);
  --primary: oklch(35% 0.1 265);
  --form-hint: oklch(45% 0.02 265);
  --line: oklch(90% 0.006 260);
  --card: oklch(99% 0.003 260);
  --sample-inner: oklch(98% 0.004 260);
  --sample-text: oklch(35% 0.015 260);
  --score-muted: oklch(50% 0.01 260);
  --ok: oklch(60% 0.15 155);
  --missing: oklch(58% 0.19 25);
  --warn: oklch(68% 0.15 85);
  --footer: oklch(48% 0.015 260);
  --footer-brand: oklch(25% 0.015 260);
  --danger: oklch(58% 0.19 25);
  --icon-humans-bg: oklch(66% 0.15 155 / 0.15);
  --icon-humans-stroke: oklch(45% 0.13 155);
  --icon-trust-bg: oklch(76% 0.15 85 / 0.18);
  --icon-trust-stroke: oklch(52% 0.13 85);
  --icon-ai-bg: oklch(62% 0.19 25 / 0.15);
  --icon-ai-stroke: oklch(48% 0.16 25);
  --radius: 12px;
  --radius-control: 8px;
  --radius-nav-cta: 6px;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

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

h1,
h2,
h3 {
  color: var(--heading);
}

button,
input {
  font: inherit;
}

input::placeholder {
  color: var(--placeholder);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-control);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--heading);
}

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

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.brand-name span,
.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav);
}

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

.site-nav a {
  color: inherit;
}

.site-nav a:hover {
  color: var(--heading);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-nav-cta);
  border: 0;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.12);
}

.button,
button[type="submit"],
#rescan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-control);
  border: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}

.button:hover,
button[type="submit"]:hover,
#rescan-button:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
}

button[disabled],
#rescan-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.field input,
.checkout-form input {
  width: 100%;
  min-height: 44px;
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  font-size: 14px;
}

.field input:focus,
.checkout-form input:focus,
.collection-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field label,
.collections legend,
.checkout-form label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--footer);
  font-size: 13px;
  padding: 24px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.site-footer .brand-name {
  font-weight: 700;
  color: var(--footer-brand);
}

.site-footer .brand-name:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-credit {
  margin: 0;
  text-align: center;
}

.footer-credit img {
  vertical-align: middle;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--link);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

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

.error-banner {
  margin-top: 12px;
  color: var(--danger);
  background: oklch(96% 0.02 25);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  font-size: 14px;
}

.page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.static-page h1,
.empty-state h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.static-page p,
.empty-state p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#app {
  min-height: 100vh;
}

.score {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--heading);
}

.score span {
  font-size: 14px;
  font-weight: 400;
  color: var(--score-muted);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-header {
    padding: 16px 20px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .site-footer {
    padding: 16px 20px 32px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav-cta {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .site-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-links {
    justify-content: center;
  }
}
