/* AI Chat page */
.cp-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.cp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cp-h1 { font-size: clamp(40px, 4.4vw, 62px); }
.cp-h1-soft { display: block; color: var(--aubergine); }
.cp-lead { margin-top: 24px; max-width: 560px; }
.cp-stats { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--border); }
.cp-stats li { padding: 18px 28px 0 0; margin-right: 28px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--border); }
.cp-stats li:last-child { border-right: 0; margin-right: 0; }
.cp-stats b { font-family: var(--font-display); font-stretch: 90%; font-weight: 600; font-size: 30px; letter-spacing: -.02em; color: var(--ink); }
.cp-stats span { font-size: 14px; color: var(--muted); }

.cp-hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.cp-blob { position: absolute; inset: 6% 4% 6% 10%; border-radius: 48px; background: var(--aubergine); transform: rotate(-4deg); }
.cp-phone { position: relative; width: min(380px, 100%); border-radius: 36px; background: var(--surface); box-shadow: 0 30px 70px rgba(36,16,42,.28); overflow: hidden; }
.cp-phone-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--panel); }
.cp-avatar { flex-shrink: 0; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 999px; background: var(--aubergine-100); color: var(--aubergine); font-weight: 700; }
.cp-phone-top > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.cp-pname { font-weight: 600; color: var(--ink); }
.cp-pstatus { font-size: 13px; color: var(--petrol); }
.cp-ptime { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.cp-phone-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 24px; min-height: 470px; }
.cp-phone .msg, .cp-card-chat .msg, .cp-widget .msg { max-width: 88%; font-size: 14.5px; }
.cp-pay { display: flex; flex-direction: column; gap: 10px; min-width: 76%; }
.cp-pay-h { font-weight: 700; }
.cp-pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 13.5px; }
.cp-pay-row > span { display: inline-flex; align-items: center; gap: 6px; }
.cp-pay-row svg, .cp-mini-pay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-pay-btn { display: inline-flex; justify-content: center; padding: 9px 14px; border-radius: 999px; background: var(--paper); color: var(--aubergine); font-weight: 700; font-size: 14px; }
.cp-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 10px 30px rgba(36,16,42,.18); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cp-float svg { width: 18px; height: 18px; fill: none; stroke: var(--petrol); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cp-float-a { top: 12%; left: -2%; }
.cp-float-b { bottom: 14%; right: -2%; }
.cp-replay { position: absolute; right: 16px; bottom: 14px; z-index: 2; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: 600 13px var(--font-body); color: var(--muted); cursor: pointer; }
.cp-replay:hover { color: var(--aubergine); border-color: var(--aubergine-200); }

.cp-jump { position: sticky; top: 0; z-index: 30; background: rgba(247,243,236,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cp-jump ul { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cp-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cp-jump a:hover { background: var(--aubergine-50); color: var(--aubergine); }
.cp-jump svg { width: 18px; height: 18px; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Bento */
.cp-bento { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; background: var(--sand); color: var(--text-soft); line-height: 1.6; }
.cp-t-wide { grid-column: span 2; background: var(--moss-50); }
.cp-t-dark { background: var(--aubergine); color: rgba(255,255,255,.82); }
.cp-t-dark .cp-tile-h { color: #fff; }
.cp-t-dark .cp-tile-ic { background: rgba(255,255,255,.14); color: #fff; }
.cp-t-photo { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; background: var(--clay-50); }
.cp-t-photo .ba-pair { gap: 10px; }
.cp-t-photo .ba-tile { border-radius: 18px; aspect-ratio: 1 / 1; }
.cp-tile-copy { display: flex; flex-direction: column; gap: 10px; }
.cp-tile-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface); color: var(--aubergine); }
.cp-tile-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-tile-h { margin-top: 6px; font-family: var(--font-body); font-weight: 600; font-size: 21px; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.cp-worries { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-worries li { padding: 8px 14px; border-radius: 999px 999px 999px 6px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.cp-mini-sum, .cp-summary dl { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 14px; }
.cp-mini-sum dt, .cp-summary dt { color: var(--muted); }
.cp-mini-sum dd, .cp-summary dd { margin: 0; font-weight: 600; color: var(--ink); }
.cp-slots { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cp-slots li, .cp-chips span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-size: 14px; font-weight: 500; }
.cp-slots li.is-on, .cp-chips span.is-on { background: var(--aubergine); border-color: var(--aubergine); color: var(--paper); }
.cp-mini-pay { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; }
.cp-mini-pay > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.cp-mini-pay b { margin-right: auto; }
.cp-alert { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--petrol-50); color: var(--petrol); font-size: 14px; font-weight: 600; }
.cp-alert svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Channel sections */
.cp-ch { padding-top: clamp(80px, 10vw, 136px); scroll-margin-top: 60px; }
.cp-ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.cp-flip .cp-ch-copy { order: 2; }
.cp-ch-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--aubergine); }
.cp-ch-ic { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; background: var(--aubergine-50); }
.cp-ch-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-ch-copy .lead { margin-top: 18px; }
.cp-points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.cp-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); line-height: 1.5; }
.cp-tick { flex-shrink: 0; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: var(--aubergine-50); }
.cp-tick svg { width: 14px; height: 14px; fill: none; stroke: var(--aubergine); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cp-ch-visual { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: 36px; }
#website-chatbot .cp-ch-visual { background: var(--petrol-50); }
#whatsapp .cp-ch-visual { background: var(--moss-50); }
#instagram .cp-ch-visual { background: var(--clay-50); }
#messenger .cp-ch-visual { background: var(--aubergine-50); }
#email-forms .cp-ch-visual { background: var(--sand); }

.cp-browser { position: relative; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; min-height: 380px; }
.cp-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--panel); }
.cp-bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--panel); }
.cp-bar span { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: var(--paper); font-size: 12px; color: var(--muted); }
.cp-page { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.cp-sk { height: 10px; border-radius: 999px; background: var(--panel); }
.cp-sk.w60 { width: 60%; height: 16px; } .cp-sk.w90 { width: 90%; } .cp-sk.w80 { width: 80%; } .cp-sk.w40 { width: 40%; }
.cp-sk-img { width: 55%; height: 120px; border-radius: 14px; background: var(--paper); }
.cp-widget { position: absolute; right: 16px; bottom: 16px; width: min(290px, 78%); display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 16px 40px rgba(36,16,42,.22); }
.cp-widget-h { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; color: var(--ink); }
.cp-widget-h span { font-weight: 500; font-size: 12px; color: var(--petrol); }
.cp-browser .cp-replay { left: 16px; right: auto; }

.cp-card-chat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh-2); }
.cp-chat-h { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--panel); font-size: 13px; font-weight: 600; color: var(--muted); }
.cp-chat-h svg { width: 18px; height: 18px; fill: none; stroke: var(--aubergine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-voice { display: inline-flex !important; align-items: center; gap: 10px; }
.cp-voice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cp-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.cp-wave i { width: 3px; border-radius: 3px; background: var(--muted); }
.cp-wave i:nth-child(odd) { height: 60%; } .cp-wave i:nth-child(even) { height: 100%; } .cp-wave i:nth-child(3n) { height: 35%; }
.cp-dur { font-size: 12px; color: var(--muted); }
.cp-note { font-size: 12.5px; opacity: .8; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cp-chips span { padding: 6px 12px; font-size: 13px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.cp-chips span.is-on { background: var(--paper); color: var(--aubergine); border-color: var(--paper); }
.cp-ms .msg-c { display: flex; flex-direction: column; }
.cp-summary { align-self: stretch; margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--petrol-50); }
.cp-summary-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--petrol); }
.cp-summary-h svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cp-summary dl { margin-top: 0; }

.cp-mail { display: flex; flex-direction: column; gap: 14px; }
.cp-mail-card { padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); }
.cp-mail-reply { margin-left: clamp(16px, 6vw, 56px); border: 2px solid var(--aubergine-200); }
.cp-mail-from { display: flex; align-items: center; gap: 12px; }
.cp-mail-from > span:nth-child(2) { display: flex; flex-direction: column; font-size: 14px; color: var(--ink); line-height: 1.35; }
.cp-mail-from > span:nth-child(2) span { font-size: 12.5px; color: var(--muted); }
.cp-avatar-s { background: var(--clay-50); color: #8a4b22; }
.cp-avatar-c { background: var(--aubergine); color: var(--paper); }
.cp-mail-t { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cp-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--petrol-50); color: var(--petrol); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cp-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cp-mail-sub { margin-top: 14px; font-weight: 700; color: var(--ink); }
.cp-mail-body { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-soft); }

.cp-channels + .band { margin-top: clamp(96px, 12vw, 160px); }
.cp-inbox { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.cp-inbox .lead { margin-top: 20px; }
.cp-inbox-link { margin-top: 24px; font-weight: 600; }
.cp-inbox-link a { color: #fff; }
.cp-shot { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.cp-shot img { display: block; width: 100%; height: auto; }

.cp-quote { margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-panel); background: var(--clay-50); }
.cp-quote img { width: clamp(88px, 10vw, 120px); height: auto; aspect-ratio: 1; border-radius: 999px; object-fit: cover; }
.cp-quote blockquote { margin: 0; }
.cp-quote blockquote p { font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.cp-quote figcaption { margin-top: 16px; color: var(--text-soft); }
.cp-more { margin-top: 24px; font-weight: 600; }

/* Motion (only when JS runs and the visitor hasn't asked for reduced motion) */
.cp-motion [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.cp-motion [data-rv].in { opacity: 1; transform: none; }
.cp-motion .cp-wait { display: none !important; }
.cp-motion .cp-show { animation: cp-pop .4s cubic-bezier(.2,.8,.2,1) both; }
.cp-typing { align-self: flex-start; }
.cp-typing i { animation: cp-dot 1s infinite ease-in-out; }
.cp-typing i:nth-child(2) { animation-delay: .15s; } .cp-typing i:nth-child(3) { animation-delay: .3s; }
.msg-p + .cp-typing, .cp-typing { align-self: flex-end; }
.cp-motion .cp-float { animation: cp-rise .8s .9s cubic-bezier(.2,.8,.2,1) both; }
.cp-motion .cp-float-b { animation-delay: 6.5s; }
.cp-motion .cp-blob { animation: cp-tilt 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cp-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cp-dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes cp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cp-tilt { from { transform: rotate(0) scale(.92); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }

@media (max-width: 1000px) {
  .cp-hero-grid, .cp-ch-grid, .cp-inbox { grid-template-columns: minmax(0, 1fr); }
  .cp-flip .cp-ch-copy { order: 0; }
  .cp-bento { grid-template-columns: 1fr 1fr; }
  .cp-t-photo { grid-column: span 2; }
}
@media (max-width: 640px) {
  .cp-bento { grid-template-columns: 1fr; }
  .cp-t-wide, .cp-t-photo { grid-column: auto; }
  .cp-t-photo { grid-template-columns: 1fr; }
  .cp-float { display: none; }
  .cp-quote { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cp-stats li { padding-right: 18px; margin-right: 18px; }
  .cp-stats b { font-size: 24px; }
}
/* badge positions and timing */
.cp-float-a { top: 34%; left: -4%; }
.cp-float-b { bottom: 4%; right: -2%; }
.cp-motion .cp-float-a { animation-delay: 1.9s; }
.cp-motion .cp-float-b { animation-delay: 7.6s; }
.cp-pay-row b { color: #fff; }
.cp-mini-pay b { color: #fff; }
.cp-ch-ic.is-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.cp-jump .brand-logo { width: 18px; height: 18px; }

/* Chats keep a fixed height and scroll inside, like a phone, so the page never jumps */
.cp-motion .cp-phone-body { height: 470px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.cp-motion .ph-call-body { height: 400px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.cp-motion .cp-card-chat { height: 440px; overflow-y: auto; scrollbar-width: none; }
.cp-motion .cp-phone-body::-webkit-scrollbar, .cp-motion .ph-call-body::-webkit-scrollbar, .cp-motion .cp-card-chat::-webkit-scrollbar { display: none; }
.cp-motion .cp-phone-body > :first-child, .cp-motion .ph-call-body > :first-child { margin-top: auto; }
.cp-chat-h { position: sticky; top: -18px; z-index: 1; margin-top: -18px; padding-top: 18px; background: var(--surface); }
.cp-card-chat .cp-replay { position: sticky; bottom: 0; align-self: flex-end; margin-top: auto; }

/* Looping chats: fade out before starting again */
.cp-motion [data-seq] > .msg, .cp-motion [data-seq] > .cp-summary, .cp-motion [data-seq] > .ib-switch { transition: opacity .5s ease; }
.cp-motion [data-seq].cp-fading > .msg, .cp-motion [data-seq].cp-fading > .cp-summary, .cp-motion [data-seq].cp-fading > .ib-switch { opacity: 0; }
/* Site-wide pause: freezes every CSS animation too */
.hv-paused *, .hv-paused *::before, .hv-paused *::after { animation-play-state: paused !important; }

/* ---------- Mobile only (18 Nov) ---------- */
@media (max-width: 900px) {
  /* The three numbers sit on one line */
  .cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-stats li, .cp-stats li:last-child { padding: 16px 10px 0 0; margin-right: 10px; }
  .cp-stats li:last-child { margin-right: 0; padding-right: 0; }
  .cp-stats b { font-size: 22px; }
  .cp-stats span { font-size: 12.5px; line-height: 1.35; }
  /* Channel links: show them all, wrapped, instead of a sideways-scrolling strip */
  .cp-jump { position: static; backdrop-filter: none; background: transparent; }
  .cp-jump ul { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 8px; padding: 16px 0; }
  .cp-jump a { min-height: 38px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
}

/* Jump links: same rounded-rectangle shape as the buttons */
.cp-jump a { border-radius: 10px; }
