/* Category Pills Section ("Design A"): colors, type and buttons from the universal tokens (assets/tokens.css).
   Rules are scoped under .cps so they outrank the Site Kit (.elementor-kit-N a / h2 / p).
   Desktop/tablet: centred floating pills. Phone: still, 2 pills per row, full-width buttons. */
.cps { --cpp-float: 8px; --cpp-dur: 6s; --cps-text: center; --cps-justify: center; --cps-ml: auto; --cps-mr: auto;
  font-family: var(--cp-font); color: var(--cp-body); }
.cps, .cps *, .cps *::before, .cps *::after { box-sizing: border-box; } /* don't rely on the theme for this */
.cps svg { width: 1em; height: 1em; flex: none; }

/* Heading block */
.cps .cps__head { max-width: 720px; margin: 0 var(--cps-mr) 60px var(--cps-ml); text-align: var(--cps-text); }
.cps .cps__kicker.cp-label svg, .cps .cps__kicker.cp-label i { width: 17px; height: 17px; font-size: 17px; fill: currentColor; }
.cps .cps__title { margin: 14px 0 0; font-family: var(--cp-font); font-size: var(--cp-h2-size); font-weight: var(--cp-heading-weight); line-height: var(--cp-heading-line); letter-spacing: -0.02em; color: var(--cp-headline); text-wrap: balance; }
.cps .cps__title span { color: var(--cp-header-accent); }
.cps .cps__lead { margin: 16px 0 0; font-size: var(--cp-body-size); line-height: 1.6; color: var(--cp-body); text-wrap: pretty; }

/* Pills */
.cps .cps__cloud { display: flex; flex-wrap: wrap; justify-content: var(--cps-justify); gap: 12px; max-width: 1000px; margin: 0 var(--cps-mr) 0 var(--cps-ml); }
.cps .cps__pill, .cps .cps__pill:focus { display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px; background: var(--cp-tint); color: var(--cp-headline); font-family: var(--cp-font); font-size: 15.5px; font-weight: 500; line-height: 1.25; text-decoration: none; transition: background-color .3s, color .3s, box-shadow .3s; }
.cps.is-float .cps__pill { animation: cps-bob var(--cpp-dur) ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.6s); }
@keyframes cps-bob { 50% { transform: translateY(calc(var(--cpp-float) * -1)); } }
.cps .cps__ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 21px; line-height: 1; background: var(--cp-white); color: var(--cp-dark-accent); transition: background-color .3s, color .3s; }
.cps .cps__ic.is-alt { color: var(--cp-header-accent); }
.cps .cps__ic svg { fill: currentColor; }
.cps .cps__pill small { margin-left: 2px; font-size: 13px; font-weight: 400; color: var(--cp-header-accent); white-space: nowrap; transition: color .3s; }
.cps .cps__pill.is-lg { font-size: 16.5px; font-weight: 600; padding-right: 26px; }
.cps .cps__pill.is-lg .cps__ic { width: 50px; height: 50px; font-size: 24px; }
.cps a.cps__pill:hover, .cps a.cps__pill:focus-visible { background: var(--cp-primary); color: var(--cp-white); box-shadow: 0 20px 40px -26px #1a2b4c99; animation-play-state: paused; }
.cps a.cps__pill:hover .cps__ic, .cps a.cps__pill:focus-visible .cps__ic { background: #ffffff1a; color: var(--cp-accent); }
.cps a.cps__pill:hover small, .cps a.cps__pill:focus-visible small { color: var(--cp-blue-accent); }
.cps a.cps__pill:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }

/* Buttons (look from .cp-btn in tokens.css) */
.cps .cps__foot { display: flex; flex-wrap: wrap; justify-content: var(--cps-justify); gap: 14px; margin-top: 52px; }
.cps .cp-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--cp-ease); }
.cps .cp-btn:hover svg, .cps .cp-btn:focus-visible svg { transform: translateX(4px); }
.cps .cp-btn:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }

/* Phone: still, 2 per row, equal heights; an odd last pill spans the row; buttons full width */
@media (max-width: 767px) {
  .cps .cps__head { margin-bottom: 28px; }
  .cps .cps__cloud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cps .cps__pill, .cps .cps__pill.is-lg, .cps.is-float .cps__pill { animation: none; min-width: 0; min-height: 64px; padding: 8px 12px 8px 8px; gap: 10px; border-radius: 22px; font-size: 14px; font-weight: 500; }
  .cps .cps__pill .cps__ic, .cps .cps__pill.is-lg .cps__ic { width: 40px; height: 40px; font-size: 19px; }
  .cps .cps__txt { display: flex; flex-direction: column; min-width: 0; }
  .cps .cps__pill small { margin: 2px 0 0; font-size: 12px; }
  .cps .cps__pill:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cps .cps__foot { flex-direction: column; margin-top: 32px; }
  .cps .cps__foot .cp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cps .cps__pill { animation: none !important; } .cps * { transition: none !important; } }
