/* ============================================================
   USE CASES v2 — "calm split": editorial role list (left) +
   composer on an aura glow (right). Closing section before the
   footer — see the sticky-stack note in site-v3.css (#experts
   stays the pinned card now that this section, not /human, is
   the one sitting flush against the footer).
   ============================================================ */
#usecases { padding: clamp(46px, 6.5vh, 78px) 0; }
#usecases > .container { min-height: 0; }
#usecases .ucx { background: #fff; border-radius: 28px; padding: clamp(36px, 4.5vw, 68px); }
.ucx-cols { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 4.5vw, 72px); align-items: center; max-width: 1120px; margin: 0 auto; }
/* section headline — spans the full card above both columns, page display scale */
.ucx-title { margin: 0 auto clamp(30px, 4.5vw, 52px); max-width: 1120px; text-align: center; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(34px, 4.4vw, 60px); color: var(--ink-900); text-wrap: balance; }
.ucx-title em { font-style: normal; font-weight: 600; background: linear-gradient(90deg, #FF8A4C, #FF5F34 45%, #E43CFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* editorial role list — the card is pure white now, so the active pill is a
   white mini-card (hairline + elevation) and hover uses the muted token */
.ucx-rlist { display: flex; flex-direction: column; gap: 5px; }
.ucx-r { position: relative; overflow: hidden; text-align: left; background: none; border: 1px solid transparent; padding: 13px 14px; border-radius: 13px; cursor: pointer; font-family: var(--font-sans); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ucx-r:hover { background: var(--surface-muted); }
.ucx-r:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.ucx-r.on { background: #fff; border-color: var(--line); box-shadow: var(--shadow-elevation); }
.ucx-r b { display: block; width: fit-content; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); }
.ucx-r span { display: block; font-size: 13px; color: var(--slate-600); margin-top: 2px; }
.ucx-r.on b { background: linear-gradient(90deg, #FFAC6F, #FF5F34 50%, #E43CFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* dwell progress — hairline gradient fill along the active pill's bottom edge.
   Runs only while .ucx carries .cycling (JS re-adds it per arm(), removes it on
   hover/focus pause — the bar vanishing IS the "paused" cue). Duration mirrors
   DWELL in usecases-v2.js. */
.ucx-r.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #FFAC6F, #FF5F34 50%, #E43CFF); transform: scaleX(var(--ucx-p0, 0)); transform-origin: left center; }
.ucx.cycling .ucx-r.on::after { animation: ucxDwell 4.2s linear forwards; }
@keyframes ucxDwell { to { transform: scaleX(var(--ucx-p1, 1)); } }
.ucx-proof { display: flex; align-items: center; gap: 9px; margin-top: 30px; font-size: 12.5px; color: var(--slate-600); }
.ucx-proof .faces { display: inline-flex; }
.ucx-proof .faces img { width: 22px; height: 22px; border-radius: 999px; border: 2px solid #fff; object-fit: cover; margin-left: -7px; }
.ucx-proof .faces img:first-child { margin-left: 0; }
.ucx-proof strong { color: var(--ink-900); }
/* composer stage on an aura glow */
.ucx-stage { position: relative; }
.ucx-stage::before { content: ""; position: absolute; inset: -8% -6%; background: radial-gradient(55% 60% at 30% 20%, rgba(255,172,111,0.4), transparent 65%), radial-gradient(55% 65% at 78% 78%, rgba(228,60,255,0.3), transparent 65%), radial-gradient(45% 55% at 65% 30%, rgba(255,95,52,0.24), transparent 68%); filter: blur(14px); border-radius: 32px; }
/* DS composer (.dsbox base styles live in site-v3.css) — elevated for the aura
   stage, click-through to sign-in is bound in site-v3.js. The typed prompt uses
   the DS inline .tchip app chips + .tcaret. */
#usecases .dsbox { position: relative; border-radius: 22px; padding-bottom: 6px; box-shadow: 0 18px 44px -14px rgba(16,24,40,0.16), 0 4px 12px rgba(16,24,40,0.05); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
#usecases .dsbox:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 24px 54px -14px rgba(16,24,40,0.2), 0 6px 16px rgba(16,24,40,0.06); }
#usecases .dsbox:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; }
/* height comes from the high-water-mark reservation script (tallest prompt at
   the current width) — undo the legacy fixed 3-line height from the old split era */
#usecases .dsbox-type { height: auto; min-height: 78px; overflow: visible; padding-top: 2px; }
/* toolbar — DS composer spec: ghost icon buttons + gradient paper-plane send */
#usecases .dsbox-ctl { width: 32px; height: 32px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; cursor: pointer; transition: background .12s ease; }
#usecases .dsbox-ctl:hover { background: var(--surface-hover); }
#usecases .dsbox-ctl svg, #usecases .dsbox-ctl .galsvg { color: #6b7280; }
#usecases .dsbox-ctl svg { width: 18px; height: 18px; stroke-width: 1.8px; }
#usecases .dsbox-ctl .galsvg { width: 20px; height: 20px; }
#usecases .dsbox-send { width: 32px; height: 32px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; cursor: pointer; transition: background .12s ease; }
#usecases .dsbox-send svg { width: 18px; height: 18px; }
#usecases .dsbox-send svg path { opacity: .55; transition: opacity .12s ease; }
#usecases .dsbox-send:hover { background: var(--surface-hover); }
#usecases .dsbox-send:hover svg path, #usecases .dsbox:hover .dsbox-send svg path { opacity: 1; }
/* suggestion chips — DS .sg-chip (base in site-v3.css: 12px radius, icon + label,
   shadow-button); selected = DS white secondary with an ink ring + elevation,
   and each role's set pops in staggered (previous-version spec) */
.ucx-chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; transition: opacity .22s ease, transform .22s ease; }
#usecases .sg-chip { transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .26s ease, transform .18s ease; }
#usecases .sg-chip.active { background: #fff; border-color: var(--ink-900); color: var(--ink-900); font-weight: 600; box-shadow: var(--shadow-elevation); }
#usecases .sg-chip.active svg { stroke: var(--ink-900); color: var(--ink-900); }
@keyframes ucChipIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.ucx-chips .sg-chip { animation: ucChipIn .34s cubic-bezier(.22,1,.36,1) both; }
.ucx-chips .sg-chip:nth-child(2) { animation-delay: .06s; }
.ucx-chips .sg-chip:nth-child(3) { animation-delay: .12s; }
/* tools strip — the active persona's stack, full colour (no greyscale veil).
   Desktop: a hairline-separated footer row aligned to the composer's edges —
   label flush left, logos flush right. */
.ucx-stack { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.ucx-stack em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--slate-600); white-space: nowrap; }
.ucx-lgs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; transition: opacity .22s ease; }
.ucx-lgs img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; transition: transform .18s ease; }
.ucx-lgs img:hover { transform: translateY(-2px); }
/* wordmark logos (e.g. Deel) — natural width at a fixed cap height */
.ucx-lgs img.wide { width: auto; height: 15px; border-radius: 0; }
/* entrance — children stagger up once the card's own [data-reveal] fires
   (same .is-visible / .reveal-final contract as the rest of the page) */
.ucx[data-reveal] .ucx-title, .ucx[data-reveal] .ucx-r, .ucx[data-reveal] .ucx-proof, .ucx[data-reveal] .ucx-stage { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.ucx[data-reveal].is-visible .ucx-title { opacity: 1; transform: none; transition-delay: .05s; }
.ucx[data-reveal].is-visible .ucx-r:nth-child(1) { opacity: 1; transform: none; transition-delay: .14s; }
.ucx[data-reveal].is-visible .ucx-r:nth-child(2) { opacity: 1; transform: none; transition-delay: .19s; }
.ucx[data-reveal].is-visible .ucx-r:nth-child(3) { opacity: 1; transform: none; transition-delay: .24s; }
.ucx[data-reveal].is-visible .ucx-r:nth-child(4) { opacity: 1; transform: none; transition-delay: .29s; }
.ucx[data-reveal].is-visible .ucx-proof { opacity: 1; transform: none; transition-delay: .38s; }
.ucx[data-reveal].is-visible .ucx-stage { opacity: 1; transform: none; transition-delay: .22s; }
.ucx[data-reveal].reveal-final .ucx-title, .ucx[data-reveal].reveal-final .ucx-r, .ucx[data-reveal].reveal-final .ucx-proof, .ucx[data-reveal].reveal-final .ucx-stage { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ucx.cycling .ucx-r.on::after { animation: none; }
  .ucx[data-reveal] .ucx-title, .ucx[data-reveal] .ucx-r, .ucx[data-reveal] .ucx-proof, .ucx[data-reveal] .ucx-stage { opacity: 1; transform: none; transition: none; }
  #usecases .dsbox, #usecases .dsbox:hover { transform: none; }
  .ucx-chips .sg-chip { animation: none; }
}
@media (max-width: 940px) {
  #usecases .ucx { border-radius: 20px; padding: 28px 18px 26px; }
  .ucx-cols { grid-template-columns: 1fr; gap: 26px; max-width: 640px; }
  .ucx-title { margin-bottom: 24px; }
  .ucx-r { padding: 11px 12px; }
  .ucx-proof { justify-content: center; margin-top: 16px; }
  #usecases .dsbox-type { font-size: 15px; min-height: 88px; }
  #usecases .dsbox-tools .dsbox-ctl:nth-child(-n+2) { display: none; }
  .ucx-chips { justify-content: center; }
  .ucx-stack { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: 22px; }
  /* the 10-logo stack strip stays on ONE line on phones — tighter gap + smaller marks */
  .ucx-lgs { flex-wrap: nowrap; gap: 9px; justify-content: center; max-width: 100%; }
  .ucx-lgs img { width: 21px; height: 21px; }
  .ucx-lgs .ap { width: 21px !important; height: 21px !important; }
  .ucx-lgs { justify-content: center; }
}
