/* /demo split view: chat left, office view right. Leans on redesign.css for
   tokens and the .chatui panel; this file only owns the demo page layout. */

.demo-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.demo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.4rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.demo-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
}

.demo-nav__brand .logo-mark {
    width: 42px;
    height: auto;
}

.demo-nav__back {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.92rem;
}

.demo-nav__back:hover {
    color: var(--mint);
}

.demo-banner {
    padding: 0.85rem clamp(1.4rem, 4vw, 3rem);
    background: rgba(0, 168, 150, 0.1);
    border-bottom: 1px solid rgba(0, 168, 150, 0.25);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.demo-banner strong {
    color: var(--mint);
}

.demo-shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(360px, 460px) 1fr;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1.4rem, 4vw, 3rem) 3rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

.demo-col__title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.demo-col__sub {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.demo-personalize {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.demo-personalize input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: rgba(231, 238, 244, 0.04);
    outline: none;
}

.demo-personalize input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.18);
}

.demo-personalize button {
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    white-space: nowrap;
}

.demo-personalize button:hover:not(:disabled) {
    background: var(--teal-bright);
}

.demo-personalize button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.demo-personalize__hint {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

/* The chat dock: same surface treatment as the homepage sidebar, sized for
   a column instead of the full viewport edge. */
.demo-dock {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(
            22rem 16rem at 100% 0%,
            rgba(0, 168, 150, 0.09),
            transparent 65%
        ),
        var(--ink-2);
    height: min(72vh, 700px);
    display: flex;
    overflow: hidden;
}

.demo-dock .chatui {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ---------------- office view ---------------- */

.office {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.office__panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(231, 238, 244, 0.03);
    padding: 1.1rem 1.2rem;
}

.office__panel h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.office__badge {
    background: var(--teal);
    color: var(--ink);
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 0.05rem 0.5rem;
    letter-spacing: 0;
}

.office__badge:empty {
    display: none;
}

.office__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.office__list li {
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    background: rgba(5, 9, 15, 0.5);
}

.office__list li .who {
    font-weight: 700;
}

.office__list li .meta {
    color: var(--text-dim);
    font-size: 0.84rem;
}

.office__list li.is-cancelled {
    border-left-color: var(--text-dim);
    opacity: 0.6;
}

.office__list li.is-cancelled .who {
    text-decoration: line-through;
}

.office__list li.is-new {
    animation: office-land 0.5s var(--ease-out);
    border-left-color: var(--mint);
}

@keyframes office-land {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.office__list--feed li {
    border-left-color: rgba(143, 216, 206, 0.5);
}

.office__cta {
    border: 1px solid rgba(0, 168, 150, 0.45);
    border-radius: var(--radius);
    background: linear-gradient(140deg, rgba(0, 168, 150, 0.16), rgba(143, 216, 206, 0.07));
    padding: 1.2rem 1.3rem;
    animation: office-land 0.6s var(--ease-out);
}

.office__cta b {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.office__cta p {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.office__cta a {
    display: inline-block;
    background: var(--teal);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-size: 0.92rem;
}

.office__cta a:hover {
    background: var(--teal-bright);
}

.office__watermark {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.8;
}

/* ---------------- narrow screens: stack, chat first ---------------- */

@media (max-width: 900px) {
    .demo-shell {
        grid-template-columns: 1fr;
    }

    .demo-dock {
        height: 68vh;
    }

    .demo-nav__back {
        display: none;
    }
}
