/* services/chat-and-voice-bots/: the header's paper website at night with its chat open, the sees frame for
   voice-captions, and the close card's corner. */

/* ---------- hero artifact: a website at night, its chat answering ---------- */
.cb { position: absolute; inset: 0; container-type: size; font-family: var(--font-ui); color: var(--c-ink); }
.cb__site { position: absolute; left: 8%; right: 6%; top: 6%; height: 64%; overflow: hidden; border-radius: 2.2cqh; background: var(--c-paper); box-shadow: var(--shadow-m); }
.cb__top { display: flex; align-items: center; gap: 2.4cqw; padding: 2.4cqh 3cqw; background: var(--c-ink); color: var(--c-paper); font-size: max(13px, 2.4cqw); }
.cb__top b { margin-right: auto; font-weight: 700; }
.cb__top u { width: 6cqw; height: 1cqh; border-radius: 1cqh; background: color-mix(in srgb, var(--c-paper) 35%, transparent); }
.cb__hero { display: grid; gap: 1.6cqh; width: 36%; padding: 4cqh 3cqw; }
.cb__hero b { font-family: var(--font-display); font-size: max(16px, 3.6cqw); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.cb__hero u { display: block; height: 1.4cqh; border-radius: 1cqh; background: var(--c-lavender); }
.cb__chat { position: absolute; right: 9%; top: 22%; width: 48%; display: grid; gap: 1.4cqh; padding: 0 0 2.4cqh; border-radius: 2cqh; background: var(--c-paper); box-shadow: var(--shadow-l); overflow: hidden; rotate: 1.5deg; }
.cb__head { display: flex; align-items: center; gap: .6em; padding: 1.8cqh 2.4cqw; background: var(--c-brand); color: var(--c-on-brand); font-size: max(13px, 2.4cqw); font-weight: 700; }
.cb__head i { width: .6em; height: .6em; border-radius: 50%; background: var(--c-paper); }
.cb__head span { display: inline-flex; align-items: center; gap: .35em; margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb__head svg { width: 1.1em; height: 1.1em; fill: var(--c-gold); }
.cb__m { justify-self: start; max-width: 86%; margin: 0 2.4cqw; padding: 1.2cqh 1.8cqw; border-radius: 1.6cqh 1.6cqh 1.6cqh .4cqh; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); font-size: max(13px, 2.3cqw); line-height: 1.35; }
.cb__m--you { justify-self: end; border-radius: 1.6cqh 1.6cqh .4cqh 1.6cqh; background: var(--c-brand-light); box-shadow: none; }
.cb__btn { justify-self: start; margin: 0 2.4cqw; padding: .5em 1.1em; border-radius: 99px; background: var(--c-brand); color: var(--c-on-brand); font-size: max(13px, 2.4cqw); font-weight: 700; }
/* the phone: the cards take the lower two thirds, so the chat alone sits in the top third, clear of the stop */
@container (width < 520px) {
  .cb__site { display: none; }
  .cb__chat { left: 4%; right: 17%; top: 3%; width: auto; gap: 6px; padding-bottom: 8px; rotate: 0deg; }
  .cb__head { padding: 6px 10px; }
  .cb__m { margin: 0 8px; padding: 5px 9px; }
  .cb__btn { display: none; }
}

/* ---------- sees: voice-captions fills its frame ---------- */
@media (min-width: 960px) {
  .page-service--chat-and-voice-bots .sees { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.sees__pic--chat-and-voice-bots { aspect-ratio: auto; height: 520px; background: var(--c-paper-alt); }
.sees__pic--chat-and-voice-bots .sees__scene { inset: 0; }

/* ---------- close: the card in the picture's calm upper left ---------- */
.iclose__card[data-at="top-left"] { bottom: auto; top: 20px; }

@media (max-width: 759px) {
  .sees__pic--chat-and-voice-bots { height: 680px; }
  .iclose__card[data-at="top-left"] { top: 12px; }
}
