/*
  Ragazzi PDP sections from the Figma "DeGusti web" frame (1920 wide):
  review cards, survey, timeline, guarantee banner.

  Desktop (>=1024) sizes are the Figma px values multiplied by --u, one design
  pixel: the page is drawn at 1920 and scales down proportionally with the
  viewport, the same way the rest of the Ragazzi sections do. Below 1024 the
  sections stack with fixed mobile sizes.
*/
.rg-pdp {
  --u: 1px;
  --rg-ink: #171310;
  --rg-pad: 20px;
  color: var(--rg-ink);
  font-family: var(--font-body);
}
@media (min-width: 1024px) {
  .rg-pdp { --u: calc(min(100vw, 1920px) / 1920); --rg-pad: calc(100 * var(--u)); }
}

.rg-pdp__display {
  font-family: 'Bethany Elingston', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

.rg-stars { display: inline-flex; color: #171310; }
.rg-stars svg { width: 16px; height: 16px; display: block; }

/* ---------- Review cards ---------- */
.rg-rcards {
  background: #f4f4f2;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
}
.rg-rcards__head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 var(--rg-pad); text-align: center;
}
.rg-rcards__rating {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: #1a1a1a;
}
.rg-rcards__title { font-size: 36px; line-height: 1.1; color: #1a1a1a; }
.rg-rcards__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--rg-pad);
  scroll-padding: 0 var(--rg-pad);
}
.rg-rcards__track::-webkit-scrollbar { display: none; }
.rg-rcard {
  flex: 0 0 78vw; max-width: 340px;
  margin: 0; background: #fff; padding: 8px;
  display: flex; flex-direction: column;
  scroll-snap-align: start;
}
.rg-rcard__text {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 12px;
}
.rg-rcard__stars { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1.36; }
.rg-rcard__quote {
  margin: 0; padding: 0; border: 0; font-style: normal; quotes: none;
  font-family: 'Bethany Elingston', Georgia, serif;
  font-size: 24px; line-height: 1.2; letter-spacing: -0.02em;
}
.rg-rcard__name {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  font-size: 13px; font-weight: 500; line-height: 1.36;
}
.rg-rcard__name::before { content: ''; width: 24px; border-top: 1px solid currentColor; }
.rg-rcard__photo { aspect-ratio: 384 / 219; overflow: hidden; }
.rg-rcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 1024px) {
  .rg-rcards { padding: calc(100 * var(--u)) 0; gap: calc(60 * var(--u)); }
  .rg-rcards__head { gap: calc(16 * var(--u)); }
  .rg-rcards__rating { font-size: calc(12 * var(--u)); gap: calc(8 * var(--u)); letter-spacing: 0.8px; }
  .rg-rcards__rating .rg-stars svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
  .rg-rcards__title { font-size: calc(55 * var(--u)); letter-spacing: -0.6px; }
  .rg-rcards__track {
    gap: calc(25 * var(--u));
    /* The row is wider than the screen; a small script centres it on load so
       the outer cards are cut at both edges, as in the frame. */
    padding: 0;
    scroll-padding: 0;
    scroll-snap-type: x proximity;
    cursor: grab;
  }
  .rg-rcard { flex-basis: calc(400 * var(--u)); max-width: none; height: calc(550 * var(--u)); padding: calc(8 * var(--u)); scroll-snap-align: center; }
  .rg-rcard__text { padding: calc(16 * var(--u)); gap: calc(24 * var(--u)); }
  .rg-rcard__stars { font-size: calc(14 * var(--u)); gap: calc(4 * var(--u)); }
  .rg-rcard__stars .rg-stars svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
  .rg-rcard__quote { font-size: calc(32 * var(--u)); letter-spacing: -0.6px; }
  .rg-rcard__name { font-size: calc(14 * var(--u)); gap: calc(12 * var(--u)); }
  .rg-rcard__name::before { width: calc(24 * var(--u)); }
  .rg-rcard__photo { aspect-ratio: auto; height: calc(219 * var(--u)); flex: none; }
}

/* ---------- Survey ---------- */
.rg-survey { background: #fff; padding: 48px var(--rg-pad); }
.rg-survey__inner { display: flex; flex-direction: column; gap: 32px; }
.rg-survey__head { display: flex; flex-direction: column; gap: 16px; }
.rg-survey__title { font-size: 34px; line-height: 1.1; letter-spacing: 0; color: #000; }
.rg-survey__intro { margin: 0; font-size: 16px; line-height: 1.2; color: #000; }
.rg-survey__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rg-survey__stat { display: flex; align-items: center; gap: 20px; padding: 12px 0; color: #000; }
.rg-survey__value { font-size: 56px; font-weight: 500; line-height: 1.1; flex: none; min-width: 2.4em; }
.rg-survey__label { font-size: 16px; line-height: 1.2; text-transform: lowercase; }
.rg-survey__footnote { margin: 0; font-size: 13px; line-height: 1.3; color: rgba(23, 19, 16, 0.7); }

@media (min-width: 1024px) {
  .rg-survey { padding: calc(100 * var(--u)); }
  .rg-survey__inner { gap: calc(60 * var(--u)); }
  .rg-survey__head { gap: calc(25 * var(--u)); }
  .rg-survey__title { font-size: calc(55 * var(--u)); }
  .rg-survey__intro { font-size: calc(20 * var(--u)); max-width: calc(1057 * var(--u)); }
  .rg-survey__stats { flex-direction: row; gap: calc(25 * var(--u)); }
  .rg-survey__stat { gap: calc(25 * var(--u)); padding: calc(25 * var(--u)) 0; flex: 0 1 auto; }
  .rg-survey__stat:nth-child(1) { width: calc(498 * var(--u)); }
  .rg-survey__stat:nth-child(2) { width: calc(601 * var(--u)); }
  .rg-survey__stat:nth-child(3) { width: calc(572 * var(--u)); }
  /* Figma 2975:710: the numbers are Onest Regular at 1920 (Medium on the
     phone), and each label has its own drawn width. */
  .rg-survey__value { font-size: calc(80 * var(--u)); font-weight: 400; min-width: 0; }
  .rg-survey__label { font-size: calc(20 * var(--u)); flex: 0 1 auto; min-width: 0; }
  .rg-survey__stat:nth-child(1) .rg-survey__label { width: calc(300 * var(--u)); }
  .rg-survey__stat:nth-child(2) .rg-survey__label { width: calc(403 * var(--u)); }
  .rg-survey__stat:nth-child(3) .rg-survey__label { width: calc(377 * var(--u)); }
  .rg-survey__footnote { font-size: calc(16 * var(--u)); margin-top: calc(-30 * var(--u)); }
}

/* ---------- Timeline ---------- */
.rg-timeline { background: #fff; padding: 48px var(--rg-pad); }
.rg-timeline__inner { display: flex; flex-direction: column; gap: 32px; }
.rg-timeline__main { display: flex; flex-direction: column; gap: 24px; }
.rg-timeline__title { font-size: 34px; line-height: 1.15; }
.rg-timeline__intro { margin: 0; font-size: 16px; line-height: 1.22; }
.rg-timeline__intro--desktop { display: none; }
.rg-timeline__steps { list-style: none; margin: 0; padding: 0; }
/* --rail is the vertical line, --gap the space from its centre to the text.
   The rail is centred on the end of the dashed tick (as in Figma), so the
   marker column gives up half the rail width and the body pads the rest. */
.rg-timeline__step {
  --chip-w: 96px; --tick-w: 20px; --chip-h: 30px; --rail: 1.5px; --gap: 18px;
  display: grid; grid-template-columns: calc(var(--chip-w) + var(--tick-w) - var(--rail) / 2) 1fr; align-items: start;
}
.rg-timeline__marker { display: flex; align-items: center; height: var(--chip-h); }
.rg-timeline__chip {
  width: var(--chip-w); height: var(--chip-h); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #828282; color: #fff; font-size: 14px; line-height: 1.26; white-space: nowrap;
}
/* Dashed tick drawn as a gradient so the dash / gap lengths match the frame
   (a CSS dashed border cannot set them). --dash-o shifts the pattern so it
   starts with a short dash at the chip, as drawn. The dot sits on the rail. */
.rg-timeline__tick {
  --tick-t: 1px; --dash: 3px; --dash-p: 6px; --dash-o: 0px; --dot: 6px;
  flex: 1; position: relative; height: var(--tick-t);
  background: repeating-linear-gradient(to right, #828282 0 var(--dash), transparent var(--dash) var(--dash-p));
  background-position: var(--dash-o) 0;
}
.rg-timeline__tick::after {
  content: ''; position: absolute; border-radius: 50%; background: #828282;
  width: var(--dot); height: var(--dot);
  top: calc((var(--tick-t) - var(--dot)) / 2); right: calc(var(--dot) / -2 - var(--rail) / 2);
}
.rg-timeline__body {
  border-left: var(--rail) solid #828282;
  padding: calc(var(--chip-h) / 2) 0 24px calc(var(--gap) - var(--rail) / 2);
  display: flex; flex-direction: column; gap: 8px;
}
/* The rail starts at the first chip's centre, as in the frame. */
.rg-timeline__step:first-child .rg-timeline__body { margin-top: calc(var(--chip-h) / 2); padding-top: 0; }
.rg-timeline__step-title { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.rg-timeline__bullets { margin: 0; padding-left: 18px; list-style: disc outside; font-size: 15px; line-height: 1.3; }
.rg-timeline__footnote { margin: 0; font-size: 13px; line-height: 1.32; color: rgba(23, 19, 16, 0.8); }
.rg-timeline__photo { position: relative; aspect-ratio: 812 / 917; overflow: hidden; }
.rg-timeline__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-timeline__photo::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.1); }

@media (max-width: 1023px) {
  .rg-timeline__inner { flex-direction: column; }
  .rg-timeline__main { display: contents; }
  .rg-timeline__title { order: 1; }
  .rg-timeline__intro--mobile { order: 2; }
  .rg-timeline__aside { order: 3; }
  .rg-timeline__steps { order: 4; }
  .rg-timeline__footnote { order: 5; }
}

@media (min-width: 1024px) {
  .rg-timeline { padding: calc(100 * var(--u)); }
  /* Figma 2975:724: the row is 1717 wide inside the 100 padding. */
  .rg-timeline__inner { flex-direction: row; gap: calc(92.312 * var(--u)); align-items: stretch; width: calc(1717 * var(--u)); }
  .rg-timeline__main { width: calc(812 * var(--u)); flex: none; gap: calc(64.618 * var(--u)); justify-content: flex-start; }
  .rg-timeline__title { font-size: calc(55 * var(--u)); letter-spacing: 0; }
  .rg-timeline__intro--mobile { display: none; }
  .rg-timeline__intro--desktop { display: block; font-size: calc(20 * var(--u)); letter-spacing: -0.1154px; }
  .rg-timeline__step {
    --chip-w: calc(172.484 * var(--u)); --tick-w: calc(84.915 * var(--u)); --chip-h: calc(42.458 * var(--u));
    --rail: calc(2.654 * var(--u)); --gap: calc(40 * var(--u));
  }
  .rg-timeline__tick {
    --tick-t: calc(1.327 * var(--u)); --dash: calc(9.82 * var(--u)); --dash-p: calc(16.983 * var(--u));
    --dash-o: calc(-4.9 * var(--u)); --dot: calc(7.076 * var(--u));
  }
  .rg-timeline__chip { font-size: calc(24 * var(--u)); }
  .rg-timeline__body { padding: calc(var(--chip-h) / 2) 0 calc(31.843 * var(--u)) calc(var(--gap) - var(--rail) / 2); gap: calc(15.922 * var(--u)); }
  .rg-timeline__step:first-child .rg-timeline__body { padding-top: 0; }
  .rg-timeline__step-title { font-size: calc(42 * var(--u)); letter-spacing: -0.7961px; }
  .rg-timeline__bullets { font-size: calc(20 * var(--u)); line-height: 1.26; padding-left: calc(30 * var(--u)); }
  .rg-timeline__footnote { font-size: calc(18.462 * var(--u)); margin-top: auto; }
  .rg-timeline__aside { flex: 1; display: flex; flex-direction: column; gap: calc(64.618 * var(--u)); }
  .rg-timeline__photo { aspect-ratio: auto; width: calc(812.344 * var(--u)); height: calc(917.476 * var(--u)); }
}

/* ---------- Guarantee banner ---------- */
.rg-guarantee { position: relative; background: #2b2b2b; color: #fff; overflow: hidden; }
.rg-guarantee__bg { display: block; aspect-ratio: 4 / 5; }
.rg-guarantee__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-guarantee__inner { display: flex; flex-direction: column; gap: 28px; padding: 32px var(--rg-pad) 40px; }
.rg-guarantee__lead { display: flex; flex-direction: column; gap: 16px; }
.rg-guarantee__title { font-size: 36px; line-height: 1.05; color: #fff; }
.rg-guarantee__badge { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; }
.rg-guarantee__badge svg { width: 18px; height: 18px; flex: none; color: #fff; }
.rg-guarantee__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rg-guarantee__card {
  display: flex; gap: 20px; padding: 24px 20px;
  background: rgba(60, 60, 60, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rg-guarantee__icon { width: 26px; height: 26px; flex: none; color: #fff; }
.rg-guarantee__icon svg { width: 100%; height: 100%; display: block; }
.rg-guarantee__card-body { flex: 1; }
.rg-guarantee__card-title {
  margin: 0 0 12px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 18px; font-weight: 400; line-height: 1.25;
}
.rg-guarantee__card-text { margin: 0; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, 0.92); }

@media (min-width: 1024px) {
  .rg-guarantee { min-height: calc(840 * var(--u)); display: flex; align-items: center; }
  .rg-guarantee__bg { position: absolute; inset: 0; aspect-ratio: auto; }
  .rg-guarantee__bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); }
  .rg-guarantee__inner {
    position: relative; z-index: 1; width: 100%;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: calc(100 * var(--u));
  }
  .rg-guarantee__lead { gap: calc(28 * var(--u)); }
  .rg-guarantee__title { font-size: calc(55 * var(--u)); line-height: 1.1; letter-spacing: -0.6px; }
  .rg-guarantee__badge { font-size: calc(20 * var(--u)); gap: calc(12 * var(--u)); }
  .rg-guarantee__badge svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
  .rg-guarantee__cards { width: calc(637 * var(--u)); gap: calc(25 * var(--u)); margin-right: calc(-1 * var(--u)); }
  .rg-guarantee__card { gap: calc(40 * var(--u)); padding: calc(39 * var(--u)) calc(40 * var(--u)) calc(34 * var(--u)) calc(42 * var(--u)); }
  .rg-guarantee__icon { width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
  .rg-guarantee__card-title { font-size: calc(22.6 * var(--u)); line-height: 1.25; margin-bottom: calc(21 * var(--u)); padding-bottom: calc(15 * var(--u)); }
  .rg-guarantee__card-text { font-size: calc(20 * var(--u)); line-height: 1.25; }
}

/* ---------- Logo strip ---------- */
.rg-logos { background: #fff; padding: 32px 0; }
.rg-logos__row {
  list-style: none; margin: 0; padding: 0 var(--rg-pad);
  display: flex; align-items: center; gap: 28px;
  overflow-x: auto; scrollbar-width: none;
}
.rg-logos__row::-webkit-scrollbar { display: none; }
.rg-logos__item { flex: none; height: 64px; display: flex; align-items: center; }
.rg-logos__item img { height: 100%; width: auto; display: block; }
.rg-logos__item--wide { height: 48px; }
@media (min-width: 1024px) {
  .rg-logos { padding: calc(100 * var(--u)) 0; }
  /* Figma 2975:775: one bottom-aligned row, 40.677 apart, each logo at its
     own drawn height (block order: PBA, cruelty, paraben, Bureau Veritas,
     B Corp, COSMOS, sulfate, GMP, FDA). */
  .rg-logos__row { justify-content: center; align-items: flex-end; gap: calc(40.677 * var(--u)); overflow: visible; }
  .rg-logos__item { height: calc(100 * var(--u)); }
  .rg-logos__item--wide { height: calc(100 * var(--u)); }
  .rg-logos__item:nth-child(1), .rg-logos__item:nth-child(4),
  .rg-logos__item:nth-child(6) { height: calc(99.252 * var(--u)); }
  .rg-logos__item:nth-child(5) { height: calc(98.965 * var(--u)); }
  .rg-logos__item:nth-child(7) { height: calc(99.841 * var(--u)); }
  .rg-logos__item:nth-child(8) { height: calc(97.403 * var(--u)); }
  .rg-logos__item:nth-child(9) { height: calc(99.8 * var(--u)); }
}

/* The product title on this page uses the design's serif. This sheet only
   loads on pages that carry the PDP sections, so the electrolytes page keeps
   its own title face. */
.ragazzi-offer-gels .offer__title {
  font-family: 'Bethany Elingston', 'Playfair Display', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}
.rg-timeline__bullets li { list-style: inherit; }

/* Section titles the redesign sets in the serif (benefits, ingredients,
   comparison, lab). Same page-scoping as the product title above. */
.ragazzi-benefits .benefits__title,
.ragazzi-ingredients .ingredients__title,
.ragazzi-comparison-table .comparison__title,
.ragazzi-expert .expert__title {
  /* !important: the sections' own sheets load later and some double their
     class for specificity; this file only loads on the redesigned page. */
  font-family: 'Bethany Elingston', 'Playfair Display', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

/* Lab text: two paragraphs in the frame, with a blank line between. */
.ragazzi-expert p + p { margin-top: 1.2em !important; }
/* Ingredients sit on the light grey ground in the redesign. */
.ragazzi-ingredients.ragazzi-ingredients { background: #f4f4f2; }
.rg-guarantee .rg-guarantee__card-title, .rg-guarantee .rg-guarantee__title { color: #fff; }

/* Redesign: every serif section title is 55px at 1920 (the theme drew them at
   65). Scaled with the viewport like the rest of the desktop layout. */
@media (min-width: 1024px) {
  .ragazzi-benefits .benefits__title,
  .ragazzi-ingredients .ingredients__title,
  .ragazzi-expert .expert__title {
    font-size: calc(min(100vw, 1920px) * 55 / 1920) !important;
    line-height: 1.1 !important;
  }
  .ragazzi-comparison-table .comparison__title {
    font-size: calc(min(100vw, 1920px) * 55 / 1920) !important;
    line-height: 1.2 !important;
  }
}
.rg-rcards__rating { line-height: 1.38; }
@media (min-width: 1024px) {
  .rg-survey__stat { min-height: calc(145 * var(--u)); }
}

/* Benefits cards: desktop titles carry the frame's 2.52% tracking and wrap
   inside the 410 card (cards 1 and 4 run to two lines in the frame). */
@media (min-width: 1024px) {
  /* Figma 2975:959: Onest Medium, title case (not bold caps). */
  .ragazzi-benefits .benefits__card-title { letter-spacing: 0.0252em; white-space: normal; font-weight: 500; text-transform: capitalize; }
  .ragazzi-benefits .benefits__title { margin-bottom: calc(min(100vw, 1920px) * 11 / 1920); }
  /* Figma 2975:1005: the 55px title has a 66px line box (line-height normal). */
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__title { line-height: 1.2 !important; }
  /* Title block -> card grid is 60 in Figma 2975:1004 (45 flex gap + this),
     less half the cards' 0.5px outside stroke. */
  .ragazzi-ingredients .ingredients__intro { margin-bottom: calc(14.5px * (var(--max-vw) / var(--vw-base))); }
  /* Cards sit 542 apart (510 + 32) with an OUTSIDE 0.5px stroke, so the gap
     between the drawn borders is 31. */
  .ragazzi-ingredients.ragazzi-ingredients .slides-blocks.ingredients__track { gap: clamp(16.5px, calc(31px * (var(--max-vw) / var(--vw-base))), 31px); }
}
/* Figma sets the benefits and ingredients titles with no tracking. */
.ragazzi-benefits.ragazzi-benefits .benefits__title,
.ragazzi-ingredients.ragazzi-ingredients .ingredients__title { letter-spacing: 0 !important; }
@media (max-width: 1023px) {
  /* Figma 2975:2632: the card title box is 217 wide inside the 260 card. */
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__card-title { max-width: 217px; }
}

/* ---------- Mobile, per the 375 frame (680:1710) ---------- */
@media (max-width: 1023px) {
  /* Timeline: photo first, then heading and intro, then the steps. */
  .rg-timeline__aside { order: 0; }
  .rg-timeline__title { order: 1; }
  .rg-timeline__intro--mobile { order: 2; margin-top: -8px; }
  .rg-timeline__step { --chip-w: 84px; --tick-w: 22px; --chip-h: 24px; }
  .rg-timeline__chip { font-size: 12px; }
  .rg-timeline__body { padding-left: 16px; gap: 8px; padding-bottom: 28px; }
  .rg-timeline__step-title { font-size: 18px; }
  .rg-timeline__bullets { font-size: 13px; padding-left: 16px; }
  .rg-timeline__footnote { font-size: 12px; }

  /* Survey numbers sit a size down on the phone. */
  .rg-survey__value { font-size: 44px; }
  .rg-survey__label { font-size: 15px; }

  /* Logos: a centred 3 / 4 / 2 grid in the phone's own order. */
  .rg-logos { padding: 40px 0; }
  .rg-logos__row {
    display: grid; grid-template-columns: repeat(12, 1fr);
    row-gap: 18px; column-gap: 8px; overflow: visible; padding: 0 28px;
  }
  .rg-logos__item { justify-content: center; height: auto; }
  .rg-logos__item img { height: auto; width: auto; max-width: 100%; }
  .rg-logos__item:nth-child(4) { order: 1; grid-column: span 4; }
  .rg-logos__item:nth-child(5) { order: 2; grid-column: span 4; }
  .rg-logos__item:nth-child(6) { order: 3; grid-column: span 4; }
  .rg-logos__item:nth-child(2) { order: 4; grid-column: span 3; }
  .rg-logos__item:nth-child(3) { order: 5; grid-column: span 3; }
  .rg-logos__item:nth-child(7) { order: 6; grid-column: span 3; }
  .rg-logos__item:nth-child(8) { order: 7; grid-column: span 3; }
  .rg-logos__item:nth-child(9) { order: 8; grid-column: span 5; }
  .rg-logos__item:nth-child(1) { order: 9; grid-column: span 7; }
  .rg-logos__item:nth-child(-n+1) img,
  .rg-logos__item:nth-child(9) img { max-height: 46px; }
  .rg-logos__item:nth-child(2) img, .rg-logos__item:nth-child(3) img,
  .rg-logos__item:nth-child(7) img, .rg-logos__item:nth-child(8) img { max-height: 58px; }
  .rg-logos__item:nth-child(4) img, .rg-logos__item:nth-child(5) img,
  .rg-logos__item:nth-child(6) img { max-height: 78px; }

  /* Guarantee: square photo, near-black ground, centred lead, outlined cards. */
  .rg-guarantee { background: #1b1917; }
  .rg-guarantee__bg { aspect-ratio: 1 / 1; }
  .rg-guarantee__inner { padding: 36px 20px 44px; gap: 28px; }
  .rg-guarantee__lead { align-items: center; text-align: center; gap: 14px; }
  .rg-guarantee__title { font-size: 32px; line-height: 1.1; }
  .rg-guarantee__card {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 22px 20px 24px; gap: 16px;
  }
  .rg-guarantee__icon { width: 22px; height: 22px; }
  .rg-guarantee__card-title { font-size: 17px; padding-bottom: 12px; margin-bottom: 14px; }
  .rg-guarantee__card-text { font-size: 14px; line-height: 1.35; }
}
@media (max-width: 1023px) {
  /* On the phone the headline flows as one sentence over two lines. */
  .rg-guarantee__title { font-size: 29px; }
  .rg-guarantee__title br { display: none; }
}

/* =====================================================================
   MOBILE, exact values from the 375 frame (Figma 2929:8490). This block
   comes last on purpose and supersedes the earlier approximations.
   ===================================================================== */
@media (max-width: 1023px) {
  /* Reviews 2929:8939 */
  .rg-rcards { padding: 40px 0; gap: 30px; }
  .rg-rcards__head { gap: 15.4px; padding: 0 20px; }
  .rg-rcards__rating { font-size: 11.5px; line-height: 1.38; letter-spacing: 0.77px; gap: 7.7px; color: #000; }
  .rg-rcards__rating .rg-stars svg { width: 19.2px; height: 19.2px; }
  .rg-rcards__title { font-size: 34.6px; line-height: 1.1; letter-spacing: -0.385px; color: #000; }
  .rg-rcards__track { gap: 10px; padding: 0 20px; scroll-padding: 0 20px; }
  .rg-rcard { flex: 0 0 277px; max-width: none; height: 446px; padding: 5px; }
  .rg-rcard__text { padding: 10px; gap: 5.8px; }
  .rg-rcard__stars { font-size: 13.5px; line-height: 1.36; gap: 3.8px; }
  .rg-rcard__stars .rg-stars svg { width: 19.2px; height: 19.2px; }
  .rg-rcard__quote { font-size: 23px; line-height: 1.2; letter-spacing: -0.385px; }
  .rg-rcard__name { font-size: 13.5px; line-height: 1.36; gap: 11.5px; }
  .rg-rcard__name::before { width: 23px; border-top-width: 0.96px; }
  .rg-rcard__photo { aspect-ratio: auto; height: 155.8px; flex: none; }
  .rg-rcards__dots {
    display: flex; align-self: center; gap: 7.7px; padding: 9.6px 23px;
    border-radius: 999px; background: rgba(0, 0, 0, 0.1);
  }
  .rg-rcards__dot { width: 5.8px; height: 5.8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
  .rg-rcards__dot.is-active { background: #fff; }

  /* Survey 2929:9059 */
  .rg-survey { padding: 40px 20px; }
  .rg-survey__inner { gap: 30px; }
  .rg-survey__head { gap: 10px; }
  .rg-survey__title { font-size: 32px; line-height: 1.1; }
  .rg-survey__intro { font-size: 16px; line-height: 1.2; }
  .rg-survey__stats { gap: 30px; }
  .rg-survey__stat { gap: 15px; padding: 0; }
  .rg-survey__value { font-size: 45px; line-height: 1.2; min-width: 0; }
  .rg-survey__label { font-size: 16px; line-height: 1.2; flex: 0 1 auto; min-width: 0; }
  /* Label widths as drawn at 375 (Figma 2975:2334), so the lines break alike. */
  .rg-survey__stat:nth-child(1) .rg-survey__label { width: 229px; }
  .rg-survey__stat:nth-child(2) .rg-survey__label { width: 212.8px; }
  .rg-survey__stat:nth-child(3) .rg-survey__label { width: 226px; }

  /* Timeline 2929:9076 */
  .rg-timeline { padding: 40px 20px; }
  .rg-timeline__inner { gap: 0; }
  .rg-timeline__aside { margin-bottom: 30px; }
  .rg-timeline__photo { aspect-ratio: 680 / 768; }
  .rg-timeline__title { font-size: 36px; line-height: 1.1; letter-spacing: -0.4px; color: #171310; }
  .rg-timeline__intro--mobile { margin: 10px 0 30px; font-size: 16px; line-height: 1.22; letter-spacing: -0.115px; }
  .rg-timeline__step { --chip-w: 84px; --tick-w: 21px; --chip-h: 26px; --rail: 2px; --gap: 10px; }
  .rg-timeline__chip { font-size: 14px; line-height: 1.26; }
  .rg-timeline__tick { --tick-t: 1px; --dash: 4.5px; --dash-p: 7px; --dash-o: -2.25px; --dot: 5.333px; }
  .rg-timeline__body { padding: 16px 0 20px calc(var(--gap) - var(--rail) / 2); gap: 12px; }
  .rg-timeline__step:first-child .rg-timeline__body { margin-top: 13px; padding-top: 3px; }
  .rg-timeline__step-title { font-size: 20px; line-height: 1.2; letter-spacing: -0.8px; }
  .rg-timeline__bullets { font-size: 16px; line-height: 1.26; padding-left: 24px; }
  .rg-timeline__footnote { margin-top: 30px; font-size: 15px; line-height: 1.32; }

  /* Logos 2929:9125: three centred rows, bottom-aligned. Two zero-height
     flex breaks (the pseudo-elements) end rows one and two. */
  .rg-logos { padding: 40px 20px; }
  .rg-logos__row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
    row-gap: 10px; column-gap: 0; padding: 0; overflow: visible;
  }
  .rg-logos__row::before, .rg-logos__row::after { content: ''; flex-basis: 100%; height: 0; order: 4; }
  .rg-logos__row::after { order: 9; }
  .rg-logos__item { grid-column: auto; height: auto; }
  .rg-logos__item img { width: auto; max-width: none; max-height: none; }
  /* Figma 2975:2400 spaces each row differently (20 / 24.077 / 27.646), so
     the gap is a left margin on every logo but the first of its row. */
  .rg-logos .rg-logos__item:nth-child(5), .rg-logos .rg-logos__item:nth-child(6) { margin-left: 20px; }
  .rg-logos .rg-logos__item:nth-child(3), .rg-logos .rg-logos__item:nth-child(7),
  .rg-logos .rg-logos__item:nth-child(8) { margin-left: 24.077px; }
  .rg-logos .rg-logos__item:nth-child(1) { margin-left: 27.646px; }
  .rg-logos__item:nth-child(4) { order: 1; } .rg-logos__item:nth-child(4) img { height: 99.252px; }
  .rg-logos__item:nth-child(5) { order: 2; } .rg-logos__item:nth-child(5) img { height: 98.965px; }
  .rg-logos__item:nth-child(6) { order: 3; } .rg-logos__item:nth-child(6) img { height: 99.252px; }
  .rg-logos__item:nth-child(2) { order: 5; } .rg-logos__item:nth-child(2) img { height: 63.2px; }
  .rg-logos__item:nth-child(3) { order: 6; } .rg-logos__item:nth-child(3) img { height: 63.2px; }
  .rg-logos__item:nth-child(7) { order: 7; } .rg-logos__item:nth-child(7) img { height: 63.1px; }
  .rg-logos__item:nth-child(8) { order: 8; } .rg-logos__item:nth-child(8) img { height: 63px; }
  .rg-logos__item:nth-child(9) { order: 10; } .rg-logos__item:nth-child(9) img { height: 67.8px; }
  .rg-logos__item:nth-child(1) { order: 11; } .rg-logos__item:nth-child(1) img { height: 66.5px; }

  /* Guarantee 2929:9474: square photo with a 20% veil, then the dark banner. */
  .rg-guarantee { background: #171310; }
  .rg-guarantee__bg { position: relative; aspect-ratio: 1 / 1; background: #d9d9d9; }
  .rg-guarantee__bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
  .rg-guarantee__inner { padding: 61.5px 15.4px; gap: 30.8px; }
  .rg-guarantee__lead { gap: 11.5px; }
  .rg-guarantee__title { font-size: 30.8px; line-height: 1.15; letter-spacing: -0.385px; }
  .rg-guarantee__badge { gap: 5.8px; font-size: 14.4px; line-height: 1.32; }
  .rg-guarantee__badge svg { width: 30.8px; height: 30.8px; }
  .rg-guarantee__cards { gap: 7.7px; }
  .rg-guarantee__card {
    background: rgba(23, 19, 16, 0.4); border: 0.96px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(7.7px); backdrop-filter: blur(7.7px);
    padding: 15.4px; gap: 15.4px;
  }
  .rg-guarantee__icon { width: 27px; height: 27px; }
  .rg-guarantee__card-title {
    font-size: 20px; line-height: 1.1;
    padding-bottom: 11.5px; margin-bottom: 11.5px; border-bottom: 0.96px solid rgba(255, 255, 255, 0.2);
  }
  .rg-guarantee__card-text { font-size: 16px; line-height: 1.26; color: #fff; }
}
@media (min-width: 1024px) { .rg-rcards__dots { display: none; } }
@media (max-width: 1023px) {
  /* Logos: cancel the earlier max-heights so the exact heights apply. */
  .rg-logos .rg-logos__item img { max-height: none !important; }

  /* Benefits 2929:9312 */
  .ragazzi-benefits .benefits__card-title {
    font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: 0.63px;
    text-transform: capitalize; white-space: normal;
  }
  .ragazzi-benefits .benefits__card-text { font-size: 16px; line-height: 1.2; }

  /* Ingredients 2929:9357 */
  .ragazzi-ingredients .ingredients__br { display: none; }
  .ragazzi-ingredients .ingredients__card-body { padding-top: 10px !important; padding-bottom: 10px !important; gap: 10px !important; }
  .ragazzi-ingredients .ingredients__card-title { font-size: 20px !important; font-weight: 500 !important; line-height: 1.1 !important; }
  .ragazzi-ingredients .ingredients__card-text { font-size: 16px !important; line-height: 1.2 !important; }

  /* Comparison 2929:9408 */
  .ragazzi-comparison-table thead th { height: 93.75px; }
  .ragazzi-comparison-table tbody th { width: 154px; font-size: 16px; line-height: 1.2; }
  .ragazzi-comparison-table .comparison__mark { width: 20px; height: 20px; }

  /* Lab 2929:9468: full-bleed 375 x 330 photo, cropped from the top. */
  .ragazzi-expert img { height: 330px !important; aspect-ratio: auto !important; object-fit: cover; object-position: 0 0; }
}

/* =====================================================================
   Pass 3: exact values from the Figma code (file "Tudo Website (new)").
   ===================================================================== */
/* Guarantee 2929:7897 */
.rg-guarantee__badge img { display: block; flex: none; }
.rg-guarantee__icon img { width: 100%; height: 100%; display: block; }
.rg-guarantee__card-body { display: flex; flex-direction: column; }
.rg-guarantee__card-title { border: 0 !important; padding: 0 !important; margin: 0 !important; font-weight: 400; color: #fff; }
.rg-guarantee__rule { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 0; height: 0; width: 100%; }
.rg-guarantee__card-text { color: #fff; }
.rg-guarantee__card { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(23, 19, 16, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 1024px) {
  .rg-guarantee { min-height: calc(840 * var(--u)); }
  .rg-guarantee__bg::after { background: rgba(0, 0, 0, 0.4); }
  .rg-guarantee__inner { padding: calc(56 * var(--u)) calc(100 * var(--u)); gap: calc(40 * var(--u)); }
  .rg-guarantee__lead, .rg-guarantee__cards { flex: 1 0 0; min-width: 0; }
  .rg-guarantee__lead { gap: calc(24 * var(--u)); }
  .rg-guarantee__title { font-size: calc(55 * var(--u)); line-height: 1.15; letter-spacing: -0.6px; max-width: calc(706 * var(--u)); }
  .rg-guarantee__badge { gap: calc(8 * var(--u)); font-size: calc(20 * var(--u)); font-weight: 500; line-height: 1.32; }
  .rg-guarantee__badge img { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
  .rg-guarantee__cards { width: auto; margin: 0; align-items: flex-end; gap: calc(24 * var(--u)); }
  .rg-guarantee__card { width: calc(638 * var(--u)); padding: calc(40 * var(--u)); gap: calc(40 * var(--u)); }
  .rg-guarantee__icon { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
  .rg-guarantee__card-body { gap: calc(16 * var(--u)); }
  .rg-guarantee__card-title { font-size: calc(24 * var(--u)); line-height: 1.1; letter-spacing: -0.6px; }
  .rg-guarantee__card:nth-child(2) .rg-guarantee__card-title { line-height: 1.22; letter-spacing: -0.1px; }
  .rg-guarantee__card-text { font-size: calc(20 * var(--u)); line-height: 1.26; }

  /* Reviews: the row is centred exactly, so no snapping on desktop. */
  .rg-rcards__track { scroll-snap-type: none; }

  /* Benefits: the track runs to the screen edge so card 5 peeks in. */
  .ragazzi-benefits.ragazzi-benefits .slides-blocks { margin-right: calc(-100 * min(100vw, 1920px) / 1920); }
  .ragazzi-benefits.ragazzi-benefits { overflow: hidden; }
}
@media (max-width: 1023px) {
  .rg-guarantee__badge img { width: 30.8px; height: 30.8px; }
  .rg-guarantee__card { border-width: 0.96px; padding: 15.4px; gap: 15.4px; -webkit-backdrop-filter: blur(7.7px); backdrop-filter: blur(7.7px); }
  .rg-guarantee__icon { width: 27px; height: 27px; }
  .rg-guarantee__card-body { gap: 11.5px; }
  .rg-guarantee__card-title { font-size: 20px; line-height: 1.1; }
  .rg-guarantee__card:nth-child(2) .rg-guarantee__card-title { line-height: 1.22; letter-spacing: -0.1px; }
  .rg-guarantee__rule { border-top-width: 0.96px; }
  .rg-guarantee__card-text { font-size: 16px; line-height: 1.26; }
}
/* Review card: quote and name are one group pinned to the bottom (Figma
   817:4646, gap 24 desktop / 5.8 mobile); the stars sit at the top. */
.rg-rcard__said { display: flex; flex-direction: column; gap: 5.8px; }
@media (min-width: 1024px) { .rg-rcard__said { gap: calc(24 * var(--u)); } }

/* Ingredients 2929:7720: card copy is 17px at 1920. */
@media (min-width: 1024px) {
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__card-text { font-size: calc(min(100vw, 1920px) * 17 / 1920) !important; line-height: 1.2 !important; }
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__card { border-width: 0.5px; border-color: #161616; }
}

/* Mobile pass 3: line breaks, colours and card chrome as drawn at 375. */
@media (max-width: 1023px) {
  .rg-survey__title { max-width: 300px; }
  .rg-rcards__title { max-width: 240px; }
  .rg-timeline__title { max-width: 260px; }
  .rg-timeline__step:nth-child(n+3) { --gap: 20px; }
  .rg-logos__item img { filter: brightness(0.2); }
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__card { border: 0; background: transparent; }
  .ragazzi-ingredients.ragazzi-ingredients .ingredients__card-body { padding: 10px 0 !important; background: transparent; }
  .ragazzi-comparison-table .comparison__feature { font-size: 16px !important; line-height: 1.2 !important; }
}

/* Offer: the frame draws the CTA solid black even before the product can be
   bought; keep it black while disabled. The mobile frame has no ribbon over
   the third size. */
.ragazzi-offer-gels .offer__cta-btn:disabled,
.ragazzi-offer-gels .offer__cta-btn[disabled] { background: #000 !important; border-color: #000 !important; color: #fff !important; opacity: 1 !important; }
@media (max-width: 1023px) { .ragazzi-offer-gels .sizes__ribbon { display: none; } }
@media (max-width: 1023px) {
  /* Per-logo tone in the 375 frame: sulfate-free stays light, FDA mid-grey. */
  .rg-logos__item:nth-child(7) img { filter: none; }
  .rg-logos__item:nth-child(9) img { filter: brightness(0.62); }
}
/* Comparison marks: drawn ~22.5px across at 1920, 15px at 375. */
@media (min-width: 1024px) {
  .ragazzi-comparison-table .comparison__mark { width: calc(min(100vw, 1920px) * 22.5 / 1920) !important; height: calc(min(100vw, 1920px) * 22.5 / 1920) !important; }
}
@media (max-width: 1023px) {
  .ragazzi-comparison-table .comparison__mark { width: 15px !important; height: 15px !important; }
}

/* Mobile: every section heading is 32px (owner's call, overrides the frame's
   34.6 / 36 / 30.8). Line breaks are left to flow at the new size. */
@media (max-width: 1023px) {
  .rg-rcards__title,
  .rg-survey__title,
  .rg-timeline__title,
  .rg-guarantee__title,
  .ragazzi-benefits .benefits__title,
  .ragazzi-ingredients .ingredients__title,
  .ragazzi-comparison-table .comparison__title,
  .ragazzi-expert .expert__title,
  .ragazzi-faq .faq__title { font-size: 32px !important; line-height: 1.1 !important; }
}

/* One black for all copy on this page (owner's call): the theme and the frame
   mixed #000, #050505, #121212, #161616, #191919, #1a1a1a, #171310 and greys.
   White-on-dark text (CTA, timeline chips, guarantee banner) is left alone. */
.rg-pdp { --rg-ink: #000; color: #000; }
.rg-pdp:not(.rg-guarantee) :is(h2, h3, p, span, li, ul, blockquote, figcaption):not(.rg-timeline__chip) { color: #000 !important; }
.rg-stars { color: #000 !important; }
.ragazzi-offer-gels :is(.offer__bullet-text, .offer__field-label, .offer__faq-q-text, .offer__faq-a, .offer__faq-a *, .plan__name, .plan__price-now) { color: #000 !important; }
.ragazzi-ingredients :is(.ingredients__title, .ingredients__intro, .ingredients__card-title, .ingredients__card-text) { color: #000 !important; }
.ragazzi-offer-gels .offer__faq-chevron { color: #000; stroke: #000; }

/* Grey section grounds are one neutral #F9F9F9 on both layouts (owner's call;
   the frame had a warm #F4F4F2). */
.rg-rcards,
.ragazzi-ingredients.ragazzi-ingredients { background: #f9f9f9 !important; }

/* ---------- Lab block + guarantee, audit vs Figma 2975:1173 / 2975:2743 and
   2975:1181 / 2975:2749 ---------- */
/* Lab title is untracked in the frame (558 wide at 55px, 325 at 32px).
   Doubled class beats the shared `-0.01em !important` above. */
.ragazzi-expert.ragazzi-expert .expert__title { letter-spacing: 0 !important; }
/* Lab copy column is 615.87 wide at 1920 (the body column is 621.97). */
@media (min-width: 1024px) {
  .ragazzi-expert .expert__bio { max-width: calc(615.873px * (var(--max-vw) / var(--vw-base))); }
}
/* Guarantee line is white Medium on both layouts; `.rg-pdp { color: #000 }`
   above was turning it black on the dark banner. */
.rg-guarantee .rg-guarantee__badge { color: #fff; font-weight: 500; }
/* The card divider takes no height in the frame (drawn 1px above its slot). */
.rg-guarantee .rg-guarantee__rule { border-top-width: 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.2); }
@media (max-width: 1023px) {
  .rg-guarantee .rg-guarantee__rule { box-shadow: 0 -0.962px 0 rgba(255, 255, 255, 0.2); }
  /* Dawn's h3 tracking (0.6px) leaked into the first card title. */
  .rg-guarantee .rg-guarantee__card-title { letter-spacing: 0; }
}

/* Mobile (owner, Dec 2026): the rating label sits under the stars, centred. */
@media (max-width: 1023px) {
  .rg-rcards__rating { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
}
