/* ChatBouncer brand kit, matched to chatbouncer.com: violet on near-black, Urbanist, mint "live" accents. */
.cb {
  --cb-bg: #05060f;
  --cb-bg-2: #0a0c1f;
  --cb-violet: #4c26da;
  --cb-violet-2: #7b5cff;
  --cb-violet-3: #a68bff;
  --cb-mint: #2cf5a6;
  --cb-hot: #ff3d71;
  --cb-ink: #f3f1ff;
  --cb-ink-2: #b9b6da;
  --cb-line: rgba(166, 139, 255, .22);
  font-family: "Urbanist", var(--f-body);
  color: var(--cb-ink);
}
.cb-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background-color: var(--cb-bg);
  background-image:
    radial-gradient(620px 400px at -5% -10%, rgba(76, 38, 218, .62), transparent 62%),
    radial-gradient(520px 380px at 108% 110%, rgba(123, 92, 255, .4), transparent 62%),
    linear-gradient(rgba(123, 92, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 92, 255, .1) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  box-shadow: inset 0 0 0 1px var(--cb-line), 0 50px 100px -50px rgba(40, 18, 140, .85);
}
.cb-surface::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; mix-blend-mode: soft-light; background-image: var(--grain-lt); pointer-events: none; }

/* Address bar: the most visible link in the box. */
.cb-url {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: rgba(243, 241, 255, .07);
  box-shadow: inset 0 0 0 1px var(--cb-line);
  transition: background-color .3s, box-shadow .3s;
}
.cb-url:hover { background: rgba(243, 241, 255, .12); box-shadow: inset 0 0 0 1px var(--cb-violet-3); }
.cb-lights { display: flex; gap: 6px; }
.cb-lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 241, 255, .2); }
.cb-lights i:first-child { background: var(--cb-hot); }
.cb-lights i:nth-child(2) { background: #f5c66b; }
.cb-lights i:last-child { background: var(--cb-mint); }
.cb-addr { display: flex; align-items: center; gap: 10px; min-width: 0; font: 700 clamp(17px, 1.5vw, 21px)/1 "Urbanist", var(--f-body); letter-spacing: -.01em; color: #fff; }
.cb-addr svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--cb-mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cb-addr span { color: var(--cb-ink-2); font-weight: 500; }
.cb-visit { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 12px; background: var(--cb-mint); color: var(--cb-bg); font: 800 14px/1 "Urbanist", var(--f-body); letter-spacing: .01em; transition: transform .3s var(--ease); }
.cb-url:hover .cb-visit { transform: translateX(-3px); }
.cb-visit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.cb-flag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 12px/1 "Urbanist", var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cb-violet-3); }
.cb-flag b { white-space: nowrap; padding: 7px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--cb-violet-2), var(--cb-violet)); color: #fff; letter-spacing: .1em; box-shadow: 0 8px 22px -8px rgba(123, 92, 255, .9); }
.cb-logo img { height: clamp(34px, 3.4vw, 46px); width: auto; }
.cb-pitch { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--cb-ink-2); max-width: 44ch; }
.cb-pitch strong { color: var(--cb-ink); font-weight: 700; }
.cb-mascot { position: absolute; width: var(--m, 150px); height: auto; z-index: -1; filter: drop-shadow(0 30px 40px rgba(40, 18, 140, .7)); animation: bob 6s ease-in-out infinite; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 14px; font: 800 15.5px/1 "Urbanist", var(--f-body); color: #fff; background: linear-gradient(135deg, var(--cb-violet-2), var(--cb-violet)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 34px -14px rgba(123, 92, 255, .95); transition: transform .3s var(--ease), box-shadow .3s; white-space: nowrap; }
.cb-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 22px 40px -14px rgba(123, 92, 255, 1); }
.cb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cb-btn-ghost { background: rgba(243, 241, 255, .06); box-shadow: inset 0 0 0 1px var(--cb-line); }
.cb-btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cb-violet-3); }
.cb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--cb-line); }
.cb-stats div { padding: 16px 0 0; }
.cb-stats div + div { padding-left: 16px; border-left: 1px solid var(--cb-line); }
.cb-stats b { display: block; font: 800 clamp(22px, 2vw, 28px)/1 "Urbanist", var(--f-body); color: #fff; }
.cb-stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--cb-ink-2); }
.cb-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--cb-ink-2); }
.cb-points li { display: grid; grid-template-columns: 22px 1fr; gap: 4px; }
.cb-points li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: rgba(44, 245, 166, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='%232cf5a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- widget demo ---------- */
.cb-widget { position: relative; border-radius: 18px; overflow: hidden; background: rgba(10, 12, 31, .82); box-shadow: inset 0 0 0 1px var(--cb-line), 0 24px 50px -30px rgba(0, 0, 0, .9); backdrop-filter: blur(8px); }
.cbw-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, var(--cb-violet-2), var(--cb-violet)); }
.cbw-head img { width: 34px; height: 34px; padding: 3px; border-radius: 50%; background: #fff; }
.cbw-head b { display: block; font: 800 15px/1.1 "Urbanist", var(--f-body); color: #fff; }
.cbw-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .85); }
.cbw-on { width: 7px; height: 7px; border-radius: 50%; background: var(--cb-mint); box-shadow: 0 0 0 3px rgba(44, 245, 166, .25); }
.cbw-log { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 176px; }
.cbw-slot { display: grid; }
.cbw-slot > * { grid-area: 1 / 1; }
.cbw-msg { position: relative; width: fit-content; max-width: 86%; padding: 9px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.35; }
.cbw-msg.you { justify-self: end; align-self: flex-end; background: var(--cb-violet-2); color: #fff; border-bottom-right-radius: 4px; }
.cbw-msg.bot { background: rgba(243, 241, 255, .08); color: var(--cb-ink); box-shadow: inset 0 0 0 1px var(--cb-line); border-bottom-left-radius: 4px; }
.cbw-typing { display: flex; gap: 5px; padding: 13px 14px; }
.cbw-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cb-violet-3); animation: cbBlink 1s infinite; }
.cbw-typing i:nth-child(2) { animation-delay: .15s; }
.cbw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbBlink { 50% { opacity: .25; transform: translateY(-2px); } }
.cbw-msg.spam::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--cb-hot); transform: scaleX(0); transform-origin: left; }
.cbw-stamp { justify-self: end; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; border: 2px solid var(--cb-hot); color: var(--cb-hot); font: 800 12px/1 "Urbanist", var(--f-body); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-4deg); background: rgba(255, 61, 113, .08); }
.cbw-stamp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* One 10s loop: question, typing, answer, spam arrives, gets shaken, struck and bounced. */
.cbw-msg.q, .cbw-typing, .cbw-msg.a, .cbw-msg.spam, .cbw-stamp { opacity: 0; }
:is(.cb-play, .spec.on) .cbw-msg.q { animation: cbQ 10s var(--ease) infinite both; }
:is(.cb-play, .spec.on) .cbw-typing { animation: cbT 10s linear infinite both; }
:is(.cb-play, .spec.on) .cbw-msg.a { animation: cbA 10s var(--ease) infinite both; }
:is(.cb-play, .spec.on) .cbw-msg.spam { animation: cbS 10s var(--ease) infinite both; }
:is(.cb-play, .spec.on) .cbw-msg.spam::after { animation: cbStrike 10s var(--ease) infinite both; }
:is(.cb-play, .spec.on) .cbw-stamp { animation: cbStamp 10s var(--ease) infinite both; }
@keyframes cbQ { 0% { opacity: 0; transform: translateY(8px); } 4%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cbT { 0%, 7% { opacity: 0; } 9%, 20% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes cbA { 0%, 21% { opacity: 0; transform: translateY(8px); } 25%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cbS {
  0%, 38% { opacity: 0; transform: translateY(8px); background: var(--cb-violet-2); }
  42% { opacity: 1; transform: none; background: var(--cb-violet-2); }
  49% { transform: none; background: #c2185b; }
  51% { transform: translateX(-5px); }
  53% { transform: translateX(5px); }
  55% { transform: translateX(-4px); }
  57%, 64% { opacity: 1; transform: none; background: #c2185b; }
  72%, 100% { opacity: 0; transform: translate(130%, -14px) rotate(12deg); background: #c2185b; }
}
@keyframes cbStrike { 0%, 57% { transform: scaleX(0); } 62%, 100% { transform: scaleX(1); } }
@keyframes cbStamp { 0%, 70% { opacity: 0; transform: rotate(-12deg) scale(1.5); } 75%, 92% { opacity: 1; transform: rotate(-4deg) scale(1); } 97%, 100% { opacity: 0; transform: rotate(-4deg) scale(1); } }

/* ---------- hero flagship card ---------- */
.cb-card { display: grid; gap: 18px; padding: 16px 16px 26px; }
.cb-card .cb-in { position: relative; display: grid; gap: 18px; padding: 18px 14px 0; }
.cb-card .cb-mascot { --m: clamp(120px, 12vw, 170px); right: -18px; top: 24px; opacity: .95; }
.cb-card .cb-pitch { max-width: 30ch; }
.cb-card .cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- catalog panel ---------- */
.cb-spec { gap: 14px; }
.cb-spec.cb-surface { border-radius: 0; box-shadow: none; }
.cb-spec::after { display: none; }
.cb-spec .cb-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cb-spec .spec-line { color: var(--cb-ink-2); max-width: 40ch; }
.cb-spec .cb-mascot { --m: clamp(110px, 10vw, 150px); right: 26px; top: 88px; }
.cb-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.cb-spec .cells { border-top-color: var(--cb-line); }
.cb-spec .cells div + div { border-left-color: var(--cb-line); }
.cb-spec .cells dd { font-family: "Urbanist", var(--f-body); font-weight: 800; color: #fff; }
.cb-spec .cells dt { color: var(--cb-violet-3); opacity: 1; }
.cb-spec .cb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- ChatBouncer page ---------- */
.cbp-hero { padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 8vw, 110px); position: relative; }
.cbp-band { border-radius: 28px; padding: clamp(28px, 4vw, 56px); }
.cbp-band .grid { align-items: center; row-gap: 48px; }
.cbp-copy { grid-column: 1 / span 6; display: grid; gap: 24px; align-content: start; }
.cbp-copy .cb-logo img { height: clamp(44px, 4.6vw, 64px); }
.cbp-copy h1 { font: 800 clamp(38px, 4.6vw, 68px)/1 "Urbanist", var(--f-body); letter-spacing: -.035em; color: #fff; max-width: 16ch; }
.cbp-copy h1 em { font-style: normal; background: linear-gradient(90deg, var(--cb-violet-3), var(--cb-mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cbp-copy .cb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cbp-demo { grid-column: 8 / span 5; position: relative; }
.cbp-demo .cb-mascot { --m: clamp(120px, 11vw, 160px); right: -34px; top: -104px; z-index: 2; }
.cbp-demo { margin-top: 70px; }
.cbp-demo .cb-widget { transform: rotate(1.5deg); }
.cbp-demo .cb-url { margin-top: 18px; }
.cbp-marquee { display: block; overflow: hidden; padding: 26px 0; border-block: 1px solid #000; background: #05060f; color: #fff; }
.cbp-marquee .track { display: flex; width: max-content; align-items: center; gap: 40px; animation: tide 30s linear infinite; font: 800 clamp(34px, 5vw, 72px)/1 "Urbanist", var(--f-body); letter-spacing: -.03em; }
.cbp-marquee .track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(166, 139, 255, .8); }
.cbp-marquee:hover .track { animation-play-state: paused; }
.cbp-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cbp-step { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 18px; }
.cbp-step b { font: 800 14px/1 "Urbanist", var(--f-body); color: var(--cb-mint); letter-spacing: .1em; }
.cbp-step h3 { font: 800 24px/1.15 "Urbanist", var(--f-body); color: #fff; }
.cbp-step p { color: var(--cb-ink-2); font-size: 16px; }
.cbp-plans { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.cbp-plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: 30px; border-radius: 22px; }
.cbp-plan.pop { box-shadow: inset 0 0 0 2px var(--cb-violet-2), 0 50px 100px -50px rgba(76, 38, 218, .9); }
.cbp-plan h3 { font: 800 22px/1 "Urbanist", var(--f-body); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.cbp-plan h3 small { font: 700 11px/1 "Urbanist", var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--cb-mint); color: var(--cb-bg); }
.cbp-plan .cbp-price { font: 800 54px/1 "Urbanist", var(--f-body); color: #fff; letter-spacing: -.03em; }
.cbp-plan .cbp-price span { font-size: 16px; font-weight: 600; color: var(--cb-ink-2); letter-spacing: 0; }
.cbp-plan > p { color: var(--cb-ink-2); font-size: 15px; }
.cbp-plan .cb-btn { width: 100%; }
.cbp-note { grid-column: 1 / -1; margin-top: 26px; color: var(--cb-ink-2); font-size: 15px; }
.cbp-installs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.cbp-installs span { padding: 12px 18px; border-radius: 12px; font: 700 15px/1 "Urbanist", var(--f-body); color: var(--cb-ink); background: rgba(243, 241, 255, .05); box-shadow: inset 0 0 0 1px var(--cb-line); }
.cbp-installs span.on { background: var(--cb-mint); color: var(--cb-bg); box-shadow: none; }
.cbp-dark { background: #05060f; }
.cbp-dark .label { color: var(--cb-violet-3); }
.cbp-dark .label .no { color: var(--cb-mint); }
.cbp-dark .h2 { color: #fff; font-family: "Urbanist", var(--f-body); font-weight: 800; }
.cbp-close { grid-column: 1 / -1; display: grid; gap: 22px; justify-items: start; }
.cbp-close .h2 { max-width: 26ch; }
.cbp-close .cb-url { width: min(100%, 640px); }
.cbp-hero .crumbs { margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  .cbw-msg.q, .cbw-msg.a, .cbw-stamp { opacity: 1 !important; animation: none !important; }
  .cbw-typing, .cbw-msg.spam { display: none !important; }
  .cb-mascot, .cbp-marquee .track { animation: none !important; }
}

@media (max-width: 1080px) {
  .cbp-copy, .cbp-demo { grid-column: 1 / -1; }
  .cbp-demo { max-width: 520px; margin-left: 60px; }
  .cbp-steps, .cbp-plans { grid-template-columns: 1fr; }
  .cb-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cb-url { grid-template-columns: 1fr auto; }
  .cb-lights { display: none; }
  .cb-addr span { display: none; }
  .cbp-demo { margin-left: 0; }
  .cbp-demo .cb-mascot { left: auto; right: -10px; top: -90px; --m: 110px; }
  .cb-card .cb-mascot { --m: 96px; right: -8px; top: 8px; }
  .cb-spec .cb-mascot { display: none; }
  .cb-stats span { font-size: 12px; }
}
