/* ==========================================================================
   FixDesk — motion layer for public pages (landing, help center, plans, auth)
   Progressive enhancement: nothing is hidden unless <html> carries .fd-anim,
   which the head script only adds when the visitor allows motion.
   Only transform / opacity are animated.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(.2, .75, .15, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 1. scroll reveal ---------- */
.fd-anim [data-rv]:not(.rv-done) {
  transition: opacity .7s var(--ease-out) var(--rv-d, 0ms), transform .85s var(--ease-out) var(--rv-d, 0ms);
}
.fd-anim [data-rv]:not(.rv-in) { opacity: 0; transform: translate3d(0, 26px, 0); }
.fd-anim [data-rv="left"]:not(.rv-in) { transform: translate3d(-32px, 0, 0); }
.fd-anim [data-rv="right"]:not(.rv-in) { transform: translate3d(32px, 0, 0); }
.fd-anim [data-rv="scale"]:not(.rv-in) { transform: translate3d(0, 18px, 0) scale(.96); }
.fd-anim [data-rv="fade"]:not(.rv-in) { transform: none; }

/* headline word stagger (spans are added by motion.js) */
.fd-anim [data-split]:not(.h-split) { opacity: 0; }
.h-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.h-split .w > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform .95s var(--ease-out) var(--wd, 0ms); }
.h-split.go .w > span { transform: none; }

/* ---------- 2. hover micro-interactions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cat-card { transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-soft); }
  .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .cat-card .cat-ico { transition: transform .3s var(--ease-out); }
  .cat-card:hover .cat-ico { transform: translate3d(3px, -3px, 0) rotate(-6deg); }
  .article-list a .bi-chevron-right, .lift-link .bi-arrow-right, .btn .bi-arrow-right { transition: transform .25s var(--ease-out); }
  .article-list a:hover .bi-chevron-right { transform: translateX(4px); color: var(--brand-ink); }
  .lift-link:hover .bi-arrow-right, .btn:hover .bi-arrow-right { transform: translateX(4px); }
  .plan { transition: transform .3s var(--ease-soft), box-shadow .3s; }
  .plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .btn { transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--ease-soft); }
  .btn-lg:active, .btn:active { transform: translateY(1px); }
}
.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }

/* ==========================================================================
   3. LANDING — hero stage
   ========================================================================== */
.hero.hero-x .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero-x h1 { font-size: 56px; }
.hx { position: relative; height: 590px; }
.hx-layer { position: absolute; will-change: transform; }
.hx-l-photo { top: 0; right: 0; width: 76%; height: 486px; }
.hx-photo { margin: 0; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; }
.hx-arc { position: absolute; top: -22px; right: -22px; width: 150px; height: 150px; pointer-events: none; }
.hx-arc path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; }
.hx-arc circle { fill: var(--accent); }
.hx-l-online { top: 18px; left: calc(24% + 16px); }
.hx-l-live { top: 62px; left: 0; width: min(380px, 70%); }
.hx-l-sla { top: 432px; left: 28px; width: 226px; }
.hx-l-csat { bottom: 0; right: 16px; width: 236px; }

.hx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hx-online { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.hx-online img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hx-online b { color: var(--text); font-weight: 650; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; }

.hx-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.hx-chip { display: inline-grid; margin-left: auto; }
.hx-chip > .badge { grid-area: 1 / 1; justify-self: end; transition: opacity .35s, transform .45s var(--ease-out); }
.hx-chip > .b-warn { opacity: 0; transform: translateY(-70%); }
.hx-title { display: block; padding: 12px 16px 2px; font: 700 14.5px var(--font-head); color: var(--text); }
.hx-msg { position: relative; display: flex; gap: 10px; padding: 12px 16px; }
.hx-msg .av { width: 32px; height: 32px; }
.hx-msg p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; }
.hx-msg .who { font-size: 13px; font-weight: 650; color: var(--text); }
.hx-msg .who span { font-weight: 400; color: var(--muted); }
.hx-msg.agent { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hx-body { min-width: 0; transition: opacity .4s, transform .5s var(--ease-out); }
.typing { position: absolute; left: 58px; top: 50%; display: inline-flex; gap: 4px; padding: 8px 10px; border-radius: 12px; background: var(--surface-3); opacity: 0; transform: translateY(-50%); transition: opacity .25s; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.hx-sugg { display: flex; align-items: center; gap: 8px; padding: 11px 16px 13px; font-size: 13px; color: var(--muted); }
.hx-sugg .bi { color: var(--brand-ink); }
.hx-sugg a { font-weight: 600; }
.hx-live [data-step] { transition: opacity .45s, transform .55s var(--ease-out); }

.hx-sla { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .trk { stroke: var(--surface-3); }
.ring .val { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring .bi { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ok); font-size: 18px; }
.hx-sla .k { font-size: 12.5px; color: var(--muted); }
.hx-sla .v { display: block; font: 800 21px/1.15 var(--font-head); color: var(--text); letter-spacing: -.02em; }
.hx-sla .k b { color: var(--ok); font-weight: 650; }
.hx-csat { padding: 14px 16px; }
.hx-csat .stars i { display: inline-block; transition: transform .4s var(--ease-out), opacity .3s; }
.hx-csat p { margin: 8px 0 0; font-size: 13px; }

/* the live demo states (motion.js toggles .play + s1…s6 on .hx) */
.hx.play .hx-live [data-step] { opacity: 0; transform: translateY(10px); }
.hx.play.s1 .hx-live [data-step="1"], .hx.play.s2 .hx-live [data-step="2"], .hx.play.s4 .hx-live [data-step="4"] { opacity: 1; transform: none; }
.hx.play:not(.s3) .hx-msg.agent .hx-body { opacity: 0; transform: translateY(6px); }
.hx.play.s2:not(.s3) .typing { opacity: 1; }
.hx.play:not(.s5) .hx-chip > .b-ok { opacity: 0; transform: translateY(70%); }
.hx.play:not(.s5) .hx-chip > .b-warn { opacity: 1; transform: none; }
.hx.play.s5 .hx-chip > .b-warn { opacity: 0; transform: translateY(-70%); }
.hx.play:not(.s3) .ring .val { stroke-dashoffset: 126; }
.hx.play:not(.s3) .ring .bi { opacity: 0; transform: scale(.5); }
.ring .bi { transition: opacity .3s .9s, transform .4s .9s var(--ease-out); }
.hx.play:not(.s6) .hx-csat .stars i { opacity: .22; transform: scale(.72); filter: grayscale(1); }
.hx.play.s6 .hx-csat .stars i:nth-child(2) { transition-delay: .08s; }
.hx.play.s6 .hx-csat .stars i:nth-child(3) { transition-delay: .16s; }
.hx.play.s6 .hx-csat .stars i:nth-child(4) { transition-delay: .24s; }
.hx.play.s6 .hx-csat .stars i:nth-child(5) { transition-delay: .32s; }
.hx.play:not(.s6) .hx-csat p { opacity: 0; }
.hx-csat p { transition: opacity .5s .4s; }

@media (prefers-reduced-motion: no-preference) {
  .fd-anim .hx-float { animation: fd-bob 6s ease-in-out infinite alternate; }
  .fd-anim .hx-l-csat .hx-float { animation-delay: -2.5s; animation-duration: 7s; }
  .fd-anim .hx-l-online .hx-float { animation-delay: -4s; animation-duration: 5.5s; }
  .fd-anim .live-dot::after { animation: fd-ping 2.2s var(--ease-soft) infinite; }
  .fd-anim .typing i { animation: fd-dot 1s ease-in-out infinite; }
  .fd-anim .typing i:nth-child(2) { animation-delay: .15s; }
  .fd-anim .typing i:nth-child(3) { animation-delay: .3s; }
  .fd-anim .hx-arc path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fd-draw 1.6s .6s var(--ease-out) forwards; }
  .fd-anim .hx-arc circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fd-pop .5s var(--ease-out) forwards; }
  .fd-anim .hx-arc circle:nth-of-type(1) { animation-delay: 1.5s; }
  .fd-anim .hx-arc circle:nth-of-type(2) { animation-delay: 1.7s; }
  .fd-anim .hx-arc circle:nth-of-type(3) { animation-delay: 1.9s; }
}
@keyframes fd-bob { from { translate: 0 -5px; } to { translate: 0 7px; } }
@keyframes fd-ping { 0% { opacity: .7; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes fd-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes fd-draw { to { stroke-dashoffset: 0; } }
@keyframes fd-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes fd-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes fd-in-r { from { opacity: 0; transform: translate3d(18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fd-in-l { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fd-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fd-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fd-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes fd-caret { 50% { opacity: 0; } }

/* ==========================================================================
   4. LANDING — product tour (auto-cycling tabs)
   ========================================================================== */
.sc-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 28px; flex-wrap: wrap; }
.sc-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 14px var(--font-ui); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.sc-tabs button .bi { font-size: 16px; color: var(--muted); transition: color .2s, transform .3s var(--ease-out); }
.sc-tabs button:hover { border-color: var(--border-strong); color: var(--text); }
.sc-tabs button:hover .bi { transform: translateY(-2px); }
.sc-tabs button.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.sc-tabs button.on .bi { color: var(--brand-ink); }
.sc-bar { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; opacity: 0; }
.sc-tabs button.on .sc-bar { opacity: .9; }
.sc.auto .sc-tabs button.on .sc-bar { animation: fd-bar 7s linear forwards; }
.sc.auto:hover .sc-tabs button.on .sc-bar, .sc.auto:focus-within .sc-tabs button.on .sc-bar { animation-play-state: paused; }
.sc-stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 40px; }
.sc-panel.on { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: center; }
.sc-copy h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 10px; }
.sc-copy > p { font-size: 15.5px; }
.sc-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.sc-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.sc-list li .bi { color: var(--ok); font-size: 17px; margin-top: 1px; }
.lift-link { font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.sc-ui { position: relative; min-height: 360px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.sc-win { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.sc-win-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.sc-win-head .dots { display: inline-flex; gap: 5px; }
.sc-win-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); }
.sc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sc-row:last-child { border-bottom: 0; }
.sc-row .t b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row .t span { font-size: 12.5px; color: var(--muted); }
.sc-row .av { width: 28px; height: 28px; }
.sc-row.hl { background: var(--brand-soft); }
.sc-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.sc-float .bi { font-size: 18px; }
.sc-f-tickets { right: -14px; bottom: -18px; }
.sc-f-tickets .bi { color: var(--ok); }

.sc-chat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 0; min-height: 360px; padding: 0; overflow: hidden; }
.sc-chat .sc-photo { order: 2; margin: 0; position: relative; }
.sc-chat .sc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-chat .sc-conv { padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.sc-conv .bubble { font-size: 13.5px; max-width: 92%; }
.sc-conv .agent-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.sc-conv .agent-tag img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 20% 20%; }
.sc-conv .agent-tag b { display: block; color: var(--text); font-size: 14px; }
.sc-event { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface); }
.sc-event .bi { color: var(--brand-ink); }

.sc-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--surface); border: 1.5px solid var(--brand); border-radius: 12px; box-shadow: 0 0 0 4px var(--brand-soft); font-size: 15px; color: var(--text); }
.sc-search .bi { color: var(--muted); font-size: 18px; }
.sc-search .q { display: inline-block; white-space: nowrap; overflow: hidden; }
.sc-search .caret { width: 2px; height: 20px; background: var(--brand); margin-left: -6px; }
.sc-results { margin-top: 14px; }
.sc-res { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sc-res:last-child { border-bottom: 0; }
.sc-res .cat-ico { width: 36px; height: 36px; font-size: 16px; margin: 0; flex: none; }
.sc-res b { display: block; font-size: 14px; color: var(--text); }
.sc-res span { font-size: 12.5px; color: var(--muted); }
.sc-res mark { background: var(--accent-soft); color: var(--accent-ink); padding: 0 2px; border-radius: 3px; }

.sc-tl { position: relative; padding: 6px 4px 6px 0; }
.sc-tl::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: var(--border); transform-origin: top; }
.sc-tl-item { position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.sc-tl-item .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 17px; background: var(--surface); border: 1px solid var(--border); color: var(--brand-ink); position: relative; z-index: 1; }
.sc-tl-item .ico.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.sc-tl-item .ico.acc { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.sc-tl-item .card { flex: 1; min-width: 0; padding: 11px 14px; font-size: 13.5px; }
.sc-tl-item .card b { color: var(--text); }
.sc-tl-item .card span { display: block; color: var(--muted); font-size: 12.5px; }

/* panel entrance (runs each time a panel is shown) */
.fd-anim .sc-panel.on .sc-copy > * { animation: fd-up .6s var(--ease-out) both; }
.fd-anim .sc-panel.on .sc-copy > :nth-child(2) { animation-delay: .06s; }
.fd-anim .sc-panel.on .sc-copy > :nth-child(3) { animation-delay: .12s; }
.fd-anim .sc-panel.on .sc-copy > :nth-child(4) { animation-delay: .18s; }
.fd-anim .sc-panel.on .sc-ui { animation: fd-in-r .7s var(--ease-out) both; }
.fd-anim .sc-panel.on .sc-row, .fd-anim .sc-panel.on .sc-res, .fd-anim .sc-panel.on .sc-tl-item, .fd-anim .sc-panel.on .sc-conv > * { animation: fd-up .55s var(--ease-out) both; }
.fd-anim .sc-panel.on :is(.sc-row, .sc-res, .sc-tl-item, .sc-conv > *):nth-child(1) { animation-delay: .15s; }
.fd-anim .sc-panel.on :is(.sc-row, .sc-res, .sc-tl-item, .sc-conv > *):nth-child(2) { animation-delay: .45s; }
.fd-anim .sc-panel.on :is(.sc-row, .sc-res, .sc-tl-item, .sc-conv > *):nth-child(3) { animation-delay: .9s; }
.fd-anim .sc-panel.on :is(.sc-row, .sc-res, .sc-tl-item, .sc-conv > *):nth-child(4) { animation-delay: 1.5s; }
.fd-anim .sc-panel.on :is(.sc-row, .sc-res, .sc-tl-item, .sc-conv > *):nth-child(5) { animation-delay: 2s; }
.fd-anim .sc-panel.on .sc-tl::before { animation: fd-grow-y 2s .2s var(--ease-soft) both; }
.fd-anim .sc-panel.on .sc-float { animation: fd-up .6s 1.6s var(--ease-out) both; }
.fd-anim .sc-panel.on .sc-search .q { animation: fd-type 1.2s .3s steps(20, end) both; }
.fd-anim .sc-panel.on .sc-search .caret { animation: fd-caret 1s step-end infinite; }
.fd-anim .sc-panel.on .sc-results .sc-res:nth-child(1) { animation-delay: 1.5s; }
.fd-anim .sc-panel.on .sc-results .sc-res:nth-child(2) { animation-delay: 1.65s; }
.fd-anim .sc-panel.on .sc-results .sc-res:nth-child(3) { animation-delay: 1.8s; }
@keyframes fd-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   5. LANDING — team photo card, flow line, counters
   ========================================================================== */
.team-card { position: relative; margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--surface-3); }
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.team-card:hover img { transform: scale(1.03); }
.team-card figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.team-card .pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.team-card .pill .bi { color: var(--brand-ink); }

.flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; --p: 0; }
.flow-line { position: absolute; top: 31px; left: calc(16.66% + 8px); right: calc(16.66% + 8px); height: 2px; background: var(--border); border-radius: 2px; }
.flow-line i { position: absolute; inset: 0; background: var(--brand); border-radius: inherit; transform-origin: left; transform: scaleX(var(--p)); }
.flow-step { text-align: center; padding: 0 8px; }
.flow-dot { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); font-size: 24px; transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease-out); }
.flow-dot b { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font-head); background: var(--invert-bg); color: var(--invert-text); }
.flow-step.on .flow-dot { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.06); }
.flow-step h3 { font-size: 18px; }
.flow-step p { font-size: 14.5px; max-width: 320px; margin: 0 auto; }
html:not(.fd-anim) .flow { --p: 1; }
html:not(.fd-anim) .flow-step .flow-dot { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   6. LANDING — customer stories + review marquee
   ========================================================================== */
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; }
.story figure { margin: 0; position: relative; min-height: 280px; overflow: hidden; background: var(--surface-3); }
.story figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.story:hover figure img { transform: scale(1.04); }
.story .s-body { padding: 26px; display: flex; flex-direction: column; }
.story blockquote { margin: 12px 0 18px; font: 600 16.5px/1.5 var(--font-head); color: var(--text); letter-spacing: -.01em; }
.story .s-who { margin-top: auto; font-size: 13.5px; color: var(--muted); }
.story .s-who b { display: block; color: var(--text); font-size: 14.5px; }
.story .chips { display: flex; flex-wrap: wrap; gap: 6px; }

.mq { position: relative; margin-top: 40px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 14px; }
.mq::-webkit-scrollbar { display: none; }
.mq-track { display: flex; width: max-content; padding-left: 24px; }
.fd-anim .mq { 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); }
.fd-anim .mq-track { padding-left: 0; animation: fd-marquee 60s linear infinite; }
.fd-anim .mq:hover .mq-track { animation-play-state: paused; }
.rev { width: 330px; flex: none; margin-right: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease-soft), box-shadow .3s, border-color .2s; }
.rev:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.rev p { margin: 0; font-size: 14.5px; color: var(--text); }
.rev .who { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 13px; color: var(--muted); }
.rev .who b { display: block; color: var(--text); font-size: 14px; }
.rev .stars { font-size: 14px; }

/* ==========================================================================
   7. LANDING — CTA with photo
   ========================================================================== */
.cta.cta-x { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; padding: 0; align-items: stretch; }
.cta.cta-x::after { display: none; }
.cta-x .cta-copy { position: relative; z-index: 1; padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.cta-x .btns { margin: 24px 0 0; }
.cta-x .cta-photo { position: relative; margin: 0; min-height: 320px; }
.cta-x .cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-chip { position: absolute; left: -26px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 650; box-shadow: var(--shadow-lg); white-space: nowrap; }
.cta-chip .bi { color: var(--accent); }
.cta-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-lines path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.fd-anim .cta-x .cta-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out) .3s; }
.fd-anim .cta-x.rv-in .cta-lines path { stroke-dashoffset: 0; }
.fd-anim .cta-x.rv-in .cta-lines path + path { transition-delay: .6s; }
/* Follows the admin brand colour (deep shade of --brand on the dark page). */
[data-theme="dark"] .cta.cta-x { background: #2B30A8; background: color-mix(in srgb, var(--brand) 66%, #0B1020); }

/* ==========================================================================
   8. Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .hero-x h1 { font-size: 48px; }
  .sc-stage { padding: 32px; }
  .sc-panel.on { gap: 32px; }
}
@media (max-width: 1099px) {
  .hero.hero-x .container { grid-template-columns: minmax(0, 1fr); }
  .hx { max-width: 600px; width: 100%; }
  .sc-panel.on { grid-template-columns: minmax(0, 1fr); }
  .sc-ui { max-width: 640px; }
  .stories { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 979px) {
  .cta.cta-x { grid-template-columns: minmax(0, 1fr) 280px; }
  .cta-x .cta-copy { padding: 36px; }
}
@media (max-width: 767px) {
  .hero.hero-x .container { padding-top: 40px; padding-bottom: 52px; gap: 36px; }
  .hero-x h1 { font-size: 36px; }
  .hx { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .hx-layer { position: relative; inset: auto; width: auto; height: auto; transform: none !important; will-change: auto; }
  .hx-l-photo { grid-column: 1 / -1; height: 290px; }
  .hx-photo { border-radius: 18px; }
  .hx-arc { display: none; }
  .hx-l-online { position: absolute; top: 12px; left: 12px; }
  .hx-l-live { grid-column: 1 / -1; margin: -96px 12px 0; }
  .hx-l-sla, .hx-l-csat { width: auto; }
  .hx-sla { padding: 12px; gap: 10px; height: 100%; }
  .ring { width: 44px; height: 44px; }
  .hx-sla .v { font-size: 18px; }
  .hx-csat { padding: 12px; height: 100%; }
  .hx-csat p { display: none; }
  .hx-csat .stars { font-size: 14px; gap: 2px; }
  .sc-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .sc-tabs::-webkit-scrollbar { display: none; }
  .sc-tabs button { flex: none; height: 40px; padding: 0 14px; font-size: 13.5px; }
  .sc-stage { padding: 18px; border-radius: var(--radius-lg); }
  .sc-copy h3 { font-size: 21px; }
  .sc-ui { padding: 12px; min-height: 0; }
  .sc-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
  .sc-row .av { display: none; }
  .sc-row .t b { white-space: normal; }
  .cta-lines { display: none; }
  .sc-f-tickets { position: relative; right: auto; bottom: auto; margin-top: 12px; box-shadow: var(--shadow); }
  .sc-chat { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .sc-res .badge { display: none; }
  .sc-chat .sc-photo { order: 0; height: 180px; }
  .sc-search { font-size: 14px; padding: 0 12px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .flow-line { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .flow-line i { transform-origin: top; transform: scaleY(var(--p)); }
  .flow-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 0; }
  .flow-dot { grid-row: span 2; margin: 0; }
  .flow-step h3 { margin: 6px 0 4px; }
  .flow-step p { margin: 0; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story figure { min-height: 210px; }
  .story .s-body { padding: 20px; }
  .rev { width: 280px; margin-right: 14px; }
  .mq-track { padding-left: 16px; }
  .cta.cta-x { grid-template-columns: minmax(0, 1fr); }
  .cta-x .cta-copy { padding: 28px 22px; }
  .cta-x .cta-photo { order: -1; min-height: 200px; }
  .cta-chip { left: 16px; bottom: 16px; }
}

/* motion off: make sure nothing loops or sits hidden */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .h-split .w > span { transform: none !important; }
}
