:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --ink: #171716;
  --muted: #67625b;
  --soft: #eee8da;
  --line: #d8d0c0;
  --gold: #d8a632;
  --gold-dark: #8a6514;
  --charcoal: #211f1c;
  --blue: #275d78;
  --green: #2d735f;
  --red: #a4463e;
  --amber: #b9791f;
  --shadow: 0 24px 70px rgba(34, 28, 18, 0.14);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(216, 166, 50, 0.16), rgba(251, 250, 246, 0) 360px),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 178px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.language-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
}

.language-switch button.active {
  background: var(--charcoal);
  color: #fffaf0;
}

.verify-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: stretch;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.verify-panel,
.product-stage {
  border: 1px solid rgba(138, 101, 20, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.verify-panel {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1.08;
}

.lede {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.verify-form {
  display: grid;
  gap: 10px;
}

.verify-form label {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 700;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

#code-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-transform: uppercase;
}

#code-input:focus {
  border-color: var(--gold-dark);
  outline: 3px solid rgba(216, 166, 50, 0.22);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fffaf0;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--charcoal);
}

.ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.scanner {
  position: relative;
  overflow: hidden;
  height: 260px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0d;
}

.scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 42px;
  border: 2px solid rgba(255, 250, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

#stop-scan {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.result-panel {
  margin-top: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.result-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--blue);
}

.result-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-panel h2 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.result-panel p {
  color: var(--muted);
  line-height: 1.58;
}

.result-panel.is-success {
  border-color: rgba(45, 115, 95, 0.32);
  background: #f7fffb;
}

.result-panel.is-success .status-dot {
  background: var(--green);
}

.result-panel.is-warning {
  border-color: rgba(185, 121, 31, 0.36);
  background: #fff9ed;
}

.result-panel.is-warning .status-dot {
  background: var(--amber);
}

.result-panel.is-error {
  border-color: rgba(164, 70, 62, 0.34);
  background: #fff7f5;
}

.result-panel.is-error .status-dot {
  background: var(--red);
}

.result-details {
  display: grid;
  grid-template-columns: minmax(110px, 0.58fr) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 208, 192, 0.8);
}

.result-details dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.result-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.product-stage {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  background: #d4a328;
}

.product-copy {
  padding: 22px 24px 18px;
}

.product-name {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 700;
}

.product-copy p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: auto;
  background: var(--line);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--soft);
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.info-band > div {
  min-height: 154px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.info-band h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.info-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 0 0 30px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .verify-section {
    grid-template-columns: 1fr;
  }

  .verify-panel {
    min-height: 0;
  }

  .product-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-hero {
    height: 100%;
    aspect-ratio: auto;
  }

  .photo-strip {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .brand {
    justify-content: space-between;
  }

  .language-switch {
    width: 100%;
  }

  .verify-panel {
    padding: 26px 20px;
  }

  h1 {
    font-size: 1.72rem;
  }

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

  .primary-button {
    width: 100%;
  }

  .result-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-stage {
    display: block;
  }

  .product-hero {
    aspect-ratio: 4 / 3;
  }

  .info-band {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
