:root {
  --ink: #172626;
  --muted: #687675;
  --line: #dfe7e4;
  --green: #178b68;
  --green-pale: #eaf7f2;
  --orange: #a95109;
  --orange-pale: #fff0d9;
  --red: #bc3030;
  --shadow: 0 18px 55px rgba(24, 54, 47, .09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.page-shell {
  width: min(100% - 32px, 900px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0 72px;
}

.brand { display: block; width: clamp(135px, 24vw, 220px); margin: 0 auto 40px; }
.brand img { display: block; width: 100%; height: auto; }

h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.3rem); line-height: 1.18; letter-spacing: -.035em; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow--success { color: var(--green); }

.check-form { width: min(100%, 570px); margin: clamp(55px, 12vh, 120px) auto 0; text-align: center; }
.check-form form { display: grid; gap: 13px; margin-top: 30px; }
.check-form input {
  width: 100%; padding: 17px 18px; border: 1px solid #cbd8d4; border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 1rem; letter-spacing: .035em; text-align: center;
  text-transform: uppercase; outline: none; transition: border-color .2s, box-shadow .2s;
}
.check-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 139, 104, .12); }
.check-form button {
  padding: 16px 22px; border: 0; border-radius: 10px; color: #fff; background: var(--green);
  font: inherit; font-size: .9rem; font-weight: 800; letter-spacing: .14em; cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 139, 104, .22); transition: transform .15s, background .15s;
}
.check-form button:hover { background: #117a5b; transform: translateY(-1px); }

.state-card { width: min(100%, 610px); margin: 64px auto 0; padding: 38px; border: 1px solid var(--line); border-radius: 18px; text-align: center; box-shadow: var(--shadow); }
.state-card p { margin: 13px auto 0; color: var(--muted); }
.state-symbol { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; color: var(--orange); background: var(--orange-pale); font-size: 2.7rem; font-weight: 800; }
.status-icon { display: block; width: clamp(82px, 18vw, 120px); height: clamp(82px, 18vw, 120px); margin: 0 auto 22px; object-fit: contain; }
.checked-code { color: var(--muted); font-size: .9rem; word-break: break-all; }
.checked-code strong { color: var(--ink); letter-spacing: .035em; }
.secondary-action { display: inline-block; margin-top: 24px; color: var(--green); font-weight: 700; text-decoration: none; }
.secondary-action:hover { text-decoration: underline; }

.success-heading { margin: 16px auto 30px; text-align: center; }
.success-heading .checked-code { margin: 10px 0 0; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.product-table { margin: 0; }
.product-table > div { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.4fr); border-bottom: 1px solid var(--line); }
.product-table > div:last-child { border-bottom: 0; }
.product-table dt, .product-table dd { margin: 0; padding: 16px 22px; }
.product-table dt { color: var(--muted); background: #f8faf9; font-size: .88rem; font-weight: 650; }
.product-table dd { overflow-wrap: anywhere; font-weight: 550; }
.product-table dd > :first-child { margin-top: 0; }
.product-table dd > :last-child { margin-bottom: 0; }
.scan-warning { display: table; margin-top: 8px; padding: 4px 9px; border-radius: 6px; color: var(--orange); background: var(--orange-pale); font-size: .8rem; font-weight: 750; }
.secondary-action--bottom { display: table; margin: 28px auto 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 900px); padding-top: 25px; }
  .brand { margin-bottom: 28px; }
  .check-form { margin-top: 54px; }
  .state-card { margin-top: 35px; padding: 30px 20px; }
  .product-table > div { display: block; }
  .product-table dt { padding: 12px 16px 2px; background: transparent; font-size: .76rem; text-transform: uppercase; letter-spacing: .055em; }
  .product-table dd { padding: 2px 16px 14px; }
  .product-table .rich-row dd { padding-top: 7px; }
}

