/* ============================================================
   COA index page (coa-for-products.html)
   Standalone certificate-of-analysis directory. Dark hero mirrors
   the CBD page; light category sections list each product's lot
   links to its batch PDF. Tokens only — page-unique washes use rgba.
   ============================================================ */

/* ---- Hero (dark, mirrors .cbd-hero) ---- */
.coa-hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--plum) 130%);
  color: var(--on-dark);
  padding-top: calc(clamp(40px, 6vw, 72px) + 96px);
}
.coa-hero__blob-1 {
  top: -120px; left: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle at 40% 40%, rgba(100, 183, 198, 0.26), rgba(100, 183, 198, 0) 70%);
  filter: blur(30px);
  animation-duration: 12s;
}
.coa-hero__blob-2 {
  right: -160px; bottom: -180px; width: 560px; height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(199, 138, 178, 0.22), rgba(199, 138, 178, 0) 70%);
  filter: blur(34px);
  animation-duration: 14s;
}
.coa-hero__copy { position: relative; max-width: 44rem; }
.coa-hero .breadcrumb { margin-bottom: 22px; }
/* .h-display defaults to dark --ink; lighten it for the dark hero to match the
   paragraph text (the gold "Analysis." em keeps its color via em-gold). */
.coa-hero .h-display { color: var(--on-dark-muted); }
.coa-hero .lead { color: var(--on-dark-soft); }
.coa-hero__sub {
  margin: 18px 0 0 0;
  max-width: 40rem;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--on-dark-muted);
}
.coa-hero__sub strong { color: var(--on-dark); }
.coa-hero__chips {
  margin: 26px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.coa-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 238, 244, 0.08);
  border: 1px solid rgba(220, 238, 244, 0.16);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--on-dark-soft);
}
.coa-hero__chips li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---- "How to use" note ---- */
.coa-how { background: var(--page-bg); }
.coa-how__note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 62rem;
  margin: 0 auto;
  background: var(--wash-white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-md);
  box-shadow: var(--shadow-card-soft);
  padding: clamp(22px, 3vw, 30px);
}
.coa-how__note .prose { margin: 0; }
.coa-how__ico {
  flex: none;
  width: 30px; height: 30px;
  margin-top: 2px;
  color: var(--coral);
}

/* ---- Category sections ---- */
.coa-cat--oil {
  background: linear-gradient(165deg, var(--tint-blue) 0%, var(--tint-aqua) 55%, var(--page-bg) 100%);
}
.coa-cat--gummies {
  background: linear-gradient(165deg, var(--tint-pink) 0%, var(--tint-pink-soft) 55%, var(--cream) 100%);
}
.coa-cat--lotions {
  background: linear-gradient(165deg, var(--tint-green) 0%, var(--tint-mint) 55%, var(--page-bg) 100%);
}
.coa-cat__blob {
  top: -80px; right: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%);
  filter: blur(20px);
  animation-duration: 15s;
}
.coa-cat__head {
  position: relative;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.coa-cat__head .h-section { margin: 0; }

/* ---- Product cards + lot links ---- */
.coa-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}
.coa-card {
  background: var(--cream-bright);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-card-soft);
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.coa-card .h-card { margin: 0; }
.coa-card__desc {
  margin: 8px 0 0 0;
  font-size: var(--fs-small);
  color: var(--body);
}
.coa-lots {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.coa-lot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-2);
  background: var(--wash-white);
  border: 1px solid var(--hairline-mid);
  border-radius: var(--r-pill);
  padding: 9px 16px 9px 13px;
  transition: color var(--hover-fast), border-color var(--hover-fast), background var(--hover-fast);
}
.coa-lot__ico {
  flex: none;
  width: 17px; height: 17px;
  color: var(--accent);
  transition: color var(--hover-fast);
}
.coa-lot:hover,
.coa-lot:focus-visible {
  color: var(--coral);
  border-color: var(--coral);
  background: var(--cream-bright);
}
.coa-lot:hover .coa-lot__ico,
.coa-lot:focus-visible .coa-lot__ico { color: var(--coral); }

/* ---- Closing CTA ---- */
.coa-cta__blob-2 {
  left: -140px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(100, 183, 198, 0.22), rgba(100, 183, 198, 0) 70%);
  filter: blur(30px);
  animation-duration: 13s;
}
.coa-cta__fine {
  position: relative;
  margin: 26px auto 0 auto;
  max-width: 52ch;
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--on-dark-faint);
}

@media (max-width: 560px) {
  .coa-grid { grid-template-columns: 1fr; }
  .coa-how__note { flex-direction: column; gap: 12px; }
}
