/* Feature subpages */
.btn-onbrand { background: #fff; color: var(--navy); }
.btn-onbrand:hover { background: #eef1ff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

.f-hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(60% 70% at 90% 0%, rgba(160, 113, 255, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 0%, rgba(28, 115, 255, .12), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-soft));
}
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--primary); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.f-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; margin-top: 24px; }
.f-hero h1 {
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700;
  color: var(--navy); text-wrap: balance;
}
html[data-lang="zh"] .f-hero h1 { letter-spacing: 0; line-height: 1.3; }
.f-hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-stats { list-style: none; display: grid; gap: 12px; }
.f-stats li {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.f-stats b { font-size: 26px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; min-width: 3.4em; }
.f-stats span { font-size: 14px; color: var(--ink-2); }

/* Hero variants (Q96): A = copy + product screen, B = centred copy + wide screen, C = conversation updating a record */
.f-hero .cta-row { margin-top: 26px; }
.f-kpis { list-style: none; display: flex; margin-top: 30px; }
.f-kpis li { display: grid; gap: 2px; padding: 0 22px; border-left: 1px solid var(--line); max-width: 210px; }
.f-kpis li:first-child { padding-left: 0; border-left: 0; }
.f-kpis b { font-size: 28px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.f-kpis span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.f-kpis a { color: inherit; }
.f-kpis a:hover { color: var(--primary); text-decoration: underline; }

.f-hero-a .f-hero-grid, .f-hero-c .f-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
.f-hero-a, .f-hero-c { padding-bottom: 72px; }
.f-shot .browser { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.f-shot img { display: block; width: 100%; height: auto; }

.f-hero-b { padding-bottom: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(160, 113, 255, .16), transparent 70%), linear-gradient(180deg, #fff, var(--bg-soft)); }
.f-hero-b .crumbs { justify-content: center; }
.f-center { max-width: 860px; margin: 28px auto 0; text-align: center; }
.f-center .lede { margin-left: auto; margin-right: auto; max-width: 44em; }
.f-center .cta-row { justify-content: center; }
.f-hero-b .f-kpis { justify-content: center; }
.f-hero-b .f-kpis li { text-align: center; padding: 0 28px; }
.f-hero-b .f-kpis li:first-child { padding-left: 28px; }
.f-wide { max-width: 1080px; margin: 48px auto 0; }
.f-wide .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 -2px 4px rgba(15, 22, 56, .04), 0 -24px 64px -24px rgba(28, 49, 160, .3); }
.f-wide .use-frame { border: 0; border-radius: 0; }
.f-wide img { display: block; width: 100%; height: auto; }

.fc-flow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; }
.fc-chat { border-radius: 22px; background: #efeae2; border: 6px solid #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.fc-chat-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.fc-chat-h img { flex: none; }
.fc-chat-h small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.fc-thread { display: grid; gap: 8px; padding: 14px 12px 16px; align-content: start; }
.fc-b { max-width: 88%; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; white-space: pre-line; color: #111b21; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.fc-b.out { justify-self: end; background: #d9fdd3; }
.fc-b small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; color: #1f7a5a; }
.fc-b em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: #667781; }
.fc-btn { justify-self: start; display: flex; gap: 6px; flex-wrap: wrap; }
.fc-btn span { padding: 5px 10px; border-radius: 8px; background: #fff; color: #027eb5; font-size: 12px; font-weight: 600; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.fc-link { position: relative; height: 2px; margin: 0 6px; background: linear-gradient(90deg, #c9c0ff, #7a37ff); }
.fc-link i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #7a37ff; box-shadow: 0 0 0 4px rgba(122, 55, 255, .18); animation: howPulse 2.2s ease-in-out infinite; }
.fc-rec { border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.fc-rec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8f9fc; }
.fc-rec-h b { font-size: 13px; color: var(--navy); }
.fc-rec-h small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.fc-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: #e7f6ee; color: #1f7a4d; font-size: 11px; font-weight: 700; }
.fc-rec dl { display: grid; padding: 6px 14px 12px; }
.fc-rec dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0f1f6; font-size: 12.5px; }
.fc-rec dl div:last-child { border-bottom: 0; }
.fc-rec dt { color: var(--muted); }
.fc-rec dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.fc-rec dd.hl { color: var(--brand-3); }
.fc-in { animation: fcIn .5s ease both; animation-delay: var(--d, 0s); }
@keyframes fcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .f-hero-a .f-hero-grid, .f-hero-c .f-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .f-shot { max-width: 760px; }
  .f-shot .browser { transform: none; }
  .fc-flow { max-width: 760px; }
}
@media (max-width: 760px) {
  .fc-flow { grid-template-columns: minmax(0, 1fr); }
  .fc-link { width: 2px; height: 32px; margin: 6px auto; background: linear-gradient(180deg, #c9c0ff, #7a37ff); }
  .fc-link i { left: -4px; animation-name: howPulseV; }
  .fc-thread { min-height: 0; }
}
@media (max-width: 600px) {
  .f-kpis { flex-direction: column; gap: 12px; }
  .f-kpis li, .f-hero-b .f-kpis li, .f-hero-b .f-kpis li:first-child { padding: 0; border-left: 0; max-width: none; }
  .f-hero-b .f-kpis li { text-align: center; }
  .f-wide { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-in { animation: none; }
  .fc-link i { display: none; }
}

/* Live demo */
.f-demo { padding-top: 88px; }
.demo { max-width: 1040px; margin: 0 auto; }
.demo-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.demo-tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.demo-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.demo-tabs button[aria-selected="true"] img { filter: brightness(0) invert(1); }

.demo-stage {
  margin-top: 28px; display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: stretch;
  padding: 32px; border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(28, 115, 255, .08), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(160, 113, 255, .1), transparent 70%),
    var(--bg-soft);
}

/* Phone */
.phone {
  position: relative; height: 640px; border-radius: 44px; background: #111; padding: 12px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  --chat-bg: #efeae2; --me: #d9fdd3; --biz: #fff; --qr: #0b7bd6; --head: #fff;
}
.phone.wechat { --chat-bg: #ededed; --me: #95ec69; --biz: #fff; --qr: #576b95; --head: #ededed; }
.phone > * { position: relative; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: #111; border-radius: 20px; z-index: 3; }
.phone-status, .chat-head, .chat-body, .chat-compose { background: var(--chat-bg); }
.phone-status {
  border-radius: 32px 32px 0 0; height: 44px; padding: 14px 26px 0; display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; background: var(--head);
}
.phone-icons { font-size: 9px; letter-spacing: 2px; opacity: .7; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: var(--head);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.chat-back { font-size: 24px; line-height: 1; color: var(--qr); }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
}
.chat-head b { display: block; font-size: 14px; line-height: 1.2; }
.chat-head small { font-size: 11px; color: var(--muted); }
.phone.wechat .chat-head { justify-content: center; }
.phone.wechat .chat-avatar, .phone.wechat .chat-head small { display: none; }
.phone.wechat .chat-head > div { text-align: center; margin-right: 24px; flex: 1; }

.chat-body {
  flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: none; font-family: var(--font-zh);
}
.chat-body::-webkit-scrollbar { display: none; }
.msg { display: flex; flex-direction: column; max-width: 84%; }
.msg.biz { align-self: flex-start; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.in { animation: msgIn .35s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.bubble {
  position: relative; padding: 7px 10px 18px; border-radius: 10px; font-size: 13.5px; line-height: 1.45;
  background: var(--biz); box-shadow: 0 1px .5px rgba(0, 0, 0, .13); min-width: 64px;
}
.msg.me .bubble { background: var(--me); }
.bubble time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: rgba(0, 0, 0, .45); }
.bubble .agent { display: block; font-size: 11px; font-weight: 700; color: #b5179e; margin-bottom: 2px; }
.msg.typing .bubble { padding: 12px 14px; display: flex; gap: 4px; min-width: 0; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.qr { display: grid; gap: 4px; margin-top: 4px; }
.qr-btn {
  display: block; text-align: center; padding: 7px 10px; border-radius: 9px; background: var(--biz);
  color: var(--qr); font-size: 13px; font-weight: 500; box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
  transition: background .2s, transform .15s;
}
.qr-btn.pressed { background: #dbe9f9; transform: scale(.97); }
.qr.used .qr-btn:not(.pressed) { opacity: .55; }
.img-att { display: flex; align-items: center; gap: 8px; padding: 6px 4px 0; }
.img-att span { width: 44px; height: 52px; border-radius: 6px; background: #fff; display: grid; place-items: center; font-size: 22px; }
.img-att b { font-size: 12px; font-weight: 500; }

.chat-compose {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; border-radius: 0 0 32px 32px;
}
.compose-input {
  flex: 1; min-height: 36px; padding: 8px 14px; border-radius: 20px; background: #fff; font-size: 13.5px;
  font-family: var(--font-zh); line-height: 1.4;
}
.compose-ph { color: #9aa0a6; }
.compose-input.typing { box-shadow: 0 0 0 2px rgba(1, 118, 211, .25); }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--primary); vertical-align: -2px; margin-left: 1px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.compose-send { width: 36px; height: 36px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.phone.wechat .compose-send { background: #07c160; }

.touch {
  position: absolute !important; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(15, 22, 56, .28); border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(15, 22, 56, .3); opacity: 0; pointer-events: none; z-index: 5;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1), opacity .25s;
}
.touch.show { opacity: 1; }
.touch::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(1, 118, 211, .7); opacity: 0;
}
.touch.tap { background: rgba(1, 118, 211, .45); }
.touch.tap::after { animation: ripple .45s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

/* Behind the scenes */
.behind {
  min-width: 0; display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; height: 640px;
}
.behind-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.behind-head b { font-size: 15px; }
.behind-ch { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #dff6e6; color: #157f3c; }
.behind-feed { list-style: none; flex: 1; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; }
.ev { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 10px 18px; border-bottom: 1px solid #f0f1f6; }
.ev.fresh { animation: evIn .5s ease both; }
@keyframes evIn { from { opacity: 0; transform: translateX(16px); background: #f3f6ff; } to { opacity: 1; transform: none; background: transparent; } }
.ev time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ev p { font-size: 13.5px; color: var(--ink); font-family: var(--font-zh); }
.chip { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 11px; font-size: 12px; font-weight: 600; }
.ev.camp .chip { background: #dff6e6; color: #157f3c; }
.ev.journey .chip { background: #ffedd5; color: #b45309; }
.ev.bot .chip { background: #efe7ff; color: #561cff; }
.ev.member .chip { background: #eef0f4; color: #4b5267; }
.ev.live .chip { background: #dbeafe; color: #0b5cad; }
.ev.agent .chip { background: #d9f5ef; color: #0f766e; }
.ev.record .chip { background: var(--brand-grad); color: #fff; }
.ev.record { margin: 0; border: 0; border-bottom: 1px solid #f0f1f6; border-radius: 0; background: none; overflow: visible; }

.record { margin: 14px 18px 4px; border: 1px solid #d9d2ff; border-radius: 12px; background: #faf8ff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.record.in { animation: msgIn .4s ease both; }
.record.done { border-color: #86d1a0; box-shadow: 0 0 0 3px rgba(46, 132, 74, .12); }
.record-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #ebe5ff; font-size: 14px; }
.badge { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge.draft { background: #fff4d6; color: #a15c00; }
.badge.ok { background: #dff6e6; color: #157f3c; }
.record dl { display: grid; grid-template-columns: 1fr 1fr; }
.record dl > div { padding: 8px 14px; border-top: 1px solid #f0ecff; transition: background .4s; }
.record dl > div:nth-child(-n+2) { border-top: 0; }
.record dt { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.record dt code { font-size: 9.5px; padding: 1px 5px; border-radius: 4px; background: #efe7ff; color: var(--brand-3); font-family: ui-monospace, Menlo, monospace; }
.record dd { font-size: 13.5px; font-weight: 600; color: #b8bccb; margin-top: 2px; font-family: var(--font-zh); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record .filled dd { color: var(--ink); }
.record .flash { background: #e9f9ee; }

/* Demo controls */
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.chapters { display: flex; gap: 8px; flex-wrap: wrap; }
.chapter {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: all .2s;
}
.chapter-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); font-size: 12px; font-weight: 700; }
.chapter.done { color: var(--ink-2); }
.chapter.done .chapter-n { background: #dff6e6; color: #157f3c; }
.chapter.on { color: var(--ink); border-color: #c9c2ff; box-shadow: 0 0 0 3px rgba(86, 28, 255, .08); }
.chapter.on .chapter-n { background: var(--brand-grad); color: #fff; }
.demo-ctrl { display: flex; gap: 8px; }
.ctrl {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; transition: background .15s;
}
.ctrl:hover { background: var(--bg-soft); }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ctrl .i-play { display: none; fill: var(--ink); }
.demo.paused .i-pause, .demo.finished .i-pause { display: none; }
.demo.paused .i-play, .demo.finished .i-play { display: block; }
.demo.finished [data-replay] { background: var(--navy); border-color: var(--navy); animation: pulse 1.6s ease-in-out infinite; }
.demo.finished [data-replay] svg { stroke: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(33, 47, 142, .35); } 50% { box-shadow: 0 0 0 8px rgba(33, 47, 142, 0); } }

/* Screen tour */
.f-tour { background: var(--bg-soft); }
.tour { max-width: 1040px; margin: 0 auto; }
.tour-view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.tour-canvas { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.tour-canvas img { width: 100%; height: 100%; object-fit: cover; }
.tour-box {
  position: absolute; border-radius: 8px; opacity: 0; pointer-events: none;
  border: calc(2.5px * var(--inv, 1)) solid var(--brand-3);
  box-shadow: 0 0 0 9999px rgba(15, 22, 56, .32), 0 0 calc(24px * var(--inv, 1)) rgba(86, 28, 255, .45);
  transition: opacity .4s, left .5s, top .5s, width .5s, height .5s;
}
.tour-box.show { opacity: 1; }
.tour-cursor {
  position: absolute; width: 28px; height: 28px; margin: -3px 0 0 -4px; z-index: 2; pointer-events: none;
  transform: scale(var(--inv, 1)); transform-origin: 4px 3px;
  transition: left .9s cubic-bezier(.65, 0, .35, 1), top .9s cubic-bezier(.65, 0, .35, 1), transform 1s;
}
.tour-cursor svg { width: 100%; height: 100%; fill: #0f1638; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.tour-cursor::after {
  content: ""; position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(86, 28, 255, .35); opacity: 0;
}
.tour-cursor.click::after { animation: ripple .45s ease-out; }
.tour-caption {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.tour-count { flex: none; font-size: 13px; font-weight: 700; color: var(--brand-3); font-variant-numeric: tabular-nums; min-width: 3em; }
.tour-caption p { flex: 1; font-size: 16px; font-weight: 500; color: var(--ink); min-height: 1.6em; }
.tour-nav { display: flex; gap: 8px; flex: none; }
.tour-progress { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: #cdd2e3; transition: width .3s, background .3s; }
.dot.on { width: 28px; background: var(--brand-grad); }

/* Capabilities */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.f-note { display: flex; gap: 16px; align-items: baseline; margin-top: 24px; padding: 18px 22px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.f-note b { flex: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.f-note p { font-size: 15px; color: var(--ink-2); }
.f-note-link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--primary); }
.f-note-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .f-note { flex-direction: column; gap: 6px; } }
.cap-card h3 { font-size: 18px; font-weight: 650; }
.cap-card .cap-sub { margin-top: 24px; font-size: 15px; }
.cap-card dl { margin-top: 14px; display: grid; gap: 12px; }
.cap-card dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 600; color: var(--brand-3); }
.cap-card dd { font-size: 14.5px; color: var(--ink-2); margin-top: 1px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags li { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 4px 9px; border-radius: 6px; background: #efe7ff; color: var(--brand-3); font-weight: 600; }
.ticks { list-style: none; margin-top: 14px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #e6efff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230176d3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.cap-card .cap-p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }

/* More features */
.f-more { padding-top: 0; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.more-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.more-card b { font-weight: 600; }
.more-card > span { color: var(--primary); font-weight: 700; transition: transform .2s; }
.more-card:hover { border-color: #b9c3e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.more-card:hover > span { transform: translateX(3px); }
@media (max-width: 1080px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .more-grid { grid-template-columns: 1fr; } }

/* Next CTA */
.f-next {
  padding: 64px 0; color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(160, 113, 255, .4), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(28, 115, 255, .35), transparent 60%),
    #0d1440;
}
.f-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.f-next h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.f-next p { margin-top: 8px; color: #c9d1f2; }
.f-next .cta-row { margin-top: 0; }

.phone-toast { display: none; }

@media (max-width: 1080px) {
  .f-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .f-stats { grid-template-columns: repeat(3, 1fr); }
  .demo-stage { grid-template-columns: 320px 1fr; padding: 20px; gap: 20px; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .demo-stage { grid-template-columns: 1fr; justify-items: center; }
  .phone { width: 100%; max-width: 340px; height: 600px; }
  .behind { width: 100%; height: 360px; }
  .demo-stage { padding: 16px 12px; border-radius: 20px; }
  .demo-bar { flex-wrap: nowrap; align-items: flex-start; }
  .chapters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapter { flex: none; }
  .phone-toast {
    display: flex; position: absolute !important; left: 14px; right: 14px; bottom: 70px; z-index: 4;
    flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border: 0;
    background: rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: 0 6px 20px rgba(15, 22, 56, .22);
    opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none;
  }
  .phone-toast.show { opacity: 1; transform: none; }
  .phone-toast .chip { margin-top: 0; }
  .toast-label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .chat-body { padding-bottom: 64px; }
  .f-stats { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .tour-caption { flex-wrap: wrap; }
  .tour-caption p { flex-basis: 100%; order: 3; font-size: 15px; }
  .tour-nav { margin-left: auto; }
}

.tour-canvas.swap img { animation: tourSwap .5s ease; }
@keyframes tourSwap { from { opacity: .2; } to { opacity: 1; } }

/* ---------- Console scene demos (mini DialogueBase screens) ---------- */
.behind-ch.n { background: #efe7ff; color: var(--brand-3); }
.behind-ch { white-space: nowrap; }
.demo-tabs.single button { cursor: default; }
.scene-stage { grid-template-columns: minmax(0, 1fr) 280px; }
.scene-browser { position: relative; min-width: 0; height: 600px; display: flex; flex-direction: column; border-radius: 16px; }
.scene-stage .behind { height: 600px; }

/* Demo layouts: guide (one caption under the screen) and timeline (events along a day) */
.demo[data-layout] .scene-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.demo-caption {
  min-height: 66px; padding: 12px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.demo-caption:empty { visibility: hidden; }
.demo-caption .ev, .demo-caption .ev.record { grid-template-columns: 56px 1fr; padding: 0; border: 0; }
.demo-caption .ev p { font-size: 15px; font-weight: 600; }
.demo-timeline {
  min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.tl-feed {
  list-style: none; display: flex; min-height: 132px; overflow-x: auto; padding: 16px 18px 14px;
  scrollbar-width: thin;
}
.tl-feed .ev, .tl-feed .ev.record {
  position: relative; flex: 0 0 216px; display: flex; flex-direction: column; gap: 4px;
  padding: 24px 18px 0 0; border: 0;
}
.tl-feed .ev::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: #e3e6f0; }
.tl-feed .ev::after {
  content: ""; position: absolute; left: 0; top: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-3); box-shadow: 0 0 0 3px #fff;
}
.tl-feed .ev time { padding-top: 0; font-weight: 600; color: var(--ink); }
.tl-feed .ev p { font-size: 13px; }
@media (max-width: 760px) {
  .demo[data-layout] .scene-stage { justify-items: stretch; }
  .demo-caption .ev p { font-size: 14px; }
  .tl-feed { flex-direction: column; min-height: 0; max-height: 300px; overflow: hidden auto; padding: 14px 16px; }
  .tl-feed .ev, .tl-feed .ev.record { flex: none; padding: 0 0 14px 24px; }
  .tl-feed .ev::before { left: 5px; right: auto; top: 6px; bottom: -6px; width: 2px; height: auto; }
  .tl-feed .ev:last-child::before { display: none; }
}
.scene {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px; background: #f4f5f9;
  font-size: 12px; line-height: 1.45; color: var(--ink); scrollbar-width: thin;
}
html[data-lang="zh"] .scene { font-family: var(--font-zh); }
.sx:not(.on) { display: none !important; }
.sx.on { animation: msgIn .4s cubic-bezier(.2, .8, .3, 1) both; }
.demo.fast .scene, .demo.fast .scene * { animation: none !important; transition: none !important; }
.scene .flash { animation: cxFlash 1s ease; }
@keyframes cxFlash { 0% { background-color: #dcf5e4; box-shadow: 0 0 0 3px rgba(46, 132, 74, .2); } }
.scene .pressed { transform: scale(.95); filter: brightness(.93); }

.pointer {
  position: absolute; left: 60%; top: 70%; width: 24px; height: 24px; margin: -3px 0 0 -4px; z-index: 6;
  pointer-events: none; opacity: 0;
  transition: left .7s cubic-bezier(.65, 0, .35, 1), top .7s cubic-bezier(.65, 0, .35, 1), opacity .25s;
}
.pointer.show { opacity: 1; }
.pointer svg { width: 100%; height: 100%; fill: #0f1638; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.pointer::after {
  content: ""; position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(86, 28, 255, .35); opacity: 0;
}
.pointer.click::after { animation: ripple .45s ease-out; }

/* Kit */
.cx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cx-top b { display: block; font-size: 15px; font-weight: 650; line-height: 1.25; }
.cx-sub { font-size: 10.5px; color: var(--muted); }
.cx-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.cx-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 650; margin-bottom: 8px; }
.cx-h .cx-sub { font-weight: 400; }
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: transform .15s, filter .15s, background .2s;
}
.cx-btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; }
.cx-btn.ok { background: #e3f6e8; border-color: #bfe6c9; color: #157f3c; }
.cx-btn.no { background: #fdecec; border-color: #f6c9c9; color: #b42318; }
.cx-btn.ai { background: #f3eeff; border-color: #ddd0ff; color: var(--brand-3); }
.cx-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.cx-pill { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: #eef0f4; color: #4b5267; white-space: nowrap; vertical-align: middle; }
.cx-pill.g { background: #dff6e6; color: #157f3c; }
.cx-pill.o { background: #ffedd5; color: #b45309; }
.cx-pill.b { background: #dbeafe; color: #0b5cad; }
.cx-pill.p { background: #efe7ff; color: var(--brand-3); }
.cx-pill.r { background: #fde2e2; color: #b42318; }
.cx-pill.gold { background: #fdf1d6; color: #a66a00; }
.cx-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10.5px; display: inline-grid; place-items: center; }
.cx-empty { color: var(--muted); text-align: center; padding: 40px 8px; font-size: 11.5px; }
.cx-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; }
.cx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cx-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.cx-kpi small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-kpi b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 1px; white-space: nowrap; border-radius: 4px; }
.cx-kpi em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-kpi em.up { color: #157f3c; }
.cx-track { height: 5px; border-radius: 99px; background: #eceef4; overflow: hidden; margin-top: 6px; }
.cx-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--primary); transition: width 1.1s cubic-bezier(.2, .8, .3, 1); }
.cx-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.cx-dl dt { font-size: 10.5px; color: var(--muted); }
.cx-dl dd { font-size: 11.5px; font-weight: 600; border-radius: 4px; }
.cx-dl .wide { grid-column: 1 / -1; }
.cx-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.cx-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 10px; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cx-table td { padding: 6px; border-bottom: 1px solid #f0f1f6; white-space: nowrap; }
.cx-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cx-table .ell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.pos { color: #157f3c; }
.neg { color: #b42318; }

.cx-thread { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; min-height: 0; }
.cx-thread::-webkit-scrollbar { display: none; }
.cx-msg { max-width: 86%; padding: 6px 9px; border-radius: 9px; font-size: 11.5px; line-height: 1.45; background: #eef0f4; align-self: flex-start; }
.cx-msg small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-bottom: 1px; }
.cx-msg.out { align-self: flex-end; background: var(--primary); color: #fff; }
.cx-msg time { display: block; text-align: right; font-size: 9px; opacity: .6; margin-top: 2px; }
.cx-qr { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cx-qr span { padding: 1px 7px; border-radius: 5px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); font-size: 10.5px; }
.cx-sys { align-self: center; font-size: 10px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; text-align: center; }
.cx-compose { display: flex; gap: 6px; align-items: flex-end; margin-top: 8px; }
.cx-input { flex: 1; min-height: 30px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; background: #fff; min-width: 0; }
.cx-input .ph { color: #9aa0a6; }
.cx-input.typing { box-shadow: 0 0 0 2px rgba(1, 118, 211, .25); border-color: #9cc3ec; }
.cx-send { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; transition: transform .15s; }

.cx-ai { border-color: #ddd0ff; background: linear-gradient(180deg, #faf8ff, #fff 70%); }
.spark { color: var(--brand-3); }
.cx-stream { font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.cx-stream h5 { font-size: 11px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.cx-stream h5:first-child { margin-top: 0; }
.cx-kb { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; font-size: 11px; color: var(--ink-2); }
.cx-kb b { display: block; color: var(--primary); font-size: 11px; }

.cx-tl { list-style: none; }
.cx-tl li { position: relative; padding: 0 0 9px 16px; font-size: 11px; border-radius: 4px; }
.cx-tl li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); }
.cx-tl li::after { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.cx-tl li:last-child::after { display: none; }
.cx-tl time { display: block; font-size: 9.5px; color: var(--muted); }

.wire { position: relative; flex: 1; min-width: 16px; height: 2px; background: #d7dbea; align-self: center; transition: background .3s; }
.wire.on { background: #b9c2ff; }
.wire.on::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-3); box-shadow: 0 0 8px rgba(86, 28, 255, .6); animation: wireH 1.2s linear infinite;
}
.wire.rev.on { background: #a7e3bd; }
.wire.rev.on::after { background: #16a34a; box-shadow: 0 0 8px rgba(22, 163, 74, .6); animation-direction: reverse; }
@keyframes wireH { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes wireV { from { top: 0; } to { top: calc(100% - 8px); } }
.lit { box-shadow: 0 0 0 3px rgba(86, 28, 255, .16) !important; border-color: #a58bff !important; }

/* Inbox */
.cx-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; font-weight: 600; }
.cx-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.sc-inbox { display: grid; grid-template-columns: 172px minmax(0, 1fr) 188px; gap: 10px; height: 498px; }
.sc-inbox > * { min-height: 0; }
.cx-queue { overflow: hidden; }
.cx-qlist { list-style: none; display: grid; gap: 6px; }
.cx-q { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .3s, background .3s, box-shadow .3s; }
.cx-q.active { border-color: #9cc3ec; background: #f2f8fe; box-shadow: 0 0 0 2px rgba(1, 118, 211, .12); }
.cx-q .who { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11.5px; }
.cx-q .who img { width: 13px; height: 13px; }
.cx-q .who .cx-count { margin-left: auto; }
.cx-q .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.cx-q.active .acts { display: none; }
.cx-conv { display: flex; flex-direction: column; }
.cx-conv .cx-thread { flex: 1; }
.cx-side { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.cx-side::-webkit-scrollbar { display: none; }
.cx-side > * { flex: none; }
.cx-conv .cx-h > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-conv .cx-h .cx-btns { flex-wrap: nowrap; flex: none; }
.cx-side .cx-card { padding: 9px 10px; }

/* CRM record */
.cx-rec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-av { width: 38px; height: 38px; border-radius: 50%; background: #fdf1e6; color: #b45309; border: 1px solid #f3d3b0; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.cx-rec h4 { font-size: 16px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cx-rec .cx-btns { margin-left: auto; }
.cx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--muted); margin: 6px 0 10px; }
.sc-crm { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
.cx-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cx-tabs span { padding-bottom: 5px; }
.cx-tabs span.on { color: var(--primary); border-bottom: 2px solid var(--primary); }
.cx-kpi b.amber { color: #b45309; }

/* Cases */
.sc-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 10px; height: 538px; }
.sc-case > * { min-height: 0; }
.sc-case .cx-conv .cx-thread { flex: 1; }
.cx-steps { display: flex; gap: 4px; margin-bottom: 9px; }
.cx-steps span { flex: 1; text-align: center; padding: 4px 0; font-size: 10.5px; font-weight: 600; border-radius: 6px; background: #eef0f4; color: var(--muted); transition: background .3s, color .3s; }
.cx-steps span.done { background: #dff6e6; color: #157f3c; }
.cx-steps span.on { background: var(--brand-grad); color: #fff; }
.cx-big { font-size: 17px; font-weight: 700; letter-spacing: -.01em; border-radius: 4px; }
.cx-track.sla { height: 7px; }
.cx-track.sla i { background: #2e8b57; }

/* Campaign */
.sc-camp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-rule { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; padding: 4px 7px; border: 1px dashed #cfd5e6; border-radius: 7px; font-size: 10.5px; margin-bottom: 5px; background: #fbfcff; }
.cx-rule code { font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: var(--brand-3); }
.cx-aud { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.cx-aud b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 4px; }
.cx-wa { background: #efeae2; border-radius: 8px; padding: 7px; }
.cx-wa .card { background: #fff; border-radius: 7px; padding: 6px 8px; font-size: 10.5px; line-height: 1.45; }
.cx-wa .btns span { display: block; text-align: center; color: #0b7bd6; border-top: 1px solid #eee; padding: 3px 0; font-size: 10.5px; background: #fff; }
.cx-wa .btns span:last-child { border-radius: 0 0 7px 7px; }
.var { background: #efe7ff; color: var(--brand-3); border-radius: 4px; padding: 0 3px; font-family: ui-monospace, Menlo, monospace; font-size: 10px; }
.cx-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sc-camp2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.cx-hbar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; align-items: center; gap: 6px; font-size: 11px; margin-top: 6px; }
.cx-hbar .cx-track { height: 8px; margin: 0; }
.cx-hbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* Journey */
.sc-jr { display: flex; align-items: center; gap: 0; margin-top: 4px; }
.jn {
  flex: none; width: 112px; padding: 6px 8px; border-radius: 8px; border: 1px solid #d7dbea; background: #fff;
  font-size: 10.5px; line-height: 1.35; transition: box-shadow .3s, border-color .3s;
}
.jn small { display: block; font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.jn .n { float: right; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; margin-left: 4px; }
.jn.trig { background: #e8efff; border-color: #b8cbf5; }
.jn.status { background: #f3eeff; border-color: #d8c8ff; }
.jn.fail { background: #fff1d6; border-color: #f3cf86; }
.jn.root { width: 104px; background: #e8efff; border-color: #8fb0f0; }
.jn { overflow-wrap: anywhere; }
.sc-jr > .wire { flex: none; width: 28px; }
.jr .wire { flex: none; width: 22px; min-width: 0; }
.jr-rows { flex: 1; min-width: 0; border-left: 2px solid #d7dbea; padding: 2px 0; }
.jr { display: flex; align-items: center; padding: 5px 0; }
.jr::before { content: ""; width: 12px; height: 2px; background: #d7dbea; flex: none; }
.jr .act { opacity: .45; transition: opacity .3s; }
.jr .act.on { opacity: 1; }
.cx-run { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }

/* AI */
.sc-ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: 490px; }
.sc-ai > .cx-col, .sc-case > .cx-col { overflow-y: auto; scrollbar-width: none; }
.sc-ai > .cx-col::-webkit-scrollbar, .sc-case > .cx-col::-webkit-scrollbar { display: none; }
.sc-ai > * { min-height: 0; }
.sc-ai .cx-conv .cx-thread { flex: 1; }
.cx-ask { display: flex; flex-direction: column; }
.cx-ask .cx-thread { flex: 1; gap: 8px; }
.cx-ask .cx-thread > * { flex: none; }
.cx-q-bubble { align-self: flex-end; max-width: 88%; background: var(--primary); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 11.5px; min-height: 28px; }
.cx-reason { font-size: 10.5px; color: var(--muted); }
.cx-reason li { list-style: none; padding-left: 14px; position: relative; }
.cx-reason li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cx-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cx-chips .cx-btn { white-space: normal; text-align: left; }
.sc-ask { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; height: 490px; }
.sc-ask > * { min-height: 0; }
.sc-ask .cx-kpis { grid-template-columns: 1fr 1fr; }
.cx-draft { border-color: #d9ccff; background: #faf8ff; }
.sc-byok { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; height: 490px; }
.sc-byok > * { min-height: 0; }
.sc-byok > .cx-col { overflow-y: auto; scrollbar-width: none; }
.sc-byok > .cx-col::-webkit-scrollbar { display: none; }
.sc-byok .cx-kpis { grid-template-columns: 1fr 1fr; }
.cx-acc { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.cx-acc li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; }
.cx-acc li > div { flex: 1; min-width: 0; }
.cx-acc li b { display: block; }
.cx-vend { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #e8f1fb; color: #0f6cbd; font-size: 11px; font-weight: 700; }
.cx-vend.q { background: #efe7ff; color: var(--brand-3); }
.cx-form label { display: block; margin: 6px 0 3px; font-size: 10.5px; color: var(--muted); }
.cx-form .cx-input { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-form-acts { margin-top: 10px; align-items: center; }
.cx-form-acts .cx-btn.pri { margin-left: auto; }
.cx-acct { display: block; font-size: 10px; }
.cx-route td { vertical-align: top; font-size: 10.5px; }
.cx-route td:first-child { white-space: nowrap; }
.cx-def td { background: #faf8ff; }

.f-byok .sf-grid { align-items: start; }
.byok-steps { list-style: none; counter-reset: byok; display: grid; gap: 16px; margin-top: 24px; }
.byok-steps li { counter-increment: byok; position: relative; padding-left: 46px; }
.byok-steps li::before {
  content: counter(byok); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 14px;
}
.byok-steps b { display: block; font-size: 16px; font-weight: 650; }
.byok-steps p { margin-top: 3px; font-size: 14.5px; color: var(--ink-2); }
.f-stats a { color: inherit; }
.f-stats a:hover { color: var(--primary); text-decoration: underline; }

.uses-tools { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.uses-tools .btn { padding: 8px 16px; font-size: 14px; }
.uses-close, .uses-tools [aria-pressed="true"] .uses-open { display: none; }
.uses-tools [aria-pressed="true"] .uses-close { display: inline; }
.uses { display: grid; gap: 36px; }
.uses-role { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-3); }
.uses-role > span { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.use { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.use:hover, .use[open] { border-color: #cfd6f3; }
.use[open] { box-shadow: var(--shadow); }
.use summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 24px;
  grid-template-areas: "code main co chev"; gap: 16px; align-items: center; padding: 18px 22px;
}
.use summary::-webkit-details-marker { display: none; }
.use summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.use-code { grid-area: code; padding: 4px 0; border-radius: 6px; background: #f3efff; color: var(--brand-3); text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 700; }
.use-main { grid-area: main; min-width: 0; }
.use-main b { display: block; font-size: 17px; font-weight: 650; color: var(--navy); }
.use-effect { display: block; margin-top: 3px; font-size: 14.5px; color: var(--ink-2); }
.use-co { grid-area: co; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.use-chev { grid-area: chev; position: relative; width: 24px; height: 24px; }
.use-chev::before {
  content: ""; position: absolute; left: 8px; top: 5px; width: 7px; height: 7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s;
}
.use[open] .use-chev::before { transform: translateY(5px) rotate(225deg); }
.use-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 2px 22px 24px; }
.use-body .ticks { margin-top: 4px; }
.use-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.use-tabs button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.use-tabs button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.use-shot { display: none; }
.use-shot.on { display: block; }
.f-uses .f-note { margin-top: 36px; }
@media (max-width: 900px) {
  .use-body { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .use summary { grid-template-columns: auto minmax(0, 1fr) 24px; grid-template-areas: "code co chev" "main main main"; gap: 10px; padding: 16px; }
  .use-code { padding: 3px 8px; }
  .use-co { justify-self: start; }
  .use-main b { font-size: 16px; }
  .use-body { padding: 0 16px 18px; }
  .uses-tools { justify-content: flex-start; }
}

/* Dashboards */
.sc-dash2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.cx-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.cx-chart .grid { stroke: #e9ebf2; stroke-width: 1; }
.cx-chart text { font-size: 8px; fill: #8a90a8; font-family: var(--font); }
.cx-chart .ln { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease; }
.draw.on { stroke-dashoffset: 0; }
.donut .seg { fill: none; stroke-width: 7; transition: stroke-dasharray 1.2s ease; }
.cx-legend { list-style: none; display: grid; gap: 5px; font-size: 11px; }
.cx-legend li { display: flex; align-items: center; gap: 6px; }
.cx-legend li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cx-legend li b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 10.5px; }
.cx-donut { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }

/* Integrations */
.sc-int { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.1fr) 40px minmax(0, 1fr); align-items: center; }
.cx-wires { display: flex; flex-direction: column; gap: 18px; padding: 0 3px; }
.cx-wires .wire { flex: none; width: 100%; }
.cx-sys-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.cx-sys-h img { width: 18px; height: 18px; }
.cx-sys-h .sf { width: 18px; height: 18px; border-radius: 5px; background: #00a1e0; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.cx-params { display: grid; gap: 4px; font-size: 10.5px; }
.cx-params div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 6px; border-radius: 5px; background: #f6f7fb; }
.cx-params code { font-family: ui-monospace, Menlo, monospace; color: var(--brand-3); font-size: 10px; }
.cx-log {
  margin-top: 12px; background: #0f1638; color: #c9d1f2; border-radius: 10px; padding: 10px 12px; min-height: 148px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; line-height: 1.65;
}
.cx-log > div { overflow-wrap: anywhere; }
.cx-log .k { color: #a5b4fc; }
.cx-log .ok { color: #86efac; }
.cx-log .dim { color: #7c86b8; }

@media (max-width: 1080px) {
  .scene-stage { grid-template-columns: 1fr; }
  .scene-stage .behind { height: 300px; }
}
@media (max-width: 760px) {
  .scene-browser { width: 100%; height: 580px; }
  .scene-stage .behind { height: 320px; }
  .scene-browser .phone-toast { bottom: 14px; }
  .scene { padding: 10px; }
  .pointer { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(15, 22, 56, .28); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(15, 22, 56, .3); }
  .pointer svg { display: none; }
  .pointer::after { left: -2px; top: -2px; }
  .sc-inbox, .sc-crm, .sc-case, .sc-camp, .sc-camp2, .sc-ai, .sc-ask, .sc-dash2, .sc-byok { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sc-inbox .cx-thread, .sc-case .cx-thread, .sc-ai .cx-thread { max-height: 300px; }
  .sc-ai > .cx-col, .sc-case > .cx-col, .sc-byok > .cx-col, .cx-side { overflow: visible; }
  .sc-ask .cx-thread { max-height: 380px; }
  .cx-kpis, .cx-funnel { grid-template-columns: 1fr 1fr; }
  .cx-table td, .cx-table th { padding-left: 4px; padding-right: 4px; }
  .cx-table .ell { max-width: 96px; }
  .cx-rec .cx-btns { margin-left: 0; }
  .sc-jr { flex-direction: column; align-items: stretch; }
  .sc-jr > .wire { width: 2px; height: 16px; flex: none; min-width: 0; align-self: flex-start; margin-left: 50px; }
  .sc-jr > .wire.on::after { left: -3px; animation-name: wireV; }
  .jn.root { width: auto; }
  .jr > .jn, .jr > .act { flex: 1 1 0; min-width: 0; }
  .jr .jn { width: auto; font-size: 9.5px; padding: 5px 6px; }
  .jr .wire { width: 12px; }
  .sc-int { grid-template-columns: minmax(0, 1fr); }
  .cx-wires { flex-direction: row; justify-content: center; gap: 28px; height: 30px; }
  .cx-wires .wire { width: 2px; height: 100%; }
  .cx-wires .wire.on::after { left: -3px; animation-name: wireV; }
  .cx-donut { grid-template-columns: 96px minmax(0, 1fr); }
}
