/* Workspaces page — extends pl-landing-v4 (violet accent) */
.pl-landing-workspaces {
    --ws-violet: #7c3aed;
    --ws-indigo: #6366f1;
    --ws-lilac: #a855f7;
}

.pl-landing-workspaces .pl-landing-slide:not(.pl-landing-slide--cta) {
    position: relative;
    overflow: hidden;
}

.pl-landing-workspaces .pl-landing-slide-inner,
.pl-landing-workspaces .pl-landing-v4-trusted {
    position: relative;
    z-index: 1;
}

.pl-landing-workspaces .pl-landing-slide--hero {
    background: #fff;
}

.pl-landing-workspaces .pl-landing-slide[data-slide='1'] {
    background: linear-gradient(195deg, #f5f0ff 0%, #fff 50%, #faf8ff 100%);
}

.pl-landing-workspaces .pl-landing-slide[data-slide='2'] {
    background: linear-gradient(160deg, #f3eeff 0%, #fff 55%, #f5f0ff 100%);
}

.pl-landing-workspaces .pl-landing-slide[data-slide='3'] {
    background: linear-gradient(210deg, #fff 0%, #f3eeff 42%, #faf8ff 100%);
}

/* ── Hero copy / actions ─────────────────────────────────────── */
.pl-landing-ws-hero-copy .pl-landing-headline--hero {
    max-width: 16ch;
}

.pl-landing-ws-hero-copy .pl-landing-sub--hero {
    max-width: 50ch;
}

.pl-landing-ws-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: clamp(20px, 3vh, 28px);
}

.pl-landing-workspaces .pl-landing-actions .pl-landing-btn--ghost,
.pl-landing-ws-hero-actions .pl-landing-btn--ghost {
    background: transparent;
    color: var(--ws-violet);
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: none;
}

.pl-landing-workspaces .pl-landing-actions .pl-landing-btn--ghost:hover,
.pl-landing-ws-hero-actions .pl-landing-btn--ghost:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.5);
}

/* ── App store badges (iOS + Android) ────────────────────────── */
.pl-landing-ws-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: clamp(16px, 2.5vh, 22px);
}

.pl-landing-ws-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 9px 16px;
    border-radius: 12px;
    background: #0a0a0a;
    color: #fff;
    text-decoration: none;
    border: 1px solid #0a0a0a;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pl-landing-ws-store:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.18);
}

.pl-landing-ws-store svg {
    flex: none;
    width: 22px;
    height: 22px;
}

.pl-landing-ws-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.pl-landing-ws-store-text small {
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.72;
}

.pl-landing-ws-store-text strong {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ── Generic screenshot placeholder slot ─────────────────────── */
.pl-landing-ws-shot {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    border: 1px dashed rgba(124, 58, 237, 0.4);
    background:
        repeating-linear-gradient(
            45deg,
            rgba(124, 58, 237, 0.04),
            rgba(124, 58, 237, 0.04) 12px,
            rgba(124, 58, 237, 0.08) 12px,
            rgba(124, 58, 237, 0.08) 24px
        ),
        linear-gradient(135deg, #ede9fe, #f5f3ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ws-violet);
    overflow: hidden;
}

.pl-landing-ws-shot svg {
    width: 30px;
    height: 30px;
    opacity: 0.7;
}

.pl-landing-ws-shot span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Invite perks grid ───────────────────────────────────────── */
.pl-landing-ws-perks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: clamp(28px, 4vh, 40px);
}

.pl-landing-ws-perk {
    padding: clamp(18px, 2.5vw, 24px);
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: 14px;
}

.pl-landing-ws-perk-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
    color: var(--ws-violet);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.18);
}

.pl-landing-ws-perk-ico svg {
    width: 18px;
    height: 18px;
}

.pl-landing-ws-perk h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ws-violet);
}

.pl-landing-ws-perk p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--pl-muted);
}

/* ── Chat / DM mockup ────────────────────────────────────────── */
.pl-landing-ws-chat {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(76, 29, 149, 0.12);
    overflow: hidden;
}

.pl-landing-ws-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pl-border);
    background: linear-gradient(180deg, #faf8ff, #fff);
}

.pl-landing-ws-chat-head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pl-landing-ws-chat-head p {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--pl-muted);
}

.pl-landing-ws-chat-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    background: #fbfbfe;
}

.pl-landing-ws-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    gap: 6px;
}

.pl-landing-ws-msg--in {
    align-self: flex-start;
    align-items: flex-start;
}

.pl-landing-ws-msg--out {
    align-self: flex-end;
    align-items: flex-end;
}

.pl-landing-ws-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.pl-landing-ws-bubble {
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.45;
}

.pl-landing-ws-msg--in .pl-landing-ws-bubble {
    background: #fff;
    border: 1px solid var(--pl-border);
    border-bottom-left-radius: 5px;
    color: var(--pl-text);
}

.pl-landing-ws-msg--out .pl-landing-ws-bubble {
    background: linear-gradient(135deg, var(--ws-violet), var(--ws-indigo));
    border-bottom-right-radius: 5px;
    color: #fff;
}

.pl-landing-ws-msg-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--pl-muted);
    padding: 0 4px;
}

/* ── Avatars (read receipts / activity) ──────────────────────── */
.pl-landing-ws-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: var(--ws-violet);
    box-shadow: 0 0 0 2px #fff;
}

.pl-landing-ws-avatar--lg {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.pl-landing-ws-avatar--sm {
    width: 22px;
    height: 22px;
    font-size: 9px;
    letter-spacing: 0.02em;
}

.pl-landing-ws-avatar--a { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.pl-landing-ws-avatar--b { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.pl-landing-ws-avatar--c { background: linear-gradient(135deg, #db2777, #fb7185); }
.pl-landing-ws-avatar--d { background: linear-gradient(135deg, #059669, #34d399); }

.pl-landing-ws-seen {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
    padding: 0 2px;
}

.pl-landing-ws-seen-stack {
    display: inline-flex;
}

.pl-landing-ws-seen-stack .pl-landing-ws-avatar:not(:first-child) {
    margin-left: -8px;
}

.pl-landing-ws-seen-label {
    font-size: 10px;
    color: var(--pl-muted);
}

/* ── Typing indicator ────────────────────────────────────────── */
.pl-landing-ws-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: 16px;
    border-bottom-left-radius: 5px;
}

.pl-landing-ws-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ws-violet);
    opacity: 0.4;
    animation: pl-ws-typing-bounce 1.3s infinite ease-in-out;
}

.pl-landing-ws-typing span:nth-child(2) { animation-delay: 0.18s; }
.pl-landing-ws-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes pl-ws-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .pl-landing-ws-typing span { animation: none; opacity: 0.7; }
}

.pl-landing-ws-typing-caption {
    margin-top: 8px;
    font-size: 11px;
    color: var(--pl-muted);
    padding: 0 4px;
}

/* ── Activity strip (avatars showing who's active) ───────────── */
.pl-landing-ws-activity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: clamp(20px, 3vh, 28px);
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: 14px;
}

.pl-landing-ws-activity-stack {
    display: inline-flex;
}

.pl-landing-ws-activity-stack .pl-landing-ws-avatar:not(:first-child) {
    margin-left: -10px;
}

.pl-landing-ws-activity-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -10px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: var(--ws-violet);
    background: #ede9fe;
    box-shadow: 0 0 0 2px #fff;
}

.pl-landing-ws-activity-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pl-landing-ws-activity-text span {
    font-size: 12px;
    color: var(--pl-muted);
}

.pl-landing-ws-activity-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pl-green, #008556);
    box-shadow: 0 0 0 3px rgba(0, 133, 86, 0.18);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pl-landing-ws-perks {
        grid-template-columns: 1fr;
    }

    .pl-landing-ws-hero-copy .pl-landing-headline--hero {
        max-width: none;
    }
}

@media (min-width: 600px) and (max-width: 1100px) {
    .pl-landing-ws-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
