/* Patch with Jo: page sections (nav, about, studies, reviews, footer) + in-carousel shop card.
   Carousel layout stays in style.css; FAQ stays in faq.css. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
/* Land each section exactly under the sticky header (height measured in sections.js) */
#shop, #about, #studies, #reviews, #faq {
  scroll-margin-top: calc(var(--hdr-h, 64px) - 1px);
}

/* ---------- Shared section helpers ---------- */
.sec {
  --sec-max: 960px;
  position: relative;
  max-width: var(--sec-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 28px);
  font-family: var(--font);
  color: var(--ink);
}
.sec--wide { --sec-max: 1100px; }
.sec__eyebrow {
  margin: 0 0 6px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
  text-align: center;
}
.sec__title {
  margin: 0; text-align: center;
  font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.01em;
}
.sec__lede {
  margin: 10px auto 0; max-width: 560px; text-align: center;
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft);
}

/* Full-width colour band. Each section sets its own --sec-tint (pack colour),
   muted then mixed lightly into #f3f2ef. Carousel / html --tint stays live. */
.sec--band {
  --sec-tint: var(--tint);
  /* Soft muted pastels: grey the pack colour a touch, then a light mix into warm grey */
  --sec-tint-muted: color-mix(in srgb, var(--sec-tint) 55%, #8a8a8a);
  --sec-band: color-mix(in srgb, var(--sec-tint-muted) 16%, #f3f2ef);
  background-color: var(--sec-band);
  box-shadow: 0 0 0 100vmax var(--sec-band);
  clip-path: inset(0 -100vmax);
  transition: background-color .9s var(--ease), box-shadow .9s var(--ease);
  margin-top: 0;
  margin-bottom: 0;
}
/* Adjacent bands / FAQ: no page-background strip between them */
.sec--band + .sec--band,
.sec--band + .faq,
.faq + .site-footer {
  margin-top: 0;
}

/* Fixed section tints (from products.js pack colours) — easy to retune */
.about   { --sec-tint: #f58706; } /* Joy */
.studies { --sec-tint: #197570; } /* Kick it */
.reviews { --sec-tint: #65487c; } /* Liberty */
.faq     { --sec-tint: #e9a10a; } /* Ignite */

/* ---------- Sticky header + nav ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: nowrap;
  padding: 10px clamp(14px, 3vw, 36px);
  background: color-mix(in srgb, var(--tint) 14%, rgba(246, 244, 241, .88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 27, 34, .06);
  transition: background-color .9s var(--ease);
}
.top__spacer { display: none !important; }
.logo { flex: none; }
.brand { display: none; } /* removed from header; title stays in <title> */

.nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.nav__list {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin: 0; padding: 0; list-style: none;
}
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 6px 14px; border-radius: 99px;
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__link:hover { background: rgba(255, 255, 255, .65); }
.nav__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__link[aria-current="true"] {
  background: color-mix(in srgb, var(--tint) 34%, #fff);
  box-shadow: 0 1px 2px rgba(30, 20, 40, .06);
  transition: background-color .9s var(--ease), color .2s;
}

.nav__toggle {
  display: none; flex: none;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 1px 2px rgba(30, 20, 40, .08);
  color: var(--ink); cursor: pointer;
  place-items: center;
}
.nav__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav__toggle-bars {
  display: block; width: 18px; height: 12px; position: relative;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after,
.nav__toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease);
}
.nav__toggle-bars span { top: 5px; }
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { top: 10px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { top: 5px; transform: rotate(-45deg); }

/* Jo profile — opens the photo lightbox */
.profile {
  flex: none;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; text-decoration: none;
  background: color-mix(in srgb, var(--tint) 45%, #fff);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 12px rgba(30, 20, 40, .12);
  transition: transform .2s var(--ease), background-color .9s var(--ease);
}
.profile:hover { transform: scale(1.05); }
.profile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.profile__img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.profile__fallback {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.profile.is-missing .profile__img { display: none; }
.profile:not(.is-missing) .profile__fallback { display: none; }

/* Jo photo lightbox
   Image + caption must both fit in short viewports (e.g. 1024x650).
   Do not use max-height: 100% on the img — it is ignored when the
   figure height is auto, so the photo fills the dialog and clips the caption. */
.lb {
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}
.lb::backdrop {
  background: rgba(40, 36, 42, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb[open] {
  display: grid;
  place-items: center;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lb__title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.lb__figure {
  --lb-pad: 32px;
  --lb-caption: 7rem;
  margin: 0;
  width: fit-content;
  max-width: min(1024px, calc(100vw - var(--lb-pad)));
  max-height: calc(100vh - var(--lb-pad));
  max-height: calc(100dvh - var(--lb-pad));
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}
.lb__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1024px, calc(100vw - var(--lb-pad)));
  max-height: calc(100vh - var(--lb-pad) - var(--lb-caption));
  max-height: calc(100dvh - var(--lb-pad) - var(--lb-caption));
  object-fit: contain;
  vertical-align: bottom;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(30, 20, 40, .32);
}
.lb__caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 22px 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 450;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  text-align: center;
}
.lb__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 1;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(246, 244, 241, .94);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(30, 20, 40, .16);
  cursor: pointer;
  display: grid; place-items: center;
}
.lb__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lb__close:hover { background: #fff; }
.lb__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body.is-lb-open { overflow: hidden; }

/* Header tools: language + WhatsApp + Jo (right cluster) */
.hd-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.hd-wa {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
  transition: background-color .2s;
}
.hd-wa svg { width: 26px; height: 26px; display: block; }
.hd-wa:hover, .hd-wa:focus-visible { background: #fff; }
.hd-wa:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Hover/focus tooltip */
.hd-wa::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 8px); right: 0;
  padding: 6px 10px; border-radius: 8px;
  background: #1d1b22; color: #fff;
  font-size: .75rem; font-weight: 500; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(30, 20, 40, .22);
  opacity: 0; transform: translateY(-2px); pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 450;
}
.hd-wa:hover::after, .hd-wa:focus-visible::after {
  opacity: 1; transform: none;
}

.lang-switch { position: relative; flex: none; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 4px 8px 4px 6px;
  border: 0; border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: background-color .15s;
}
.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  background: transparent;
}
.lang-switch__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-switch__btn[aria-expanded="true"] { background: transparent; }
.lang-switch__flag {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(29, 27, 34, .12);
}
.lang-switch__caret { flex: none; transition: transform .2s var(--ease); }
.lang-switch__btn[aria-expanded="true"] .lang-switch__caret { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 460;
  margin: 0; padding: 6px 0; list-style: none;
  width: max-content;
  min-width: 100%; /* at least as wide as the trigger */
  max-width: min(16rem, calc(100vw - 16px));
  background: #fff; color: var(--ink);
  border: 1px solid rgba(29, 27, 34, .1);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(30, 20, 40, .16);
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; min-height: 44px;
  font-size: .92rem; cursor: pointer;
  white-space: nowrap;
}
.lang-switch__menu li:hover, .lang-switch__menu li:focus {
  background: color-mix(in srgb, var(--tint) 18%, #fff);
  outline: none;
}
.lang-switch__menu li[aria-selected="true"] { font-weight: 600; }
.lang-switch__menu img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px rgba(29, 27, 34, .1);
}
.lang-switch__menu .lang-switch__name {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-align: left;
}
.lang-switch__code { letter-spacing: .04em; }

@media (max-width: 820px) {
  .hd-tools { gap: 4px; }
  .lang-switch__code { display: none; } /* flag-only on small screens */
  .lang-switch__btn { padding: 4px; min-width: 40px; justify-content: center; gap: 4px; }
  .hd-wa { width: 38px; height: 38px; }
  .hd-wa svg { width: 24px; height: 24px; }
  .profile { width: 38px; height: 38px; }
  .top { gap: 8px; padding-left: 12px; padding-right: 10px; }
}

/* Mobile nav panel */
@media (max-width: 820px) {
  .nav__toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: block;
    padding: 8px 14px 14px;
    background: color-mix(in srgb, var(--tint) 18%, rgba(246, 244, 241, .96));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(29, 27, 34, .08);
    box-shadow: 0 12px 28px rgba(30, 20, 40, .1);
    transform-origin: top center;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav:not(.is-open) {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-6px);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list {
    flex-direction: column; align-items: stretch; gap: 4px;
  }
  .nav__link {
    justify-content: flex-start;
    min-height: 44px; padding: 10px 16px;
    background: rgba(255, 255, 255, .55);
  }
  .brand { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 700px) {
  /* Override the old carousel-era header mobile grid from style.css */
  .top {
    display: flex !important;
    grid-template-columns: unset;
    padding: 10px 12px;
  }
  .brand { justify-self: unset; font-size: 1.02rem; }
}

/* ---------- Shop card (lives inside carousel .pc__info) ---------- */
.shop__card {
  width: 100%;
  margin: 0;
  padding: 12px 14px 10px;
  border: 1px solid rgba(29, 27, 34, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 22px rgba(30, 20, 40, .08), 0 1px 2px rgba(30, 20, 40, .04);
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.shop__save {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  contain: inline-size;
  color: var(--accent, var(--ink));
  transition: color .9s var(--ease);
  line-height: 1.15;
}
.shop__prices {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.shop__regular {
  margin: 0; font-size: .95rem; font-weight: 600; color: #3f3c48;
  text-decoration-thickness: 2px;
}
.shop__our {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem); font-weight: 700;
  letter-spacing: -.02em; color: var(--price, var(--accent, var(--ink)));
  transition: color .9s var(--ease);
}
.shop__pack-line {
  margin: 0 0 8px;
  font-size: .78rem; color: var(--ink-soft);
}
.shop__note {
  display: flex; align-items: flex-start; justify-content: center; gap: 7px;
  margin: 8px auto 0; max-width: 280px;
  font-size: .72rem; line-height: 1.4; color: var(--ink-soft); text-align: left;
}
.shop__info-wrap { position: relative; flex: none; display: inline-flex; }
.shop__info {
  width: 16px; height: 16px; margin-top: 1px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(29, 27, 34, .08); color: var(--ink);
  font: inherit; font-size: .65rem; font-weight: 700; cursor: pointer; line-height: 1;
  flex: none;
}
.shop__info:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.shop__info[aria-expanded="true"] { background: var(--ink); color: #fff; }
.shop__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  width: min(240px, 70vw); padding: 10px 12px; border-radius: 12px;
  background: #1d1b22; color: #fff;
  font-size: .78rem; font-weight: 400; line-height: 1.45; text-align: left;
  box-shadow: 0 10px 24px rgba(30, 20, 40, .25);
  transform: translateX(-50%);
  z-index: 5;
}
.shop__tip::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  margin-left: -6px; border: 6px solid transparent; border-top-color: #1d1b22;
}
.shop__tip[hidden] { display: none; }
.shop__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 42px; padding: 9px 14px; border-radius: 99px;
  background: var(--cta-bg, var(--ink)); color: var(--cta-fg, #fff);
  font: inherit; font-size: .92rem; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(30, 20, 40, .16);
  transition: transform .2s var(--ease), background-color .45s var(--ease), color .45s var(--ease), box-shadow .2s;
}
.shop__cta:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--cta-bg, var(--ink)) 86%, #000);
  box-shadow: 0 12px 22px rgba(30, 20, 40, .2), 0 0 0 3px color-mix(in srgb, var(--cta-bg, var(--tint)) 42%, transparent);
}
.shop__cta:active {
  transform: translateY(0);
  background: color-mix(in srgb, var(--cta-bg, var(--ink)) 76%, #000);
}
.shop__cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shop__cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- About + video ---------- */
.about__intro {
  margin: 18px auto 0; max-width: 640px; text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.55; font-weight: 450;
}
.about__row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  max-width: 860px;
  margin: 22px auto 0;
}
.about__copy { flex: 1 1 16rem; min-width: 0; }
.about__row .about__intro { margin: 0; max-width: none; text-align: left; }
.about__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 22px 0 0; padding: 0; list-style: none;
}
.about__row .about__chips { justify-content: flex-start; margin-top: 18px; }
.about__photo {
  flex: 0 0 auto;
  width: min(320px, 100%);
  margin: 0;
}
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(30, 20, 40, .14), 0 2px 4px rgba(30, 20, 40, .06);
}
@media (max-width: 699px) {
  .about__row { flex-direction: column; }
  .about__row .about__intro { text-align: center; }
  .about__row .about__chips { justify-content: center; }
  .about__copy { order: 0; }
  .about__photo { order: 1; width: min(360px, 86vw); }
}
.about__chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 7px 14px 7px 10px;
  border: 1px solid rgba(29, 27, 34, .1); border-radius: 99px;
  background: rgba(255, 255, 255, .7);
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.about__chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, var(--tint));
  transition: background-color .6s var(--ease);
}

.yt {
  position: relative; margin: 32px auto 0; max-width: 720px;
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: #1d1b22;
  box-shadow: 0 16px 40px rgba(30, 20, 40, .18), 0 2px 4px rgba(30, 20, 40, .08);
}
.yt__facade {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  border: 0; border-radius: 20px; overflow: hidden;
  padding: 0; cursor: pointer;
  background: #1d1b22 center / cover no-repeat;
  -webkit-tap-highlight-color: transparent;
}
.yt__facade:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.yt__play {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .25s var(--ease), background .2s;
}
.yt__facade:hover .yt__play { transform: scale(1.06); background: #fff; }
.yt__play svg { width: 28px; height: 28px; margin-left: 3px; fill: #1d1b22; }
.yt__label {
  position: absolute; left: 14px; bottom: 12px;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: .78rem; font-weight: 500; letter-spacing: .02em;
}
.yt__frame {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; border: 0;
}

/* ---------- Studies ---------- */
.studies__empty {
  margin: 28px auto 0; max-width: 520px;
  padding: 28px 22px; text-align: center;
  border: 1.5px dashed rgba(29, 27, 34, .18); border-radius: 20px;
  background: rgba(255, 255, 255, .45);
}
.studies__empty strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.studies__empty p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.studies__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0; padding: 0; list-style: none;
}
@media (max-width: 900px) {
  .studies__grid { grid-template-columns: 1fr; }
}
.studies__card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(29, 27, 34, .08); border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 4px 16px rgba(30, 20, 40, .05);
}
.studies__card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.studies__meta { margin: 0; font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; }
.studies__card p { margin: 0; flex: 1; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.studies__source {
  margin: 0; font-size: .78rem; line-height: 1.4; color: #8a8793;
}
.studies__link {
  align-self: flex-start; margin-top: 4px;
  /* live accent, softened with the Studies band tint so it doesn't clash */
  --studies-link: color-mix(in srgb, var(--accent, var(--tint)) 55%, var(--sec-tint));
  font-size: .92rem; font-weight: 500; color: var(--studies-link);
  text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--studies-link) 40%, transparent);
  transition: color .9s var(--ease), border-bottom-color .9s var(--ease);
}
.studies__link:hover { border-bottom-color: currentColor; }
.studies__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.studies__all {
  margin: 22px 0 0; text-align: center;
}
.studies__all a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px;
  border-radius: 99px; border: 1px solid rgba(29, 27, 34, .12);
  background: rgba(255, 255, 255, .65);
  font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.studies__all a:hover { background: #fff; }
.studies__all a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.studies__all[hidden] { display: none; }

/* ---------- Reviews ---------- */
.sec--wide.reviews { --sec-max: 1180px; }
.reviews__track {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.reviews__card {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 240px; max-width: 320px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(29, 27, 34, .08); border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 4px 16px rgba(30, 20, 40, .05);
  min-height: 100%;
}
.reviews__text { font-size: .98rem; }

@media (min-width: 1200px) {
  .sec--wide.reviews { --sec-max: min(1320px, calc(100vw - 48px)); }
  .reviews__track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .reviews__card {
    flex: unset; max-width: none;
    padding: 16px 14px 14px; gap: 10px;
  }
  .reviews__avatar { width: 40px; height: 40px; font-size: .78rem; }
  .reviews__name { font-size: .95rem; }
  .reviews__text { font-size: .94rem; line-height: 1.5; } /* ~15px */
}
.reviews__head { display: flex; align-items: center; gap: 12px; }
.reviews__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--sec-tint) 28%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, var(--tint)) 35%, color-mix(in srgb, var(--sec-tint) 40%, #fff));
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
  transition: background-color .9s var(--ease), box-shadow .9s var(--ease);
}
.reviews__who { min-width: 0; }
.reviews__name { margin: 0; font-size: 1rem; font-weight: 600; }
.reviews__product {
  margin: 2px 0 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: color-mix(in srgb, var(--accent, var(--ink-soft)) 50%, var(--sec-tint));
  transition: color .6s var(--ease);
}
.reviews__text {
  margin: 0; flex: 1;
  font-size: .98rem; line-height: 1.55; color: var(--ink-soft);
}
.reviews__text::before { content: "“"; }
.reviews__text::after { content: "”"; }
.reviews__src {
  margin: 0; font-size: .75rem; color: #8a8793;
}
.reviews__check {
  margin: 0; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, #e8b84a 28%, #fff);
  font-size: .78rem; line-height: 1.4; color: #5a4510;
}

@media (max-width: 700px) {
  .reviews__track {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 16px 12px;
    margin-left: -16px; margin-right: -16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .reviews__card {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: start;
    min-height: unset;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  /* charcoal base; live tint only a whisper so it never goes blue-heavy */
  --foot-band: color-mix(in srgb, var(--tint) 14%, #1d1b22);
  margin-top: 0;
  padding: 44px clamp(16px, 4vw, 36px) 36px;
  background-color: var(--foot-band);
  color: #f4f2ef;
  transition: background-color .9s var(--ease);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.foot__inner { max-width: 1100px; margin: 0 auto; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px 40px;
  align-items: start;
}
.foot__brand { text-align: left; }
.foot__logo {
  display: inline-flex; align-items: center; margin-bottom: 12px;
}
.foot__logo img {
  display: block; height: 36px; width: auto; max-width: 180px;
  /* lighten dark logos on dark footer if needed */
  filter: brightness(0) invert(1); opacity: .95;
}
.foot__logo-fallback { display: none; }
.foot__logo.is-missing img { display: none; }
.foot__logo.is-missing .foot__logo-fallback {
  display: inline-block; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.foot__about {
  margin: 0; max-width: 340px;
  font-size: .92rem; line-height: 1.5; color: rgba(244, 242, 239, .78);
}
.foot__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px;
  justify-items: start;
}
.foot__col { text-align: left; }
.foot__col-title {
  margin: 0 0 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244, 242, 239, .55);
}
.foot__col ul { margin: 0; padding: 0; list-style: none; }
.foot__col li + li { margin-top: 8px; }
.foot__col a { font-size: .95rem; font-weight: 500; color: rgba(244, 242, 239, .92); }
.foot__follow a {
  display: inline-flex; align-items: center; gap: 8px;
}
.foot__follow svg {
  flex: none; width: 16px; height: 16px; fill: currentColor;
}

.foot__rule {
  border: 0; border-top: 1px solid rgba(255, 255, 255, .14);
  margin: 28px 0 18px;
}
.foot__health, .foot__affiliate {
  margin: 0 0 10px; text-align: left;
  font-size: .75rem; line-height: 1.5; color: rgba(244, 242, 239, .55);
}
.foot__affiliate { margin-bottom: 14px; }
.foot__copy {
  margin: 0; text-align: left;
  font-size: .78rem; color: rgba(244, 242, 239, .55);
}

@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr; gap: 28px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  .foot__cols { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top, .sec--band, .site-footer, .shop__our, .shop__save, .about__chip-dot,
  .reviews__avatar, .reviews__product, .profile, .nav, .nav__toggle-bars::before,
  .nav__toggle-bars::after, .yt__play, .shop__cta, .studies__link,
  .nav__link[aria-current="true"] {
    transition: none !important;
  }
}

/* faint divider between sections, matching the header rule */
#about, #studies, #reviews, #faq { position: relative; }
#about::before, #studies::before, #reviews::before, #faq::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px;
  transform: translateX(-50%); background: rgba(29, 27, 34, .06);
  z-index: 2; pointer-events: none;
}
.site-footer { border-top: 1px solid rgba(29, 27, 34, .06); }
#faq::before { background: rgba(29, 27, 34, .1); }



/* Emphasise the "25% off" fragment in the shop headline */
.shop__save .shop__off {
  font-weight: 800;
  font-size: 1.22em;
  letter-spacing: .02em;
  color: var(--off, var(--accent, var(--ink)));
  transition: color .9s var(--ease);
}

/* ---------- Mobile floating shop bar ---------- */
/* Desktop is unchanged. On small screens the existing .shop__card is
   restyled as a compact add-to-cart bar, fixed to the bottom. */
@media (max-width: 768px) {
  body.has-shop-dock {
    padding-bottom: var(--shop-dock-h, 100px);
    transition: padding-bottom .28s var(--ease);
  }
  body.has-shop-dock.shop-dock-away {
    padding-bottom: 0;
  }

  .shop__card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 350;
    width: 100%;
    margin: 0;
    padding: 14px max(14px, env(safe-area-inset-right, 0px)) 2px max(14px, env(safe-area-inset-left, 0px));
    border: 0;
    border-top: 1px solid rgba(29, 27, 34, .1);
    border-radius: 0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -8px 24px rgba(30, 20, 40, .12);
    text-align: left;
    display: grid;
    grid-template-columns: minmax(9.4rem, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 6px;
    row-gap: 2px;
    align-items: center;
    transform: translateY(0);
    transition: transform .28s var(--ease), visibility .28s;
  }
  .shop__card.is-away {
    transform: translateY(calc(100% + 8px));
    visibility: hidden;
    pointer-events: none;
  }
  .shop__card .shop__save {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: .78rem;
    letter-spacing: .03em;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    contain: none;
    text-wrap: balance;
    max-height: 3.2em;
  }
  .shop__card .shop__save .shop__off {
    font-weight: 800;
    font-size: 1.26em;
    letter-spacing: .02em;
  }
  .shop__card .shop__prices {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: nowrap;
    margin: 0;
    gap: 6px;
    white-space: nowrap;
  }
  .shop__card .shop__regular,
  .shop__card .shop__our { white-space: nowrap; }
  .shop__card .shop__regular { font-size: .97rem; font-weight: 600; }
  .shop__card .shop__our {
    font-size: clamp(1.4rem, 6.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
  }
  .shop__card .shop__pack-line { display: none; }
  .shop__card .shop__cta {
    grid-column: 2;
    grid-row: 1 / 3;
    width: auto;
    max-width: calc(100vw - 2 * 14px - 9.4rem - 6px);
    min-height: 52px;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }
  .shop__card .shop__cta svg { width: 15px; height: 15px; flex: none; }
  .shop__card .shop__note {
    grid-column: 1 / -1;
    grid-row: 3;
    display: block;
    justify-content: unset;
    margin: 8px 0 0;
    max-width: none;
    padding: 0;
    font-size: .7rem;
    line-height: 1.35;
    color: var(--ink-soft);
    text-align: left;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .shop__card .shop__info-wrap { display: none; }
  .shop__card .shop__note > span:not(.shop__info-wrap) { display: inline; }
  .pc {
    padding-bottom: calc(24px + var(--shop-dock-h, 100px));
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body.has-shop-dock,
  .shop__card {
    transition: none !important;
  }
}
