:root {
  --ink: #182b2d;
  --muted: #607071;
  --line: #d9e1dd;
  --paper: #fbfaf6;
  --card: #ffffff;
  --olive: #5e7d3a;
  --sage: #dfe8d8;
  --meat: #7d312c;
  --amber: #c6822b;
  --blue: #345c72;
  --shadow: 0 18px 50px rgba(24, 43, 45, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav a,
.primary,
.secondary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.primary,
.secondary {
  min-height: 48px;
  padding: 0 18px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.nav a:hover {
  background: #eef2ed;
  color: var(--ink);
}

main {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.home {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: 56px 0;
  scroll-margin-top: 96px;
}

.product-showcase {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.product-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.home-copy,
.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.home-copy > * {
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.home-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.value-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(94, 125, 58, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.primary {
  border: 1px solid rgba(18, 43, 45, 0.84);
  background: linear-gradient(135deg, var(--ink), #1f3c35 72%, #8b6a35 155%);
  color: white;
  box-shadow: 0 16px 30px rgba(18, 43, 45, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.secondary {
  border: 1px solid rgba(159, 115, 55, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 230, 0.94));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(18, 43, 45, 0.08);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.primary:hover {
  box-shadow: 0 20px 34px rgba(18, 43, 45, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.secondary:hover {
  border-color: rgba(159, 115, 55, 0.48);
  box-shadow: 0 14px 26px rgba(18, 43, 45, 0.11);
}

.qr-panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.qr-panel {
  padding: 22px;
}

.panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.qr-panel img,
.qr-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

.qr-panel p,
.qr-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.product {
  padding: 36px 0 72px;
  scroll-margin-top: 82px;
}

.product + .product {
  border-top: 1px solid var(--line);
}

.scan-page main {
  max-width: 1100px;
}

.scan-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  padding: 48px 0 28px;
}

.scan-hero > img {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scan-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.scan-content {
  padding-bottom: 68px;
}

.trust-legend.single {
  grid-template-columns: 1fr;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.product-hero > img {
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: clamp(24px, 4vw, 46px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.producer {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.trust {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.verified,
.documented {
  background: var(--sage);
  color: #31501e;
}

.declared {
  background: #f5ead8;
  color: #70430c;
}

.checked {
  background: #e2edf3;
  color: #1e4c66;
}

.summary {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.proof-row div {
  min-height: 76px;
  border: 1px solid rgba(94, 125, 58, 0.2);
  border-radius: 8px;
  background: #f7faf4;
  padding: 12px;
}

.proof-row strong,
.proof-row span {
  display: block;
}

.proof-row strong {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1;
}

.proof-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meat-proof div {
  border-color: rgba(125, 49, 44, 0.2);
  background: #fbf4f2;
}

.wine-proof div {
  border-color: rgba(198, 130, 43, 0.22);
  background: #fbf6ea;
}

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

.card {
  min-height: 230px;
  padding: 22px;
  box-shadow: none;
}

.card.wide {
  grid-column: span 2;
}

.qr-card {
  text-align: center;
}

h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.45;
}

.clean-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--olive);
}

.product-meat .clean-list li::before {
  background: var(--meat);
}

.product-wine .clean-list li::before {
  background: var(--amber);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.mini-map {
  position: relative;
  min-height: 112px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 56% 48%, rgba(94, 125, 58, 0.18) 0 12px, transparent 13px),
    linear-gradient(135deg, rgba(223, 232, 216, 0.95), rgba(250, 246, 235, 0.95));
}

.mini-map::before {
  content: "";
  position: absolute;
  inset: 18px 34px 18px 28px;
  border: 2px solid rgba(24, 43, 45, 0.22);
  border-radius: 48% 52% 46% 54%;
  transform: rotate(-18deg);
}

.mini-map::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 58px;
  height: 28px;
  border-radius: 50%;
  background: rgba(52, 92, 114, 0.12);
}

.meat-map {
  background:
    radial-gradient(circle at 52% 52%, rgba(125, 49, 44, 0.2) 0 12px, transparent 13px),
    linear-gradient(135deg, rgba(248, 238, 238, 0.98), rgba(250, 246, 235, 0.95));
}

.wine-map {
  background:
    radial-gradient(circle at 54% 45%, rgba(198, 130, 43, 0.2) 0 12px, transparent 13px),
    linear-gradient(135deg, rgba(249, 241, 224, 0.98), rgba(232, 240, 228, 0.95));
}

.map-dot {
  position: absolute;
  z-index: 1;
  left: 52%;
  top: 47%;
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(24, 43, 45, 0.28);
}

.olive-dot {
  background: var(--olive);
}

.meat-dot {
  background: var(--meat);
}

.wine-dot {
  background: var(--amber);
}

.map-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 7px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.facts div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.timeline li {
  position: relative;
  min-height: 126px;
  border-radius: 8px;
  background: #f4f7f2;
  padding: 18px 14px;
}

.product-meat .timeline li {
  background: #f8eeee;
}

.product-wine .timeline li {
  background: #fbf3e6;
}

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

.timeline strong {
  margin-bottom: 8px;
}

.timeline span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.doc-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-row span {
  font-weight: 700;
}

.doc-row em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.trust-explainer,
.producer-cta {
  min-height: 190px;
}

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

.trust-legend div {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
  padding: 14px;
}

.product-meat .trust-legend div {
  background: #fbf6f4;
}

.product-wine .trust-legend div {
  background: #fbf8ef;
}

.trust-legend strong,
.trust-legend span {
  display: block;
}

.trust-legend strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.trust-legend span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-trust-section {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: 46px 0 0;
}

.product-trust-heading > p:not(.eyebrow) {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.55;
}

.product-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.product-trust-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 22px;
}

.product-trust-grid h3 {
  margin: 10px 0 10px;
}

.product-trust-grid p,
.trust-ease-note {
  color: var(--muted);
  line-height: 1.5;
}

.trust-ease-note {
  max-width: 940px;
  margin: 18px auto 0;
  border: 1px solid rgba(91, 112, 67, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 18px;
  font-size: 16px;
}

.producer-cta {
  background: var(--ink);
  color: white;
}

.producer-cta p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.producer-cta a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.footer {
  display: flex;
  width: calc(100% - 32px);
  max-width: 1180px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 52px);
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

.footer span {
  display: block;
}

@media (max-width: 920px) {
  .home,
  .scan-hero,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .home {
    min-height: auto;
  }

  .product-showcase {
    min-height: 360px;
  }

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

@media (max-width: 640px) {
  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }

  .nav {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .nav a {
    min-height: 36px;
    min-width: 76px;
    padding: 0 11px;
    background: #eef2ed;
    font-size: 13px;
    white-space: nowrap;
  }

  .brand {
    flex: 0 0 auto;
    max-width: 142px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  h1 {
    max-width: 360px;
    margin-bottom: 16px;
    font-size: 38px;
    line-height: 1;
  }

  main,
  .home,
  .home-copy,
  .product-showcase,
  .qr-panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .home {
    display: grid;
    padding: 34px 0 30px;
  }

  .product-showcase,
  .product-showcase img {
    min-height: 270px;
  }

  .home-copy > p:not(.eyebrow) {
    max-width: 360px;
    font-size: 16px;
    line-height: 1.48;
  }

  .value-strip span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .home-actions a {
    width: 100%;
    min-height: 46px;
  }

  .qr-panel {
    margin-top: 24px;
    padding: 18px;
  }

  .qr-panel img,
  .qr-card img {
    max-width: 174px;
  }

  .product-hero > img {
    min-height: 260px;
    max-height: 330px;
  }

  .scan-hero {
    padding: 32px 0 22px;
  }

  .scan-hero > img {
    min-height: 280px;
    max-height: 360px;
  }

  .hero-copy {
    padding: 22px;
  }

  h2 {
    font-size: 32px;
    line-height: 1.04;
  }

  .summary {
    font-size: 16px;
    line-height: 1.48;
  }

  .proof-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .proof-row div {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .proof-row strong {
    margin-bottom: 0;
    font-size: 18px;
  }

  .card {
    min-height: auto;
    padding: 18px;
  }

  .content-grid,
  .timeline,
  .trust-legend,
  .product-trust-grid {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-right: 0;
    padding-left: 0;
  }

  .footer span {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 390px) {
  main,
  .home,
  .home-copy,
  .product-showcase,
  .qr-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    min-width: 0;
  }

  h1 {
    font-size: 35px;
  }

  .scan-hero h1 {
    font-size: 34px;
  }

  .value-strip span {
    flex-basis: 100%;
  }
}
