/* Use Cases page: "24-hour clock". Loaded after pages.css.
   Midnight at the top, 6 AM right, noon at the bottom, 6 PM left. */

/* =========================================================
   Shared dial pieces
   ========================================================= */
.uc-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; }
.uc-ring-ticks line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; stroke-linecap: round; }
.uc-ring-ticks line.major { stroke: rgba(255, 255, 255, 0.75); stroke-width: 2.5; }
.uc-ring-labels text { fill: rgba(255, 255, 255, 0.5); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }

/* =========================================================
   Hero: Clara inside the 24-hour ring
   ========================================================= */
.uc-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.uc-ring { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.uc-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.uc-ring-labels text { font-size: 12px; }
.uc-clara.clara-ui { position: absolute; inset: 0; padding: 0; justify-content: center; gap: 0; }
.cg-motion .uc-clara .clara-orb, .uc-clara .clara-orb { width: 168px; height: 168px; }
.cg-motion .uc-clara .cg-clara-gl { width: 228px; height: 228px; margin: -114px 0 0 -114px; }
.uc-clara .clara-stop { position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.uc-sweep {
  position: absolute; left: 50%; top: 5.5%; width: 2px; height: 44.5%; margin-left: -1px; z-index: 1;
  background: linear-gradient(to top, rgba(255, 208, 44, 0) 45%, var(--c-yellow));
  transform-origin: 50% 100%; pointer-events: none; border-radius: 2px;
}
.uc-sweep::after { content: ''; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-yellow); box-shadow: 0 0 12px rgba(255, 208, 44, 0.8); }
.cg-motion .uc-sweep { animation: ucSweep 24s linear infinite; }
.cg-motion .uc-ring.is-paused .uc-sweep { animation-play-state: paused; }
@keyframes ucSweep { from { transform: rotate(33.5deg); } to { transform: rotate(393.5deg); } }
.uc-ring-tag { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.uc-ring.clara-active ~ .clara-hint { visibility: hidden; }

/* =========================================================
   A day of calls
   ========================================================= */
.uc-day-sec { overflow: hidden; }
.uc-day-sec .body-large { color: rgba(255, 255, 255, 0.72); }
.uc-day { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.uc-clock { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.uc-clock::before {
  content: ''; position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 208, 44, 0.22), transparent 70%);
  opacity: 0; transition: opacity 0.6s ease-out; pointer-events: none;
}
.uc-day.is-daytime .uc-clock::before { opacity: 1; }
.uc-clock svg { position: relative; width: min(100%, 420px); aspect-ratio: 1; display: block; }
.uc-face { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.08); }
.uc-daylight { fill: none; stroke: url(#ucSky); stroke-width: 22; }
.uc-mark { fill: rgba(255, 255, 255, 0.35); transform-box: fill-box; transform-origin: center; transition: fill 0.3s ease-out, transform 0.3s ease-out; }
.uc-mark.is-on { fill: var(--c-yellow); transform: scale(1.6); }
.uc-hand { transform-box: view-box; transform-origin: 200px 200px; }
.cg-motion .uc-day:not(.is-scrub) .uc-hand { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.uc-hand line { stroke: var(--c-yellow); stroke-width: 4; stroke-linecap: round; }
.uc-hand circle { fill: var(--c-yellow); }
.uc-pin { fill: var(--c-ink); stroke: var(--c-yellow); stroke-width: 3; }
.uc-clock-read { position: relative; display: flex; align-items: baseline; gap: 6px; color: var(--c-white); font-variant-numeric: tabular-nums; }
.uc-clock-time { display: inline-block; min-width: 4.2ch; text-align: right; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.uc-clock-ap { font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, 0.55); }

/* the calls: stacked in one fixed-size stage (motion), a list without motion */
.uc-stage { min-width: 0; }
.uc-calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cg-motion .uc-calls:not(.cg-carousel) { display: block; position: relative; height: 340px; }
.cg-motion .uc-calls:not(.cg-carousel) .uc-call { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.35s ease-out, transform 0.35s ease-out, visibility 0s linear 0.35s; }
.cg-motion .uc-calls:not(.cg-carousel) .uc-call.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s ease-out, transform 0.35s ease-out; }
.uc-call {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: 24px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--c-white);
}
.uc-call-time { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.uc-t { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.uc-t small { font-size: 14px; font-weight: 700; margin-left: 4px; color: rgba(255, 255, 255, 0.55); }
.uc-badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.uc-badge.is-after { border-color: var(--c-yellow); color: var(--c-yellow); }
.uc-call .uc-icon { background: rgba(255, 208, 44, 0.14); color: var(--c-yellow); }
.uc-call .uc-head h3 { color: var(--c-white); }
.uc-call .uc-tag { color: rgba(255, 255, 255, 0.55); }
.uc-call .uc-scenario { background: rgba(255, 255, 255, 0.05); }
.uc-call .uc-caller .uc-role { color: rgba(255, 255, 255, 0.55); }
.uc-call .uc-caller p { color: var(--c-white); }
.uc-call .uc-agent p { color: rgba(255, 255, 255, 0.72); }
.uc-call .uc-outcome { color: var(--c-white); margin-top: 0; }
/* each call plays: caller, then Citgentic, then the outcome */
.cg-motion .uc-call.is-play .uc-caller { animation: sdIn 0.4s ease-out 0.1s both; }
.cg-motion .uc-call.is-play .uc-agent { animation: sdIn 0.4s ease-out 0.7s both; }
.cg-motion .uc-call.is-play .uc-outcome { animation: sdIn 0.4s ease-out 1.3s both; }
@keyframes sdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.uc-steps { display: none; list-style: none; margin: 16px 0 0; padding: 0; gap: 8px; flex-wrap: wrap; }
.cg-motion .uc-steps { display: flex; }
.uc-steps button {
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
.uc-steps button:hover { border-color: rgba(255, 255, 255, 0.6); color: var(--c-white); }
.uc-steps button:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }
.uc-steps button.is-on { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }

/* =========================================================
   Three beats on one call
   ========================================================= */
.uc-beats { position: relative; }
.uc-beats-wave { display: block; width: 100%; height: 72px; margin-bottom: 8px; }
.uc-bw-base { fill: none; stroke: rgba(26, 26, 26, 0.12); stroke-width: 2; vector-effect: non-scaling-stroke; }
.uc-bw-live { fill: none; stroke: var(--c-yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.uc-beat-flow { margin-top: 0; }
.cg-motion .uc-beats.is-armed .uc-bw-live { stroke-dashoffset: 1; }
.cg-motion .uc-beats.is-play .uc-bw-live { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(0.45, 0, 0.55, 1); }
.cg-motion .uc-beats.is-armed .beat { opacity: 0.4; transition: opacity 0.4s ease-out, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.cg-motion .uc-beats.is-armed .beat-num { background: rgba(26, 26, 26, 0.08); transition: background-color 0.4s ease-out; }
.cg-motion .uc-beats.is-play .beat { opacity: 1; }
.cg-motion .uc-beats.is-play .beat-num { background: var(--c-yellow); }
.cg-motion .uc-beats.is-play .beat::before { height: 100%; }
.cg-motion .uc-beats.is-play .beat:nth-child(1), .cg-motion .uc-beats.is-play .beat:nth-child(1) .beat-num, .cg-motion .uc-beats.is-play .beat:nth-child(1)::before { transition-delay: 0.3s; }
.cg-motion .uc-beats.is-play .beat:nth-child(2), .cg-motion .uc-beats.is-play .beat:nth-child(2) .beat-num, .cg-motion .uc-beats.is-play .beat:nth-child(2)::before { transition-delay: 1.15s; }
.cg-motion .uc-beats.is-play .beat:nth-child(3), .cg-motion .uc-beats.is-play .beat:nth-child(3) .beat-num, .cg-motion .uc-beats.is-play .beat:nth-child(3)::before { transition-delay: 2s; }

/* =========================================================
   Business marquee
   ========================================================= */
.uc-fits-head { max-width: 760px; margin: 0 auto; }
.uc-fits-head .body-large { margin: 0 auto; }
.uc-fits-head .cg-ask { justify-content: center; margin: 16px 0 0; }
.uc-marquee { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.uc-marquee-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.uc-marquee-track { display: flex; width: max-content; }
.uc-marquee-dup { display: flex; }
.uc-marquee .biz-chip { margin-right: 12px; white-space: nowrap; }
.cg-motion .uc-marquee-track { animation: ucMarq 48s linear infinite; }
.cg-motion .uc-marquee-row.is-rev .uc-marquee-track { animation-direction: reverse; animation-duration: 56s; }
.cg-motion .uc-marquee:hover .uc-marquee-track, .cg-motion .uc-marquee.is-paused .uc-marquee-track { animation-play-state: paused; }
@keyframes ucMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* without motion: one calm wrapped cloud */
html:not(.cg-motion) .uc-marquee-row { -webkit-mask-image: none; mask-image: none; }
html:not(.cg-motion) .uc-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 12px; }
html:not(.cg-motion) .uc-marquee-dup { display: none; }

/* =========================================================
   Desktop one-screen tuning (the day scene is pinned in fit mode)
   ========================================================= */
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .uc-ring { width: min(440px, 62vh); }
  .cg-fit .uc-day-sec .cg-head { margin-bottom: clamp(8px, 2vh, 24px) !important; }
  .cg-fit .uc-day-sec .h2 { font-size: clamp(28px, 4.6vh, 44px); }
  .cg-fit .uc-day-sec .body-large { font-size: clamp(14px, 2vh, 17px); }
  .cg-fit .uc-clock svg { width: min(100%, 52vh, 420px); }
  .cg-fit .uc-clock-time { font-size: clamp(28px, 4.6vh, 40px); }
  .cg-fit .uc-call { padding: clamp(16px, 2.6vh, 24px); gap: clamp(8px, 1.6vh, 16px); }
  .cg-fit .uc-call .uc-scenario { padding: clamp(12px, 2vh, 18px); gap: clamp(8px, 1.2vh, 12px); }
  .cg-fit .uc-t { font-size: clamp(24px, 4vh, 32px); }
  .cg-fit .uc-beats-wave { height: clamp(48px, 9vh, 72px); }
  .cg-fit .uc-beats .beat { padding: clamp(16px, 3vh, 28px) 24px; }
  .cg-fit .uc-marquee { margin-top: clamp(24px, 4vh, 40px); }
}

/* =========================================================
   Phones and tablets
   ========================================================= */
@media (max-width: 1023px) {
  .uc-day { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .uc-clock svg { width: min(100%, 320px); }
}
@media (max-width: 767px) {
  .uc-ring { width: min(300px, 100%); }
  .cg-motion .uc-clara .clara-orb, .uc-clara .clara-orb { width: 120px; height: 120px; }
  .cg-motion .uc-clara .cg-clara-gl { width: 164px; height: 164px; margin: -82px 0 0 -82px; }
  .uc-ring-labels text { font-size: 15px; }
  .uc-calls { grid-template-columns: minmax(0, 1fr); }
  .uc-clock svg { width: min(100%, 240px); }
  .uc-clock-time { font-size: 32px; }
  .cg-motion .uc-steps { display: none; }
  .cg-motion .uc-calls.cg-carousel .uc-call { padding: 20px; }
  .uc-t { font-size: 28px; }
  .uc-beats-wave { height: 48px; }
}

/* ---- refinements ---- */
/* hero ring: the orb covers the middle, so the ring shows ticks only */
.uc-ring .uc-ring-labels { display: none; }
/* laptops: the clock already shows the time, so the stacked card shows just the badge */
.cg-motion .uc-calls:not(.cg-carousel) .uc-t { display: none; }
.cg-motion .uc-calls:not(.cg-carousel) .uc-call-time { justify-content: flex-start; }

/* the stage is sized by script to the tallest call; cards keep their natural content height */
.cg-motion .uc-calls:not(.cg-carousel) .uc-call { bottom: auto; }
@media (min-width: 1024px) and (max-height: 760px) { .cg-fit .uc-call .uc-line p { font-size: 13px; } .cg-fit .uc-call .uc-head h3 { font-size: 16px; } .cg-fit .uc-call .uc-icon { width: 40px; height: 40px; } }

@media (max-width: 767px) { .uc-clock-read { display: none; } }
