/*
 * "How Cloud Recording Works" (public/site/lendl-ccr.js): the header button and the animated walk-through.
 * The dialog root carries data-step (0–6) and data-node (site | bridge | link | cloud | view | care);
 * the scene lights up whatever that step is about. Brand red #d51c2a, ink #121212.
 */
:root { --ccr-red: #d51c2a; --ccr-red-dk: #a31420; --ccr-ink: #121212; --ccr-mute: #5b5f66; --ccr-line: #e6e6e8; --ccr-ease: cubic-bezier(.2, .8, .2, 1); }

/* ---------- floating icon, just above the "Ask Lend'L" chat button (public/site/lendl-chat.css) ---------- */
.ccr-fab {
  position: fixed; right: 24px; bottom: 84px; z-index: 8999; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--ccr-red); border-radius: 50%; background: #fff; color: var(--ccr-red); text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(15, 18, 24, .45); transition: background-color .25s ease, color .25s ease, transform .25s var(--ccr-ease);
}
.ccr-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; animation: ccr-bob 2.6s ease-in-out infinite; }
.ccr-fab .ccr-fab__play { fill: currentColor; stroke: none; }
.ccr-fab:hover, .ccr-fab:focus-visible { background: var(--ccr-red); color: #fff; transform: translateY(-2px); outline: none; }
.ccr-fab__tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); padding: 7px 12px; border-radius: 8px;
  background: var(--ccr-ink); color: #fff; font-size: 13px; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .2s ease, transform .2s var(--ccr-ease);
}
.ccr-fab:hover .ccr-fab__tip, .ccr-fab:focus-visible .ccr-fab__tip { opacity: 1; transform: translate(0, -50%); }
@keyframes ccr-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* Out of the way while the chat or the walk-through itself is open. */
body:has(.lchat.is-open) .ccr-fab, body.ccr-open .ccr-fab { display: none; }
@media (max-width: 600px) { .ccr-fab { right: 18px; bottom: 76px; width: 42px; height: 42px; } .ccr-fab__tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .ccr-fab svg { animation: none; } }
.ccr-drawer { color: var(--ccr-red) !important; }

/* ---------- dialog ---------- */
/* Only the body is locked: overflow:hidden on <html> blanks this theme's page. */
body.ccr-open { overflow: hidden; }
.ccr { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; font-family: var(--font-body-family, 'Questrial'), sans-serif; color: var(--ccr-ink); }
.ccr[hidden] { display: none; }
.ccr__backdrop { display: block !important; position: absolute; inset: 0; background: rgba(12, 14, 18, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.ccr__panel {
  position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none;
  background: #fff; border-radius: 22px; padding: 28px 32px 24px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s var(--ccr-ease), transform .35s var(--ccr-ease);
}
.ccr.is-open .ccr__backdrop { opacity: 1; }
.ccr.is-open .ccr__panel { opacity: 1; transform: none; }
.ccr__x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f4f5; color: var(--ccr-ink); font-size: 26px; line-height: 1; cursor: pointer; transition: background-color .2s ease, transform .3s var(--ccr-ease); }
.ccr__x:hover { background: #ececee; transform: rotate(90deg); }
.ccr__eyebrow { margin: 0 0 4px; color: var(--ccr-red); font-size: 1.25rem; letter-spacing: .14em; text-transform: uppercase; }
.ccr__title { margin: 0; font-size: clamp(2.4rem, 3.4vw, 3.4rem); line-height: 1.1; color: var(--ccr-ink); }
.ccr__lede { margin: 6px 0 0; color: var(--ccr-mute); font-size: 1.5rem; }

.ccr__stage { margin: 14px -8px 4px; border-radius: 18px; background: linear-gradient(180deg, #fbfbfc, #f5f5f7); border: 1px solid #efeff1; }
.ccr-scene { display: block; width: 100%; height: auto; max-height: min(300px, 34vh); margin: 0 auto; overflow: visible; }

/* step tabs */
.ccr__dots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ccr__dots button {
  width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; padding: 6px 4px 0; border: 0; background: none;
  color: var(--ccr-mute); font: inherit; font-size: 1.2rem; text-align: left; cursor: pointer;
}
.ccr__dot-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d4d4d8; font-size: 1.1rem; transition: all .3s var(--ccr-ease); }
.ccr__dot-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccr__bar { grid-column: 1 / -1; display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: #ececee; overflow: hidden; }
.ccr__bar b { display: block; height: 100%; width: 0; background: var(--ccr-red); }
.ccr__dots button.is-done .ccr__bar b { width: 100%; }
.ccr__dots button.is-done .ccr__dot-n { border-color: var(--ccr-red); color: var(--ccr-red); }
.ccr__dots button[aria-selected="true"] { color: var(--ccr-ink); }
.ccr__dots button[aria-selected="true"] .ccr__dot-n { background: var(--ccr-red); border-color: var(--ccr-red); color: #fff; transform: scale(1.08); }
.ccr__dots button[aria-selected="true"] .ccr__bar b { animation: ccr-fill 6.5s linear forwards; }
.ccr.is-paused .ccr__dots button[aria-selected="true"] .ccr__bar b { animation: none; width: 100%; }
@keyframes ccr-fill { from { width: 0; } to { width: 100%; } }

.ccr__copy { min-height: 136px; margin-top: 14px; }
.ccr__n { margin: 0; color: var(--ccr-red); font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; }
.ccr__h { margin: 4px 0 6px; font-size: 2.2rem; line-height: 1.2; color: var(--ccr-ink); }
.ccr__d { margin: 0; max-width: 70ch; color: #3d4047; font-size: 1.55rem; line-height: 1.55; }
.ccr__copy.is-swap > * { animation: ccr-in .5s var(--ccr-ease) both; }
.ccr__copy.is-swap .ccr__h { animation-delay: .05s; }
.ccr__copy.is-swap .ccr__d { animation-delay: .1s; }
@keyframes ccr-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ccr__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f2; }
.ccr__spacer { flex: 1; }
.ccr__btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 1.4rem; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ccr__btn--ghost { width: 42px; padding: 0; border: 1.5px solid #e2e2e5; background: #fff; color: var(--ccr-ink); font-size: 1.5rem; }
.ccr__btn--ghost:hover { border-color: var(--ccr-red); color: var(--ccr-red); }
.ccr__pp svg { fill: currentColor; }
.ccr__btn--line { border: 1.5px solid var(--ccr-ink); color: var(--ccr-ink); background: #fff; }
.ccr__btn--line:hover { background: var(--ccr-ink); color: #fff; }
.ccr__btn--red { border: 1.5px solid var(--ccr-red); background: var(--ccr-red); color: #fff !important; }
.ccr__btn--red:hover { background: var(--ccr-red-dk); border-color: var(--ccr-red-dk); }

/* ---------- the scene ---------- */
.ccr-line { fill: #fff; stroke: #9a9ca3; stroke-width: 2.5; stroke-linejoin: round; transition: stroke .4s ease, fill .4s ease; }
.ccr-ink { fill: #3a3d44; } .ccr-ink-line { fill: #fff; stroke: #3a3d44; stroke-width: 2; }
.ccr-fill-soft { fill: #eceef1; transition: fill .4s ease; }
.ccr-lens { fill: #9fd3ff; } .ccr-rec { fill: #bdbdc2; }
.ccr-screen { fill: #eef0f3; transition: fill .4s ease; }
.ccr-play { fill: #b9bcc3; transition: fill .3s ease; transform-box: fill-box; transform-origin: center; }
.ccr-live { fill: #c9c9ce; }
.ccr-led { fill: #c9c9ce; }
.ccr-sd-fill { fill: var(--ccr-red); transform-box: fill-box; transform-origin: bottom; transform: scaleY(.15); opacity: .85; }
.ccr-disks rect { fill: #e3e5e9; transition: fill .4s ease; }
.ccr-badge { fill: var(--ccr-red); } .ccr-badge-ico, .ccr-badge-line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ccr-badge-txt { fill: #fff; font: 700 9px/1 system-ui, sans-serif; }
.ccr-wire { fill: none; stroke: #d6d7db; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; transition: stroke .4s ease; }
.ccr-wire--4 { stroke-dasharray: 2 10; }
.ccr-pk circle { fill: var(--ccr-red); }
.ccr-pk--2 circle { fill: #fff; stroke: var(--ccr-red); stroke-width: 3; }
.ccr-labels text { fill: var(--ccr-mute); font: 15px/1 var(--font-body-family, 'Questrial'), sans-serif; text-anchor: middle; transition: fill .4s ease; }
.ccr-halo { opacity: 0; transition: opacity .5s ease; }
.ccr-node { transition: opacity .5s ease; }
.ccr-cone path { fill: rgba(213, 28, 42, .12); }

/* hidden until their step */
.ccr-pk, .ccr-lock, .ccr-cone, .ccr-tool, .ccr-shield, .ccr-key, .ccr-mfa, .ccr-care { opacity: 0; transition: opacity .35s ease; }
.ccr-tool, .ccr-shield, .ccr-key, .ccr-mfa, .ccr-gear { transform-box: fill-box; transform-origin: center; }

/* dim what the step isn't about */
.ccr .ccr-node { opacity: .5; }
.ccr[data-node="site"] [data-node="site"], .ccr[data-node="bridge"] [data-node="bridge"], .ccr[data-node="cloud"] [data-node="cloud"], .ccr[data-node="view"] [data-node="view"],
.ccr[data-node="link"] [data-node="bridge"], .ccr[data-node="link"] [data-node="cloud"],
.ccr[data-node="care"] [data-node="bridge"], .ccr[data-node="care"] [data-node="cloud"], .ccr[data-node="care"] [data-node="site"] { opacity: 1; }
.ccr[data-node="site"] [data-node="site"] .ccr-halo, .ccr[data-node="bridge"] [data-node="bridge"] .ccr-halo, .ccr[data-node="cloud"] [data-node="cloud"] .ccr-halo,
.ccr[data-node="view"] [data-node="view"] .ccr-halo { opacity: 1; }
.ccr[data-node="site"] [data-node="site"] .ccr-line, .ccr[data-node="bridge"] [data-node="bridge"] .ccr-line, .ccr[data-node="cloud"] [data-node="cloud"] .ccr-line,
.ccr[data-node="view"] [data-node="view"] .ccr-line, .ccr[data-node="link"] .ccr-node .ccr-line, .ccr[data-node="care"] [data-node="bridge"] .ccr-line,
.ccr[data-node="care"] [data-node="cloud"] .ccr-line { stroke: var(--ccr-red); }
.ccr[data-node="site"] [data-for="site"], .ccr[data-node="bridge"] [data-for="bridge"], .ccr[data-node="cloud"] [data-for="cloud"], .ccr[data-node="view"] [data-for="view"],
.ccr[data-node="link"] [data-for="bridge"], .ccr[data-node="link"] [data-for="cloud"], .ccr[data-node="care"] [data-for="bridge"], .ccr[data-node="care"] [data-for="cloud"] { fill: var(--ccr-ink); }

/* step 1 — installation: the tool badge, cameras mounted */
.ccr[data-step="0"] .ccr-tool { opacity: 1; animation: ccr-pop .5s var(--ccr-ease) both, ccr-wiggle 1.4s ease-in-out .6s infinite; }
.ccr[data-step="0"] .ccr-cam { animation: ccr-mount .6s var(--ccr-ease) .25s both; }
.ccr[data-step="0"] .ccr-cam--2 { animation-delay: .45s; }
/* step 2 — capture: recording light, field of view */
.ccr[data-step="1"] .ccr-cone { opacity: 1; animation: ccr-sweep 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
.ccr[data-step="1"] .ccr-rec, .ccr[data-step="2"] .ccr-rec, .ccr[data-step="3"] .ccr-rec { fill: var(--ccr-red); animation: ccr-blink 1s steps(2, start) infinite; }
/* step 3 — bridge: video arrives, the local card fills, the shield */
.ccr[data-step="2"] .ccr-pk--1, .ccr[data-step="3"] .ccr-pk--1 { opacity: 1; }
.ccr[data-step="2"] .ccr-wire--1, .ccr[data-step="3"] .ccr-wire--1 { stroke: var(--ccr-red); animation: ccr-dash 1s linear infinite; }
.ccr[data-step="2"] .ccr-led, .ccr[data-step="3"] .ccr-led, .ccr[data-step="6"] .ccr-led { fill: #22c55e; animation: ccr-blink .8s steps(2, start) infinite; }
.ccr[data-step="2"] .ccr-led--2 { animation-delay: .4s; }
.ccr[data-step="2"] .ccr-sd-fill { animation: ccr-sd 3.2s var(--ccr-ease) .4s forwards; }
.ccr[data-step="2"] .ccr-shield { opacity: 1; animation: ccr-pop .5s var(--ccr-ease) .9s both; }
/* step 4 — encrypted upload */
.ccr[data-step="3"] .ccr-pk--2, .ccr[data-step="3"] .ccr-lock { opacity: 1; }
.ccr[data-step="3"] .ccr-wire--2 { stroke: var(--ccr-red); animation: ccr-dash 1s linear infinite; }
/* step 5 — cloud storage: the disks fill one after another, the per-customer key */
.ccr[data-step="4"] .ccr-disks rect { animation: ccr-disk .5s var(--ccr-ease) both; }
.ccr[data-step="4"] .ccr-disks rect:nth-child(2) { animation-delay: .35s; }
.ccr[data-step="4"] .ccr-disks rect:nth-child(3) { animation-delay: .7s; }
.ccr[data-step="4"] .ccr-key { opacity: 1; animation: ccr-pop .5s var(--ccr-ease) 1s both; }
.ccr[data-step="4"] .ccr-pk--2 { opacity: .45; }
/* step 6 — viewing */
.ccr[data-step="5"] .ccr-pk--3 { opacity: 1; }
.ccr[data-step="5"] .ccr-wire--3 { stroke: var(--ccr-red); animation: ccr-dash 1s linear infinite; }
.ccr[data-step="5"] .ccr-screen { fill: #1d2027; }
.ccr[data-step="5"] .ccr-play { fill: #fff; animation: ccr-beat 1.6s ease-in-out infinite; }
.ccr[data-step="5"] .ccr-live { fill: var(--ccr-red); animation: ccr-blink 1s steps(2, start) infinite; }
.ccr[data-step="5"] .ccr-mfa { opacity: 1; animation: ccr-pop .5s var(--ccr-ease) .8s both; }
/* step 7 — managed care: updates travel from the cloud back to the site */
.ccr[data-step="6"] .ccr-care, .ccr[data-step="6"] .ccr-pk--4 { opacity: 1; }
.ccr[data-step="6"] .ccr-wire--4 { stroke: var(--ccr-red); animation: ccr-dash 1.2s linear infinite reverse; }
.ccr[data-step="6"] .ccr-gear { animation: ccr-spin 3s linear infinite; }
.ccr[data-step="6"] .ccr-tool { opacity: 1; }

@keyframes ccr-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ccr-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes ccr-mount { from { opacity: 0; transform: translateY(-14px); } }
@keyframes ccr-sweep { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
@keyframes ccr-blink { to { visibility: hidden; } }
@keyframes ccr-dash { to { stroke-dashoffset: -22; } }
@keyframes ccr-sd { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes ccr-disk { from { fill: #e3e5e9; } to { fill: var(--ccr-red); } }
@keyframes ccr-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes ccr-spin { to { transform: rotate(360deg); } }
.ccr[data-step="4"] .ccr-disks rect { fill: var(--ccr-red); }

/* ---------- phones ---------- */
@media (max-width: 749px) {
  .ccr { padding: 0; align-items: end; }
  .ccr__panel { width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; padding: 22px 16px 18px; transform: translateY(40px); }
  .ccr__stage { margin: 12px 0 0; }
  .ccr-labels text { font-size: 22px; }
  .ccr__dots { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .ccr__dot-k { display: none; }
  .ccr__dots button { grid-template-columns: 1fr; justify-items: center; padding: 4px 0 0; }
  .ccr__copy { min-height: 170px; }
  .ccr__h { font-size: 1.9rem; }
  .ccr__d { font-size: 1.45rem; }
  .ccr__spacer { display: none; }
  .ccr__btn--line, .ccr__btn--red { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ccr * { animation: none !important; transition: none !important; }
  .ccr-pk, .ccr-lock { display: none; }
}
/* The theme squares off every <button>; keep these round. */
.ccr .ccr__x { border-radius: 50% !important; }
.ccr .ccr__btn { border-radius: 999px !important; min-height: 0; box-shadow: none; }
.ccr .ccr__btn::after, .ccr .ccr__btn::before, .ccr .ccr__x::after, .ccr .ccr__x::before { display: none !important; }
