.p-chatbot{--acc:var(--violet);--r:28px}
/* page tokens: light default, dark override. The mock screens stay light in both themes. */
:root{--cb-on-acc:#FFFFFF;--cb-edge:rgba(16,24,64,.12);--cb-screen:#FFFFFF;--cb-screen-edge:rgba(16,24,64,.16);--cb-screen-shadow:0 2px 4px rgba(30,36,90,.06),0 28px 70px rgba(48,44,140,.16);--cb-widget-shadow:0 2px 6px rgba(20,24,43,.10),0 18px 50px rgba(20,24,43,.18);--cb-tint-a:color-mix(in srgb,var(--violet) 13%,var(--ink2));--cb-tint-b:color-mix(in srgb,var(--azure) 11%,var(--ink2))}
html[data-theme=dark]{--cb-on-acc:#0B0A1F;--cb-edge:transparent;--cb-screen:#F7F7FB;--cb-screen-edge:transparent;--cb-screen-shadow:0 40px 120px rgba(80,70,200,.28);--cb-widget-shadow:0 18px 60px rgba(20,24,43,.22);--cb-tint-a:color-mix(in srgb,var(--violet) 26%,var(--ink2));--cb-tint-b:color-mix(in srgb,var(--azure) 20%,var(--ink2))}
.p-chatbot h2{font-size:clamp(28px,3.6vw,46px)}
.cb-lead{color:var(--text2);font-size:19px;max-width:60ch}

/* hero: headline over a browser mock */
.cb-hero{padding:150px 0 40px;text-align:left}
.cb-hero h1{font-size:clamp(38px,6vw,84px);max-width:13ch;margin:0}
.cb-hero .cb-lead{margin:24px 0 26px}
.cb-hero .actions{justify-content:flex-start}
.cb-hero .btn{border-radius:999px}
.cb-pick{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:52px 0 20px}
.cb-pick button{font:600 15px/1 var(--body);padding:12px 18px;border-radius:999px;border:1px solid var(--line);background:var(--ink2);color:var(--muted);cursor:pointer}
.cb-pick button[aria-pressed=true]{background:var(--acc);border-color:var(--acc);color:var(--cb-on-acc)}
.cb-browser{--site:#D9534F;width:100%;margin:0;border-radius:var(--r);background:var(--cb-screen);color:#14182B;text-align:left;overflow:hidden;border:1px solid var(--cb-screen-edge);box-shadow:var(--cb-screen-shadow);position:relative}
.cb-chrome{display:flex;align-items:center;gap:8px;padding:14px 18px;background:#E6E8F1}
.cb-chrome i{width:11px;height:11px;border-radius:50%;background:#C3C7D6}
.cb-url{margin-left:12px;flex:1;max-width:420px;background:#fff;border-radius:999px;padding:7px 16px;font-size:13.5px;color:#5A6282}
.cb-site{padding:22px 30px 30px;min-height:520px;position:relative}
.cb-sitenav{display:flex;align-items:center;gap:26px;font-size:14.5px;color:#5A6282;font-weight:500}
.cb-brand{font:600 20px/1 var(--display);letter-spacing:.02em;color:var(--site);margin-right:auto}
.cb-stage{margin-top:26px;border-radius:22px;background:color-mix(in srgb,var(--site) 13%,#fff);padding:38px 32px;max-width:56%}
.cb-stage b{display:block;font:600 clamp(22px,2.6vw,34px)/1.1 var(--display);letter-spacing:-.02em;max-width:12ch}
.cb-stage span{display:inline-block;margin-top:22px;height:40px;width:130px;border-radius:999px;background:var(--site)}
.cb-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:56%;margin-top:14px}
.cb-tiles i{height:120px;border-radius:18px;background:#E9EBF3}
.cb-widget{position:absolute;right:26px;bottom:26px;width:min(360px,calc(100% - 52px));background:#fff;border-radius:24px;border:1px solid rgba(20,24,43,.08);box-shadow:var(--cb-widget-shadow);overflow:hidden;font-size:15px;line-height:1.45}
.cb-whead{display:flex;align-items:center;gap:10px;padding:14px 18px;background:var(--site);color:#fff;font-weight:600}
.cb-whead small{margin-left:auto;font-weight:500;font-size:12.5px;opacity:.9}
.cb-whead small::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#7CF2B0;margin-right:6px}
.cb-msgs{padding:16px;display:flex;flex-direction:column;gap:10px}
.cb-b{max-width:86%;padding:10px 14px;border-radius:18px}
.cb-b.u{align-self:flex-end;background:var(--site);color:#fff;border-bottom-right-radius:6px}
.cb-b.b{align-self:flex-start;background:#EEF0F6;border-bottom-left-radius:6px}
.cb-in{margin:0 16px 16px;padding:11px 16px;border-radius:999px;background:#F2F3F8;color:#7A819C;font-size:14px}
.cb-for{margin:34px 0 0;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:36px;text-align:left;align-items:start}
.cb-for h2{font-size:clamp(22px,2.4vw,30px)}
.cb-for ul{list-style:none;display:grid;gap:10px}
.cb-for li{background:var(--ink2);border:1px solid var(--cb-edge);border-radius:18px;padding:14px 20px;color:var(--text2)}
.cb-hero .note{margin-top:18px}
@media(min-width:900px){
  .cb-hero .wrap{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:56px;align-items:start}
  .cb-hero .wrap>*{grid-column:1/-1}
  .cb-hero h1{grid-column:1;grid-row:1/3;align-self:end}
  .cb-hero .cb-lead{grid-column:2;grid-row:1;align-self:end;margin:0 0 24px}
  .cb-hero .actions{grid-column:2;grid-row:2;align-self:start;align-items:center}
}
@media(max-width:860px){.cb-hero{padding-top:124px}.cb-site{padding:18px 16px 18px;min-height:0}.cb-sitenav span{display:none}.cb-stage,.cb-tiles{max-width:100%}.cb-tiles i{height:64px}.cb-stage{padding:24px 20px}.cb-widget{position:relative;right:auto;bottom:auto;width:100%;margin-top:16px}.cb-for{grid-template-columns:1fr;gap:16px}}

/* content it learns from */
.cb-feed{padding:110px 0 40px;text-align:center}
.cb-feed .cb-lead{margin:18px auto 34px}
.cb-docs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:820px;margin:0 auto}
.cb-docs span{padding:14px 22px;border-radius:999px;background:var(--ink2);border:1px solid var(--line);font-weight:500}
.cb-docs span:nth-child(3n+1){background:var(--cb-tint-a)}
.cb-docs span:nth-child(4n+2){background:var(--cb-tint-b)}

/* scrollytelling */
.cb-how{padding:90px 0 60px}
.cb-how-head{max-width:760px;margin-bottom:30px}
.cb-how-head .cb-lead{margin-top:16px}
.cb-scrolly{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:70px;align-items:start}
.cb-steps{list-style:none;counter-reset:st}
.cb-steps li{counter-increment:st;min-height:46vh;display:flex;flex-direction:column;justify-content:center;opacity:.32;transition:opacity .3s}
.cb-steps li.on{opacity:1}
.cb-steps li::before{content:counter(st);display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--acc);color:var(--cb-on-acc);font:600 22px/1 var(--display);margin-bottom:20px}
.cb-steps h3{font-size:clamp(26px,3vw,40px);margin-bottom:10px}
.cb-steps p{color:var(--text2);font-size:19px;max-width:34ch}
.cb-stick{position:sticky;top:calc(50vh - 230px)}
.cb-live{background:#fff;color:#14182B;border-radius:var(--r);overflow:hidden;font-size:15px;line-height:1.45;--site:#6F5BE8;border:1px solid var(--cb-screen-edge);box-shadow:var(--cb-screen-shadow)}
.cb-live .cb-msgs{min-height:330px}
.cb-live [data-from]{transition:opacity .35s,transform .35s}
.cb-live [data-from].off{opacity:0;transform:translateY(8px)}
.cb-ctx{align-self:flex-start;display:flex;flex-wrap:wrap;gap:6px}
.cb-ctx span{padding:6px 12px;border-radius:999px;background:#EEEAFE;color:#4B3BC4;font-size:13px;font-weight:600}
.cb-found{align-self:flex-start;font-size:13.5px;color:#5A6282;padding-left:4px}
.cb-log{align-self:stretch;margin-top:4px;padding:10px 14px;border-radius:14px;border:1px dashed #C9CCDD;font-size:13.5px;color:#3B4262}
.cb-hownote{margin-top:10px;color:var(--muted)}
.cb-hownote strong{color:var(--text)}
@media(max-width:860px){.cb-scrolly{grid-template-columns:1fr;gap:28px}.cb-stick{position:static;order:-1}.cb-steps li{min-height:0;opacity:1;padding:22px 0}.cb-live .cb-msgs{min-height:0}}

/* benefit slides */
.cb-why{padding:90px 0}
.cb-why h2{margin-bottom:34px}
.cb-strip{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:max(32px,calc((100vw - 1200px)/2 + 32px));padding:4px max(32px,calc((100vw - 1200px)/2 + 32px)) 26px;scrollbar-color:var(--muted) transparent}
.cb-slide{flex:0 0 min(78vw,640px);scroll-snap-align:start;border-radius:36px;padding:44px 40px 48px;background:var(--ink2);border:1px solid var(--cb-edge);min-height:300px;display:flex;flex-direction:column;justify-content:flex-end}
.cb-slide:nth-child(3n+1){background:var(--cb-tint-a)}
.cb-slide:nth-child(3n+2){background:var(--cb-tint-b)}
.cb-slide h3{font-size:clamp(28px,3.6vw,46px);margin-bottom:16px;max-width:14ch}
.cb-slide p{color:var(--text2);font-size:18px;max-width:44ch}
@media(max-width:860px){.cb-strip{padding-left:22px;padding-right:22px}.cb-slide{padding:32px 26px;min-height:260px}}

/* what visitors ask */
.cb-know{padding:60px 0 100px}
.cb-know-in{border-radius:40px;background:var(--ink2);border:1px solid var(--cb-edge);padding:56px;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:56px;align-items:center}
.cb-know p{color:var(--text2);margin-top:16px}
.cb-rank{list-style:none;counter-reset:rk}
.cb-rank li{counter-increment:rk;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:6px 10px;margin-bottom:16px;font-weight:500}
.cb-rank li::before{content:counter(rk);color:var(--muted);font-weight:600}
.cb-rank i{grid-column:2;height:12px;border-radius:999px;background:var(--acc);width:var(--w)}
.cb-incl{display:flex;flex-wrap:wrap;gap:8px;margin-top:44px;justify-content:center}
.cb-incl span{padding:9px 16px;border-radius:999px;border:1px solid var(--line);font-size:14.5px;color:var(--text2)}
.cb-incl-t{text-align:center;margin-top:70px;font:600 24px/1.2 var(--display);letter-spacing:-.02em}
@media(max-width:860px){.cb-know-in{grid-template-columns:1fr;padding:32px 24px;gap:30px;border-radius:30px}}

/* FAQ as a chat thread */
.cb-thread{padding:40px 0 100px}
.cb-thread h2{text-align:center;margin-bottom:44px}
.cb-conv{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.cb-q,.cb-a{padding:16px 22px;border-radius:26px;max-width:84%}
.cb-q{align-self:flex-end;background:var(--acc);color:var(--cb-on-acc);font-weight:600;border-bottom-right-radius:8px;font-size:17px;font-family:var(--body);letter-spacing:0;line-height:1.45}
.cb-a{align-self:flex-start;background:var(--ink2);border:1px solid var(--cb-edge);color:var(--text2);border-bottom-left-radius:8px;margin-bottom:14px}
@media(max-width:560px){.cb-q,.cb-a{max-width:94%}}

/* contact as a composer */
.cb-compose{padding:0 0 120px}
.cb-box{max-width:760px;margin:0 auto;background:var(--ink2);border:1px solid var(--line);border-radius:36px;padding:44px}
.cb-box h2{font-size:clamp(26px,3vw,38px)}
.cb-box>p{color:var(--text2);margin:14px 0 30px}
.cb-form .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cb-form label{display:block;margin-bottom:14px}
.cb-form label span{display:block;font-size:14px;color:var(--muted);margin:0 0 6px 16px}
.cb-form input,.cb-form textarea{width:100%;background:var(--ink);border:1px solid var(--line);border-radius:22px;padding:14px 18px;color:var(--text);font:400 17px/1.5 var(--body)}
.cb-form input:focus,.cb-form textarea:focus{outline:0;border-color:var(--acc)}
.cb-send{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:6px}
.cb-send .btn{border-radius:999px;background:var(--acc);color:var(--cb-on-acc)}
.cb-form .ok{margin:0}
.cb-mail{color:var(--muted);font-size:15px;margin-right:auto}
@media(max-width:560px){.cb-box{padding:28px 20px;border-radius:28px}.cb-form .two{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.cb-live [data-from],.cb-steps li{transition:none}.cb-strip{scroll-behavior:auto}}
