/* USE CASES: Cliento "core features" pattern.
   Opener centred on its own screen. Then rows in a narrow centred column: a tall visual card on one side,
   the copy on the other (title + lines at the top, a big indigo stat low down). Rows alternate sides.
   Cards are brand indigo (light at the top, saturated at the bottom) or white. No black fields. */

main > section#solutions.uc { background: #fff !important; color: #09090b; overflow: visible; height: auto !important; min-height: 0 !important; padding: clamp(96px, 15vh, 150px) 0 clamp(56px, 9vh, 96px) !important; }
.uc::before, .uc::after { content: none !important; display: none !important; }

.uc { --uc-w: min(100% - 48px, 960px); --uc-h: clamp(320px, calc(100svh - var(--nav, 72px) - 150px), 500px); }

/* ---------- opener: alone on the first screen ---------- */
/* the opener: one stop puts it under the nav with the first row below it */
.uc__head { box-sizing: border-box; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.uc__k { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: #52525b; letter-spacing: 0; }
.uc__head h2 { margin: 0; max-width: none; font-size: clamp(28px, 2.9vw, 42px); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; color: #09090b; text-wrap: balance; }

/* ---------- rows ---------- */
.uc__rows { width: var(--uc-w); margin: 28px auto 0; display: grid; gap: clamp(28px, 4vh, 44px); }
.uc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.uc-row--flip .uc-card { order: 2; }

/* the card */
.uc .uc-card.va-panel { height: var(--uc-h) !important; border-radius: 22px; overflow: hidden; container-type: size; box-sizing: border-box; }
.uc-card--brand { background: linear-gradient(180deg, #9aa5f2 0%, #6574e0 38%, #3f51d1 100%) !important; box-shadow: 0 40px 80px -40px rgba(63, 81, 209, .55); }
.uc-card--white { background: #fff !important; box-shadow: 0 0 0 1px rgba(63, 81, 209, .08), 0 30px 70px -36px rgba(30, 40, 110, .28); }

/* the copy: title and lines at the top, the stat low down */
.uc-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 4cqh, 40px) 0 clamp(24px, 7vh, 64px); min-width: 0; }
.uc-copy h3 { margin: 0 0 12px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; color: #09090b; max-width: 12ch; text-wrap: balance; }
.uc-copy h3 + p { margin: 0; max-width: 34ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; color: #52525b; }
.uc-pts { list-style: none; margin: 0; padding: 0; max-width: 36ch; }
.uc-pts li { padding: 12px 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: #27272a; border-top: 1px solid rgba(9,9,11,.08); }
.uc-pts li:last-child { padding-bottom: 0; }

/* ---------- the visuals, fitted to a taller card ---------- */
/* 1 interview: a portrait call, like a phone held up */
.uc .va-s1 .i1-call { width: auto; height: 84cqh; aspect-ratio: 3 / 4; max-width: 86cqw; box-shadow: 0 40px 70px -30px rgba(9, 9, 40, .55), 0 0 0 1px rgba(255,255,255,.18); }
.uc .va-s1 .i1-media { object-position: 50% 30%; }

/* 2 brand: the tracker card above, the meaning below, centred in the card */
.uc .va-s2 { position: absolute !important; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 6cqw; }
.uc .va-s2 .ice { position: relative !important; inset: auto; width: 100%; }
.uc .va-s2 .ice-top { height: auto !important; padding: 0 0 4px !important; }
.uc .va-s2 .b-card { width: 100%; box-shadow: 0 0 0 1px rgba(63,81,209,.08), 0 20px 40px -26px rgba(30, 40, 110, .35); }
.uc .va-s2 .ice-deep { margin-top: 12px; padding: 12px 16px 14px; }
.uc .va-s2 .ice-top { gap: 6px; }
.uc .va-s2 .b-card { padding: 12px 18px 14px; }
.uc .va-s2 .b-row { margin-top: 7px; }
.uc .va-s2 .ice-layer { margin-top: 8px; }
.uc .va-s2 .ice-say { padding: 7px 12px; font-size: 13px; }
.uc .va-s2 .ice-pill { padding: 6px 13px; font-size: 13px; }

/* 3 concept: one board, two voices */
.uc .va-s3 .k-board { height: 66cqh; width: 49.5cqh; margin: -33cqh 0 0 -24.75cqh; top: 52%; transform: none; }
.uc .va-s3 .k-say { width: 44cqw; max-width: 240px; z-index: 2; }
.uc .va-s3 .k-say--l { left: 4cqw; }
.uc .va-s3 .k-say--r { right: 4cqw; }
.uc .va-s3 .k-say::after { display: none; }

/* 4 diaries: board up top, the insight card below */
.uc .va-s4 .d-board { position: relative; top: auto; margin-top: -16cqh; width: 88cqw; padding: 12px; box-shadow: 0 0 0 1px rgba(63,81,209,.08), 0 24px 50px -30px rgba(30, 40, 110, .3); }
.uc .va-s4 .d-grid { gap: 6px; }
.uc .va-s4 .d-col { gap: 6px; }
.uc .va-s4 .d-tile span { display: none; }
.uc .va-s4 .d-insight { width: 80cqw; }

/* ---------- motion: rows rise in, the card a beat before the copy (uc.js adds .is-in) ---------- */
html.uc-on .uc-row .uc-card, html.uc-on .uc-row .uc-copy > * { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform 1s cubic-bezier(.16,1,.3,1); }
html.uc-on .uc-row .uc-copy > :nth-child(1) { transition-delay: .12s; }
html.uc-on .uc-row .uc-copy > :nth-child(2) { transition-delay: .28s; }
html.uc-on .uc-row.is-in .uc-card, html.uc-on .uc-row.is-in .uc-copy > * { opacity: 1; transform: none; }

/* ---------- layered product-UI cards (concept, diaries): a white panel, a floating card overlapping it ---------- */
.uc .uc-ui { display: block; }
.ux-panel { position: absolute; left: 8cqw; right: 8cqw; top: 50%; transform: translateY(-50%); box-sizing: border-box; background: #fff; border-radius: 18px; padding: 16px 16px 18px; box-shadow: 0 0 0 1px rgba(63,81,209,.08), 0 30px 60px -28px rgba(20, 28, 90, .45); }
.ux-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ux-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: #09090b; }
.ux-live, .ux-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #3f51d1; background: #eef1ff; padding: 4px 10px; border-radius: 999px; }
.ux-live i { width: 6px; height: 6px; border-radius: 50%; background: #3f51d1; box-shadow: 0 0 0 3px rgba(63,81,209,.2); animation: uxPulse 1.8s ease-in-out infinite; }
@keyframes uxPulse { 50% { box-shadow: 0 0 0 6px rgba(63,81,209,0); } }
.ux-float { position: absolute; left: 14cqw; right: 14cqw; bottom: 6cqh; box-sizing: border-box; border-radius: 16px; padding: 14px 18px 16px; z-index: 2; }
.ux-k { margin: 0 0 4px; font-size: 12px; font-weight: 500; }
.ux-t { margin: 0; font-size: clamp(15px, 3.6cqw, 18px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }

/* concept: two boards, the pick ringed, the AI probing, the co-created result floating over */
.ukc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ukc-c { position: relative; margin: 0; height: 24cqh; border-radius: 12px; overflow: hidden; background: #f4f4f5; }
.ukc-c img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.ukc-c:not(.ukc-c--on) img { opacity: .45; filter: saturate(.6); }
.ukc-c--on { box-shadow: 0 0 0 2px #3f51d1; }
.ukc-c figcaption { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 600; color: #09090b; background: #fff; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(9,9,30,.12); }
.ukc-c figcaption span { color: #3f51d1; }
.ux-chat { display: grid; gap: 6px; margin-top: 12px; }
.ux-chat p { margin: 0; width: fit-content; max-width: 88%; font-size: 13px; line-height: 1.3; padding: 7px 11px; border-radius: 14px; }
.ux-ai { background: #f4f4f5; color: #27272a; border-bottom-left-radius: 4px !important; }
.ux-ai b { font-size: 10.5px; font-weight: 600; color: #fff; background: #3f51d1; padding: 1px 5px; border-radius: 4px; margin-right: 7px; vertical-align: 1px; }
.ux-me { justify-self: end; background: #3f51d1; color: #fff; border-bottom-right-radius: 4px !important; }
.ukc-co { background: #fff; color: #09090b; box-shadow: 0 0 0 1px rgba(63,81,209,.1), 0 26px 50px -20px rgba(15, 20, 80, .55); }
.ukc-co .ux-k { color: #3f51d1; }

/* diaries: day progress, today's task, one entry with auto tags, the pattern floating over in indigo */
.ukd-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.ukd-bar i { height: 4px; border-radius: 2px; background: #e4e4e7; }
.ukd-bar i.on { background: #3f51d1; }
.ukd-task { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #09090b; }
.ukd-task span { display: block; font-size: 11.5px; font-weight: 500; color: #71717a; margin-bottom: 3px; letter-spacing: 0; }
.ukd-entry { display: grid; grid-template-columns: 22cqh 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 14px; background: #f8f8fb; }
.uc .ukd-shot { width: 22cqh; aspect-ratio: 1; height: auto; border-radius: 10px; }
.ukd-note p { margin: 0 0 8px; font-size: 13px; line-height: 1.35; color: #27272a; }
.ukd-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ukd-tags span { font-size: 11px; font-weight: 500; color: #3342b3; background: #eef1ff; padding: 3px 8px; border-radius: 999px; }
.ukd-in { background: linear-gradient(180deg, #5767de 0%, #3f51d1 100%); color: #fff; box-shadow: 0 26px 50px -18px rgba(63, 81, 209, .7); }
.ukd-in .ux-k { color: #c7cdf6; }

/* pricing: a price scale with the fair zone and the cliff, then the AI probing the threshold */
.upr-scale { padding: 12px 12px 10px; border-radius: 14px; background: #f8f8fb; }
.upr-k { margin: 0 0 22px; font-size: 11.5px; font-weight: 500; color: #71717a; }
.upr-track { position: relative; height: 8px; border-radius: 999px; background: #e4e4e7; }
.upr-ok { position: absolute; left: 0; top: 0; bottom: 0; width: 54%; border-radius: 999px; background: linear-gradient(90deg, #8b9bff 0%, #3f51d1 100%); }
.upr-cliff { position: absolute; left: 62%; top: -6px; bottom: -6px; width: 2px; border-radius: 2px; background: #e5484d; }
.upr-cliff span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; font-style: normal; color: #e5484d; background: #fff1f1; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.upr-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; font-weight: 500; color: #52525b; font-variant-numeric: tabular-nums; }
.upr .ux-chat { margin-top: 12px; }

/* diligence: the deal question, one shopper's answer with tags */
.uc .udl-shot { width: 22cqh; aspect-ratio: 1; height: auto; border-radius: 10px; object-fit: cover; object-position: 50% 30%; display: block; }

/* study pages: a related-reading link under the points */
.uc-copy .sp-read { margin-top: 4px; }

/* ---------- small screens: stack, card first ---------- */
@media (max-width: 899px) {
  .uc { --uc-h: auto; }
  main > section#solutions.uc { padding-top: 88px !important; }
  .uc__head { position: static; padding: 0 24px 40px; }
  .uc__rows { margin-top: 0; }
  .uc-row { grid-template-columns: 1fr; gap: 20px; }
  .uc-row--flip .uc-card { order: 0; }
  .uc .uc-card.va-panel { height: auto !important; container-type: inline-size; }
  .uc .va-s2 { position: relative !important; padding: 28px 16px; }
  .uc .va-s1 .i1-call { height: auto; width: 100%; aspect-ratio: 4 / 3; }
  .uc-copy { padding: 0; gap: 28px; }
  .uc-copy h3 { max-width: none; }
  .uc .uc-ui { position: relative; padding: 20px 16px 24px; }
  .ux-panel { position: relative; left: auto; right: auto; top: auto; transform: none; }
  .ux-float { margin: -14px 16px 0; }
  .ukc-c { height: 150px; }
  .ukd-entry { grid-template-columns: 90px 1fr; } .uc .ukd-shot, .uc .udl-shot { width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html.uc-on .uc-row .uc-card, html.uc-on .uc-row .uc-copy > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
