:root {
  --bg: #f5f7f8;
  --card: #ffffff;
  --ink: #17212b;
  --muted: #66717d;
  --line: #d9e1e7;
  --good: #16794c;
  --bad: #b42318;
  --warn: #9a6700;
  --soft-good: #e8f6ef;
  --soft-bad: #fdecec;
  --soft-warn: #fff5d6;
  --soft-green: #edf8ef;
  --soft-blue: #edf5ff;
  --soft-gold: #fff7df;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, transparent 18rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.home {
  background:
    linear-gradient(180deg, #ffffff 0, transparent 20rem),
    var(--bg);
}

.home-main {
  display: grid;
  width: min(880px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 20px;
  place-items: center;
}

.home-card {
  width: 100%;
  border: 1px solid #eadfcb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(28px, 7vw, 64px);
  box-shadow: 0 20px 60px rgba(31, 41, 51, 0.1);
  text-align: center;
}

.tom-logo-home {
  display: grid;
  width: min(104px, 34vw);
  height: min(98px, 34vw);
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: #0d243a;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.12);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fallback {
  color: var(--warn);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.home-card p {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  padding: 14px 18px;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.secondary-cta {
  border: 1px solid rgba(31, 41, 51, 0.18);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.secondary {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.product-hero {
  display: grid;
  justify-items: center;
  padding: 14px 0 16px;
  text-align: center;
}

.product-logo-card {
  display: grid;
  width: min(168px, 54vw);
  height: 106px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 12px;
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.06);
}

.product-logo {
  display: block;
  width: min(112px, 100%);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.product-logo-fallback {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: #6b4f1d;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.small {
  font-size: 0.72rem;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 5rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.lede {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  box-shadow: var(--shadow);
}

.status-icon {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-warn);
  font-size: 2.35rem;
}

.status-card.pass .status-icon {
  background: var(--soft-good);
}

.status-card.fail .status-icon {
  background: var(--soft-bad);
}

.status-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-card.pass h2 {
  color: var(--good);
}

.status-card.fail h2 {
  color: var(--bad);
}

.summary-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.summary-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.summary-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-strip strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two,
.grid.three {
  grid-template-columns: 1fr;
}

.card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
  box-shadow: var(--shadow);
}

.facts {
  margin: 18px 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.facts div:first-child {
  border-top: 0;
  padding-top: 0;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.esg-header {
  margin-top: 30px;
  text-align: center;
}

.esg-header h2 {
  font-size: 2.6rem;
  letter-spacing: 0;
}

.esg-header p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.esg-card {
  overflow: hidden;
}

.esg-card.environmental {
  background: linear-gradient(180deg, rgba(237, 248, 239, 0.92), rgba(255, 255, 255, 0.9));
}

.esg-card.social {
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.esg-card.governance {
  background: linear-gradient(180deg, rgba(255, 247, 223, 0.92), rgba(255, 255, 255, 0.9));
}

.esg-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.esg-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 1.55rem;
}

.claim-list,
.checks {
  display: grid;
  gap: 10px;
}

.claim-row,
.check {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: 13px 15px;
}

.claim-row strong,
.check strong {
  display: block;
  font-size: 0.95rem;
}

.claim-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.marker {
  font-weight: 900;
  white-space: nowrap;
}

.marker.good {
  color: var(--good);
}

.marker.bad {
  color: var(--bad);
}

.marker.neutral {
  color: var(--warn);
}

.supplier-evidence-layer {
  margin-top: 1rem;
}

.supplier-evidence-loading {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem;
  color: #66786f;
  font-size: 0.92rem;
}

.supplier-evidence-card {
  border: 1px solid rgba(42, 92, 66, 0.16);
  border-radius: 8px;
  background: rgba(247, 252, 248, 0.96);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(20, 50, 35, 0.06);
}

.supplier-evidence-card.muted {
  background: rgba(250, 250, 247, 0.96);
}

.supplier-evidence-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.supplier-evidence-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(42, 92, 66, 0.12);
}

.supplier-evidence-kicker {
  margin: 0 0 0.2rem;
  color: #4f7a5f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.supplier-evidence-header h4 {
  margin: 0;
  font-size: 1rem;
}

.supplier-evidence-header p {
  margin: 0.25rem 0 0;
  color: #52675c;
  font-size: 0.9rem;
  line-height: 1.4;
}

.supplier-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.supplier-evidence-grid > div {
  border: 1px solid rgba(42, 92, 66, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
}

.supplier-evidence-grid span {
  display: block;
  margin-bottom: 0.25rem;
  color: #66786f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.supplier-evidence-grid strong {
  color: #21382b;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.supplier-evidence-note {
  margin: 1rem 0 0;
  color: #52675c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.documents-card {
  display: grid;
  gap: 18px;
}

.documents-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.locked-box {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 18px;
}

.locked-box span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft-warn);
  font-size: 1.35rem;
}

.locked-box strong {
  display: block;
}

.locked-box p {
  margin-top: 6px;
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.meaning-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.meaning-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 18px;
}

.meaning-grid strong {
  display: block;
  margin-bottom: 8px;
}

.meaning-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.technical summary {
  cursor: pointer;
  font-weight: 800;
}

pre {
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  padding: 16px;
  color: #e5e7eb;
  font-size: 0.85rem;
  line-height: 1.5;
}

.proof-footer {
  margin-top: 28px;
  padding: 20px 4px 0;
}

.proof-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 16px;
  color: var(--muted);
}

.tom-footer-logo,
.tom-footer-logo-fallback {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(154, 103, 0, 0.18);
  border-radius: 8px;
  color: var(--warn);
  font-size: 0.85rem;
  font-weight: 900;
}

.tom-footer-logo {
  border: 0;
  object-fit: contain;
}

.proof-footer strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.proof-footer p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

@media (min-width: 760px) {
  .summary-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .meaning-grid {
    grid-template-columns: 1fr 1fr;
  }

  .documents-card {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
  }

  .section-heading {
    grid-template-columns: 1fr minmax(220px, 360px);
    align-items: end;
  }
}

@media (min-width: 980px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .supplier-evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 14px 42px;
  }

  .home-main {
    padding: 24px 14px;
  }

  .home-card {
    border-radius: 8px;
  }

  .tom-logo-home {
    width: 92px;
    height: 86px;
    margin-bottom: 18px;
  }

  .product-logo-card {
    width: min(152px, 58vw);
    height: 98px;
    margin-bottom: 14px;
    border-radius: 8px;
    padding: 8px 10px;
  }

  .product-logo-fallback {
    min-height: 38px;
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  .esg-header h2 {
    font-size: 2rem;
  }

  .status-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .claim-row,
  .check {
    grid-template-columns: 1fr;
  }

  .marker {
    white-space: normal;
  }

  .proof-footer-brand {
    align-items: flex-start;
  }

  .tom-footer-logo {
    width: 38px;
    height: 38px;
  }
}
