/* serveAI marketing site — shared design system.
   One cached stylesheet for the homepage and every public page (previously
   ~1,250 lines inlined into each homepage response, and a second copy in
   layouts.public). Legacy token names (--neon, --text-dim, --panel …) are kept
   as aliases so blog, pricing and legal pages render unchanged. */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --bg-tint: #eef3fb;
    --panel: #ffffff;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --text: #0b1b33;
    --text-2: #3f4f66;
    --text-3: #5f6e85;          /* 4.9:1 on white */
    --brand: #1d4ed8;           /* 6.7:1 on white: safe for text and buttons */
    --brand-hover: #1743bd;
    --brand-soft: #e9f0fd;
    --brand-ink: #1b3962;
    --ok: #047857;
    --ok-soft: #e6f6ef;
    --warn: #9a5b06;
    --warn-soft: #fdf3e2;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 8px 20px -8px rgba(16, 24, 40, .14);
    --shadow-lg: 0 24px 48px -18px rgba(16, 24, 40, .22);
    --focus: 0 0 0 3px rgba(29, 78, 216, .35);
    --nav-h: 64px;

    /* Legacy aliases used by blog, pricing, legal and the pricing partial. */
    --bg-2: var(--bg-soft);
    --panel-2: var(--bg-soft);
    --line-hot: var(--line-strong);
    --text-dim: var(--text-2);
    --text-dim2: var(--text-3);
    --neon: var(--brand-ink);
    --neon-btn: var(--brand);
    --neon-2: var(--brand);
    --cta-blue: var(--brand);
    --hot: #c2185b;
    --surface: #ffffff;
    --surface-cta: linear-gradient(135deg, #ffffff 0%, #f1f5fc 100%);
}

html.dark {
    --bg: #070b14;
    --bg-soft: #0b1120;
    --bg-tint: #0e1830;
    --panel: #0f1728;
    --line: rgba(148, 163, 184, .16);
    --line-strong: rgba(148, 163, 184, .3);
    --text: #e8eef6;
    --text-2: #aab6c8;
    --text-3: #8b98ad;
    --brand: #60a5fa;           /* text/links on dark */
    --brand-hover: #93c5fd;
    --brand-soft: rgba(59, 130, 246, .13);
    --brand-ink: #e8eef6;
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 20px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -18px rgba(0, 0, 0, .7);
    --focus: 0 0 0 3px rgba(96, 165, 250, .45);
    --neon-btn: #2563eb;        /* white on #2563eb = 5.2:1 */
    --cta-blue: #2563eb;
    --hot: #ff5e87;
    --surface: rgba(255, 255, 255, .03);
    --surface-cta: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(0, 0, 0, .2));
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { height: auto; }
::selection { background: var(--brand); color: #fff; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 540px) { .wrap { padding: 0 16px; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 11px 20px; border-radius: 10px;
    background: var(--neon-btn); color: #fff; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(29, 78, 216, .7);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
html.dark .btn:hover { background: #1d4ed8; }
.btn--ghost, .btn--secondary {
    background: var(--panel); color: var(--text); border-color: var(--line-strong); box-shadow: none;
}
.btn--ghost:hover, .btn--secondary:hover { background: var(--bg-soft); border-color: var(--text-3); }
html.dark .btn--ghost:hover, html.dark .btn--secondary:hover { background: rgba(255,255,255,.06); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.link-arrow { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Breadcrumbs ────────────────────────────────────────────────────── */
.crumbs { padding-top: 18px; font-size: 13px; color: var(--text-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--text); }
.crumbs__sep { color: var(--text-3); }

/* ── Inner-page hero (layouts.public) ───────────────────────────────── */
.page-hero { position: relative; padding: 56px 0 28px; text-align: center; }
.page-hero .wrap { max-width: 860px; }
.page-hero__eyebrow, .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 16px; }
.page-hero h1 .accent, .accent { color: var(--brand); }
.page-hero p { font-size: 18px; color: var(--text-2); margin: 0 auto; max-width: 660px; }
.page-hero__meta { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.page-hero__note { margin-top: 12px; font-size: 13.5px; color: var(--text-3); }

/* ── Prose / legal article ──────────────────────────────────────────── */
.article { padding: 24px 0 48px; }
.article .wrap { max-width: 820px; }
.article--wide .wrap { max-width: 1200px; }
.article--wide .prose { max-width: 820px; margin-left: auto; margin-right: auto; }
.prose { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px clamp(20px, 4vw, 48px); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; margin: 38px 0 12px; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; color: var(--text); }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose .lead { font-size: 17.5px; color: var(--text); }
.prose .note { margin: 22px 0; padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--text-2); font-size: 14.5px; }
.prose code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ── CTA band ───────────────────────────────────────────────────────── */
.page-cta {
    margin: 8px auto 0; max-width: 960px;
    background: var(--brand-ink); color: #fff;
    border-radius: 24px; padding: 48px 28px; text-align: center;
    position: relative; overflow: hidden;
}
html.dark .page-cta { background: linear-gradient(135deg, #10213f, #0c1426); border: 1px solid var(--line); }
.page-cta h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; color: #fff; }
.page-cta p { color: rgba(255,255,255,.82); margin: 0 auto 24px; max-width: 520px; }
.page-cta .btn { background: #fff; color: #0b1b33; box-shadow: none; }
.page-cta .btn:hover { background: #e8eef9; }
.page-cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.page-cta .btn--ghost:hover { background: rgba(255,255,255,.1); }
.page-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-cta__note { margin: 14px 0 0 !important; font-size: 13.5px; color: rgba(255,255,255,.7) !important; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__head h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 14px; }
.section__head p { font-size: 18px; color: var(--text-2); margin: 0; }
@media (max-width: 720px) { .section { padding: 60px 0; } .section__head { margin-bottom: 32px; } }

/* ── Grids + cards ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 8px; color: var(--text); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
a.card { display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.card__icon svg { width: 22px; height: 22px; }
.card__more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand); }
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); }
.checks li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.checks--x li::before { background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/10px no-repeat; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.badge--ok { color: var(--ok); background: var(--ok-soft); }
.badge--warn { color: var(--warn); background: var(--warn-soft); }
.badge--muted { color: var(--text-3); background: var(--bg-soft); border: 1px solid var(--line); }

/* Numbered steps */
.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card h3::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 14px; margin-bottom: 14px;
}
html.dark .steps .card h3::before { background: #2563eb; }

/* Split: text + visual */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--rev > :first-child { order: 0; } }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.split p { color: var(--text-2); font-size: 17px; }

/* ── Chat illustration (labelled examples, not screenshots) ─────────── */
.chat {
    background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden; max-width: 440px; margin: 0 auto; width: 100%;
}
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.chat__who { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.chat__status { font-size: 12px; color: var(--text-3); }
.chat__channel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.chat__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.msg--in { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.msg--out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
html.dark .msg--out { background: #2563eb; }
.msg--note { align-self: center; max-width: 100%; font-size: 12.5px; color: var(--text-3); background: none; padding: 2px 8px; text-align: center; }
.msg--note strong { color: var(--ok); }
.chat__foot { padding: 10px 16px 14px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }
.msg.is-hidden { visibility: hidden; opacity: 0; } /* keeps its space: revealing must not grow the page */
.msg.is-typing { color: var(--text-3); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
    .msg.is-entering { animation: msgIn .28s ease both; }
    @keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 16px; color: var(--text); list-style: none; position: relative; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--text-3); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }

/* ── Stat / fact strip (verified facts only) ────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.facts > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts strong { display: block; font-size: 15.5px; color: var(--text); }
.facts span { font-size: 14px; color: var(--text-3); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div { border-left: 0; } .facts > div + div { border-top: 1px solid var(--line); } }

/* ── Channel chips ──────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text); }
.chip svg { width: 18px; height: 18px; }

/* ── Tabs (use-case switcher) ───────────────────────────────────────── */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tabs__tab { border: 1px solid var(--line); background: var(--panel); color: var(--text-2); border-radius: 99px; padding: 9px 16px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; min-height: 40px; }
.tabs__tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs__panel[hidden] { display: none; }

/* ── Integrations directory ─────────────────────────────────────────── */
.int-card { display: flex; flex-direction: column; gap: 10px; }
.int-card__head { display: flex; align-items: center; gap: 12px; }
.int-card__logo { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--panel); flex-shrink: 0; font-weight: 800; color: var(--brand-ink); }
.int-card__logo svg { width: 24px; height: 24px; }
.int-card dl { margin: 4px 0 0; display: grid; gap: 6px; font-size: 14px; }
.int-card dt { font-weight: 600; color: var(--text); }
.int-card dd { margin: 0 0 4px; color: var(--text-2); }

/* ── Comparison table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
.table thead th { color: var(--text); font-weight: 700; background: var(--bg-soft); }
.table tbody th { color: var(--text); font-weight: 600; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Homepage ───────────────────────────────────────────────────────── */
.home-hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.home-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 20px; }
.home-hero__sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); margin: 0 0 30px; max-width: 580px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero__note { margin: 14px 0 0; font-size: 14px; color: var(--text-3); }
.home-hero__visual { position: relative; }
.home-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.home-hero__chips .chip { font-size: 13px; padding: 6px 12px; }
@media (max-width: 960px) {
    .home-hero { padding: 40px 0 56px; }
    .home-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.pairs { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: stretch; gap: 0; }
.pair > div { padding: 18px 22px; border: 1px solid var(--line); background: var(--panel); }
.pair__problem { border-radius: var(--radius) 0 0 var(--radius); color: var(--text-2); }
.pair__answer { border-radius: 0 var(--radius) var(--radius) 0; }
.pair__arrow { display: grid !important; place-items: center; padding: 0 !important; border-left: 0 !important; border-right: 0 !important; color: var(--brand); background: var(--bg-soft) !important; }
.pair__arrow svg { width: 16px; height: 16px; }
.pair strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 15.5px; }
.pair span { font-size: 15px; color: var(--text-2); }
.pair__answer a { font-size: 14px; }
@media (max-width: 720px) {
    .pair { grid-template-columns: 1fr; }
    .pair__problem { border-radius: var(--radius) var(--radius) 0 0; }
    .pair__answer { border-radius: 0 0 var(--radius) var(--radius); border-top: 0 !important; }
    .pair__arrow { display: none !important; }
}

.tm-card { display: flex; flex-direction: column; gap: 14px; }
.tm-card blockquote { margin: 0; font-size: 16px; color: var(--text); line-height: 1.6; }
.tm-card figcaption { font-size: 14px; color: var(--text-3); }
.tm-card figcaption strong { color: var(--text); display: block; }

/* ── Landing hero (feature / solution / integration pages) ─────────── */
.page-hero--landing { padding-top: 48px; padding-bottom: 56px; overflow: hidden;
    background:
        radial-gradient(600px 260px at 15% 10%, rgba(37, 99, 235, .10), transparent 70%),
        radial-gradient(520px 240px at 85% 0%, rgba(16, 185, 129, .08), transparent 70%),
        linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line); }
.page-hero--landing::before { /* faint dot grid */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
.page-hero__icons { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--brand); }
.hero-logo svg { width: 34px; height: 34px; }
.hero-logo--sm { width: 46px; height: 46px; border-radius: 13px; box-shadow: var(--shadow-md); }
.hero-logo--sm svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
    .hero-logo { animation: heroFloat 6s ease-in-out infinite; }
    .hero-logo:nth-child(2) { animation-delay: -2s; }
    .hero-logo:nth-child(3) { animation-delay: -4s; }
    .hero-logo:nth-child(4) { animation-delay: -1s; }
    @keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ── Journey: connected steps with icons ─────────────────────────────── */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: jstep; }
.journey::before { /* the track that joins the steps */
    content: ""; position: absolute; top: 36px; left: calc(100% / var(--n, 4) / 2); right: calc(100% / var(--n, 4) / 2); height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .45; }
.journey__step { position: relative; text-align: center; padding: 0 6px; counter-increment: jstep; }
.journey__icon { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--brand); }
.journey__icon svg { width: 30px; height: 30px; }
.journey__icon::after { content: counter(jstep); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--neon-btn); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.section--soft .journey__icon::after { box-shadow: 0 0 0 3px var(--bg-soft); }
.journey__step h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; }
.journey__step p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) {
    .journey { grid-template-columns: 1fr; gap: 0; }
    .journey::before { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto;
        background: repeating-linear-gradient(180deg, var(--brand) 0 8px, transparent 8px 16px); }
    .journey__step { display: grid; grid-template-columns: 72px 1fr; gap: 18px; text-align: left; padding: 0 0 28px; }
    .journey__icon { margin: 0; }
}

/* ── Flow diagram: customer → assistant (+knowledge) → outcomes ──────── */
.flowmap { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.1fr) 100px minmax(0, 1.25fr);
    grid-template-rows: auto 56px auto; align-items: center; max-width: 1100px; margin: 0 auto; }
.flowmap__node { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-md); position: relative; }
.flowmap__node h3 { margin: 0 0 4px; font-size: 16px; }
.flowmap__node p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.flowmap__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.flowmap__logos { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.flowmap__logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand); }
.flowmap__logo svg { width: 26px; height: 26px; }
.flowmap__customer { grid-column: 1; grid-row: 3; }
.flowmap__brain { grid-column: 3; grid-row: 3; text-align: center; border-color: rgba(29, 78, 216, .35);
    background: linear-gradient(180deg, var(--panel), var(--brand-soft)); box-shadow: 0 20px 44px -18px rgba(29, 78, 216, .45); }
.flowmap__brain .flowmap__logo { margin: 0 auto 12px; width: 62px; height: 62px; background: var(--panel); }
.flowmap__brain .flowmap__logo img { width: 38px; height: 38px; }
.flowmap__sources { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.flowmap__source { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); }
.flowmap__source svg { width: 16px; height: 16px; color: var(--brand); }
.flowmap__outcomes { grid-column: 5; grid-row: 3; display: grid; gap: 12px; }
.flowmap__outcome { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.flowmap__outcome-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.flowmap__outcome-icon svg { width: 18px; height: 18px; }
.flowmap__outcome strong { display: block; font-size: 14.5px; }
.flowmap__outcome span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.flowmap__wire { grid-row: 3; height: 100%; min-height: 60px; width: 100%; overflow: visible; display: block; }
.flowmap__wire--in { grid-column: 2; }
.flowmap__wire--out { grid-column: 4; }
.flowmap__wire--down { grid-column: 3; grid-row: 2; height: 56px; }
.flowmap__wire path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
    .flowmap__wire path { animation: wireFlow 1.1s linear infinite; }
    @keyframes wireFlow { to { stroke-dashoffset: -13; } }
}
.flowmap__arrow { display: none; }
@media (max-width: 900px) {
    .flowmap { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; max-width: 480px; }
    .flowmap > * { grid-column: 1 !important; grid-row: auto !important; }
    .flowmap__wire { display: none; }
    .flowmap__arrow { display: grid; place-items: center; height: 44px; color: var(--brand); }
    .flowmap__arrow svg { width: 22px; height: 22px; transform: rotate(90deg); }
}

/* ── Problem cards ───────────────────────────────────────────────────── */
.card--problem .card__icon { background: rgba(220, 38, 38, .08); color: #b91c1c; }
html.dark .card--problem .card__icon { background: rgba(248, 113, 113, .12); color: #fca5a5; }

/* ── Example-chat section: bigger, channel-true ──────────────────────── */
.section--demo {
    background:
        radial-gradient(700px 320px at 80% 20%, rgba(37, 99, 235, .10), transparent 70%),
        radial-gradient(500px 260px at 10% 90%, rgba(16, 185, 129, .08), transparent 70%),
        var(--bg-soft);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.split--demo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.split--demo h2 { font-size: clamp(28px, 3.4vw, 40px); }
@media (max-width: 900px) { .split--demo { grid-template-columns: 1fr; gap: 32px; } }

.chat--lg { max-width: 600px; border-radius: 22px; box-shadow: 0 30px 70px -28px rgba(16, 24, 40, .35); }
.chat--lg .chat__head { padding: 16px 20px; }
.chat--lg .chat__avatar { width: 42px; height: 42px; font-size: 16px; }
.chat--lg .chat__who { font-size: 16px; }
.chat--lg .chat__body { padding: 22px 20px; gap: 12px; min-height: 360px; }
.chat--lg .msg { font-size: 15.5px; padding: 11px 15px; max-width: 80%; }
.chat--lg .chat__foot { padding: 12px 20px 16px; font-size: 12.5px; }

/* WhatsApp look for WhatsApp examples (its own colours, light and dark). */
.chat--whatsapp .chat__head { background: #008069; border-bottom-color: #008069; color: #fff; }
.chat--whatsapp .chat__status, .chat--whatsapp .chat__channel { color: rgba(255, 255, 255, .85); }
.chat--whatsapp .chat__avatar { background: #25d366; }
.chat--whatsapp .chat__body { background-color: #efeae2;
    background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 16px 16px; }
.chat--whatsapp .msg--in { background: #ffffff; border-color: transparent; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.chat--whatsapp .msg--out { background: #d9fdd3; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.chat--whatsapp .msg--note { background: rgba(255, 255, 255, .85); border-radius: 8px; color: #54656f; }
.chat--whatsapp .msg--note strong { color: #008069; }
html.dark .chat--whatsapp .chat__head { background: #202c33; border-bottom-color: #202c33; }
html.dark .chat--whatsapp .chat__body { background-color: #0b141a; background-image: none; }
html.dark .chat--whatsapp .msg--in { background: #202c33; color: #e9edef; }
html.dark .chat--whatsapp .msg--out { background: #005c4b; color: #e9edef; }
html.dark .chat--whatsapp .msg--note { background: #182229; color: #8696a0; }

/* ── Compact intro: lead paragraph + "Read more" ─────────────────────── */
.lp-intro { padding: 40px 0 8px; }
.lp-intro__lead { font-size: 18px; line-height: 1.7; color: var(--text); margin: 0; text-align: center; }
.lp-intro__lead a, .lp-intro__more a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.lp-intro__more { margin-top: 12px; text-align: center; }
.lp-intro__more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--brand); list-style: none; padding: 6px 10px; border-radius: 8px; }
.lp-intro__more summary::-webkit-details-marker { display: none; }
.lp-intro__more summary::after { content: "+"; font-size: 18px; line-height: 1; }
.lp-intro__more[open] summary::after { content: "−"; }
.lp-intro__more summary:hover { background: var(--brand-soft); }
.lp-intro__more p { text-align: left; color: var(--text-2); font-size: 16px; line-height: 1.7; margin: 14px 0 0; }

/* ── Industry / integration chip strips (instead of card grids) ──────── */
.lp-strips { display: grid; gap: 28px; }
.lp-strip { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.lp-strip__title { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.lp-strip__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-soft); font-size: 14.5px; font-weight: 600; color: var(--text); transition: border-color .15s, background .15s; }
a.lp-chip:hover { border-color: var(--line-strong); background: var(--panel); }
.lp-chip__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--brand); }
.lp-chip__icon svg { width: 16px; height: 16px; }
.lp-chip--more { padding-left: 14px; background: transparent; border-style: dashed; color: var(--brand); }
@media (max-width: 720px) { .lp-strip { grid-template-columns: 1fr; gap: 14px; } }

/* ── Breadcrumbs inside the page header; spacing fixes ───────────────── */
.page-hero .crumbs.wrap { max-width: 1200px; padding-top: 0; margin-bottom: 28px; text-align: left; position: relative; z-index: 1; }
.page-hero--landing { padding-top: 20px; }
.page-hero:not(.page-hero--landing) { padding-top: 20px; }
.page-hero .page-hero__note { margin: 16px auto 0; font-size: 14px; color: var(--text-3); }
.page-hero .page-hero__actions { margin-top: 28px; }

/* ── "Any business" card under the industry grid ─────────────────────── */
.any-biz { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 18px; padding: 26px 28px;
    border-radius: var(--radius-lg); border: 1px solid rgba(29, 78, 216, .25);
    background: radial-gradient(500px 200px at 0% 0%, rgba(37, 99, 235, .10), transparent 70%), linear-gradient(135deg, var(--panel), var(--brand-soft));
    box-shadow: var(--shadow-md); scroll-margin-top: 90px; }
.any-biz__icons { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; }
.any-biz__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.any-biz__text h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.any-biz__text p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 720px; }
@media (max-width: 860px) {
    .any-biz { grid-template-columns: 1fr; gap: 18px; text-align: left; }
    .any-biz__icons { grid-template-columns: repeat(5, 40px); }
    .any-biz__logo { width: 40px; height: 40px; }
    .any-biz .btn { justify-self: start; }
}
