/* ────────────────────────────────────────────────────────────────────────────
 * clever-prep-recipes.css — Reforma-derived shared recipe library
 * ────────────────────────────────────────────────────────────────────────────
 * Every selector in this file MUST start with `.cp-r-`.
 * Enforced by scripts/check_recipes_css.py.
 *
 * Tokens consumed (when present):
 *   --cp-orange, --cp-text-primary, --cp-text-secondary, --cp-text-mono
 * Literal fallbacks are inlined where the site lacks a token (card bgs,
 * borders) — these can be promoted to tokens later if needed.
 * ──────────────────────────────────────────────────────────────────────────── */

/* Targeted reduced-motion: only recipe-internal animations.
   Hover transitions on cards are intentionally preserved — they're not
   motion in the vestibular sense. */
@media (prefers-reduced-motion: reduce) {
  .cp-r-marquee__track,
  .cp-r-testim-marquee__track,
  .cp-r-faq__a,
  .cp-r-stack__card,
  .cp-r-stats__value,
  .cp-r-hiw-tabs__panel,
  .cp-r-audiences__panel {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── cp-r-duotone — riso-style duotone + halftone stipple ────────────────
 * Apply `cp-r-duotone` to an <img> to remap it to navy shadows + warm tan
 * highlights via the SVG filter injected by clever-prep-recipes.js.
 *
 * For the halftone stipple texture, wrap the image in an element with
 * `cp-r-duotone-frame` — the frame paints a tiny tiled dot pattern over
 * the image via mix-blend-mode for the riso-print grit.
 *
 * Tunables:
 *   --cp-r-duotone-stipple-opacity: 0.0 – 1.0 (default 0.45)
 *   --cp-r-duotone-stipple-scale:   pattern tile size in px (default 3)
 * ─────────────────────────────────────────────────────────────────────── */
.cp-r-duotone { filter: url(#cp-r-duotone); }

.cp-r-duotone-frame {
  position: relative;
  overflow: hidden;
}
.cp-r-duotone-frame > * { display: block; }
.cp-r-duotone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 3px tile with a single dot — fine halftone grit */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='3' height='3' viewBox='0 0 3 3'><circle cx='1.5' cy='1.5' r='0.55' fill='%23131A26'/></svg>");
  background-size: var(--cp-r-duotone-stipple-scale, 3px) var(--cp-r-duotone-stipple-scale, 3px);
  mix-blend-mode: multiply;
  opacity: var(--cp-r-duotone-stipple-opacity, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  /* keep effect — it's static, not motion */
}

/* ─── cp-r-dot-grid — decorative dotted backdrop utility ──────────────────
 * Add `cp-r-dot-grid` to any section/container. The element gets
 * position:relative + a ::before that paints a tiled dot grid masked by a
 * soft radial fade — same visual as the Evermind hero pattern but tuned to
 * brand color and density. Content sits above naturally (z-index: 1).
 *
 * Tunables (override per-section if needed):
 *   --cp-r-dot-size:     dot spacing (default 24px)
 *   --cp-r-dot-color:    dot color  (default var(--cp-text-headline))
 *   --cp-r-dot-opacity:  overall    (default 0.12)
 *   --cp-r-dot-fade:     mask ellipse stops (default 35% 85%)
 * ─────────────────────────────────────────────────────────────────────── */
.cp-r-dot-grid { position: relative; }
.cp-r-dot-grid > * { position: relative; z-index: 1; }
.cp-r-dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle,
    var(--cp-r-dot-color, var(--cp-text-headline, #28354A)) 1px,
    transparent 1.5px);
  background-size: var(--cp-r-dot-size, 24px) var(--cp-r-dot-size, 24px);
  opacity: var(--cp-r-dot-opacity, 0.12);
  -webkit-mask-image:
    radial-gradient(ellipse 70% 60% at center, #000 35%, transparent 85%);
          mask-image:
    radial-gradient(ellipse 70% 60% at center, #000 35%, transparent 85%);
}

/* ─── cp-r-text-fill — scroll-driven word fill ────────────────────────────
 * Add `cp-r-text-fill` to any block of body/heading copy. JS splits the
 * text into <span class="cp-r-text-fill__word"> at init. As the element
 * scrolls through the viewport, each word's opacity is driven from a faint
 * base color to full color, sequentially left-to-right.
 *
 * Tunables (override per-element if needed):
 *   --cp-r-fill-base: starting opacity of unfilled words (default 0.18)
 * ─────────────────────────────────────────────────────────────────────── */
.cp-r-text-fill { --cp-r-fill-base: 0.18; }
.cp-r-text-fill__word {
  display: inline-block;
  opacity: var(--cp-r-fill-base);
  will-change: opacity;
  transition: opacity 0.18s linear;
}
.cp-r-text-fill__word--space {
  /* The whitespace between words — must render as inline text, not
     inline-block (inline-block collapses pure-whitespace content). */
  display: inline;
  white-space: pre;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .cp-r-text-fill__word { opacity: 1; transition: none; }
}

/* ─── Scroll reveal (site-wide) ────────────────────────────────────────────
 * Initial hidden state is applied only when <html> has .cp-reveal-ready —
 * which is added by clever-prep-recipes.js at boot. This way no-JS users
 * see content immediately. .is-revealed is added per-element by the JS
 * IntersectionObserver when the element enters viewport.
 * ─────────────────────────────────────────────────────────────────────── */
.cp-r-reveal-ready .cp-r-reveal {
  /* !important because Bricks layout classes (.brxe-block, .bricks-lazy-loaded)
     can set opacity/transform with equal or higher specificity in some
     cascades. Animation states are an acceptable use of !important. */
  opacity: 0 !important;
  transform: translateY(14px) !important;
  filter: blur(4px) !important;
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform, filter;
}
.cp-r-reveal-ready .cp-r-reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .cp-r-reveal-ready .cp-r-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
 * BRICKS RESET — .brxe-block ships with `display:flex; flex-direction:column`
 * by default. Recipes that use display:flex MUST set flex-direction
 * explicitly or Bricks' column direction wins. We force `flex-direction: row`
 * on every horizontal recipe part below.
 * ───────────────────────────────────────────────────────────────────────── */
.cp-r-cta__btns,
.cp-r-marquee__track,
.cp-r-testim-marquee__track,
.cp-r-hiw-tabs__strip,
.cp-r-audiences__nav,
.cp-r-faq__q,
.cp-r-testim-marquee__meta {
  flex-direction: row;
}

/* Bricks .brxe-block defaults align-items to `flex-start` — for rows that
   mix different-height children (e.g. a pill button next to a text-style
   link), tops align but visual centers drift. Force cross-axis center
   alignment on every horizontal flex row that holds mixed children. */
.cp-r-cta__btns,
.cp-r-faq__q,
.cp-r-testim-marquee__meta,
.cp-r-hiw-tabs__strip {
  align-items: center;
}

/* Marquee tracks must escape Bricks' `.brxe-block { max-width: 100% }` so
   `width: max-content` (set below) can expand them past the viewport. */
.cp-r-marquee__track,
.cp-r-testim-marquee__track {
  max-width: none;
}

/* Bricks' `.brxe-block { width: 100% }` makes flex children stretch to fill
   the row instead of sizing to content. Tabs, pills, and any inline-block-
   like recipe parts must opt out of that. */
.cp-r-hiw-tabs__tab,
.cp-r-audiences__pill,
.cp-r-faq__q-icon {
  flex: 0 0 auto;
  width: auto;
}

/* Recipe headings — brand serif at its real loaded weight (400).
   LT Superior only ships at weight 400; anything higher triggers
   browser synthetic bold which looks visibly different from the
   pricing title and the rest of the site. */
.cp-r-cta__title,
.cp-r-context__statement,
.cp-r-bento__title,
.cp-r-change__title,
.cp-r-cases__title,
.cp-r-hiw-tabs__title,
.cp-r-audiences__title,
.cp-r-stack__title {
  font-family: var(--cp-font-heading, Georgia, serif);
  font-weight: 400;
  color: var(--cp-text-headline, #28354A);
  letter-spacing: -0.02em;
}

/* ═══ 1. cp-r-cta ═══ */
.cp-r-cta { padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); align-items: center; }
.cp-r-cta__inner { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.cp-r-cta__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0; }
.cp-r-cta__body { font-size: 18px; line-height: 1.5; color: var(--cp-text-secondary); margin: 0; }
.cp-r-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cp-r-cta--primary { background: var(--cp-orange); color: #fff; border-radius: 24px; }
.cp-r-cta--primary .cp-r-cta__title { color: #fff; }
.cp-r-cta--primary .cp-r-cta__body { color: rgba(255, 255, 255, 0.85); }
.cp-r-cta--tertiary { background: transparent; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 24px; }

/* ═══ 2. cp-r-context ═══ */
.cp-r-context { padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px); text-align: center; }
.cp-r-context__inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cp-r-context__eyebrow { opacity: 0.6; }
.cp-r-context__statement { font-size: clamp(32px, 5vw, 64px); line-height: 1.05; margin: 0; }
.cp-r-context__link { margin-top: 8px; }

/* ═══ 3. cp-r-bento ═══ */
.cp-r-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.cp-r-bento__cell { background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cp-r-bento__cell:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06); }
.cp-r-bento__cell--1x1 { grid-column: span 1; grid-row: span 1; }
.cp-r-bento__cell--2x1 { grid-column: span 2; grid-row: span 1; }
.cp-r-bento__cell--1x2 { grid-column: span 1; grid-row: span 2; }
.cp-r-bento__cell--2x2 { grid-column: span 2; grid-row: span 2; }
.cp-r-bento__eyebrow { opacity: 0.6; }
.cp-r-bento__title { font-size: 22px; line-height: 1.2; margin: 0; }
.cp-r-bento__body { font-size: 15px; line-height: 1.5; color: var(--cp-text-secondary); margin: 0; }
.cp-r-bento__image { width: 100%; height: auto; border-radius: 8px; }
.cp-r-bento__link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1024px) {
  .cp-r-bento { grid-template-columns: repeat(2, 1fr); }
  .cp-r-bento__cell--2x2,
  .cp-r-bento__cell--2x1 { grid-column: span 2; }
  .cp-r-bento__cell--1x2 { grid-row: span 1; }
}
@media (max-width: 768px) {
  .cp-r-bento { grid-template-columns: 1fr; }
  .cp-r-bento__cell { grid-column: span 1 !important; grid-row: auto !important; }
}

/* ═══ 4. cp-r-change ═══ */
.cp-r-change { display: flex; flex-direction: column; gap: 16px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.cp-r-change__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-r-change__tile { padding: 28px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.cp-r-change__tile--before { background: #f5f5f5; opacity: 0.7; }
.cp-r-change__tile--after { background: #fff; border: 1px solid var(--cp-orange); }
.cp-r-change__eyebrow { opacity: 0.6; }
.cp-r-change__title { font-size: 20px; line-height: 1.2; margin: 0; }
.cp-r-change__body { font-size: 15px; line-height: 1.5; color: var(--cp-text-secondary); margin: 0; }
@media (max-width: 768px) {
  .cp-r-change__row { grid-template-columns: 1fr; }
}

/* ═══ 5. cp-r-cases ═══ */
/* The tile itself is not clickable — clickability lives on the optional
   .cp-r-cases__link button inside. Hover lift applies to the whole tile
   to telegraph interactivity when a link is present. */
.cp-r-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.cp-r-cases__tile { display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s ease; }
.cp-r-cases__tile:hover { transform: translateY(-4px); }
.cp-r-cases__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; transition: transform 0.4s ease; }
.cp-r-cases__tile:hover .cp-r-cases__image { transform: scale(1.02); }
.cp-r-cases__meta { opacity: 0.6; font-size: 12px; }
.cp-r-cases__title { font-size: 20px; line-height: 1.25; margin: 0; }
.cp-r-cases__link { margin-top: 4px; align-self: flex-start; }
@media (max-width: 1024px) { .cp-r-cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cp-r-cases { grid-template-columns: 1fr; } }

/* ═══ 6. cp-r-stats ═══ */
.cp-r-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(24px, 4vw, 48px); padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px); text-align: center; }
.cp-r-stats__stat { display: flex; flex-direction: column; gap: 8px; }
.cp-r-stats__value { font-family: var(--cp-font-heading, Georgia, serif); font-size: clamp(48px, 6vw, 84px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; color: var(--cp-text-headline, #28354A); letter-spacing: -0.03em; }
.cp-r-stats__label { font-size: 14px; opacity: 0.7; }

/* ═══ 7. cp-r-faq ═══ */
.cp-r-faq { padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.cp-r-faq__item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
/* nowrap !important defeats Bricks' mobile `.brxe-block{flex-wrap:wrap}`, which
   otherwise drops the +/- icon to its own line under a wrapped question. The
   icon stays top-right; the label shrinks + wraps (min-width:0). */
.cp-r-faq__q { display: flex; flex-wrap: nowrap !important; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; user-select: none; }
.cp-r-faq__q-label { flex: 1 1 auto; min-width: 0; font-size: 18px; line-height: 1.3; font-weight: 500; }
.cp-r-faq__q-icon { width: 16px; height: 16px; position: relative; flex: 0 0 16px; margin-top: 4px; color: var(--cp-text-primary, #111); }
.cp-r-faq__q-icon::before,
.cp-r-faq__q-icon::after { content: ''; position: absolute; inset: 0; background: currentColor; }
.cp-r-faq__q-icon::before { width: 2px; left: 7px; transition: transform 0.25s ease; }
.cp-r-faq__q-icon::after { height: 2px; top: 7px; }
.cp-r-faq__item.is-open .cp-r-faq__q-icon::before { transform: scaleY(0); }
.cp-r-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.cp-r-faq__item.is-open .cp-r-faq__a { max-height: var(--cp-r-faq-h, 1000px); }
.cp-r-faq__a-inner { padding: 0 0 20px; margin: 0; color: var(--cp-text-secondary, #555); line-height: 1.5; }

/* ═══ 7b. cp-r-faq-tabs — tabbed FAQ ═══ */
.cp-r-faq-tabs {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-r-faq-tabs__strip {
  display: flex;
  flex-direction: row;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}
.cp-r-faq-tabs__tab {
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
  flex: 0 0 auto;
  width: auto;
}
.cp-r-faq-tabs__tab.is-active {
  border-bottom-color: var(--cp-orange, #EA8B3F);
  opacity: 1;
}
.cp-r-faq-tabs__tab:hover { opacity: 0.85; }
.cp-r-faq-tabs__tab-label { font-size: 13px; white-space: nowrap; }
/* Only the active panel is shown; the nested cp-r-faq drops its own
   horizontal padding since the faq-tabs wrapper already provides it. */
.cp-r-faq-tabs__panel { display: none; }
.cp-r-faq-tabs__panel.is-active { display: block; }
.cp-r-faq-tabs__panel .cp-r-faq {
  padding: 8px 0 0;
  max-width: none;
}

/* ═══ 7c. cp-r-cardslider — header + horizontal card slider ═══ */
.cp-r-cardslider {
  --cp-cs-card: clamp(260px, 38vw, 520px);
  --cp-cs-gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
}
.cp-r-cardslider__head {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.cp-r-cardslider__head-left {
  display: flex; flex-direction: column; gap: 16px;
  flex: 1 1 auto; max-width: 680px;
}
.cp-r-cardslider__pill {
  display: inline-flex !important; width: auto !important;
  align-items: center; align-self: flex-start;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(40, 53, 74, 0.06);
}
.cp-r-cardslider__title {
  font-family: var(--cp-font-heading, Georgia, serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cp-text-headline, #28354A);
  margin: 0;
}
.cp-r-cardslider__head-right {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 12px; flex: 0 0 auto;
  padding-bottom: 4px;
}
/* Circular prev/next arrow buttons (icons drawn with CSS borders). */
.cp-r-cardslider__nav {
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(40, 53, 74, 0.16);
  display: flex !important; align-items: center; justify-content: center;
  cursor: pointer; flex: 0 0 auto;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.cp-r-cardslider__nav:hover {
  background: var(--cp-text-headline, #28354A);
  border-color: var(--cp-text-headline, #28354A);
}
.cp-r-cardslider__nav::before {
  content: '';
  width: 9px; height: 9px;
  border-top: 1.6px solid var(--cp-text-headline, #28354A);
  border-right: 1.6px solid var(--cp-text-headline, #28354A);
  transition: border-color 0.25s ease;
}
.cp-r-cardslider__nav:hover::before { border-color: #fff; }
.cp-r-cardslider__nav--next::before { transform: rotate(45deg); margin-left: -3px; }
.cp-r-cardslider__nav--prev::before { transform: rotate(-135deg); margin-right: -3px; }
.cp-r-cardslider__nav[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }

.cp-r-cardslider__viewport { overflow: hidden; width: 100%; }
.cp-r-cardslider__track {
  display: flex !important; flex-direction: row !important;
  gap: var(--cp-cs-gap);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.cp-r-cardslider__card {
  flex: 0 0 var(--cp-cs-card);
  width: var(--cp-cs-card) !important;
  display: flex !important; flex-direction: column !important;
  gap: 14px;
  text-decoration: none;
  position: relative;
}
/* Stretched link — covers the whole card so it's fully clickable, while the
   image + text render normally beneath it. Reset Bricks button chrome. */
.cp-r-cardslider__card-link {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  width: 100% !important; height: 100%;
  padding: 0 !important; margin: 0 !important;
  background: none !important; border: 0 !important;
  border-radius: 16px;
}
.cp-r-cardslider__card:hover .cp-r-cardslider__image { transform: scale(1.02); }
.cp-r-cardslider__image { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cp-r-cardslider__image {
  width: 100% !important;
  height: clamp(240px, 28vw, 380px);
  border-radius: 16px;
  overflow: hidden;
}
.cp-r-cardslider__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-r-cardslider__card-text { display: flex; flex-direction: column; gap: 4px; }
.cp-r-cardslider__card-title {
  font-family: var(--cp-font-body, system-ui);
  font-weight: 500; font-size: 16px;
  color: var(--cp-text-headline, #28354A);
}
.cp-r-cardslider__card-body {
  font-size: 14px; line-height: 1.45;
  color: var(--cp-text-secondary, #4a5568);
}
@media (max-width: 767px) {
  .cp-r-cardslider__head { flex-direction: column !important; align-items: flex-start; }
  .cp-r-cardslider__nav { width: 42px; height: 42px; }
}

/* ═══ 8. cp-r-marquee — logo marquee ═══ */
.cp-r-marquee {
  overflow: hidden;
  padding: 32px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.cp-r-marquee__track { display: flex; gap: 48px; width: max-content; animation: cp-r-marquee-scroll var(--cp-r-marquee-duration, 30s) linear infinite; align-items: center; }
.cp-r-marquee__item { height: 32px; width: auto; flex: 0 0 auto; opacity: 0.7; transition: opacity 0.2s ease; }
.cp-r-marquee__item:hover { opacity: 1; }

@keyframes cp-r-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══ 9. cp-r-testim-marquee — testimonial card scroller ═══ */
.cp-r-testim-marquee {
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}
.cp-r-testim-marquee__track { display: flex; gap: 20px; width: max-content; animation: cp-r-marquee-scroll var(--cp-r-marquee-duration, 60s) linear infinite; }
.cp-r-testim-marquee__card { flex: 0 0 360px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cp-r-testim-marquee__quote { font-size: 16px; line-height: 1.5; margin: 0; }
.cp-r-testim-marquee__meta { display: flex; align-items: center; gap: 10px; }
.cp-r-testim-marquee__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.cp-r-testim-marquee__who { font-size: 13px; opacity: 0.75; }

/* ═══ 10. cp-r-hiw-tabs — tabbed how-it-works ═══ */
.cp-r-hiw-tabs { padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; gap: 32px; }
.cp-r-hiw-tabs__strip { display: flex; gap: 4px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cp-r-hiw-tabs__tab { padding: 14px 20px; cursor: pointer; border-bottom: 2px solid transparent; transition: border-color 0.2s ease, opacity 0.2s ease; opacity: 0.55; flex: 0 0 auto; }
.cp-r-hiw-tabs__tab.is-active { border-bottom-color: var(--cp-orange, #EA8B3F); opacity: 1; }
.cp-r-hiw-tabs__tab-label { font-size: 13px; }
.cp-r-hiw-tabs__panels { position: relative; }
.cp-r-hiw-tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; position: absolute; inset: 0; pointer-events: none; }
/* Two-cell grid: text column (left), image (right). The image keeps its
   natural aspect ratio; the text wrapper stacks all copy. */
.cp-r-hiw-tabs__text { display: flex; flex-direction: column; gap: 8px; }
.cp-r-hiw-tabs__image { width: 100%; height: auto; object-fit: cover; }
.cp-r-hiw-tabs__panel.is-active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.cp-r-hiw-tabs__eyebrow { opacity: 0.6; }
.cp-r-hiw-tabs__title { font-size: 28px; margin: 8px 0 12px; }
.cp-r-hiw-tabs__body { line-height: 1.55; color: var(--cp-text-secondary, #555); margin: 0 0 16px; }
.cp-r-hiw-tabs__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cp-r-hiw-tabs__bullet::before { content: '✓'; color: var(--cp-orange, #EA8B3F); margin-right: 8px; }
.cp-r-hiw-tabs__image { width: 100%; border-radius: 16px; }
@media (max-width: 768px) {
  .cp-r-hiw-tabs__panel { grid-template-columns: 1fr; }
}

/* ═══ 11. cp-r-audiences — segmented audience selector ═══ */
.cp-r-audiences { padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; gap: 28px; align-items: center; }
.cp-r-audiences__nav { display: inline-flex; gap: 4px; padding: 4px; background: #f5f5f5; border-radius: 999px; flex-wrap: wrap; justify-content: center; }
.cp-r-audiences__pill { padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; opacity: 0.7; }
.cp-r-audiences__pill.is-active { background: var(--cp-orange, #EA8B3F); color: #fff; opacity: 1; }
.cp-r-audiences__pill-label { font-size: 12px; }
.cp-r-audiences__panels { position: relative; width: 100%; max-width: 720px; }
.cp-r-audiences__panel { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; position: absolute; inset: 0; pointer-events: none; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cp-r-audiences__panel.is-active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.cp-r-audiences__title { font-size: clamp(24px, 3vw, 36px); margin: 0; }
.cp-r-audiences__body { line-height: 1.55; color: var(--cp-text-secondary, #555); margin: 0; max-width: 560px; }
.cp-r-audiences__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cp-r-audiences__bullet::before { content: '✓'; color: var(--cp-orange, #EA8B3F); margin-right: 8px; }
.cp-r-audiences__cta { margin-top: 8px; }

/* ═══ 12. cp-r-stack — stacked-card explainer ═══ */
.cp-r-stack { display: flex; flex-direction: column; gap: 24px; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.cp-r-stack__card {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  transition: transform 0.35s ease;
}
/* All text stacks in column 1; image spans column 2 across all rows */
/* Two-cell grid: text column (left), image (right). */
.cp-r-stack__text { display: flex; flex-direction: column; gap: 0; }
.cp-r-stack__image { width: 100%; height: auto; object-fit: cover; align-self: center; }
.cp-r-stack__card[data-index="0"] { z-index: 1; }
.cp-r-stack__card[data-index="1"] { z-index: 2; }
.cp-r-stack__card[data-index="2"] { z-index: 3; }
.cp-r-stack__card[data-index="3"] { z-index: 4; }
.cp-r-stack__card[data-index="4"] { z-index: 5; }
.cp-r-stack__card[data-index="5"] { z-index: 6; }
.cp-r-stack__eyebrow { opacity: 0.6; }
.cp-r-stack__title { font-size: clamp(24px, 3vw, 36px); margin: 4px 0 12px; }
.cp-r-stack__body { line-height: 1.55; color: var(--cp-text-secondary, #555); margin: 0; }
.cp-r-stack__image { width: 100%; border-radius: 16px; }
@media (max-width: 768px) {
  .cp-r-stack__card { position: relative; top: auto; grid-template-columns: 1fr; }
}
