/* ─────────────────────────────────────────────────────────────────────────
 * clever-prep-soln-leaders.css
 * Page styles for /soln-leaders/ — the SOLN-exclusive kit-collector page.
 * Mobile-first. Most submissions come from QR scan on a phone during the
 * presentation, so phones get the first-class layout.
 * ───────────────────────────────────────────────────────────────────────── */

/* ── Hero — 2/3 copy left + 1/3 form right ──────────────────────────────── */
.brxe-section.cp-soln-hero {
  padding: clamp(72px, 12vw, 140px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
  background: var(--cp-cream-bg, #f7f4ed);
}
.brxe-container.cp-soln-hero__inner {
  display: block !important;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.brxe-block.cp-soln-hero__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: 100% !important;
}
@media (max-width: 900px) {
  .brxe-block.cp-soln-hero__grid { grid-template-columns: 1fr; }
}
.brxe-block.cp-soln-hero__left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left;
  gap: 18px;
  width: auto !important;
}
.brxe-block.cp-soln-hero__right {
  display: block !important;
  width: 100% !important;
}
.cp-soln-hero__eyebrow {
  color: var(--cp-orange, #ED863C);
  letter-spacing: .14em;
}
.cp-soln-hero__title {
  font-family: var(--cp-font-heading);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -.018em;
  color: var(--cp-text-headline, #28354A);
  margin: 0;
  max-width: 24ch;
}
.cp-soln-hero__sub {
  font-family: var(--cp-font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--cp-text-secondary);
  margin: 4px 0 0;
  max-width: 56ch;
}

/* ── Hero video preview card + modal lightbox ──────────────────────────── */
/* Bricks inlines html elements without a wrapper, so style the card directly. */
.cp-soln-video-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: stretch;
  width: 100%;
  max-width: 380px;
  margin-top: clamp(20px, 2.4vw, 32px);
  border-radius: 14px;
  background: #0c0d10;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12,13,16,0.18), 0 2px 6px rgba(12,13,16,0.10);
  transition: transform .25s ease, box-shadow .25s ease;
  font-family: var(--cp-font-body);
  text-align: left;
}
.cp-soln-video-card:hover,
.cp-soln-video-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12,13,16,0.22), 0 4px 10px rgba(12,13,16,0.12);
  outline: none;
}
.cp-soln-video-card__media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0c0d10;
  overflow: hidden;
}
.cp-soln-video-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-soln-video-card__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 46px 10px 14px;
  color: #fff;
  min-width: 0;
}
.cp-soln-video-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}
.cp-soln-video-card__sub {
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255,255,255,0.72);
  letter-spacing: .01em;
}
.cp-soln-video-card__plus {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
  pointer-events: none;
}
.cp-soln-video-card:hover .cp-soln-video-card__plus {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.06);
}

/* Modal lightbox */
.cp-soln-video-modal {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.cp-soln-video-modal.is-open { display: flex !important; }
.cp-soln-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,9,12,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.cp-soln-video-modal__shell {
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-soln-video-modal__close {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.cp-soln-video-modal__close:hover,
.cp-soln-video-modal__close:focus-visible {
  background: rgba(255,255,255,0.24);
  outline: none;
}
.cp-soln-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.cp-soln-video-modal__media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
body.cp-soln-video-modal-open { overflow: hidden; }

@media (max-width: 540px) {
  .cp-soln-video-card { max-width: 100%; grid-template-columns: 140px 1fr; }
}

/* ── Why this matters ──────────────────────────────────────────────────── */
.brxe-section.cp-soln-why {
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 64px);
  background: var(--cp-cream-bg, #f7f4ed);
}
.brxe-container.cp-soln-why__inner {
  display: block !important;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cp-soln-why__body {
  font-family: var(--cp-font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--cp-text-headline);
  margin: 0;
}
.cp-soln-why__body strong { font-weight: 500; }

/* ── Form section ──────────────────────────────────────────────────────── */
.brxe-section.cp-soln-form-section {
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 48px) clamp(60px, 9vw, 100px);
  background: var(--cp-cream-bg, #f7f4ed);
}
.brxe-container.cp-soln-form-section__inner {
  display: block !important;
  max-width: 640px;
  margin: 0 auto;
}
.cp-soln-form-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(40, 53, 74, 0.08);
  box-shadow: 0 18px 40px rgba(20, 30, 50, 0.08), 0 2px 6px rgba(20, 30, 50, 0.04);
  padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px);
}
.cp-soln-form__heading {
  font-family: var(--cp-font-heading);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--cp-text-headline);
  margin: 0 0 6px;
}
.cp-soln-form__intro {
  font-family: var(--cp-font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cp-text-secondary);
  margin: 0 0 16px;
}
.cp-soln-form {
  display: grid;
  gap: 14px;
}
.cp-soln-form__row {
  display: grid;
  gap: 12px;
}
.cp-soln-form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) {
  .cp-soln-form__row--2 { grid-template-columns: 1fr; }
}
.cp-soln-form__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Field-label styling scoped narrowly — applies only to the explicit
   `.cp-soln-form__label` class. Previously a `label` selector caught the
   checkbox wrappers too, which made the chip labels render in tiny mono. */
.cp-soln-form__label {
  font-family: var(--cp-font-mono, ui-monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-text-meta, rgba(15, 18, 23, 0.55));
}
/* Channels section header — readable copy, not a form-label. */
.cp-soln-form__sublabel {
  display: block;
  font-family: var(--cp-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-text-headline);
}
.cp-soln-form__sublabel-help {
  display: block;
  font-family: var(--cp-font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--cp-text-meta);
  margin-bottom: 6px;
}
.cp-soln-form__field input,
.cp-soln-form__field select {
  width: 100%;
  height: 42px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(15, 18, 23, 0.14);
  border-radius: 10px;
  font-family: var(--cp-font-body);
  font-size: 14px;
  color: var(--cp-text-headline);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.cp-soln-form__field input:focus,
.cp-soln-form__field select:focus {
  outline: none;
  border-color: var(--cp-orange, #ED863C);
  box-shadow: 0 0 0 3px rgba(237, 134, 60, 0.16);
}
.cp-soln-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%2328354A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cp-soln-form__field input::placeholder {
  color: rgba(15, 18, 23, 0.36);
}
.cp-soln-form__help {
  font-family: var(--cp-font-body);
  font-size: 12px;
  color: var(--cp-text-meta);
  margin: 2px 0 0;
}
/* Channel chips — horizontal wrapping pills. Each one is a label-wrapped
   checkbox; the input is hidden but still keyboard-accessible. Selected
   state uses :has() — supported in all modern browsers. */
.cp-soln-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.cp-soln-form__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 18, 23, 0.14);
  background: #fff;
  font-family: var(--cp-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--cp-text-headline);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.cp-soln-form__chip:hover {
  border-color: var(--cp-text-headline, #28354A);
}
.cp-soln-form__chip input[type="checkbox"] {
  /* Visually hidden but focusable + accessible to assistive tech */
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.cp-soln-form__chip:has(input:checked) {
  background: var(--cp-text-headline, #28354A);
  border-color: var(--cp-text-headline, #28354A);
  color: #fff;
}
.cp-soln-form__chip:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(237, 134, 60, 0.30);
}
.cp-soln-form__submit {
  align-self: stretch;
  margin-top: 6px;
  font-size: 14px;
  height: 44px;
}
.cp-soln-form__consent {
  font-family: var(--cp-font-body);
  font-size: 9px;
  line-height: 1.2;
  color: var(--cp-text-meta);
  margin: 6px 0 0;
}

/* Spam honeypot (Brevo plugin injects on every wired form). */
.cp-soln-form .cpbrevo-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Success state — replaces the form in place. */
.cp-soln-form-card[data-cp-soln-form-card] .cp-soln-success {
  display: none;
}
.cp-soln-form-card.is-submitted .cp-soln-form {
  display: none;
}
.cp-soln-form-card.is-submitted .cp-soln-form__heading,
.cp-soln-form-card.is-submitted .cp-soln-form__intro {
  display: none;
}
.cp-soln-form-card.is-submitted .cp-soln-success {
  display: block;
}
.cp-soln-success__title {
  font-family: var(--cp-font-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--cp-text-headline);
  margin: 0 0 12px;
}
.cp-soln-success__body {
  font-family: var(--cp-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cp-text-secondary);
  margin: 0;
}

/* Error state on field validation */
.cp-soln-form__field.is-error input,
.cp-soln-form__field.is-error select {
  border-color: #d16c6c;
  box-shadow: 0 0 0 3px rgba(209, 108, 108, 0.16);
}

/* ── Bridge / Platform intro ───────────────────────────────────────────── */
.brxe-section.cp-soln-bridge {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px) clamp(8px, 2vw, 24px);
  background: #fff;
}
.brxe-container.cp-soln-bridge__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.cp-soln-bridge__eyebrow {
  color: var(--cp-orange);
  letter-spacing: .14em;
}
.cp-soln-bridge__title {
  font-family: var(--cp-font-heading);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--cp-text-headline);
  margin: 0;
  max-width: 22ch;
}
.cp-soln-bridge__body {
  font-family: var(--cp-font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--cp-text-secondary);
  margin: 0;
  max-width: 52ch;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.brxe-section.cp-soln-footer {
  padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 64px);
  background: var(--cp-cream-bg, #f7f4ed);
  border-top: 1px solid rgba(40, 53, 74, 0.08);
}
.brxe-container.cp-soln-footer__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.cp-soln-footer__credit {
  font-family: var(--cp-font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cp-text-meta);
  margin: 0;
}
.cp-soln-footer__links {
  font-family: var(--cp-font-body);
  font-size: 13px;
  color: var(--cp-text-meta);
  margin: 0;
}
.cp-soln-footer__links a {
  color: var(--cp-text-headline);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cp-soln-footer__links a:hover {
  color: var(--cp-orange);
  text-decoration: underline;
}
