/*!
 * AI assistants landing page (/ai-assistants) - palette-aware styling.
 * Chat mock-ups are plain HTML so they translate and stay crisp; the
 * "contact sheet" inside the first one is CSS tiles standing in for the
 * captioned frame grid the assistant really receives.
 */

.ai-container {
    max-width: 1040px;
}

/* ── Chat mock-ups ───────────────────────────────────────────────── */
.ai-chat {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1rem;
    border-radius: 14px;
    background-color: var(--bs-secondary-bg);
    border: 1px solid rgba(var(--site-border-rgb), 0.14);
}

.ai-chat-hero {
    background: rgba(0, 0, 0, .28);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.ai-msg {
    max-width: 92%;
    padding: .55rem .8rem;
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.4;
}

/* Dark ink on the cyan primary: white on it fails contrast (the site's own
   primary buttons use dark text for the same reason). */
.ai-user {
    align-self: flex-end;
    background-color: var(--bs-primary);
    color: #04202a;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.ai-bot {
    align-self: flex-start;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-bottom-left-radius: 4px;
}

.ai-chat-hero .ai-bot {
    background-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.ai-bot ul {
    padding-left: 1.1rem;
    margin: .35rem 0;
}

.ai-bot p:last-child {
    margin-bottom: 0;
}

/* Contact sheet inside a reply: the image the assistant received */
.ai-msg-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: .5rem;
    border-radius: 6px;
}

/* ── Real tool output figures ────────────────────────────────────── */
.ai-figure {
    margin: 0;
}

.ai-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(var(--site-border-rgb), 0.16);
    box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .75);
}

.ai-figure figcaption {
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--bs-secondary-color);
}

/* ── Cards (same language as /business and /features) ───────────── */
.card {
    background-color: var(--bs-secondary-bg);
    border: 1px solid rgba(var(--site-border-rgb), 0.14);
    transition: border-color .2s ease;
}

.card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}

.ai-card-cloud {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
}

.ai-step {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 50%;
    margin-bottom: .6rem;
    font-weight: 700;
    color: #fff;
    background: var(--bs-primary);
}

.ai-code {
    display: block;
    padding: .4rem .6rem;
    border-radius: 6px;
    font-size: .85rem;
    color: var(--bs-primary-text-emphasis);
    background-color: var(--bs-tertiary-bg);
    border: 1px solid rgba(var(--site-border-rgb), 0.14);
    overflow-x: auto;
}

.list-group-item {
    background-color: transparent;
    color: var(--bs-body-color);
    border-color: rgba(var(--site-border-rgb), 0.10);
}

.ai-prompts .list-group-item::before {
    content: '\201C';
    color: var(--bs-primary);
    font-weight: 700;
    margin-inline-end: .3rem;
}

.ai-workflows code {
    color: var(--bs-primary-text-emphasis);
    margin-inline-end: .4rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.ai-faq h3 {
    color: var(--bs-primary-text-emphasis);
}

.ai-faq p {
    color: rgba(var(--bs-body-color-rgb), 0.9);
}

/* ── Client badges ───────────────────────────────────────────────── */
.ai-clients {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ai-clients .badge {
    font-size: .85rem;
    font-weight: 500;
    padding: .5rem .8rem;
    color: var(--bs-body-color);
    background-color: var(--bs-secondary-bg);
    border: 1px solid rgba(var(--site-border-rgb), 0.18);
}
