/* Ki — Ingredients ("What's inside Ki")
   Two numbered cards joined by a "+", exclusion pills, an optional container
   photograph and a footer of claim/detail pairs.

   Every colour comes from the --ki-* tokens rather than the reference mock's
   raw hexes, so the section inherits any future palette change along with the
   rest of the site. The cool band matches ki_micro_problem / ki_testimonials. */

.ki-scope .ki-ingredients {
  position: relative;
  background: var(--ki-blue-tint);
  padding: 96px 0;
  overflow: hidden;
}

/* Optional full-bleed background image + readability wash. */
.ki-scope .ki-ingredients .ki-ing-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.ki-scope .ki-ingredients .ki-ing-overlay {
  position: absolute; inset: 0;
  background: var(--ki-blue-tint);
  opacity: 0.86;
}
.ki-scope .ki-ingredients.has-bg .wrap {
  position: relative;   /* lift the content above bg + wash */
  z-index: 1;
}

/* ── Head ───────────────────────────────────────────────────── */
.ki-scope .ki-ingredients .ki-ing-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.ki-scope .ki-ingredients .ki-ing-eyebrow {
  display: block;
  font-family: var(--ki-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ki-blue-deep);
  margin-bottom: 20px;
}
.ki-scope .ki-ingredients .ki-ing-headline {
  font-family: var(--ki-serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ki-ink);
  margin: 0;
}
.ki-scope .ki-ingredients .ki-ing-headline em {
  font-style: italic;
  color: var(--ki-blue-deep);
}

/* ── Cards ──────────────────────────────────────────────────── */
/* Two equal cards with the joiner glyph sitting in its own column, so the
   "+" is vertically centred against the cards without being absolutely
   positioned over them. */
.ki-scope .ki-ingredients .ki-ing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.ki-scope .ki-ingredients .ki-ing-grid.has-joiner {
  grid-template-columns: 1fr auto 1fr;
}
.ki-scope .ki-ingredients .ki-ing-joiner {
  align-self: center;
  font-family: var(--ki-serif);
  font-size: 32px;
  line-height: 1;
  color: var(--ki-blue);
  text-align: center;
  user-select: none;
}

.ki-scope .ki-ingredients .ki-ing-card {
  background: var(--ki-paper);
  border-radius: 14px;
  padding: 48px 32px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* A soft lift rather than a hard border — the card sits on a tinted band,
     so a 1px rule would read as a box drawn around it. */
  box-shadow: 0 1px 2px rgba(22, 22, 26, 0.04), 0 10px 30px rgba(22, 22, 26, 0.06);
}
.ki-scope .ki-ingredients .ki-ing-card-img {
  width: 100%;
  height: 180px;
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ki-cream);
}
.ki-scope .ki-ingredients .ki-ing-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  /* object-fit / object-position come from the per-item inline style. */
}
.ki-scope .ki-ingredients .ki-ing-num {
  font-family: var(--ki-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: var(--ki-blue);
  margin-bottom: 26px;
}
.ki-scope .ki-ingredients .ki-ing-card.has-img .ki-ing-num {
  font-size: 44px;
  margin-bottom: 18px;
}
.ki-scope .ki-ingredients .ki-ing-region {
  font-family: var(--ki-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ki-blue-deep);
  margin-bottom: 16px;
}
.ki-scope .ki-ingredients .ki-ing-name {
  font-family: var(--ki-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ki-ink);
  margin: 0;
}
.ki-scope .ki-ingredients .ki-ing-name em {
  font-style: italic;
  color: var(--ki-blue-deep);
}

/* ── Exclusion pills ────────────────────────────────────────── */
/* Same outlined-pill language as the product hero's "IN STOCK" chip. */
.ki-scope .ki-ingredients .ki-ing-pills {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.ki-scope .ki-ingredients .ki-ing-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1.5px solid var(--ki-blue);
  border-radius: 999px;
  background: transparent;
  font-family: var(--ki-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ki-blue-deep);
}
.ki-scope .ki-ingredients .ki-ing-pill-mark {
  color: var(--ki-blue);
  font-size: 15px;
  line-height: 1;
}

.ki-scope .ki-ingredients .ki-ing-closing {
  margin: 26px auto 0;
  max-width: 620px;
  text-align: center;
  font-family: var(--ki-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ki-ink-soft);
}
.ki-scope .ki-ingredients .ki-ing-closing strong {
  font-weight: 600;
  color: var(--ki-ink);
}

/* ── Container image (optional) ─────────────────────────────── */
.ki-scope .ki-ingredients .ki-ing-container {
  margin: 56px auto 0;
  max-width: 420px;
  text-align: center;
}
.ki-scope .ki-ingredients .ki-ing-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.ki-scope .ki-ingredients .ki-ing-container figcaption {
  margin-top: 14px;
  font-family: var(--ki-sans);
  font-size: 14px;
  color: var(--ki-ink-mute);
}

/* ── Footer notes ───────────────────────────────────────────── */
.ki-scope .ki-ingredients .ki-ing-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--ki-rule-cool);
}
.ki-scope .ki-ingredients .ki-ing-note-col {
  text-align: center;
  padding: 0 32px;
}
/* The rule between columns belongs to the second one, so a single note (or an
   odd last row) never trails a divider into empty space. */
.ki-scope .ki-ingredients .ki-ing-note-col + .ki-ing-note-col {
  border-left: 1px solid var(--ki-rule-cool);
}
.ki-scope .ki-ingredients .ki-ing-note-title {
  font-family: var(--ki-serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ki-ink);
  margin: 0 0 12px;
}
.ki-scope .ki-ingredients .ki-ing-note-body {
  font-family: var(--ki-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ki-ink-mute);
  margin: 0;
  max-width: 38ch;
  margin-inline: auto;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ki-scope .ki-ingredients { padding: 72px 0; }
  .ki-scope .ki-ingredients .ki-ing-head { margin-bottom: 40px; }

  /* Stack the cards and let the joiner sit between them as its own row. */
  .ki-scope .ki-ingredients .ki-ing-grid,
  .ki-scope .ki-ingredients .ki-ing-grid.has-joiner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ki-scope .ki-ingredients .ki-ing-card { padding: 38px 26px 34px; }
  .ki-scope .ki-ingredients .ki-ing-num  { font-size: 54px; margin-bottom: 20px; }
  .ki-scope .ki-ingredients .ki-ing-name { font-size: 24px; }

  .ki-scope .ki-ingredients .ki-ing-pills { gap: 12px; }
  .ki-scope .ki-ingredients .ki-ing-pill  { padding: 11px 22px; font-size: 12px; }

  /* Vertical rules become horizontal ones once the notes are in one column. */
  .ki-scope .ki-ingredients .ki-ing-notes {
    margin-top: 48px;
    padding-top: 36px;
  }
  .ki-scope .ki-ingredients .ki-ing-note-col {
    padding: 0 0 28px;
  }
  .ki-scope .ki-ingredients .ki-ing-note-col + .ki-ing-note-col {
    border-left: 0;
    border-top: 1px solid var(--ki-rule-cool);
    padding-top: 28px;
  }
  .ki-scope .ki-ingredients .ki-ing-note-title { font-size: 23px; }
}

@media (max-width: 480px) {
  .ki-scope .ki-ingredients .ki-ing-eyebrow { font-size: 12px; letter-spacing: 0.18em; }
  .ki-scope .ki-ingredients .ki-ing-pills   { flex-direction: column; align-items: center; }
  .ki-scope .ki-ingredients .ki-ing-pill    { width: 100%; max-width: 280px; justify-content: center; }
}
