/* ==========================================================
   CENTRO TEST KITS HOMEPAGE
   Paste into the module's CSS box in Design Manager.
   Every class starts with cmx- so nothing can leak into the
   rest of the site. Brand tokens live in the first block.
   Breakpoints: 1024px, 900px, 560px.
   ========================================================== */

.cmx-page {
  --cmx-black: #000000;
  --cmx-forest-dark: #304027;   /* secondary text + focus ring */
  --cmx-teal: #22A8A1;
  --cmx-light: #fff;            /* accent on dark surfaces only */
  --cmx-sage: #E1E5DF;
  --cmx-off: #fff;
  --cmx-near: #fff;
  --cmx-white: #FFFFFF;
  --cmx-head: 'Poppins', 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cmx-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  font-family: var(--cmx-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cmx-forest-dark);
  background: var(--cmx-near);
  padding: 16px 0 0;
  -webkit-font-smoothing: antialiased;
}

.cmx-page *,
.cmx-page *::before,
.cmx-page *::after { box-sizing: border-box; }

/* :where() keeps the reset at zero specificity so the spacing set on each class below always wins */
.cmx-page :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
.cmx-page :where(ul, ol) { list-style: none; }

/* Kill theme bullets on lists inside this module only.
   Everything starts with .cmx-page, so no other part of the site is touched.
   Do NOT add a bare "li { ... }" rule: it would hit every list on the page. */
.cmx-page ul,
.cmx-page ol,
.cmx-page li { list-style: none !important; }
.cmx-page li::marker { content: "" !important; }
.cmx-page li::before { content: none !important; }
.cmx-page svg { display: block; flex-shrink: 0; }

.cmx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Visually hidden text for screen readers */
.cmx-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Focus (never suppressed) ---------- */
.cmx-page a:focus-visible {
  outline: 2px solid var(--cmx-forest-dark);
  outline-offset: 2px;
}
.cmx-hero a:focus-visible { outline-color: var(--cmx-light); }

/* ---------- Buttons ---------- */
.cmx-page .cmx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cmx-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cmx-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cmx-page .cmx-btn--inverse { background: var(--cmx-white); color: var(--cmx-black); }
.cmx-page .cmx-btn--inverse:hover { background: var(--cmx-light); color: var(--cmx-black); }
.cmx-page .cmx-btn--outline-light { border-color: rgba(255,255,255,.6); color: var(--cmx-white); }
.cmx-page .cmx-btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--cmx-white); color: var(--cmx-white); }
.cmx-page .cmx-btn--ghost { border-color: var(--cmx-black); color: var(--cmx-black); background: transparent; }
.cmx-page .cmx-btn--ghost:hover { background: var(--cmx-black); color: var(--cmx-white); }

/* ==========================================================
   1. HERO
   ========================================================== */
.cmx-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 72px 56px;
  border-radius: 28px;
  color: var(--cmx-white);
  background:
    radial-gradient(60% 80% at 88% 12%, rgba(34,168,161,.38), transparent 62%),
    radial-gradient(50% 60% at 6% 104%, rgba(77,179,14,.20), transparent 62%),
    linear-gradient(135deg, #1b2616 0%, #304027 100%);
}

.cmx-hero__copy { position: relative; z-index: 1; }

.cmx-page .cmx-hero__title {
  font-family: var(--cmx-head);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cmx-white);
  max-width: 14em;
  text-wrap: balance;
}

.cmx-hero__sub {
  margin-top: 20px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}

.cmx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cmx-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
.cmx-hero__trust li { display: flex; align-items: center; gap: 6px; }
.cmx-hero__trust svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--cmx-light);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* Visual: rings + three proof-point chips */
.cmx-hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
.cmx-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmx-rings circle { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.2; }
.cmx-rings .cmx-dot { stroke: none; }
.cmx-rings .cmx-dot--a { fill: var(--cmx-light); }
.cmx-rings .cmx-dot--b { fill: var(--cmx-teal); }
.cmx-rings .cmx-dot--c { fill: var(--cmx-light); }
.cmx-rings .cmx-dot--d { fill: var(--cmx-white); }

.cmx-chip {
  position: absolute;
  max-width: 230px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cmx-chip strong {
  display: block;
  font-family: var(--cmx-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cmx-white);
}
.cmx-chip span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.86);
}
.cmx-chip--a { top: 4%;  left: 0; }
.cmx-chip--b { top: 40%; right: 0; }
.cmx-chip--c { bottom: 4%; left: 6%; }

/* ==========================================================
   SHARED SECTION PIECES
   ========================================================== */
.cmx-section { padding: 80px 0 0; scroll-margin-top: 24px; }
.cmx-section--tight { padding-top: 64px; }
.cmx-section--last { padding-bottom: 80px; }

.cmx-head { margin-bottom: 40px; }

.cmx-page .cmx-h2 {
  font-family: var(--cmx-head);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  color: var(--cmx-black);
}
.cmx-page .cmx-h3 {
  font-family: var(--cmx-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--cmx-black);
}
.cmx-lede {
  margin-top: 12px;
  max-width: 40em;
  font-size: 18px;
  line-height: 1.6;
}

/* ==========================================================
   2. TEST CARDS
   ========================================================== */
.cmx-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cmx-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--cmx-white);
  border: 1px solid var(--cmx-sage);
  border-radius: 16px;
}

.cmx-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cmx-sage);
  color: var(--cmx-forest-dark);
}
.cmx-card__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.cmx-card__cat {
  margin-top: 24px;
  font-family: var(--cmx-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cmx-forest-dark);
}
.cmx-page .cmx-card__title {
  margin-top: 4px;
  font-family: var(--cmx-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cmx-black);
}
.cmx-card__desc { margin-top: 12px; }

.cmx-card__best {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cmx-off);
}
.cmx-card__best dt {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cmx-forest-dark);
}
.cmx-card__best dd {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cmx-black);
}

.cmx-card__facts {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.45;
}
.cmx-card__facts li { display: flex; gap: 10px; align-items: flex-start; }
.cmx-card__facts svg {
  width: 18px; height: 18px; margin-top: 2px;
  fill: none; stroke: var(--cmx-forest-dark);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.cmx-card__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}
.cmx-card__provider { font-size: 12px; line-height: 1.4; }

/* Line up the rows (title, description, best-for, facts, button) across all three cards.
   Older browsers without subgrid just skip this and keep the flex layout above. */
@media (min-width: 901px) {
  @supports (grid-template-rows: subgrid) {
    .cmx-card {
      display: grid;
      grid-row: span 7;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .cmx-card__foot { align-self: end; }
  }
}

/* ==========================================================
   3. HOW IT WORKS
   ========================================================== */
.cmx-how {
  padding: 56px 64px 64px;
  border-radius: 28px;
  background: var(--cmx-off);
}

.cmx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 40px;
}
.cmx-step { position: relative; }
.cmx-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 56px;
  right: -36px;
  height: 1px;
  background: rgba(48,64,39,.28);
}
.cmx-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9999px;
  background: var(--cmx-black);
  color: var(--cmx-white);
  font-family: var(--cmx-head);
  font-size: 16px;
  font-weight: 600;
}
.cmx-page .cmx-step__title {
  margin-top: 20px;
  font-family: var(--cmx-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cmx-black);
}
.cmx-step p { margin-top: 8px; max-width: 26em; }

/* ==========================================================
   4. PARTNERS + LEGAL
   ========================================================== */
.cmx-partners {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: 32px 40px;
  background: var(--cmx-white);
  border: 1px solid var(--cmx-sage);
  border-radius: 16px;
}
.cmx-partners__copy p { margin-top: 4px; }
.cmx-partners__names {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-family: var(--cmx-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--cmx-forest-dark);
}

.cmx-legal {
  max-width: 62em;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .cmx-hero { padding: 56px 40px; gap: 32px; min-height: 0; }
  .cmx-chip { max-width: 200px; padding: 14px 16px; }
  .cmx-chip strong { font-size: 19px; }
  .cmx-card { padding: 28px 24px; }
  .cmx-how { padding: 48px 40px 52px; }
  .cmx-steps { gap: 32px; }
  .cmx-step:not(:last-child)::after { right: -22px; }
}

@media (max-width: 900px) {
  .cmx-hero { grid-template-columns: 1fr; padding: 48px 32px; }
  .cmx-hero__visual { display: none; }
  .cmx-cards { grid-template-columns: 1fr; gap: 20px; }
  .cmx-steps { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .cmx-step:not(:last-child)::after { display: none; }
  .cmx-partners { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cmx-wrap { padding: 0 16px; }
  .cmx-hero { padding: 40px 24px; border-radius: 20px; }
  .cmx-hero__sub { font-size: 16px; }
  .cmx-hero__actions .cmx-btn { flex: 1 1 100%; justify-content: center; }
  .cmx-section { padding-top: 56px; }
  .cmx-section--tight { padding-top: 48px; }
  .cmx-section--last { padding-bottom: 56px; }
  .cmx-page .cmx-h2 { font-size: 28px; }
  .cmx-lede { font-size: 16px; }
  .cmx-card__foot { align-items: stretch; }
  .cmx-card__foot .cmx-btn { justify-content: center; }
  .cmx-how { padding: 36px 24px 40px; border-radius: 20px; }
  .cmx-partners { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmx-page .cmx-btn { transition: none; }
}