/* Product: Zoho PageSense - page-specific design. Accent sampled from the icon (#226db4).
   Mechanic is an A/B test race: clicking "run test" animates two conversion-rate bars filling
   toward pre-set endpoints, then declares a winner - distinct from every other mechanic on the
   site (a live two-way race animation, not a switchboard, matcher, checker, feed or builder).

   All classes scoped to .pgs-page, prefixed pgs-. */

.pgs-page { --pgs: #226db4; --pgs-d: #185086; --pgs-l: #eaf2fa; --pgs-win: #0a7a3e; }

.pgs-page .ph-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff;
  margin-block-end: 18px;
}
.pgs-page .ph-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

/* -------------------------------------------------------------------------- test -- */
.pgs-test { padding: clamp(48px, 7vw, 84px) 0; }
.pgs-test h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 12px; }
.pgs-test .lede { max-width: 82ch; margin: 0 0 26px; }

.pgs-arena { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 620px; }
.pgs-variant { padding: 16px; border-radius: 14px; background: var(--white); border: 2px solid var(--line); transition: border-color .3s ease; }
.pgs-variant.is-winner { border-color: var(--pgs-win); background: color-mix(in srgb, var(--pgs-win) 6%, var(--white)); }
.pgs-variant-tag { display: inline-block; font-size: .76rem; font-weight: 800; color: var(--pgs-d); background: var(--pgs-l); padding: 3px 10px; border-radius: 999px; margin-block-end: 10px; }
.pgs-mock { padding: 18px 10px; text-align: center; background: var(--pgs-l); border-radius: 8px; margin-block-end: 12px; }
.pgs-btn { display: inline-block; font-size: .8rem; font-weight: 700; color: #fff; background: var(--pgs); padding: 8px 14px; border-radius: 8px; }
.pgs-btn-b { background: var(--pgs-d); }
.pgs-track { height: 10px; border-radius: 999px; background: var(--pgs-l); overflow: hidden; margin-block-end: 8px; }
.pgs-fill { display: block; height: 100%; width: 0; background: var(--pgs); transition: width .1s linear; }
.pgs-fill-b { background: var(--pgs-d); }
.pgs-pct { margin: 0; font-size: .85rem; font-weight: 700; color: var(--ink); }

.pgs-run { margin-block-start: 20px; }
.pgs-result { margin: 14px 0 0; font-weight: 700; font-size: .92rem; color: var(--pgs-win); min-height: 22px; }

@media (max-width: 560px) {
  .pgs-arena { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------------ need -- */
.pgs-need {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--pgs-l);
  border-block: 1px solid color-mix(in srgb, var(--pgs) 18%, var(--line));
}
.pgs-need h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.pgs-need .lede { max-width: 82ch; margin: 0; }

/* ------------------------------------------------------------------------- caps -- */
.pgs-caps { padding: clamp(48px, 7vw, 84px) 0; }
.pgs-caps h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.pgs-cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.pgs-cap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.pgs-cap b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--pgs-d); }
.pgs-cap p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------------------- move -- */
.pgs-move { padding: clamp(48px, 7vw, 84px) 0; }
.pgs-move h2 { font-size: 1.35rem; margin: 0 0 10px; }
.pgs-move h3 { font-size: 1.08rem; }
