/* Convobeam demo, new style. Tokens, type and shapes are taken from the Convobeam app design
   (convobeam-design: design.css .cbs public site + .cbw widget). Nothing else is borrowed. */
@font-face { font-family: 'CB Inter'; src: url('/brandkit/fonts/Inter-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #111110; --muted: #6b6a66; --soft: #86857f; --line: #dedcd5; --tint: #f4f2ec; --paper: #fff;
  --blue: #3b82f6; --orange: #ff5b1f; --pos: #22c55e;
  --font: 'CB Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --brand: #3b82f6; --brand-text: #fff;
  --bar-h: 64px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, textarea { font-family: inherit; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: #cfe0ff; color: #111; }

/* ---------- shared pieces */
.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 4px; padding: 11px 18px; font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; white-space: nowrap; }
.cb-btn:hover { background: #2b2b29; }
.cb-btn:active { transform: scale(.98); }
.cb-btn:disabled { opacity: .5; cursor: not-allowed; }
.cb-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cb-btn.ghost:hover { background: rgba(0, 0, 0, .05); }
.cb-btn.sm { padding: 9px 14px; font-size: 14px; }
.cb-eyebrow { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.cb-eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--blue); display: inline-block; }
.cb-logo { display: flex; align-items: center; height: 26px; flex: none; }
.cb-logo img { height: 22px; width: auto; display: block; }

/* ---------- demo page */
.cbd { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--tint); }
.cbd-bar { height: var(--bar-h); flex: none; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.cbd-site { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 auto 0 8px; }
.cbd-site h1 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbd-chip { display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); padding: 6px 9px; background: #fff; white-space: nowrap; }
.cbd-chip i { width: 7px; height: 7px; background: var(--pos); display: inline-block; }
.cbd-right { display: flex; align-items: center; gap: 16px; flex: none; }
.cbd-timer { font-size: 13px; color: var(--muted); white-space: nowrap; }

.cbd-crawl { flex: none; background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 15; }
.cbd-crawl-in { display: flex; align-items: center; gap: 14px; padding: 0 24px; min-height: 44px; }
.cbd-crawl-state { display: inline-flex; align-items: center; gap: 9px; font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; flex: none; }
.cbd-crawl-state i { width: 8px; height: 8px; background: var(--orange); display: inline-block; }
.cbd-crawl.is-running .cbd-crawl-state i { animation: cb-pulse 1.1s ease-in-out infinite; }
.cbd-crawl.is-done .cbd-crawl-state i { background: var(--pos); }
.cbd-crawl-nums { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbd-crawl-nums b { font-weight: 650; }
.cbd-crawl-now { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.cbd-crawl-toggle { margin-left: auto; flex: none; background: none; border: 0; padding: 12px 0; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.cbd-crawl-now + .cbd-crawl-toggle { margin-left: 0; }
.cbd-crawl-bar { height: 2px; background: var(--line); overflow: hidden; display: none; }
.cbd-crawl.is-running .cbd-crawl-bar { display: block; }
.cbd-crawl-bar span { display: block; height: 100%; width: 35%; background: var(--ink); animation: cb-slide 1.4s ease-in-out infinite; }
.cbd-crawl-list { max-height: 38vh; overflow: auto; border-top: 1px solid var(--line); padding: 14px 24px 18px; background: var(--tint); }
.cbd-crawl-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.cbd-crawl-list li { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; min-width: 0; }
.cbd-crawl-list li span { font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; width: 64px; }
.cbd-crawl-list li a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbd-crawl-list li a:hover { text-decoration: underline; }

.cbd-own { flex: none; background: var(--ink); color: #fff; padding: 14px 24px; position: relative; z-index: 14; }
.cbd-own form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; align-items: center; }
.cbd-own label { font-size: 14px; white-space: nowrap; }
.cbd-own .field { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 4px; color: var(--ink); min-width: 0; }
.cbd-own .field span { padding-left: 12px; color: var(--muted); font-size: 15px; }
.cbd-own input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 11px 10px 11px 2px; background: transparent; min-width: 0; }
.cbd-own .cb-btn { background: var(--blue); border-color: var(--blue); }
.cbd-own .cb-btn:hover { background: #2563eb; }
.cbd-own-status { max-width: 640px; margin: 8px auto 0; font-size: 13px; color: #cfd0d4; min-height: 18px; }

.cbd-stage { flex: 1; min-height: 0; padding: 16px 24px 24px; display: flex; }
.cbd-frame { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(17, 17, 16, .05), 0 12px 32px rgba(17, 17, 16, .06); position: relative; }
.cbd-frame-bar { flex: none; height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.cbd-dots { display: flex; gap: 6px; flex: none; }
.cbd-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.cbd-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 13px; font-size: 12.5px; color: var(--muted); }
.cbd-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbd-open { flex: none; font-size: 12.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cbd-open:hover { text-decoration: underline; }
#site-frame { flex: 1; width: 100%; border: 0; background: #fff; min-height: 0; }
.cbd-blocked { position: absolute; inset: 40px 0 0; display: grid; place-items: center; background: var(--tint); padding: 24px; }
.cbd-blocked-card { max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 12px 32px rgba(17, 17, 16, .08); }
.cbd-blocked-card h2 { font-size: 24px; font-weight: 400; letter-spacing: -.02em; margin: 14px 0 10px; }
.cbd-blocked-card p { color: var(--muted); margin: 0 0 20px; }
.cbd-blocked-card .row { display: flex; gap: 10px; flex-wrap: wrap; }

.cbd-expired { position: fixed; inset: 0; display: grid; place-items: center; background: var(--tint); z-index: 50; padding: 24px; }
.cbd-expired .cbd-blocked-card { text-align: left; }

/* ---------- widget (the Convobeam widget look: 16px card, brand gradient header, pill input, round launcher) */
.cbw-root { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.cbw-root > * { pointer-events: auto; }
.cbw { width: 380px; max-width: calc(100vw - 32px); height: min(640px, calc(100dvh - 130px)); display: none; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0.48px 2.41px -0.38px rgba(0, 0, 0, .05), 0 4px 20px -0.75px rgba(0, 0, 0, .17), 0 0 0 1px rgba(0, 0, 0, .04); }
.cbw-root.is-open .cbw { display: flex; animation: cb-rise .22s ease-out; }
.cbw-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 18px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #fff)); color: var(--brand-text); }
.cbw-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.cbw-title { min-width: 0; flex: 1; }
.cbw-title b { display: block; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbw-title span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbw-title span i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; }
.cbw-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.cbw-close:hover { background: rgba(255, 255, 255, .18); }
.cbw-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: #fff; overscroll-behavior: contain; scrollbar-width: thin; }
.cbw-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.cbw-msg.bot { background: #f1f3f5; align-self: flex-start; border-bottom-left-radius: 4px; }
.cbw-msg.me { background: color-mix(in srgb, var(--brand) 16%, #fff); align-self: flex-end; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.cbw-msg a { color: var(--blue); text-underline-offset: 2px; }
.cbw-msg strong { font-weight: 650; }
.cbw-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; max-width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 12px; text-decoration: none; color: var(--ink) !important; line-height: 1.2; }
.cbw-src svg { flex: none; }
.cbw-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbw-src:hover { background: var(--tint); }
.cbw-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.cbw-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; animation: cb-dot 1.2s infinite ease-in-out; }
.cbw-typing i:nth-child(2) { animation-delay: .15s; } .cbw-typing i:nth-child(3) { animation-delay: .3s; }
.cbw-suggest { flex: none; display: flex; gap: 8px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.cbw-suggest::-webkit-scrollbar { display: none; }
.cbw-suggest button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.cbw-suggest button:hover { background: var(--tint); }
.cbw-in { flex: none; margin: 4px 14px 8px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 24px; padding: 6px 6px 6px 16px; display: flex; align-items: flex-end; gap: 8px; background: #fff; }
.cbw-in:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.cbw-in textarea { flex: 1; border: 0; outline: 0; resize: none; font-size: 15px; line-height: 1.4; padding: 7px 0; max-height: 96px; background: transparent; min-width: 0; }
.cbw-send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-text); display: grid; place-items: center; cursor: pointer; transition: transform .15s, opacity .15s; }
.cbw-send:disabled { opacity: .35; cursor: default; }
.cbw-send:not(:disabled):active { transform: scale(.94); }
.cbw-foot { flex: none; text-align: center; font-size: 11.5px; color: var(--soft); padding: 0 0 10px; }
.cbw-launch { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: transform .15s; }
.cbw-launch:hover { transform: scale(1.05); }
.cbw-launch .x { display: none; }
.cbw-root.is-open .cbw-launch .x { display: block; }
.cbw-root.is-open .cbw-launch .c { display: none; }
.cbw-hint { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(17, 17, 16, .12); max-width: 260px; cursor: pointer; animation: cb-rise .3s ease-out; }
.cbw-root.is-open .cbw-hint { display: none; }

@keyframes cb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cb-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes cb-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes cb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  :root { --bar-h: 56px; }
  .cbd-bar { padding: 0 14px; gap: 10px; }
  .cbd-site { margin-left: 0; gap: 8px; flex: 1; }
  .cbd-chip, .cbd-timer { display: none; }
  .cbd-bar .cb-logo img { height: 18px; }
  .cbd-bar .cb-btn.sm { padding: 8px 11px; font-size: 13px; }
  .cbd-crawl-in { padding: 0 14px; gap: 10px; flex-wrap: nowrap; min-height: 40px; }
  .cbd-crawl-state { padding: 11px 0; }
  .cbd-crawl-state span { display: none; }
  .cbd-crawl-nums { font-size: 13px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .cbd-crawl-now { display: none; }
  .cbd-crawl-toggle { padding: 11px 0; margin-left: auto; font-size: 12.5px; }
  .cbd-crawl-list { padding: 12px 14px 14px; max-height: 44vh; }
  .cbd-crawl-list ul { grid-template-columns: 1fr; }
  .cbd-own { padding: 12px 14px; }
  .cbd-own form { flex-wrap: wrap; }
  .cbd-own label { width: 100%; }
  .cbd-stage { padding: 0; }
  .cbd-frame { border-radius: 0; border-width: 1px 0 0; box-shadow: none; }
  .cbd-frame-bar { display: none; }
  .cbd-blocked { inset: 0; }
  .cbw-root { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .cbw-root.is-open { inset: 0; right: 0; bottom: 0; gap: 0; background: rgba(17, 17, 16, .35); justify-content: flex-end; }
  .cbw { width: 100%; max-width: none; height: calc(100dvh - 16px); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, .25); }
  .cbw-root.is-open .cbw-launch { display: none; }
  .cbw-in textarea { font-size: 16px; }
  .cbw-msg { max-width: 90%; }
  .cbw-hint { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- landing (own-URL start) */
.cbl { background: #fff; min-height: 100vh; }
.cbl-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.cbl-nav-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 24px; }
.cbl-links { display: flex; gap: 22px; font-size: 15px; }
.cbl-links a { text-decoration: none; padding: 6px 0; }
.cbl-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cbl-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.cbl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.cbl-hero { padding: 88px 0 72px; text-align: center; }
.cbl-h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.03; font-weight: 300; letter-spacing: -.04em; margin: 28px 0 0; text-wrap: balance; }
.cbl-h1 .soft { color: var(--soft); display: block; }
.cbl-h1 .hard { font-weight: 400; display: block; }
.cbl-lead { font-size: 19px; line-height: 1.5; color: #3e3d3a; max-width: 640px; margin: 28px auto 0; text-wrap: pretty; }
.cbl-form { display: flex; max-width: 560px; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 6px; gap: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cbl-form .field { flex: 1; display: flex; align-items: center; min-width: 0; }
.cbl-form .prefix { display: flex; align-items: center; padding-left: 12px; color: var(--muted); font-size: 16px; }
.cbl-form input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 0 6px 0 2px; background: transparent; min-width: 0; }
.cbl-form input::placeholder { color: rgba(0, 0, 0, .5); }
.cbl-form .cb-btn { padding: 14px 20px; }
.cbl-status { max-width: 560px; margin: 14px auto 0; font-size: 14px; color: var(--muted); }
.cbl-status:empty { margin: 0; }
.cbl-progress { max-width: 560px; margin: 8px auto 0; height: 2px; background: var(--line); overflow: hidden; }
.cbl-progress span { display: block; height: 100%; width: 35%; background: var(--ink); animation: cb-slide 1.4s ease-in-out infinite; }
.cbl-fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.cbl-fine a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.cbl-section { padding: 96px 0; background: var(--tint); }
.cbl-section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; font-weight: 300; letter-spacing: -.035em; margin: 18px 0 0; max-width: 720px; text-wrap: balance; }
.cbl-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; margin-top: 44px; }
.cbl-steps > div { padding: 28px 26px 32px; border-left: 1px solid var(--line); }
.cbl-steps > div:first-child { border-left: 0; }
.cbl-steps .n { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.cbl-steps h3 { font-size: 22px; font-weight: 400; letter-spacing: -.02em; margin: 14px 0 8px; }
.cbl-steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.cbl-example { background: #0c0c0b; color: #fff; padding: 88px 0; }
.cbl-example .in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cbl-example h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 300; letter-spacing: -.035em; line-height: 1.06; margin: 18px 0 0; }
.cbl-example p { color: #c9c8c3; font-size: 17px; line-height: 1.55; margin: 20px 0 28px; max-width: 520px; }
.cbl-example .cb-eyebrow { color: #fff; } .cbl-example .cb-eyebrow::before { background: var(--orange); }
.cbl-example .cb-btn { background: #fff; color: var(--ink); border-color: #fff; }
.cbl-example .cb-btn:hover { background: #ecebe5; }
.cbl-ex-card { border: 1px solid #2c2b29; border-radius: 16px; background: #171716; padding: 22px; display: grid; gap: 10px; font-size: 14.5px; }
.cbl-ex-card .m { max-width: 88%; padding: 9px 13px; border-radius: 16px; line-height: 1.45; }
.cbl-ex-card .u { justify-self: end; background: #2f3f66; border-bottom-right-radius: 4px; }
.cbl-ex-card .b { background: #262624; border-bottom-left-radius: 4px; }
.cbl-ex-card .s { display: inline-flex; margin-top: 8px; font-size: 12px; color: #c9c8c3; border: 1px solid #3a3937; border-radius: 999px; padding: 4px 10px; }
.cbl-foot { padding: 36px 24px 44px; border-top: 1px solid var(--line); }
.cbl-foot .in { max-width: 1160px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.cbl-foot .in a { text-decoration: none; } .cbl-foot .in a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .cbl-links, .cbl-right .hide-m { display: none; }
  .cbl-hero { padding: 48px 0 48px; }
  .cbl-steps, .cbl-example .in { grid-template-columns: 1fr; }
  .cbl-steps > div { border-left: 0; border-top: 1px solid var(--line); } .cbl-steps > div:first-child { border-top: 0; }
  .cbl-section, .cbl-example { padding: 64px 0; }
}
@media (max-width: 560px) {
  .cbl-wrap { padding: 0 16px; } .cbl-nav-in { padding: 0 16px; gap: 14px; }
  .cbl-form { flex-direction: column; padding: 8px; } .cbl-form .field { min-height: 46px; flex: none; }
  .cbl-form .cb-btn { width: 100%; }
  .cbl-lead { font-size: 17px; }
}
