/* Solutions page: scroll story + product-accurate KnowboundAI demos */
.solutions-page {
    --solutions-ink: #0f172a;
    --solutions-blue: #2563eb;
    --solutions-blue-soft: #eff6ff;
    --solutions-line: #dce4ef;
}

.solutions-main {
    overflow: clip;
}

.solutions-hero {
    position: relative;
    min-height: min(920px, 100svh);
    padding: clamp(150px, 18vh, 210px) 0 100px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 24%, rgba(37, 99, 235, 0.24), transparent 28%),
        radial-gradient(circle at 22% 86%, rgba(79, 70, 229, 0.16), transparent 30%),
        linear-gradient(145deg, #07101f 0%, #090d16 52%, #05070b 100%);
    color: #f8fafc;
}

.solutions-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
    content: '';
}

.solutions-hero::after {
    position: absolute;
    right: -14vw;
    bottom: -48%;
    width: min(850px, 70vw);
    aspect-ratio: 1;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(59, 130, 246, 0.025), 0 0 0 180px rgba(59, 130, 246, 0.018);
    content: '';
}

.solutions-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
}

.solutions-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #93c5fd;
    font-family: var(--font-heading);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.solutions-kicker i {
    width: 34px;
    height: 1px;
    background: #60a5fa;
    box-shadow: 10px 0 20px #60a5fa;
}

.solutions-hero h1 {
    max-width: 950px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(3.25rem, 7vw, 6.7rem);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: 1.06;
}

.solutions-hero h1 span {
    display: block;
    background: linear-gradient(105deg, #60a5fa, #a5b4fc 58%, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.solutions-hero > .solutions-hero-inner > p {
    max-width: 710px;
    margin: 34px 0 0;
    color: #aebacc;
    font-size: clamp(1.06rem, 1.7vw, 1.28rem);
    line-height: 1.72;
}

.solutions-hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 38px;
}

.solutions-hero-actions .btn {
    min-height: 52px;
    padding-inline: 26px;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(37, 99, 235, .28);
}

.solutions-hero-actions .btn span {
    font-size: 1.05rem;
}

.solutions-text-link {
    border-bottom: 1px solid rgba(255,255,255,.25);
    color: #d7deea;
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 600;
    transition: border-color .2s ease, color .2s ease;
}

.solutions-text-link:hover {
    border-color: #60a5fa;
    color: #fff;
}

.solutions-hero-proof {
    display: flex;
    gap: 0;
    max-width: 760px;
    margin-top: clamp(70px, 11vh, 120px);
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.solutions-hero-proof span {
    display: grid;
    flex: 1;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 0 0;
    color: #d8e1ee;
    font-family: var(--font-heading);
    font-size: .77rem;
}

.solutions-hero-proof i {
    color: #60a5fa;
    font-style: normal;
    font-size: .67rem;
}

.solutions-hero-glow i {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: #3b82f6;
    filter: blur(1px);
    opacity: .52;
    animation: solutions-float 8s ease-in-out infinite;
}

.solutions-hero-glow i:nth-child(1) { top: 24%; right: 12%; width: 10px; height: 10px; box-shadow: 0 0 30px 14px rgba(59,130,246,.28); }
.solutions-hero-glow i:nth-child(2) { top: 45%; right: 24%; width: 5px; height: 5px; animation-delay: -3s; }
.solutions-hero-glow i:nth-child(3) { right: 8%; bottom: 23%; width: 7px; height: 7px; animation-delay: -5s; }

@keyframes solutions-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(14px, -22px, 0); }
}

.solutions-intro {
    padding-block: clamp(100px, 14vw, 180px);
    background: var(--background);
}

.solutions-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr);
    align-items: end;
    gap: clamp(50px, 9vw, 120px);
}

.solutions-intro small,
.solutions-cta-card small {
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.solutions-intro h2 {
    max-width: 720px;
    font-size: clamp(2.25rem, 4.6vw, 4.25rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.solutions-intro-grid > p {
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Each use case occupies its own visual chapter. */
.solution-story {
    position: relative;
    scroll-margin-top: var(--page-anchor-scroll-offset);
    padding: clamp(52px, 5.5vw, 78px) 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 30%),
        var(--background);
}

.solution-story.is-tinted {
    background:
        radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--secondary) 7%, transparent), transparent 30%),
        var(--surface-elevated);
}

.solution-story-inner {
    display: grid;
    width: 100%;
    max-width: 1540px;
    grid-template-columns: minmax(330px, .58fr) minmax(760px, 1.58fr);
    align-items: center;
    gap: clamp(42px, 4.5vw, 72px);
    padding-inline: clamp(28px, 3.2vw, 52px);
}

.solution-story-inner.is-reversed {
    grid-template-columns: minmax(760px, 1.58fr) minmax(330px, .58fr);
}

.solution-story-inner.is-reversed .solution-story-copy { order: 2; }
.solution-story-inner.is-reversed .solution-story-stage { order: 1; }

.solution-story-copy,
.solution-story-stage {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .75s ease, transform .85s cubic-bezier(.16, 1, .3, 1);
}

.solution-story-stage {
    transform: translateY(45px) scale(.965);
    transition-delay: .08s;
}

.solution-story.is-in-view .solution-story-copy,
.solution-story.is-in-view .solution-story-stage {
    opacity: 1;
    transform: none;
}

.solution-number {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.solution-number span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    font-size: .62rem;
    font-weight: 800;
}

.solution-number i {
    width: 28px;
    height: 1px;
    background: color-mix(in srgb, var(--primary) 48%, transparent);
}

.solution-story-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    letter-spacing: -.043em;
    line-height: 1.06;
}

.solution-story-copy > p {
    margin-top: 17px;
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.68;
}

.solution-story-copy ol {
    display: grid;
    gap: 0;
    margin-top: 22px;
    list-style: none;
}

.solution-story-copy li {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: start;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.solution-story-copy li > span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 9%, transparent);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: .62rem;
    font-weight: 700;
}

.solution-story-copy li b,
.solution-story-copy li small {
    display: block;
}

.solution-story-copy li b {
    font-family: var(--font-heading);
    font-size: .82rem;
}

.solution-story-copy li small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: .76rem;
    line-height: 1.5;
}

.solution-outcome {
    margin-top: 19px;
    padding: 13px 16px;
    border-left: 2px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.solution-outcome small,
.solution-outcome b {
    display: block;
}

.solution-outcome small {
    margin-bottom: 5px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.solution-outcome b {
    font-family: var(--font-heading);
    font-size: .77rem;
    line-height: 1.5;
}

.solution-story-stage {
    position: relative;
    min-width: 0;
    perspective: 1600px;
}

.solution-story-stage::before {
    position: absolute;
    z-index: -1;
    inset: 8% -5% -8%;
    border-radius: 40%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--primary) 15%, transparent), transparent 67%);
    filter: blur(35px);
    content: '';
}

/* Shared mock window */
.kb-demo {
    position: relative;
    width: 100%;
    aspect-ratio: 1.67;
    overflow: hidden;
    border: 1px solid #2b2d31;
    border-radius: 14px;
    background: #0a0a0b;
    box-shadow: 0 28px 80px rgba(2, 6, 23, .2), 0 4px 14px rgba(2, 6, 23, .13);
    color: #f4f4f5;
    font-family: Carlito, 'Open Sans', sans-serif;
    transform: rotateY(-1.3deg) rotateX(.5deg);
    transform-origin: 50% 70%;
    transition: box-shadow .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}

.solution-story-inner.is-reversed .kb-demo {
    transform: rotateY(1.3deg) rotateX(.5deg);
}

.solution-story.is-in-view .kb-demo:hover,
.solution-story-inner.is-reversed .kb-demo:hover {
    box-shadow: 0 36px 100px rgba(2, 6, 23, .28), 0 4px 18px rgba(2, 6, 23, .15);
    transform: translateY(-4px) rotateY(0) rotateX(0);
}

.kb-windowbar {
    display: flex;
    position: relative;
    z-index: 20;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #414141;
    background: #353535;
    color: #f0f0f0;
    font-size: 7px;
    letter-spacing: .02em;
}

.kb-window-dots {
    display: flex;
    position: absolute;
    left: 10px;
    gap: 5px;
}

.kb-window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5f57;
}

.kb-window-dots i:nth-child(2) { background: #febc2e; }
.kb-window-dots i:nth-child(3) { background: #28c840; }

.kb-replay {
    position: absolute;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 5px;
    background: rgba(255,255,255,.08);
    color: #d4d4d8;
    font: 11px/1 sans-serif;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.kb-replay:hover {
    background: rgba(255,255,255,.16);
    color: white;
    transform: rotate(-25deg);
}

/* Employee app, copied from the visual language of the real Flet client. */
.kb-chat-shell {
    display: grid;
    height: calc(100% - 25px);
    grid-template-columns: minmax(0, 19.2%) minmax(0, 1fr);
    background: #0a0a0b;
    transition: grid-template-columns .3s ease;
}

.kb-chat-sidebar {
    display: flex;
    position: relative;
    z-index: 6;
    width: auto;
    min-width: 0;
    flex-basis: auto;
    flex-direction: column;
    padding: 10px 8px 8px;
    border-right: 1px solid #27272a;
    background: #0f0f11;
}

.kb-app-wordmark {
    margin: 0 2px 8px;
    color: #f4f4f5;
    font-size: clamp(9px, 1.25vw, 15px);
    letter-spacing: -.03em;
}

.kb-side-action,
.kb-side-search,
.kb-side-archive {
    display: flex;
    min-width: 0;
    height: 24px;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    padding: 0 7px;
    border: 1px solid #2b2b30;
    border-radius: 7px;
    background: #111113;
    color: #f4f4f5;
    font: inherit;
    font-size: clamp(5px, .72vw, 8px);
}

.kb-side-action b,
.kb-side-archive b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-side-action span,
.kb-side-search span,
.kb-side-archive span {
    color: #a1a1aa;
    font-size: 9px;
}

.kb-solution-nav-icon {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    display: inline-block;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}

.kb-solution-nav-icon--new {
    -webkit-mask-image: url('/static/assets/icons/add_comment_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg');
    mask-image: url('/static/assets/icons/add_comment_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg');
}

.kb-solution-nav-icon--archive {
    -webkit-mask-image: url('/static/assets/icons/archive_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg');
    mask-image: url('/static/assets/icons/archive_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg');
}

.kb-side-search small {
    overflow: hidden;
    color: #a1a1aa;
    font-size: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-side-archive em {
    min-width: 18px;
    margin-left: auto;
    border-radius: 999px;
    background: #27272a;
    color: #a1a1aa;
    font-style: normal;
    text-align: center;
}

.kb-side-label {
    margin: 7px 3px 4px;
    color: #a1a1aa;
    font-size: clamp(5px, .7vw, 8px);
    font-weight: 700;
}

.kb-conversation-row {
    display: flex;
    height: 27px;
    align-items: center;
    gap: 6px;
    padding: 0 7px;
    border-left: 2px solid transparent;
    border-radius: 6px;
    color: #d4d4d8;
    font-size: clamp(5px, .7vw, 8px);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .35s ease, transform .4s ease, background .35s ease, border-color .35s ease;
}

.kb-conversation-row b {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-conversation-row em {
    font-style: normal;
}

.kb-user-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 8px 2px 0;
    border-top: 1px solid #27272a;
    color: #a1a1aa;
    font-size: clamp(5px, .68vw, 8px);
}

.kb-user-row i {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--demo-accent);
    color: #0a0a0b;
    font-style: normal;
    font-size: 6px;
    font-weight: 800;
}

.kb-user-row span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-chat-main {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #0a0a0b;
}

.kb-chat-topbar {
    display: grid;
    position: relative;
    z-index: 5;
    height: 35px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 13px;
    color: #a1a1aa;
}

.kb-drawer-toggle,
.kb-popout {
    font-size: 8px;
}

.kb-popout {
    justify-self: end;
    font-size: 10px;
}

.kb-model-pill {
    display: flex;
    height: 23px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid #1f1f22;
    border-radius: 10px;
    background: rgba(17, 17, 19, .88);
    color: #f4f4f5;
    font-size: clamp(6px, .75vw, 9px);
}

.kb-model-pill i {
    color: var(--demo-accent);
    font-style: normal;
}

.kb-lava {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 82px;
    overflow: hidden;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--demo-accent) 20%, #08101c), transparent);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .65s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}

.kb-lava i {
    position: absolute;
    top: -15px;
    left: calc(var(--i, 1) * 8%);
    width: 30px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--demo-accent) 72%, #2563eb);
    box-shadow: 0 0 24px 7px color-mix(in srgb, var(--demo-accent) 28%, transparent);
    animation: kb-lava-drift 5s ease-in-out infinite alternate;
}

.kb-lava i:nth-child(1) { --i: 1; width: 45px; height: 34px; }
.kb-lava i:nth-child(2) { --i: 2.2; animation-delay: -.8s; }
.kb-lava i:nth-child(3) { --i: 3.3; width: 18px; height: 18px; animation-delay: -1.6s; }
.kb-lava i:nth-child(4) { --i: 4.2; width: 50px; height: 31px; animation-delay: -2.3s; }
.kb-lava i:nth-child(5) { --i: 5.2; width: 12px; height: 12px; animation-delay: -3s; }
.kb-lava i:nth-child(6) { --i: 6.1; width: 42px; height: 28px; animation-delay: -3.7s; }
.kb-lava i:nth-child(7) { --i: 7.2; width: 17px; height: 17px; animation-delay: -4.2s; }
.kb-lava i:nth-child(8) { --i: 8.4; width: 40px; height: 30px; animation-delay: -1.2s; }
.kb-lava i:nth-child(9) { --i: 9.1; width: 9px; height: 9px; animation-delay: -2s; }
.kb-lava i:nth-child(10) { --i: 10.3; width: 36px; height: 22px; animation-delay: -3.2s; }
.kb-lava i:nth-child(11) { --i: 11.1; width: 13px; height: 13px; animation-delay: -4.5s; }
.kb-lava i:nth-child(12) { --i: 11.8; width: 45px; height: 30px; animation-delay: -.4s; }

@keyframes kb-lava-drift {
    from { transform: translate3d(-8px, -2px, 0) scale(.82); opacity: .54; }
    to { transform: translate3d(13px, 28px, 0) scale(1.08); opacity: .9; }
}

.kb-welcome-state {
    display: flex;
    position: absolute;
    z-index: 3;
    inset: 35px 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 1;
    transition: opacity .3s ease, transform .4s ease;
}

.kb-welcome-state h3 {
    margin-bottom: 14px;
    color: var(--demo-accent);
    font-family: Carlito, sans-serif;
    font-size: clamp(15px, 2.45vw, 27px);
    font-weight: 700;
    letter-spacing: -.025em;
}

.kb-welcome-composer,
.kb-bottom-composer {
    display: flex;
    width: 65%;
    min-height: 33px;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 11px;
    border: 1px solid #2a2a2e;
    border-radius: 16px;
    background: #111113;
    color: #a1a1aa;
}

.kb-welcome-composer > span,
.kb-bottom-composer > span {
    font-size: 12px;
}

.kb-welcome-composer p {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #f4f4f5;
    font-size: clamp(6px, .9vw, 10px);
    line-height: 1.25;
    white-space: nowrap;
}

.kb-welcome-composer > i {
    width: 1px;
    height: 11px;
    margin-left: -6px;
    background: var(--demo-accent);
    animation: kb-caret .8s steps(1) infinite;
}

@keyframes kb-caret { 50% { opacity: 0; } }

.kb-welcome-composer button,
.kb-bottom-composer button {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--demo-accent);
    color: #0a0a0b;
    font-size: 8px;
}

.kb-suggestions {
    display: flex;
    width: 63%;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.kb-suggestions span {
    padding: 4px 8px;
    border: 1px solid #2a2a2e;
    border-radius: 999px;
    color: #a1a1aa;
    font-size: clamp(5px, .66vw, 7px);
    font-weight: 400;
}

.kb-suggestions b {
    font-weight: 400;
}

.kb-conversation-state {
    position: absolute;
    z-index: 3;
    inset: 35px 0 35px;
    padding: 18px 8% 30px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.kb-user-message {
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.kb-user-message p {
    max-width: 52%;
    padding: 10px 12px;
    border-radius: 13px;
    background: var(--demo-accent);
    color: #08090b;
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.42;
}

.kb-thinking {
    max-width: 82%;
    margin: 11px auto 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .4s ease;
}

.kb-thinking-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: color-mix(in srgb, var(--demo-accent) 82%, #fff);
    font-size: clamp(10px, .9vw, 12px);
    font-style: italic;
}

.kb-thinking-card {
    display: grid;
    max-height: 72px;
    grid-template-columns: 16px 1fr;
    gap: 6px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid #283240;
    border-radius: 9px;
    background: #111113;
    color: #8b8b94;
    transition: max-height .45s ease, padding .4s ease, opacity .3s ease, margin .4s ease;
}

.kb-thinking-card > i {
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--demo-accent) 16%, transparent);
    color: var(--demo-accent);
    font-style: normal;
    font-size: 6px;
}

.kb-thinking-card p {
    font-size: clamp(10px, .85vw, 12px);
    font-style: italic;
    line-height: 1.45;
}

.kb-thinking-card > span {
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 1px;
    background: var(--demo-accent);
    animation: kb-thinking-progress 2s ease-in-out infinite;
    transform-origin: left;
}

@keyframes kb-thinking-progress {
    0% { transform: scaleX(.08); opacity: .35; }
    70% { transform: scaleX(.8); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}

.kb-tool-run {
    display: grid;
    max-width: 82%;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 7px;
    margin: 8px auto 0;
    padding: 7px 9px;
    border: 1px solid #334155;
    border-radius: 9px;
    background: #111315;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity .35s ease, transform .4s ease, border-color .35s ease;
}

.kb-tool-run > i {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--demo-accent) 14%, transparent);
    color: var(--demo-accent);
    font-style: normal;
    font-size: 7px;
}

.kb-tool-run p b,
.kb-tool-run p code {
    display: block;
}

.kb-tool-run p b {
    color: #f4f4f5;
    font-size: clamp(10px, .88vw, 12px);
}

.kb-tool-run p code {
    margin-top: 1px;
    color: var(--demo-accent);
    font-size: clamp(8px, .72vw, 10px);
}

.kb-tool-loader {
    display: flex;
    gap: 2px;
}

.kb-tool-loader i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--demo-accent);
    animation: kb-tool-dot .8s ease-in-out infinite alternate;
}

.kb-tool-loader i:nth-child(2) { animation-delay: .16s; }
.kb-tool-loader i:nth-child(3) { animation-delay: .32s; }

@keyframes kb-tool-dot { to { opacity: .2; transform: translateY(-2px); } }

.kb-approval-card {
    display: grid;
    max-width: 82%;
    grid-template-columns: 24px 1fr;
    gap: 7px;
    margin: 8px auto 0;
    padding: 8px 9px;
    border: 1px solid #3c4b5e;
    border-radius: 9px;
    background: #15171b;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.kb-employee-demo[data-has-approval="false"] .kb-approval-card {
    display: none;
}

.kb-approval-card > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--demo-accent) 16%, transparent);
    color: var(--demo-accent);
    font-size: 9px;
}

.kb-approval-card p small,
.kb-approval-card p b,
.kb-approval-card p em {
    display: block;
}

.kb-approval-card p small {
    color: var(--demo-accent);
    font-size: 4.5px;
    font-weight: 700;
    letter-spacing: .08em;
}

.kb-approval-card p b {
    color: #f4f4f5;
    font-size: clamp(10px, .9vw, 12px);
}

.kb-approval-card p em {
    color: #a1a1aa;
    font-size: clamp(8px, .72vw, 10px);
    font-style: normal;
}

.kb-approval-card > div {
    display: flex;
    grid-column: 2;
    justify-content: flex-end;
    gap: 5px;
}

.kb-approval-card button {
    padding: 3px 7px;
    border: 1px solid #3f3f46;
    border-radius: 5px;
    background: transparent;
    color: #d4d4d8;
    font-size: clamp(4.5px, .55vw, 6px);
}

.kb-approval-card button.is-primary {
    border-color: var(--demo-accent);
    background: var(--demo-accent);
    color: #08090b;
}

.kb-assistant-answer {
    display: grid;
    max-width: 82%;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    margin: 10px auto 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}

.kb-answer-mark {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 6px;
    background: var(--demo-accent);
    color: #08090b;
    font-size: 7px;
    font-weight: 800;
}

.kb-answer-copy h4 {
    margin-bottom: 4px;
    color: #f4f4f5;
    font-family: Carlito, sans-serif;
    font-size: clamp(14px, 1.15vw, 16px);
}

.kb-answer-copy > div:not(.kb-source-row) {
    color: #d4d4d8;
    font-size: clamp(12px, .98vw, 14px);
    line-height: 1.45;
}

.kb-answer-copy ul {
    display: grid;
    gap: 2px;
    margin: 3px 0 0 11px;
}

.kb-answer-copy strong {
    color: #f4f4f5;
}

.kb-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.kb-source-row span {
    padding: 3px 6px;
    border: 1px solid #31343b;
    border-radius: 999px;
    background: #111113;
    color: #a1a1aa;
    font-size: clamp(8px, .72vw, 10px);
}

.kb-bottom-composer {
    position: absolute;
    z-index: 5;
    right: 12%;
    bottom: 8px;
    left: 12%;
    width: auto;
    min-height: 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .4s ease;
}

.kb-bottom-composer small {
    flex: 1;
    font-size: clamp(5px, .68vw, 7.5px);
}

.kb-bottom-composer button {
    width: 19px;
    height: 19px;
}

.kb-demo-status {
    display: flex;
    position: absolute;
    z-index: 8;
    right: 8px;
    bottom: 7px;
    align-items: center;
    gap: 4px;
    color: #71717a;
    font-size: 5px;
    opacity: 0;
}

.kb-demo-status i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--demo-accent);
}

/* Employee app animation states */
.kb-employee-demo:not([data-demo-state="welcome"]) .kb-welcome-state {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.kb-employee-demo:not([data-demo-state="welcome"]) .kb-conversation-state {
    opacity: 1;
    pointer-events: auto;
}

.kb-employee-demo:not([data-demo-state="welcome"]) .kb-conversation-row {
    border-color: var(--demo-accent);
    background: #18181b;
    opacity: 1;
    transform: none;
}

.kb-employee-demo:not([data-demo-state="welcome"]) .kb-user-message,
.kb-employee-demo[data-demo-state="thinking"] .kb-thinking,
.kb-employee-demo[data-demo-state="tool"] .kb-thinking,
.kb-employee-demo[data-demo-state="approval"] .kb-thinking,
.kb-employee-demo[data-demo-state="answer"] .kb-thinking,
.kb-employee-demo[data-demo-state="tool"] .kb-tool-run,
.kb-employee-demo[data-demo-state="approval"] .kb-tool-run,
.kb-employee-demo[data-demo-state="answer"] .kb-tool-run,
.kb-employee-demo[data-demo-state="approval"] .kb-approval-card,
.kb-employee-demo[data-demo-state="answer"][data-has-approval="true"] .kb-approval-card,
.kb-employee-demo[data-demo-state="answer"] .kb-assistant-answer,
.kb-employee-demo:not([data-demo-state="welcome"]) .kb-bottom-composer {
    opacity: 1;
    transform: none;
}

.kb-employee-demo[data-demo-state="thinking"] .kb-lava,
.kb-employee-demo[data-demo-state="tool"] .kb-lava,
.kb-employee-demo[data-demo-state="approval"] .kb-lava,
.kb-employee-demo[data-demo-state="answer"] .kb-lava {
    opacity: 1;
    transform: none;
}

.kb-employee-demo[data-demo-state="answer"] .kb-thinking-card {
    max-height: 0;
    margin: 0;
    padding-block: 0;
    border-color: transparent;
    opacity: 0;
}

.kb-employee-demo[data-demo-state="answer"] .kb-tool-run {
    border-color: color-mix(in srgb, #34d399 55%, #334155);
}

.kb-employee-demo[data-demo-state="answer"] .kb-tool-loader::before {
    color: #34d399;
    content: '✓';
    font-size: 7px;
}

.kb-employee-demo[data-demo-state="answer"] .kb-tool-loader i {
    display: none;
}

.kb-employee-demo[data-demo-state="answer"][data-has-approval="true"] .kb-approval-card {
    opacity: .62;
    transform: scale(.97);
}

/* Administration frame */
.kb-admin-demo {
    aspect-ratio: 1.67;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.kb-admin-shell {
    display: grid;
    height: calc(100% - 25px);
    grid-template-columns: 19% 1fr;
    background: #f8fafc;
    font-family: Carlito, 'Open Sans', sans-serif;
}

.kb-admin-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px 7px 8px;
    background: #09090b;
    color: white;
}

.kb-admin-sidebar > strong {
    display: block;
    margin: 0 5px 11px;
    font-size: clamp(8px, 1vw, 12px);
    letter-spacing: -.03em;
}

.kb-admin-sidebar > strong small {
    display: block;
    color: #64748b;
    font-size: clamp(3.5px, .4vw, 5px);
    letter-spacing: .08em;
}

.kb-admin-sidebar nav {
    display: grid;
    gap: 3px;
}

.kb-admin-sidebar nav span {
    display: grid;
    grid-template-columns: 18px 1fr;
    padding: 6px 5px;
    border-left: 2px solid transparent;
    border-radius: 6px;
    color: #cbd5e1;
}

.kb-admin-sidebar nav span.is-active {
    border-color: #3b82f6;
    background: #18181b;
    color: white;
}

.kb-admin-sidebar nav i {
    grid-row: 1 / 3;
    align-self: center;
    font-style: normal;
    font-size: 8px;
}

.kb-admin-sidebar nav b {
    font-size: clamp(5px, .62vw, 7px);
}

.kb-admin-sidebar nav small {
    color: #64748b;
    font-size: clamp(3.5px, .43vw, 5px);
}

.kb-admin-sidebar > div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 7px;
    border-top: 1px solid #27272a;
}

.kb-admin-sidebar > div > i {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    font-style: normal;
    font-size: 5px;
}

.kb-admin-sidebar > div b,
.kb-admin-sidebar > div small {
    display: block;
    font-size: clamp(3.8px, .45vw, 5px);
}

.kb-admin-sidebar > div small { color: #64748b; }

.kb-admin-main {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #f8fafc;
}

.kb-admin-list-view,
.kb-admin-editor-view {
    position: absolute;
    inset: 0;
    padding: 7% 7%;
    transition: opacity .38s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}

.kb-admin-list-view header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.kb-admin-list-view header small,
.kb-admin-editor-view header > small {
    color: #2563eb;
    font-size: clamp(4px, .47vw, 5.5px);
    font-weight: 800;
    letter-spacing: .09em;
}

.kb-admin-list-view header h3,
.kb-admin-editor-view header h3 {
    margin: 2px 0 1px;
    color: #0f172a;
    font-family: Carlito, sans-serif;
    font-size: clamp(12px, 1.65vw, 18px);
    letter-spacing: -.03em;
}

.kb-admin-list-view header p,
.kb-admin-editor-view header p {
    color: #64748b;
    font-size: clamp(4.5px, .57vw, 6.5px);
}

.kb-admin-list-view header button {
    padding: 5px 8px;
    border: 0;
    border-radius: 5px;
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37,99,235,.18);
    color: white;
    font-size: clamp(4.5px, .55vw, 6px);
    font-weight: 700;
}

.kb-bot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 12px;
}

.kb-bot-grid article {
    position: relative;
    min-width: 0;
    padding: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: white;
    box-shadow: 0 3px 12px rgba(15,23,42,.03);
    transition: border-color .35s ease, box-shadow .35s ease, transform .4s ease;
}

.kb-bot-grid article > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 7px;
}

.kb-bot-grid article > em {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 1px 4px;
    border-radius: 99px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 4px;
    font-style: normal;
}

.kb-bot-grid h4 {
    margin: 7px 0 1px;
    color: #0f172a;
    font-family: Carlito, sans-serif;
    font-size: clamp(6px, .8vw, 9px);
}

.kb-bot-grid p,
.kb-bot-grid small,
.kb-bot-grid footer {
    color: #64748b;
    font-size: clamp(3.8px, .43vw, 5px);
}

.kb-bot-grid small {
    display: inline-block;
    margin-top: 7px;
    padding: 2px 4px;
    border-radius: 4px;
    background: #f1f5f9;
}

.kb-bot-grid footer {
    display: flex;
    justify-content: space-between;
    margin: 8px -8px -8px;
    padding: 5px 8px;
    border-top: 1px solid #eef2f7;
}

.kb-bot-grid footer b { color: #2563eb; }

.kb-admin-editor-view {
    padding: 4.5% 6%;
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
}

.kb-admin-editor-view header button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: clamp(4px, .5vw, 6px);
    font-weight: 700;
}

.kb-policy-layout {
    display: grid;
    grid-template-columns: 1.45fr .62fr;
    gap: 8px;
    margin-top: 9px;
}

.kb-policy-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.kb-policy-stack article {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 7px;
    padding: 7px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: white;
    opacity: .28;
    transform: translateY(7px);
    transition: opacity .35s ease, transform .4s ease, border-color .35s ease, box-shadow .35s ease;
}

.kb-policy-stack article > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 5px;
    font-weight: 800;
}

.kb-policy-stack article small,
.kb-policy-stack article h4,
.kb-policy-stack article p {
    display: block;
}

.kb-policy-stack article small {
    color: #2563eb;
    font-size: 3.6px;
    font-weight: 800;
    letter-spacing: .05em;
}

.kb-policy-stack article h4 {
    margin-top: 1px;
    color: #0f172a;
    font-family: Carlito, sans-serif;
    font-size: clamp(5px, .6vw, 7px);
}

.kb-policy-stack article p {
    color: #64748b;
    font-size: clamp(3.6px, .42vw, 4.8px);
    line-height: 1.35;
}

.kb-policy-stack article > em {
    color: #16a34a;
    font-size: 7px;
    font-style: normal;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .3s ease, transform .35s ease;
}

.kb-policy-summary {
    padding: 8px;
    border-radius: 8px;
    background: #09090b;
    box-shadow: 0 10px 24px rgba(15,23,42,.15);
    color: white;
    opacity: .4;
    transform: translateX(8px);
    transition: opacity .5s ease, transform .55s ease;
}

.kb-policy-summary > small {
    color: #60a5fa;
    font-size: 3.8px;
    font-weight: 800;
    letter-spacing: .09em;
}

.kb-policy-summary h4 {
    margin: 3px 0 6px;
    color: white;
    font-family: Carlito, sans-serif;
    font-size: clamp(6px, .75vw, 8.5px);
}

.kb-policy-summary code {
    display: block;
    min-height: 68px;
    padding: 7px;
    border: 1px solid #27272a;
    border-radius: 5px;
    background: #111113;
    color: #bfdbfe;
    font-size: clamp(3.6px, .43vw, 5px);
    line-height: 1.45;
}

.kb-policy-summary > div {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
    color: #86efac;
    font-size: 4.5px;
}

.kb-policy-summary > div i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.kb-policy-summary button {
    width: 100%;
    padding: 5px;
    border: 0;
    border-radius: 5px;
    background: #2563eb;
    color: white;
    font-size: clamp(4px, .49vw, 5.5px);
    font-weight: 700;
}

.kb-publish-toast {
    display: grid;
    position: absolute;
    z-index: 8;
    right: 5%;
    bottom: 6%;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 6px;
    min-width: 128px;
    padding: 7px;
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    background: white;
    box-shadow: 0 12px 30px rgba(15,23,42,.18);
    opacity: 0;
    transform: translateY(12px) scale(.96);
    transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.kb-publish-toast > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 7px;
}

.kb-publish-toast b,
.kb-publish-toast small { display: block; }
.kb-publish-toast b { color: #0f172a; font-size: 5.5px; }
.kb-publish-toast small { color: #64748b; font-size: 4.2px; }

.kb-admin-demo[data-demo-state="selected"] .kb-policy-bot {
    border-color: #60a5fa;
    box-shadow: 0 8px 22px rgba(37,99,235,.13);
    transform: translateY(-3px);
}

.kb-admin-demo[data-demo-state="editor"] .kb-admin-list-view,
.kb-admin-demo[data-demo-state="policies"] .kb-admin-list-view,
.kb-admin-demo[data-demo-state="published"] .kb-admin-list-view {
    opacity: 0;
    transform: translateX(-35px);
    pointer-events: none;
}

.kb-admin-demo[data-demo-state="editor"] .kb-admin-editor-view,
.kb-admin-demo[data-demo-state="policies"] .kb-admin-editor-view,
.kb-admin-demo[data-demo-state="published"] .kb-admin-editor-view {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.kb-admin-demo[data-demo-state="policies"] .kb-policy-stack article,
.kb-admin-demo[data-demo-state="published"] .kb-policy-stack article {
    border-color: #bfdbfe;
    box-shadow: 0 5px 14px rgba(37,99,235,.07);
    opacity: 1;
    transform: none;
}

.kb-admin-demo[data-demo-state="policies"] .kb-policy-stack article:nth-child(2),
.kb-admin-demo[data-demo-state="published"] .kb-policy-stack article:nth-child(2) { transition-delay: .12s; }
.kb-admin-demo[data-demo-state="policies"] .kb-policy-stack article:nth-child(3),
.kb-admin-demo[data-demo-state="published"] .kb-policy-stack article:nth-child(3) { transition-delay: .24s; }
.kb-admin-demo[data-demo-state="policies"] .kb-policy-stack article:nth-child(4),
.kb-admin-demo[data-demo-state="published"] .kb-policy-stack article:nth-child(4) { transition-delay: .36s; }

.kb-admin-demo[data-demo-state="policies"] .kb-policy-stack article > em,
.kb-admin-demo[data-demo-state="published"] .kb-policy-stack article > em {
    opacity: 1;
    transform: none;
    transition-delay: .42s;
}

.kb-admin-demo[data-demo-state="policies"] .kb-policy-summary,
.kb-admin-demo[data-demo-state="published"] .kb-policy-summary {
    opacity: 1;
    transform: none;
    transition-delay: .25s;
}

.kb-admin-demo[data-demo-state="published"] .kb-publish-toast,
.kb-publish-toast.is-visible {
    opacity: 1;
    transform: none;
}

.solutions-cta {
    padding: clamp(80px, 9vw, 120px) 0;
    background: var(--background);
}

[data-theme="dark"] .solutions-cta {
    background: #060a14;
}

[data-theme="light"] .solutions-cta {
    background: #ffffff;
}

.solutions-cta-card {
    display: grid;
    position: relative;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 70px;
    padding: clamp(42px, 7vw, 80px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0, color-mix(in srgb, var(--primary) 18%, transparent), transparent 30%),
        var(--surface);
    box-shadow: 0 28px 80px rgba(15,23,42,.08);
}

.solutions-cta-card::after {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-radius: 50%;
    content: '';
}

.solutions-cta-card > div,
.solutions-cta-card > a {
    position: relative;
    z-index: 1;
}

.solutions-cta-card h2 {
    max-width: 750px;
    font-size: clamp(2rem, 4vw, 3.65rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.solutions-cta-card p {
    max-width: 760px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: .98rem;
    line-height: 1.75;
}

.solutions-cta-card .btn {
    min-height: 52px;
    padding-inline: 24px;
    border-radius: 12px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .solution-story-inner,
    .solution-story-inner.is-reversed {
        grid-template-columns: minmax(280px, .62fr) minmax(560px, 1.38fr);
        gap: 34px;
        padding-inline: 24px;
    }

    .solution-story-inner.is-reversed {
        grid-template-columns: minmax(560px, 1.38fr) minmax(280px, .62fr);
    }

    .solution-story-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
    .solution-story-copy > p { font-size: .9rem; }
}

@media (max-width: 900px) {
    .solutions-intro-grid,
    .solution-story-inner,
    .solution-story-inner.is-reversed {
        grid-template-columns: 1fr;
    }

    .solutions-intro-grid { align-items: start; gap: 30px; }
    .solution-story-inner.is-reversed .solution-story-copy,
    .solution-story-inner.is-reversed .solution-story-stage { order: initial; }
    .solution-story-copy { max-width: 650px; }
    .solution-story-stage { width: min(920px, 100%); }
    .kb-demo,
    .solution-story-inner.is-reversed .kb-demo { transform: none; }
    .solutions-cta-card { grid-template-columns: 1fr; align-items: start; gap: 32px; }
    .solutions-cta-card .btn { justify-self: start; }
}

@media (max-width: 768px) {
    .solutions-hero {
        min-height: 790px;
        padding: 140px 0 80px;
    }

    .solutions-hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
    .solutions-hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .solutions-hero-proof { display: grid; grid-template-columns: 1fr; margin-top: 64px; }
    .solutions-hero-proof span { border-bottom: 1px solid rgba(148,163,184,.14); padding: 12px 0; }
    .solution-story { padding-block: 54px; }
    .solution-story-inner { gap: 32px; }
    .solution-story-copy h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
}

@media (max-width: 560px) {
    .solutions-hero h1 { letter-spacing: -.055em; }
    .solutions-intro h2 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
    .solution-story-stage { margin-inline: -14px; width: calc(100% + 28px); }
    .kb-demo { aspect-ratio: 1.12; border-radius: 11px; }
    .kb-employee-demo { aspect-ratio: .95; }
    .kb-windowbar { height: 22px; }
    .kb-chat-shell,
    .kb-admin-shell { height: calc(100% - 22px); grid-template-columns: 15.5% 1fr; }
    .kb-chat-sidebar { padding-inline: 5px; }
    .kb-app-wordmark { overflow: hidden; font-size: 0; }
    .kb-app-wordmark::before { color: #f4f4f5; content: 'K'; font-size: 11px; }
    .kb-side-action,
    .kb-side-search,
    .kb-side-archive { justify-content: center; padding-inline: 2px; }
    .kb-side-action b,
    .kb-side-search small,
    .kb-side-archive b,
    .kb-side-archive em,
    .kb-side-label,
    .kb-conversation-row b,
    .kb-conversation-row em,
    .kb-user-row span,
    .kb-user-row em { display: none; }
    .kb-conversation-row { justify-content: center; padding-inline: 1px; }
    .kb-user-row { justify-content: center; }
    .kb-welcome-composer { width: 78%; }
    .kb-welcome-composer p { font-size: clamp(9px, 1.35vw, 15px); }
    .kb-suggestions { width: 76%; }
    .kb-suggestions span:nth-child(2) { display: none; }
    .kb-conversation-state { padding-inline: 5%; }
    .kb-user-message p {
        max-width: 67%;
        font-size: clamp(10.5px, 3.075vw, 13.5px);
    }
    .kb-employee-demo .kb-thinking-label,
    .kb-thinking-card p { font-size: clamp(6px, 1.7vw, 8px); }
    .kb-tool-run p b { font-size: clamp(6px, 1.7vw, 8px); }
    .kb-tool-run p code { font-size: clamp(5.5px, 1.5vw, 7px); }
    .kb-answer-copy h4 { font-size: clamp(10.5px, 2.85vw, 13.5px); }
    .kb-answer-copy > div:not(.kb-source-row) { font-size: clamp(9px, 2.55vw, 12px); }
    .kb-source-row span { font-size: clamp(5px, 1.4vw, 6.5px); }
    .kb-thinking,
    .kb-tool-run,
    .kb-approval-card,
    .kb-assistant-answer { max-width: 92%; }
    .kb-employee-demo[data-demo-state="answer"] .kb-thinking,
    .kb-employee-demo[data-demo-state="answer"] .kb-tool-run,
    .kb-employee-demo[data-demo-state="answer"] .kb-approval-card { display: none; }
    .kb-bottom-composer { right: 7%; left: 7%; }
    .kb-admin-sidebar { padding-inline: 4px; }
    .kb-admin-sidebar > strong { overflow: hidden; font-size: 0; }
    .kb-admin-sidebar > strong::before { color: white; content: 'K'; font-size: 11px; }
    .kb-admin-sidebar > strong small,
    .kb-admin-sidebar nav b,
    .kb-admin-sidebar nav small,
    .kb-admin-sidebar > div span { display: none; }
    .kb-admin-sidebar nav span { grid-template-columns: 1fr; justify-items: center; }
    .kb-admin-sidebar nav i { grid-row: auto; }
    .kb-admin-sidebar > div { justify-content: center; }
    .kb-admin-list-view,
    .kb-admin-editor-view { padding-inline: 5%; }
    .kb-bot-grid { grid-template-columns: repeat(2, 1fr); }
    .kb-bot-grid article:nth-child(2) { display: none; }
    .kb-policy-layout { grid-template-columns: 1fr .56fr; }
    .solutions-cta-card { padding: 34px 25px; border-radius: 20px; }
    .solutions-cta-card .btn { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .solutions-hero-glow i,
    .kb-lava i,
    .kb-welcome-composer > i,
    .kb-thinking-card > span,
    .kb-tool-loader i {
        animation: none !important;
    }

    .solution-story-copy,
    .solution-story-stage {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Interaction layer for the product walkthroughs */
.kb-employee-demo .kb-side-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #f4f4f5; font: inherit; }
.kb-employee-demo .kb-side-search input::placeholder { color: #a1a1aa; opacity: 1; }
.kb-employee-demo .kb-side-archive { width: 100%; cursor: pointer; }
.kb-employee-demo .kb-conversation-row, .kb-employee-demo .kb-user-row { width: 100%; border-right: 0; border-top: 0; border-bottom: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.kb-employee-demo .kb-user-row { border-top: 1px solid #27272a; }
.kb-employee-demo .kb-drawer-toggle, .kb-employee-demo .kb-popout { border: 0; background: transparent; color: #a1a1aa; font: inherit; cursor: pointer; }
.kb-employee-demo .kb-drawer-toggle { width: 25px; height: 25px; display: grid; place-items: center; justify-self: start; padding: 0; }
.kb-employee-demo .kb-model-pill { cursor: pointer; }
.kb-employee-demo.sidebar-collapsed .kb-chat-shell { grid-template-columns: minmax(0, 8.5%) minmax(0, 1fr); }
.kb-employee-demo.sidebar-collapsed .kb-chat-sidebar { align-items: center; padding-inline: 4px; }
.kb-employee-demo.sidebar-collapsed .kb-app-wordmark, .kb-employee-demo.sidebar-collapsed .kb-side-action b, .kb-employee-demo.sidebar-collapsed .kb-side-search input, .kb-employee-demo.sidebar-collapsed .kb-side-archive b, .kb-employee-demo.sidebar-collapsed .kb-side-archive em, .kb-employee-demo.sidebar-collapsed .kb-side-label, .kb-employee-demo.sidebar-collapsed .kb-conversation-row b, .kb-employee-demo.sidebar-collapsed .kb-conversation-row em, .kb-employee-demo.sidebar-collapsed .kb-user-row span, .kb-employee-demo.sidebar-collapsed .kb-user-row em { display: none; }
.kb-employee-demo.sidebar-collapsed .kb-side-action, .kb-employee-demo.sidebar-collapsed .kb-side-search, .kb-employee-demo.sidebar-collapsed .kb-side-archive, .kb-employee-demo.sidebar-collapsed .kb-conversation-row, .kb-employee-demo.sidebar-collapsed .kb-user-row { justify-content: center; padding-inline: 0; }
.kb-employee-demo.sidebar-collapsed .kb-side-action, .kb-employee-demo.sidebar-collapsed .kb-side-search, .kb-employee-demo.sidebar-collapsed .kb-side-archive { width: 25px; }
.kb-employee-demo.sidebar-collapsed .kb-user-row { margin-top: auto; }
.kb-thinking-label { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.kb-employee-demo.thinking-collapsed .kb-thinking-card { max-height: 0; margin: 0; padding-block: 0; border-color: transparent; opacity: 0; }
.kb-employee-demo.thinking-collapsed .kb-thinking-label span { transform: rotate(-90deg); }
.kb-solution-menu { position: absolute; z-index: 18; min-width: 112px; padding: 4px; border: 1px solid #2f3138; border-radius: 7px; background: rgba(17,17,19,.97); box-shadow: 0 10px 25px rgba(0,0,0,.35); color: #f4f4f5; }
.kb-solution-menu[hidden] { display: none; }
.kb-solution-menu button { width: 100%; min-height: 23px; display: flex; align-items: center; gap: 6px; padding: 0 6px; border: 0; border-radius: 5px; background: transparent; color: #d4d4d8; font: 6px Carlito, sans-serif; text-align: left; cursor: pointer; }
.kb-solution-menu button:hover, .kb-solution-menu button.is-active { background: #27272a; }
.kb-solution-profile-menu { right: -96px; bottom: 30px; }
.kb-solution-model-menu { top: 30px; left: 50%; width: 125px; transform: translateX(-50%); }
.kb-solution-model-menu button { display: grid; grid-template-columns: 12px 1fr 10px; }
.kb-solution-model-menu i { visibility: hidden; color: var(--demo-accent); font-style: normal; }
.kb-solution-model-menu button.is-active i { visibility: visible; }
.kb-solution-toast { position: absolute; z-index: 24; right: 9px; bottom: 8px; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #314158; border-radius: 6px; background: #111315; box-shadow: 0 8px 20px rgba(0,0,0,.3); color: #f4f4f5; font-size: 5px; }
.kb-solution-toast[hidden] { display: none; }
.kb-solution-toast span { color: #34d399; }
.kb-solution-dialog { position: absolute; z-index: 30; inset: 25px 0 0; display: grid; place-items: center; padding: 10px; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.kb-solution-dialog[hidden] { display: none; }
.kb-solution-dialog > section { width: 76%; height: 72%; overflow: hidden; border: 1px solid #2f3138; border-radius: 9px; background: #111113; box-shadow: 0 18px 40px rgba(0,0,0,.45); color: #f4f4f5; }
.kb-solution-dialog header { height: 28px; display: flex; align-items: center; padding: 0 9px; border-bottom: 1px solid #27272a; }
.kb-solution-dialog h4 { color: #f4f4f5; font: 700 9px Carlito, sans-serif; }
.kb-solution-dialog header button { margin-left: auto; border: 0; background: transparent; color: #a1a1aa; cursor: pointer; }
.kb-solution-dialog > section > div { height: calc(100% - 28px); display: grid; grid-template-columns: 30% 1fr; }
.kb-solution-dialog nav { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-right: 1px solid #27272a; }
.kb-solution-dialog nav button { min-height: 22px; padding: 0 6px; border: 0; border-radius: 5px; background: transparent; color: #a1a1aa; font: 6px Carlito, sans-serif; text-align: left; cursor: pointer; }
.kb-solution-dialog nav button.is-active { background: #27272a; color: #f4f4f5; }
.kb-solution-dialog main { padding: 7px 9px; overflow: auto; }
.kb-solution-dialog article { display: none; }
.kb-solution-dialog article.is-active { display: block; }
.kb-solution-dialog article label { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border-bottom: 1px solid #27272a; color: #d4d4d8; font-size: 6px; }
.kb-solution-dialog article label i { width: 13px; height: 13px; border-radius: 50%; }
.kb-solution-dialog article select { border: 1px solid #2f3138; border-radius: 4px; background: #18181b; color: #f4f4f5; font-size: 6px; }
.kb-solution-dialog article em { color: #a1a1aa; font-size: 6px; font-style: normal; }
.kb-solution-dialog article p { margin: 8px 0; color: #a1a1aa; font-size: 6px; line-height: 1.5; }
.kb-solution-dialog article strong { color: #34d399; font-size: 6px; }
.kb-answer-copy .kb-source-row span { cursor: pointer; }
.kb-answer-copy .kb-source-row span:hover { border-color: var(--demo-accent); color: #f4f4f5; }
.kb-employee-demo.is-light-preview .kb-chat-shell, .kb-employee-demo.is-light-preview .kb-chat-main { background: #f8fafc; }
.kb-employee-demo.is-light-preview .kb-chat-sidebar { border-color: #dbe3ee; background: #f1f5f9; }
.kb-employee-demo.is-light-preview .kb-app-wordmark, .kb-employee-demo.is-light-preview .kb-side-action, .kb-employee-demo.is-light-preview .kb-side-archive, .kb-employee-demo.is-light-preview .kb-conversation-row { color: #0f172a; }
.kb-employee-demo.is-light-preview .kb-side-action, .kb-employee-demo.is-light-preview .kb-side-search, .kb-employee-demo.is-light-preview .kb-side-archive, .kb-employee-demo.is-light-preview .kb-welcome-composer, .kb-employee-demo.is-light-preview .kb-bottom-composer { border-color: #dbe3ee; background: #fff; }
.kb-employee-demo.is-light-preview .kb-side-search input, .kb-employee-demo.is-light-preview .kb-model-pill { color: #0f172a; }
.kb-employee-demo.is-light-preview .kb-user-row { border-color: #dbe3ee; color: #64748b; }
.kb-employee-demo.is-light-preview .kb-welcome-composer p, .kb-employee-demo.is-light-preview .kb-answer-copy h4 { color: #0f172a; }
.kb-employee-demo.is-light-preview .kb-suggestions span { border-color: #dbe3ee; color: #64748b; }

.solutions-page .kb-admin-sidebar nav button { display: grid; grid-template-columns: 18px 1fr; padding: 6px 5px; border: 0; border-left: 2px solid transparent; border-radius: 6px; background: transparent; color: #cbd5e1; font: inherit; text-align: left; cursor: pointer; }
.solutions-page .kb-admin-sidebar nav button:hover, .solutions-page .kb-admin-sidebar nav button.is-active { border-color: #3b82f6; background: #18181b; color: white; }
.solutions-page .kb-admin-sidebar nav button i { grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 8px; }
.solutions-page .kb-admin-sidebar nav button b { font-size: clamp(5px, .62vw, 7px); }
.solutions-page .kb-admin-sidebar nav button small { color: #64748b; font-size: clamp(3.5px, .43vw, 5px); }
.solutions-page .kb-bot-grid article[data-solution-admin-card] { cursor: pointer; }
.solutions-page .kb-bot-grid article[data-solution-admin-card]:focus-visible { outline: 1px solid #2563eb; }

@media (max-width: 720px) {
    .kb-solution-profile-menu { right: -103px; }
    .kb-solution-dialog > section { width: 92%; }
    .solutions-page .kb-admin-sidebar nav button { grid-template-columns: 1fr; justify-items: center; }
    .solutions-page .kb-admin-sidebar nav button i { grid-row: auto; }
    .solutions-page .kb-admin-sidebar nav button b, .solutions-page .kb-admin-sidebar nav button small { display: none; }
}

/* ---- Solutions Modularity Section ---- */
.solutions-modularity-section {
    padding: clamp(80px, 9vw, 120px) 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    background: var(--surface-elevated);
}

[data-theme="dark"] .solutions-modularity-section {
    background: #0d1629;
    border-color: rgba(59, 130, 246, 0.18);
}

[data-theme="light"] .solutions-modularity-section {
    background: #f1f5f9;
    border-color: #dbe4ef;
}

.solutions-modularity-card {
    background: #090e19;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 24px;
    padding: 44px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

[data-theme="light"] .solutions-modularity-card {
    background: #ffffff;
    border-color: #d1dbe5;
    box-shadow: 0 12px 36px rgba(31, 34, 41, 0.08);
}

.modularity-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.modularity-card-header .modularity-icon {
    font-size: 42px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    padding: 14px;
    border-radius: 16px;
}

[data-theme="light"] .modularity-card-header .modularity-icon {
    color: #0052d4;
    background: #ebf1f7;
}

.modularity-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #60a5fa;
    margin-bottom: 4px;
}

[data-theme="light"] .modularity-kicker {
    color: #0052d4;
}

.modularity-header-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f2f6ff;
    line-height: 1.3;
}

[data-theme="light"] .modularity-header-text h2 {
    color: #1f2229;
}

.modularity-body-copy {
    font-size: 1.05rem;
    color: #aab8d3;
    line-height: 1.6;
    max-width: 900px;
}

[data-theme="light"] .modularity-body-copy {
    color: #505160;
}

.solutions-modularity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 12px;
}

@media (max-width: 840px) {
    .solutions-modularity-grid {
        grid-template-columns: 1fr;
    }
    .solutions-modularity-card {
        padding: 24px;
    }
}

.solutions-modularity-grid article {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-theme="light"] .solutions-modularity-grid article {
    background: #f8faff;
    border-color: #e2e8f0;
}

.solutions-modularity-grid article span {
    font-size: 30px;
    color: #60a5fa;
}

[data-theme="light"] .solutions-modularity-grid article span {
    color: #0052d4;
}

.solutions-modularity-grid article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f2f6ff;
}

[data-theme="light"] .solutions-modularity-grid article h3 {
    color: #1f2229;
}

.solutions-modularity-grid article p {
    font-size: 0.9rem;
    color: #aab8d3;
    line-height: 1.5;
}

[data-theme="light"] .solutions-modularity-grid article p {
    color: #505160;
}
