/* Peptico homepage, tier 6 — "version 1", the working copy of the published tier 6.
   Loaded only when tier 6 renders the front page (tier-6-home.php). Prefix pp3-.
   Full-width tinted blocks, large rounded surfaces, oversized tiles, no video. */

.pp3 {
  --ink: #111111; --ink-2: #2b2b2b; --muted: #5f5f58;
  --paper: #f7f6f2; --white: #ffffff; --line: rgba(17, 17, 17, 0.08);
  --green: #004f42; --red: #b4443c;
  /* the vials' tints */
  --sage: #dfe7d9; --mint: #e6f0ed; --rose: #f0dfdb; --tan: #eee6d8; --lavender: #e3e4f4; --olive: #e7ebc9;
  --sage-deep: #c9d6c0; --mint-deep: #cfe2dc; --rose-deep: #e6c9c2; --tan-deep: #e2d5bd; --lavender-deep: #cfd1ea; --olive-deep: #d9dfae;
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px;
  --shadow: 0 2px 4px rgba(17, 17, 17, 0.04), 0 16px 40px rgba(17, 17, 17, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.pp3 *, .pp3 *::before, .pp3 *::after { box-sizing: border-box; }
.pp3 h1, .pp3 h2, .pp3 h3, .pp3 p, .pp3 ul, .pp3 ol { margin: 0; }
.pp3 ul, .pp3 ol { padding: 0; list-style: none; }
.pp3 a { color: inherit; text-decoration: none; }
.pp3 :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.pp3-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.pp3-block { padding: 80px 0; }

/* tints: one class paints any surface */
.pp3-tint--sage { background: var(--sage); } .pp3-tint--mint { background: var(--mint); } .pp3-tint--rose { background: var(--rose); }
.pp3-tint--tan { background: var(--tan); } .pp3-tint--lavender { background: var(--lavender); } .pp3-tint--olive { background: var(--olive); }

/* ---- Type ------------------------------------------------------------------ */
.pp3-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.pp3-h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
.pp3-h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; }
.pp3-line { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.pp3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }

/* ---- Buttons and pills: big, round, press to shrink ------------------------- */
.pp3-btn, .pp3-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--font); font-size: 16px; font-weight: 600; border: 1px solid transparent; transition: transform 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease); will-change: transform; }
.pp3 .pp3-btn--ink { background: var(--ink); color: #fff; }
.pp3 .pp3-btn--ink:hover { background: var(--ink-2); box-shadow: var(--shadow); color: #fff; }
.pp3 .pp3-btn--soft { background: rgba(255, 255, 255, 0.7); color: var(--ink); border-color: rgba(17, 17, 17, 0.12); }
.pp3 .pp3-btn--soft:hover { background: #fff; color: var(--ink); }
.pp3 .pp3-pill { min-height: 44px; padding: 0 18px 0 20px; font-size: 15px; background: rgba(255, 255, 255, 0.75); color: var(--ink); border-color: rgba(17, 17, 17, 0.12); flex: none; }
.pp3 .pp3-pill:hover { background: #fff; color: var(--ink); }
.pp3-pill svg { width: 16px; height: 16px; }
.pp3-btn.is-pressed, .pp3-btn:active, .pp3-pill.is-pressed, .pp3-pill:active { transform: scale(0.96); transition-duration: 80ms; }

/* ---- Hero ------------------------------------------------------------------ */
.pp3-hero { padding: 72px 0 0; overflow: hidden; }
.pp3-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: 560px; }
.pp3-hero__copy { padding-bottom: 72px; }
.pp3-hero__line { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.pp3-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pp3-hero__vials { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; height: 560px; padding-bottom: 0; }
.pp3-vial { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.pp3-vial__disc { position: absolute; left: 50%; bottom: 0; width: 100%; height: 66%; translate: -50% 0; border-radius: 40px 40px 0 0; }
.pp3-vial img { position: relative; width: auto; height: 78%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(17, 17, 17, 0.18)); }
.pp3-vial--1 { translate: 0 -6%; } .pp3-vial--2 { translate: 0 -16%; } .pp3-vial--3 { translate: 0 -2%; }
.pp3-vial--1 img { height: 74%; } .pp3-vial--2 img { height: 84%; } .pp3-vial--3 img { height: 70%; }
/* The aside under the buttons (scoped under .pp3 so it outranks the paragraph reset) */
.pp3 .pp3-hero__aside { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; max-width: 46ch; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pp3-hero__aside svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--green); }
/* arrive from below, settle without bounce */
.pp3-js [data-pp-float] { opacity: 0; transform: translateY(28px); }
.pp3-js [data-pp-float].is-in { opacity: 1; transform: none; transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.pp3-js .pp3-vial--2.is-in { transition-delay: 90ms; } .pp3-js .pp3-vial--3.is-in { transition-delay: 180ms; }

/* ---- Grids and tiles --------------------------------------------------------- */
.pp3-grid { display: grid; gap: 16px; }
.pp3-grid--areas { grid-template-columns: repeat(4, 1fr); }
.pp3-grid--three { grid-template-columns: repeat(3, 1fr); }
.pp3-grid--five { grid-template-columns: repeat(5, 1fr); }

.pp3-area { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 168px; padding: 22px 24px; border-radius: var(--r-lg); position: relative; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.pp3-area:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pp3-area__name { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; padding-right: 44px; }
.pp3-area__meta { font-size: 14px; color: var(--muted); }
.pp3-area__arrow { position: absolute; right: 20px; top: 20px; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); color: var(--ink); transition: transform 240ms var(--ease); }
.pp3-area:hover .pp3-area__arrow { transform: translateX(3px); }

/* ---- Product carousel: cards exactly as the shop renders them ------------------ */
.pp3-carousel { --gap: 16px; --per-view: 4; position: relative; }
.pp3-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); column-gap: var(--gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 0 14px; cursor: grab; will-change: transform; }
.pp3-carousel__track::-webkit-scrollbar { display: none; }
.pp3-carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.pp3-carousel__track.is-dragging a { pointer-events: none; }
.pp3-carousel__item { scroll-snap-align: start; min-width: 0; transition: transform 240ms var(--ease); }
.pp3-carousel__item > * { height: 100%; }
.pp3-carousel__item:hover { transform: translateY(-3px); }
/* the control pill: a floating material, chevrons either side of a page indicator */
.pp3-cnav { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px rgba(17, 17, 17, 0.08); float: right; }
.pp3-carousel::after { content: ""; display: table; clear: both; }
.pp3-cnav__btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 120ms var(--ease), background-color 160ms var(--ease), opacity 200ms var(--ease); }
.pp3-cnav__btn svg { width: 20px; height: 20px; }
.pp3-cnav__btn:hover { background: rgba(17, 17, 17, 0.06); }
.pp3-cnav__btn.is-pressed, .pp3-cnav__btn:active { transform: scale(0.9); background: rgba(17, 17, 17, 0.1); transition-duration: 60ms; }
.pp3-cnav__btn:disabled { opacity: 0.28; cursor: default; background: transparent; transform: none; }
.pp3-cnav__dots { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.pp3-cnav__dot { display: block; width: 6px; height: 6px; border-radius: 999px; background: rgba(17, 17, 17, 0.22); transition: width 280ms var(--ease), background-color 280ms var(--ease); }
.pp3-cnav__dot.is-active { width: 20px; background: var(--ink); }
.pp3-carousel__track.is-rubber { transition: transform 420ms var(--ease); }

.pp3-stat { display: flex; flex-direction: column; gap: 6px; padding: 30px 28px 28px; border-radius: var(--r-xl); min-height: 240px; }
.pp3-stat__big { font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.pp3-stat__label { font-size: 16px; font-weight: 600; margin-top: 4px; }
.pp3-stat__line { margin-top: auto; padding-top: 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pp3-testing__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.pp3-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pp3-pillet { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.pp3-block--experience { background: var(--paper); }
.pp3-card { display: flex; flex-direction: column; padding: 22px 20px 24px; border-radius: var(--r-lg); }
.pp3-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: var(--ink); margin-bottom: 22px; flex: none; }
.pp3-card__icon svg { width: 22px; height: 22px; }
/* every title gets two lines of room, so all descriptions start on the same line */
.pp3-card__title { display: flex; align-items: flex-end; min-height: 2.5em; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.pp3-card__line { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* ---- Compare: two paths side by side, compact for one screen ------------------- */
.pp3-block--compare { padding: 40px 0 44px; }
.pp3-block--compare .pp3-head { margin-bottom: 14px; }
.pp3-block--compare .pp3-line { font-size: 16px; max-width: 72ch; margin-top: 8px; }
.pp3-compare { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 16px; align-items: stretch; }
.pp3-path { display: flex; flex-direction: column; padding: 16px 18px 18px; border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.55); }
.pp3-path__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.pp3-path--peptico .pp3-path__label { color: var(--green); }
.pp3-path__steps { display: flex; flex-direction: column; flex: 1; }
.pp3-path--typical .pp3-path__steps { justify-content: space-between; }
.pp3-step { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 1px; align-items: center; padding: 8px 14px 8px 12px; border-radius: var(--r-md); background: var(--rose); }
.pp3-path--peptico .pp3-step { background: var(--mint); }
.pp3-path--peptico .pp3-step.is-last { background: var(--ink); color: #fff; }
.pp3-path--peptico .pp3-step.is-last .pp3-step__line { color: rgba(255, 255, 255, 0.76); }
.pp3-step__num { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); border: 1px solid var(--red); font-size: 13px; font-weight: 600; color: #fff; }
.pp3-path--peptico .pp3-step__num { background: var(--green); border-color: var(--green); color: #fff; }
.pp3-step__title { font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.pp3-step__line { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pp3-step__down { display: flex; align-items: center; justify-content: center; height: 18px; color: var(--red); }
.pp3-step__down svg { width: 16px; height: 16px; }
.pp3-path--peptico .pp3-step__down { color: var(--green); }
@media (max-width: 860px) {
  .pp3-compare { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pp3-block--compare { padding: 48px 0; }
  .pp3-path { padding: 16px; border-radius: var(--r-lg); }
}

/* ---- Reveal ------------------------------------------------------------------ */
.pp3-js [data-pp-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.pp3-js [data-pp-reveal].is-in { opacity: 1; transform: none; }

/* ---- Breakpoints ---------------------------------------------------------------- */
@media (max-width: 1200px) { .pp3-carousel { --per-view: 3; } }
@media (max-width: 1100px) {
  .pp3-grid--areas { grid-template-columns: repeat(2, 1fr); }
  .pp3-grid--five { grid-template-columns: repeat(3, 1fr); }
  .pp3-hero__inner { grid-template-columns: 1fr 0.9fr; }
}
@media (max-width: 860px) {
  .pp3-block { padding: 64px 0; }
  .pp3-hero { padding-top: 56px; }
  .pp3-hero { padding-bottom: 28px; }
  .pp3-hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  /* the copy column dissolves so the aside can sit after the vials */
  .pp3-hero__copy { display: contents; }
  .pp3-hero__vials { height: 340px; order: 1; margin-top: 16px; }
  .pp3 .pp3-hero__aside { order: 2; margin-top: 18px; max-width: none; }
  .pp3-vial img { max-height: 300px; }
  .pp3-carousel { --per-view: 2; }
  .pp3-grid--three { grid-template-columns: 1fr; }
  .pp3-grid--five { grid-template-columns: repeat(2, 1fr); }
  .pp3-testing__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .pp3-wrap { padding: 0 18px; }
  .pp3-block { padding: 52px 0; }
  .pp3-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .pp3-hero__actions .pp3-btn { flex: 1 1 100%; }
  .pp3-hero__vials { height: 280px; gap: 6px; }
  .pp3-vial img { max-height: 240px; }
  .pp3-grid--areas { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp3-area { min-height: 132px; padding: 16px; border-radius: 20px; }
  .pp3-area__name { font-size: 16px; padding-right: 0; }
  .pp3-area__arrow { display: none; }
  /* two per view like the shop's phone grid: the card's artwork is cropped for that width */
  .pp3-carousel { --gap: 12px; --per-view: 2; }
  .pp3-cnav { float: none; display: flex; width: max-content; margin: 8px auto 0; }
  .pp3-grid--five { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp3-card { padding: 18px 16px 20px; }
  .pp3-card__icon { margin-bottom: 16px; width: 40px; height: 40px; }
  .pp3-card__title { font-size: 15px; }
  .pp3-card__line { font-size: 13.5px; }
  .pp3-card:last-child { grid-column: 1 / -1; }
}

/* ---- Preferences -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pp3-js [data-pp-reveal], .pp3-js [data-pp-float] { transform: none; transition: opacity 200ms ease; }
  .pp3-btn, .pp3-pill, .pp3-area, .pp3-carousel__item, .pp3-area__arrow, .pp3-cnav__btn, .pp3-cnav__dot { transition: none; }
  .pp3-area:hover, .pp3-carousel__item:hover { transform: none; }
  .pp3-carousel__track { scroll-behavior: auto; }
  .pp3-carousel__track.is-rubber { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pp3-cnav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }
}
@media (prefers-contrast: more) {
  .pp3 { --muted: #3a3a35; --line: rgba(17, 17, 17, 0.4); }
}
